deepseek-pc/dist/deepseek/ai-DI3btUUN.js
2025-03-03 11:22:58 +08:00

62 lines
95 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Yt=Object.defineProperty;var en=(s,e,t)=>e in s?Yt(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var T=(s,e,t)=>en(s,typeof e!="symbol"?e+"":e,t);import{d as tn,r as j,b as nn,e as sn,f as rn,c as $,a as k,n as on,g as H,F as ln,h as an,i as Ae,w as cn,v as un,j as pn,k as We,t as Qe,l as Xe,m as Ke,p as hn,o as B}from"./index-CXb-FhKb.js";const fn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAG1BMVEUAAAD///8/Pz+/v78fHx9fX19/f3+fn5+Pj4/ctHcOAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAmklEQVRYhe3RQQrCMBCF4YdkkmsUvIIHmFXXRbR22YXZu8j9MVM0lmpp3Or7oIU/kDJJASIiIqK/5PKj8wVd9MJeJSb0Fy1t8ep30muL4EbcSudIpT8N5fUILw1G7Lr8yp0jWq/yeoW0ihNwDmrtFcPUFVvkgMotz8EQ4tQVg5XjJ+mst45vX31cslM01luXbL79lURERES/6w4ftR+JUiBWQgAAAABJRU5ErkJggg==";function bt(s,e){return function(){return s.apply(e,arguments)}}const{toString:dn}=Object.prototype,{getPrototypeOf:Ne}=Object,be=(s=>e=>{const t=dn.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),I=s=>(s=s.toLowerCase(),e=>be(e)===s),we=s=>e=>typeof e===s,{isArray:Q}=Array,re=we("undefined");function gn(s){return s!==null&&!re(s)&&s.constructor!==null&&!re(s.constructor)&&P(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const wt=I("ArrayBuffer");function mn(s){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(s):e=s&&s.buffer&&wt(s.buffer),e}const bn=we("string"),P=we("function"),kt=we("number"),ke=s=>s!==null&&typeof s=="object",wn=s=>s===!0||s===!1,ce=s=>{if(be(s)!=="object")return!1;const e=Ne(s);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},kn=I("Date"),Cn=I("File"),xn=I("Blob"),yn=I("FileList"),Sn=s=>ke(s)&&P(s.pipe),Rn=s=>{let e;return s&&(typeof FormData=="function"&&s instanceof FormData||P(s.append)&&((e=be(s))==="formdata"||e==="object"&&P(s.toString)&&s.toString()==="[object FormData]"))},An=I("URLSearchParams"),[En,Tn,_n,vn]=["ReadableStream","Request","Response","Headers"].map(I),Ln=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(s,e,{allOwnKeys:t=!1}={}){if(s===null||typeof s>"u")return;let n,r;if(typeof s!="object"&&(s=[s]),Q(s))for(n=0,r=s.length;n<r;n++)e.call(null,s[n],n,s);else{const i=t?Object.getOwnPropertyNames(s):Object.keys(s),o=i.length;let l;for(n=0;n<o;n++)l=i[n],e.call(null,s[l],l,s)}}function Ct(s,e){e=e.toLowerCase();const t=Object.keys(s);let n=t.length,r;for(;n-- >0;)if(r=t[n],e===r.toLowerCase())return r;return null}const J=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xt=s=>!re(s)&&s!==J;function ve(){const{caseless:s}=xt(this)&&this||{},e={},t=(n,r)=>{const i=s&&Ct(e,r)||r;ce(e[i])&&ce(n)?e[i]=ve(e[i],n):ce(n)?e[i]=ve({},n):Q(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&ie(arguments[n],t);return e}const On=(s,e,t,{allOwnKeys:n}={})=>(ie(e,(r,i)=>{t&&P(r)?s[i]=bt(r,t):s[i]=r},{allOwnKeys:n}),s),Pn=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),$n=(s,e,t,n)=>{s.prototype=Object.create(e.prototype,n),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:e.prototype}),t&&Object.assign(s.prototype,t)},Bn=(s,e,t,n)=>{let r,i,o;const l={};if(e=e||{},s==null)return e;do{for(r=Object.getOwnPropertyNames(s),i=r.length;i-- >0;)o=r[i],(!n||n(o,s,e))&&!l[o]&&(e[o]=s[o],l[o]=!0);s=t!==!1&&Ne(s)}while(s&&(!t||t(s,e))&&s!==Object.prototype);return e},zn=(s,e,t)=>{s=String(s),(t===void 0||t>s.length)&&(t=s.length),t-=e.length;const n=s.indexOf(e,t);return n!==-1&&n===t},Nn=s=>{if(!s)return null;if(Q(s))return s;let e=s.length;if(!kt(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=s[e];return t},Dn=(s=>e=>s&&e instanceof s)(typeof Uint8Array<"u"&&Ne(Uint8Array)),In=(s,e)=>{const n=(s&&s[Symbol.iterator]).call(s);let r;for(;(r=n.next())&&!r.done;){const i=r.value;e.call(s,i[0],i[1])}},Fn=(s,e)=>{let t;const n=[];for(;(t=s.exec(e))!==null;)n.push(t);return n},Un=I("HTMLFormElement"),qn=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Ye=(({hasOwnProperty:s})=>(e,t)=>s.call(e,t))(Object.prototype),Mn=I("RegExp"),yt=(s,e)=>{const t=Object.getOwnPropertyDescriptors(s),n={};ie(t,(r,i)=>{let o;(o=e(r,i,s))!==!1&&(n[i]=o||r)}),Object.defineProperties(s,n)},jn=s=>{yt(s,(e,t)=>{if(P(s)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=s[t];if(P(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Hn=(s,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return Q(s)?n(s):n(String(s).split(e)),t},Jn=()=>{},Vn=(s,e)=>s!=null&&Number.isFinite(s=+s)?s:e;function Zn(s){return!!(s&&P(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const Gn=s=>{const e=new Array(10),t=(n,r)=>{if(ke(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=Q(n)?[]:{};return ie(n,(o,l)=>{const u=t(o,r+1);!re(u)&&(i[l]=u)}),e[r]=void 0,i}}return n};return t(s,0)},Wn=I("AsyncFunction"),Qn=s=>s&&(ke(s)||P(s))&&P(s.then)&&P(s.catch),St=((s,e)=>s?setImmediate:e?((t,n)=>(J.addEventListener("message",({source:r,data:i})=>{r===J&&i===t&&n.length&&n.shift()()},!1),r=>{n.push(r),J.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",P(J.postMessage)),Xn=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof process<"u"&&process.nextTick||St,p={isArray:Q,isArrayBuffer:wt,isBuffer:gn,isFormData:Rn,isArrayBufferView:mn,isString:bn,isNumber:kt,isBoolean:wn,isObject:ke,isPlainObject:ce,isReadableStream:En,isRequest:Tn,isResponse:_n,isHeaders:vn,isUndefined:re,isDate:kn,isFile:Cn,isBlob:xn,isRegExp:Mn,isFunction:P,isStream:Sn,isURLSearchParams:An,isTypedArray:Dn,isFileList:yn,forEach:ie,merge:ve,extend:On,trim:Ln,stripBOM:Pn,inherits:$n,toFlatObject:Bn,kindOf:be,kindOfTest:I,endsWith:zn,toArray:Nn,forEachEntry:In,matchAll:Fn,isHTMLForm:Un,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:yt,freezeMethods:jn,toObjectSet:Hn,toCamelCase:qn,noop:Jn,toFiniteNumber:Vn,findKey:Ct,global:J,isContextDefined:xt,isSpecCompliantForm:Zn,toJSONObject:Gn,isAsyncFn:Wn,isThenable:Qn,setImmediate:St,asap:Xn};function C(s,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}p.inherits(C,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});const Rt=C.prototype,At={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{At[s]={value:s}});Object.defineProperties(C,At);Object.defineProperty(Rt,"isAxiosError",{value:!0});C.from=(s,e,t,n,r,i)=>{const o=Object.create(Rt);return p.toFlatObject(s,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),C.call(o,s.message,e,t,n,r),o.cause=s,o.name=s.name,i&&Object.assign(o,i),o};const Kn=null;function Le(s){return p.isPlainObject(s)||p.isArray(s)}function Et(s){return p.endsWith(s,"[]")?s.slice(0,-2):s}function et(s,e,t){return s?s.concat(e).map(function(r,i){return r=Et(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function Yn(s){return p.isArray(s)&&!s.some(Le)}const es=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Ce(s,e,t){if(!p.isObject(s))throw new TypeError("target must be an object");e=e||new FormData,t=p.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!p.isUndefined(m[g])});const n=t.metaTokens,r=t.visitor||c,i=t.dots,o=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(r))throw new TypeError("visitor must be a function");function a(f){if(f===null)return"";if(p.isDate(f))return f.toISOString();if(!u&&p.isBlob(f))throw new C("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(f)||p.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,m){let x=f;if(f&&!m&&typeof f=="object"){if(p.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(p.isArray(f)&&Yn(f)||(p.isFileList(f)||p.endsWith(g,"[]"))&&(x=p.toArray(f)))return g=Et(g),x.forEach(function(S,y){!(p.isUndefined(S)||S===null)&&e.append(o===!0?et([g],y,i):o===null?g:g+"[]",a(S))}),!1}return Le(f)?!0:(e.append(et(m,g,i),a(f)),!1)}const h=[],d=Object.assign(es,{defaultVisitor:c,convertValue:a,isVisitable:Le});function w(f,g){if(!p.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(f),p.forEach(f,function(x,b){(!(p.isUndefined(x)||x===null)&&r.call(e,x,p.isString(b)?b.trim():b,g,d))===!0&&w(x,g?g.concat(b):[b])}),h.pop()}}if(!p.isObject(s))throw new TypeError("data must be an object");return w(s),e}function tt(s){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function De(s,e){this._pairs=[],s&&Ce(s,this,e)}const Tt=De.prototype;Tt.append=function(e,t){this._pairs.push([e,t])};Tt.toString=function(e){const t=e?function(n){return e.call(this,n,tt)}:tt;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function ts(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _t(s,e,t){if(!e)return s;const n=t&&t.encode||ts;p.isFunction(t)&&(t={serialize:t});const r=t&&t.serialize;let i;if(r?i=r(e,t):i=p.isURLSearchParams(e)?e.toString():new De(e,t).toString(n),i){const o=s.indexOf("#");o!==-1&&(s=s.slice(0,o)),s+=(s.indexOf("?")===-1?"?":"&")+i}return s}class nt{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}}const vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ns=typeof URLSearchParams<"u"?URLSearchParams:De,ss=typeof FormData<"u"?FormData:null,rs=typeof Blob<"u"?Blob:null,is={isBrowser:!0,classes:{URLSearchParams:ns,FormData:ss,Blob:rs},protocols:["http","https","file","blob","url","data"]},Ie=typeof window<"u"&&typeof document<"u",Oe=typeof navigator=="object"&&navigator||void 0,os=Ie&&(!Oe||["ReactNative","NativeScript","NS"].indexOf(Oe.product)<0),ls=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",as=Ie&&window.location.href||"http://localhost",cs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ie,hasStandardBrowserEnv:os,hasStandardBrowserWebWorkerEnv:ls,navigator:Oe,origin:as},Symbol.toStringTag,{value:"Module"})),v={...cs,...is};function us(s,e){return Ce(s,new v.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return v.isNode&&p.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function ps(s){return p.matchAll(/\w+|\[(\w*)]/g,s).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hs(s){const e={},t=Object.keys(s);let n;const r=t.length;let i;for(n=0;n<r;n++)i=t[n],e[i]=s[i];return e}function Lt(s){function e(t,n,r,i){let o=t[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=i>=t.length;return o=!o&&p.isArray(r)?r.length:o,u?(p.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l):((!r[o]||!p.isObject(r[o]))&&(r[o]=[]),e(t,n,r[o],i)&&p.isArray(r[o])&&(r[o]=hs(r[o])),!l)}if(p.isFormData(s)&&p.isFunction(s.entries)){const t={};return p.forEachEntry(s,(n,r)=>{e(ps(n),r,t,0)}),t}return null}function fs(s,e,t){if(p.isString(s))try{return(e||JSON.parse)(s),p.trim(s)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(s)}const oe={transitional:vt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=p.isObject(e);if(i&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return r?JSON.stringify(Lt(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return us(e,this.formSerializer).toString();if((l=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ce(l?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),fs(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(l){if(o)throw l.name==="SyntaxError"?C.from(l,C.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],s=>{oe.headers[s]={}});const ds=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gs=s=>{const e={};let t,n,r;return s&&s.split(`
`).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),n=o.substring(r+1).trim(),!(!t||e[t]&&ds[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},st=Symbol("internals");function K(s){return s&&String(s).trim().toLowerCase()}function ue(s){return s===!1||s==null?s:p.isArray(s)?s.map(ue):String(s)}function ms(s){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(s);)e[n[1]]=n[2];return e}const bs=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function Ee(s,e,t,n,r){if(p.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!p.isString(e)){if(p.isString(n))return e.indexOf(n)!==-1;if(p.isRegExp(n))return n.test(e)}}function ws(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ks(s,e){const t=p.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(s,n+t,{value:function(r,i,o){return this[n].call(this,e,r,i,o)},configurable:!0})})}let O=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(l,u,a){const c=K(u);if(!c)throw new Error("header name must be a non-empty string");const h=p.findKey(r,c);(!h||r[h]===void 0||a===!0||a===void 0&&r[h]!==!1)&&(r[h||u]=ue(l))}const o=(l,u)=>p.forEach(l,(a,c)=>i(a,c,u));if(p.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(p.isString(e)&&(e=e.trim())&&!bs(e))o(gs(e),t);else if(p.isHeaders(e))for(const[l,u]of e.entries())i(u,l,n);else e!=null&&i(t,e,n);return this}get(e,t){if(e=K(e),e){const n=p.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return ms(r);if(p.isFunction(t))return t.call(this,r,n);if(p.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=K(e),e){const n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ee(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(o){if(o=K(o),o){const l=p.findKey(n,o);l&&(!t||Ee(n,n[l],l,t))&&(delete n[l],r=!0)}}return p.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||Ee(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return p.forEach(this,(r,i)=>{const o=p.findKey(n,i);if(o){t[o]=ue(r),delete t[i];return}const l=e?ws(i):String(i).trim();l!==i&&delete t[i],t[l]=ue(r),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return p.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&p.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[st]=this[st]={accessors:{}}).accessors,r=this.prototype;function i(o){const l=K(o);n[l]||(ks(r,o),n[l]=!0)}return p.isArray(e)?e.forEach(i):i(e),this}};O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(O.prototype,({value:s},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>s,set(n){this[t]=n}}});p.freezeMethods(O);function Te(s,e){const t=this||oe,n=e||t,r=O.from(n.headers);let i=n.data;return p.forEach(s,function(l){i=l.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Ot(s){return!!(s&&s.__CANCEL__)}function X(s,e,t){C.call(this,s??"canceled",C.ERR_CANCELED,e,t),this.name="CanceledError"}p.inherits(X,C,{__CANCEL__:!0});function Pt(s,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?s(t):e(new C("Request failed with status code "+t.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Cs(s){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return e&&e[1]||""}function xs(s,e){s=s||10;const t=new Array(s),n=new Array(s);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(u){const a=Date.now(),c=n[i];o||(o=a),t[r]=u,n[r]=a;let h=i,d=0;for(;h!==r;)d+=t[h++],h=h%s;if(r=(r+1)%s,r===i&&(i=(i+1)%s),a-o<e)return;const w=c&&a-c;return w?Math.round(d*1e3/w):void 0}}function ys(s,e){let t=0,n=1e3/e,r,i;const o=(a,c=Date.now())=>{t=c,r=null,i&&(clearTimeout(i),i=null),s.apply(null,a)};return[(...a)=>{const c=Date.now(),h=c-t;h>=n?o(a,c):(r=a,i||(i=setTimeout(()=>{i=null,o(r)},n-h)))},()=>r&&o(r)]}const he=(s,e,t=3)=>{let n=0;const r=xs(50,250);return ys(i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,u=o-n,a=r(u),c=o<=l;n=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:a||void 0,estimated:a&&l&&c?(l-o)/a:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};s(h)},t)},rt=(s,e)=>{const t=s!=null;return[n=>e[0]({lengthComputable:t,total:s,loaded:n}),e[1]]},it=s=>(...e)=>p.asap(()=>s(...e)),Ss=v.hasStandardBrowserEnv?((s,e)=>t=>(t=new URL(t,v.origin),s.protocol===t.protocol&&s.host===t.host&&(e||s.port===t.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,Rs=v.hasStandardBrowserEnv?{write(s,e,t,n,r,i){const o=[s+"="+encodeURIComponent(e)];p.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),p.isString(n)&&o.push("path="+n),p.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(s){const e=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function As(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function Es(s,e){return e?s.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):s}function $t(s,e,t){let n=!As(e);return s&&n||t==!1?Es(s,e):e}const ot=s=>s instanceof O?{...s}:s;function Z(s,e){e=e||{};const t={};function n(a,c,h,d){return p.isPlainObject(a)&&p.isPlainObject(c)?p.merge.call({caseless:d},a,c):p.isPlainObject(c)?p.merge({},c):p.isArray(c)?c.slice():c}function r(a,c,h,d){if(p.isUndefined(c)){if(!p.isUndefined(a))return n(void 0,a,h,d)}else return n(a,c,h,d)}function i(a,c){if(!p.isUndefined(c))return n(void 0,c)}function o(a,c){if(p.isUndefined(c)){if(!p.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function l(a,c,h){if(h in e)return n(a,c);if(h in s)return n(void 0,a)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(a,c,h)=>r(ot(a),ot(c),h,!0)};return p.forEach(Object.keys(Object.assign({},s,e)),function(c){const h=u[c]||r,d=h(s[c],e[c],c);p.isUndefined(d)&&h!==l||(t[c]=d)}),t}const Bt=s=>{const e=Z({},s);let{data:t,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:l}=e;e.headers=o=O.from(o),e.url=_t($t(e.baseURL,e.url),s.params,s.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(p.isFormData(t)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[a,...c]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(v.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&Ss(e.url))){const a=r&&i&&Rs.read(i);a&&o.set(r,a)}return e},Ts=typeof XMLHttpRequest<"u",_s=Ts&&function(s){return new Promise(function(t,n){const r=Bt(s);let i=r.data;const o=O.from(r.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:a}=r,c,h,d,w,f;function g(){w&&w(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function x(){if(!m)return;const S=O.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:s,request:m};Pt(function(D){t(D),g()},function(D){n(D),g()},E),m=null}"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(x)},m.onabort=function(){m&&(n(new C("Request aborted",C.ECONNABORTED,s,m)),m=null)},m.onerror=function(){n(new C("Network Error",C.ERR_NETWORK,s,m)),m=null},m.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||vt;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new C(y,E.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,s,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&p.forEach(o.toJSON(),function(y,E){m.setRequestHeader(E,y)}),p.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),l&&l!=="json"&&(m.responseType=r.responseType),a&&([d,f]=he(a,!0),m.addEventListener("progress",d)),u&&m.upload&&([h,w]=he(u),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(c=S=>{m&&(n(!S||S.type?new X(null,s,m):S),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const b=Cs(r.url);if(b&&v.protocols.indexOf(b)===-1){n(new C("Unsupported protocol "+b+":",C.ERR_BAD_REQUEST,s));return}m.send(i||null)})},vs=(s,e)=>{const{length:t}=s=s?s.filter(Boolean):[];if(e||t){let n=new AbortController,r;const i=function(a){if(!r){r=!0,l();const c=a instanceof Error?a:this.reason;n.abort(c instanceof C?c:new X(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new C(`timeout ${e} of ms exceeded`,C.ETIMEDOUT))},e);const l=()=>{s&&(o&&clearTimeout(o),o=null,s.forEach(a=>{a.unsubscribe?a.unsubscribe(i):a.removeEventListener("abort",i)}),s=null)};s.forEach(a=>a.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>p.asap(l),u}},Ls=function*(s,e){let t=s.byteLength;if(t<e){yield s;return}let n=0,r;for(;n<t;)r=n+e,yield s.slice(n,r),n=r},Os=async function*(s,e){for await(const t of Ps(s))yield*Ls(t,e)},Ps=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const e=s.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},lt=(s,e,t,n)=>{const r=Os(s,e);let i=0,o,l=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await r.next();if(a){l(),u.close();return}let h=c.byteLength;if(t){let d=i+=h;t(d)}u.enqueue(new Uint8Array(c))}catch(a){throw l(a),a}},cancel(u){return l(u),r.return()}},{highWaterMark:2})},xe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zt=xe&&typeof ReadableStream=="function",$s=xe&&(typeof TextEncoder=="function"?(s=>e=>s.encode(e))(new TextEncoder):async s=>new Uint8Array(await new Response(s).arrayBuffer())),Nt=(s,...e)=>{try{return!!s(...e)}catch{return!1}},Bs=zt&&Nt(()=>{let s=!1;const e=new Request(v.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!e}),at=64*1024,Pe=zt&&Nt(()=>p.isReadableStream(new Response("").body)),fe={stream:Pe&&(s=>s.body)};xe&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!fe[e]&&(fe[e]=p.isFunction(s[e])?t=>t[e]():(t,n)=>{throw new C(`Response type '${e}' is not supported`,C.ERR_NOT_SUPPORT,n)})})})(new Response);const zs=async s=>{if(s==null)return 0;if(p.isBlob(s))return s.size;if(p.isSpecCompliantForm(s))return(await new Request(v.origin,{method:"POST",body:s}).arrayBuffer()).byteLength;if(p.isArrayBufferView(s)||p.isArrayBuffer(s))return s.byteLength;if(p.isURLSearchParams(s)&&(s=s+""),p.isString(s))return(await $s(s)).byteLength},Ns=async(s,e)=>{const t=p.toFiniteNumber(s.getContentLength());return t??zs(e)},Ds=xe&&(async s=>{let{url:e,method:t,data:n,signal:r,cancelToken:i,timeout:o,onDownloadProgress:l,onUploadProgress:u,responseType:a,headers:c,withCredentials:h="same-origin",fetchOptions:d}=Bt(s);a=a?(a+"").toLowerCase():"text";let w=vs([r,i&&i.toAbortSignal()],o),f;const g=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(u&&Bs&&t!=="get"&&t!=="head"&&(m=await Ns(c,n))!==0){let E=new Request(e,{method:"POST",body:n,duplex:"half"}),F;if(p.isFormData(n)&&(F=E.headers.get("content-type"))&&c.setContentType(F),E.body){const[D,U]=rt(m,he(it(u)));n=lt(E.body,at,D,U)}}p.isString(h)||(h=h?"include":"omit");const x="credentials"in Request.prototype;f=new Request(e,{...d,signal:w,method:t.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:x?h:void 0});let b=await fetch(f);const S=Pe&&(a==="stream"||a==="response");if(Pe&&(l||S&&g)){const E={};["status","statusText","headers"].forEach(Ge=>{E[Ge]=b[Ge]});const F=p.toFiniteNumber(b.headers.get("content-length")),[D,U]=l&&rt(F,he(it(l),!0))||[];b=new Response(lt(b.body,at,D,()=>{U&&U(),g&&g()}),E)}a=a||"text";let y=await fe[p.findKey(fe,a)||"text"](b,s);return!S&&g&&g(),await new Promise((E,F)=>{Pt(E,F,{data:y,headers:O.from(b.headers),status:b.status,statusText:b.statusText,config:s,request:f})})}catch(x){throw g&&g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,s,f),{cause:x.cause||x}):C.from(x,x&&x.code,s,f)}}),$e={http:Kn,xhr:_s,fetch:Ds};p.forEach($e,(s,e)=>{if(s){try{Object.defineProperty(s,"name",{value:e})}catch{}Object.defineProperty(s,"adapterName",{value:e})}});const ct=s=>`- ${s}`,Is=s=>p.isFunction(s)||s===null||s===!1,Dt={getAdapter:s=>{s=p.isArray(s)?s:[s];const{length:e}=s;let t,n;const r={};for(let i=0;i<e;i++){t=s[i];let o;if(n=t,!Is(t)&&(n=$e[(o=String(t)).toLowerCase()],n===void 0))throw new C(`Unknown adapter '${o}'`);if(n)break;r[o||"#"+i]=n}if(!n){const i=Object.entries(r).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
`+i.map(ct).join(`
`):" "+ct(i[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:$e};function _e(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new X(null,s)}function ut(s){return _e(s),s.headers=O.from(s.headers),s.data=Te.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),Dt.getAdapter(s.adapter||oe.adapter)(s).then(function(n){return _e(s),n.data=Te.call(s,s.transformResponse,n),n.headers=O.from(n.headers),n},function(n){return Ot(n)||(_e(s),n&&n.response&&(n.response.data=Te.call(s,s.transformResponse,n.response),n.response.headers=O.from(n.response.headers))),Promise.reject(n)})}const It="1.8.1",ye={};["object","boolean","number","function","string","symbol"].forEach((s,e)=>{ye[s]=function(n){return typeof n===s||"a"+(e<1?"n ":" ")+s}});const pt={};ye.transitional=function(e,t,n){function r(i,o){return"[Axios v"+It+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,l)=>{if(e===!1)throw new C(r(o," has been removed"+(t?" in "+t:"")),C.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,l):!0}};ye.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Fs(s,e,t){if(typeof s!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const n=Object.keys(s);let r=n.length;for(;r-- >0;){const i=n[r],o=e[i];if(o){const l=s[i],u=l===void 0||o(l,i,s);if(u!==!0)throw new C("option "+i+" must be "+u,C.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new C("Unknown option "+i,C.ERR_BAD_OPTION)}}const pe={assertOptions:Fs,validators:ye},q=pe.validators;let V=class{constructor(e){this.defaults=e,this.interceptors={request:new nt,response:new nt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Z(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&pe.assertOptions(n,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean)},!1),r!=null&&(p.isFunction(r)?t.paramsSerializer={serialize:r}:pe.assertOptions(r,{encode:q.function,serialize:q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),pe.assertOptions(t,{baseUrl:q.spelling("baseURL"),withXsrfToken:q.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&p.merge(i.common,i[t.method]);i&&p.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),t.headers=O.concat(o,i);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let c,h=0,d;if(!u){const f=[ut.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,a),d=f.length,c=Promise.resolve(t);h<d;)c=c.then(f[h++],f[h++]);return c}d=l.length;let w=t;for(h=0;h<d;){const f=l[h++],g=l[h++];try{w=f(w)}catch(m){g.call(this,m);break}}try{c=ut.call(this,w)}catch(f){return Promise.reject(f)}for(h=0,d=a.length;h<d;)c=c.then(a[h++],a[h++]);return c}getUri(e){e=Z(this.defaults,e);const t=$t(e.baseURL,e.url,e.allowAbsoluteUrls);return _t(t,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){V.prototype[e]=function(t,n){return this.request(Z(n||{},{method:e,url:t,data:(n||{}).data}))}});p.forEach(["post","put","patch"],function(e){function t(n){return function(i,o,l){return this.request(Z(l||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}V.prototype[e]=t(),V.prototype[e+"Form"]=t(!0)});let Us=class Ft{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(l=>{n.subscribe(l),i=l}).then(r);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,l){n.reason||(n.reason=new X(i,o,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ft(function(r){e=r}),cancel:e}}};function qs(s){return function(t){return s.apply(null,t)}}function Ms(s){return p.isObject(s)&&s.isAxiosError===!0}const Be={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Be).forEach(([s,e])=>{Be[e]=s});function Ut(s){const e=new V(s),t=bt(V.prototype.request,e);return p.extend(t,V.prototype,e,{allOwnKeys:!0}),p.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Ut(Z(s,r))},t}const _=Ut(oe);_.Axios=V;_.CanceledError=X;_.CancelToken=Us;_.isCancel=Ot;_.VERSION=It;_.toFormData=Ce;_.AxiosError=C;_.Cancel=_.CanceledError;_.all=function(e){return Promise.all(e)};_.spread=qs;_.isAxiosError=Ms;_.mergeConfig=Z;_.AxiosHeaders=O;_.formToJSON=s=>Lt(p.isHTMLForm(s)?new FormData(s):s);_.getAdapter=Dt.getAdapter;_.HttpStatusCode=Be;_.default=_;const{Axios:pi,AxiosError:hi,CanceledError:fi,isCancel:di,CancelToken:gi,VERSION:mi,all:bi,Cancel:wi,isAxiosError:ki,spread:Ci,toFormData:xi,AxiosHeaders:yi,HttpStatusCode:Si,formToJSON:Ri,getAdapter:Ai,mergeConfig:Ei}=_,js="http://111.6.96.233:8089";console.log(window.location.protocol);const te=_.create({baseURL:js,timeout:1e5}),qt=(s,e={})=>{let t=e.method||"get",n=e.params||{};return t==="get"||t==="GET"?new Promise((r,i)=>{te.get(s,{params:n}).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}):t==="post"||t==="POST"?new Promise((r,i)=>{te.post(s,n).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}):(console.log(n),new Promise((r,i)=>{te.delete(s,{data:n}).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}))};te.interceptors.request.use(s=>s,s=>Promise.reject(s));te.interceptors.response.use(s=>s,s=>{if(s&&s.response)switch(s.response.status){case 403:s.message="拒绝访问";break;case 502:s.message="服务器端出错";break;default:s.message=`连接错误${s.response.status}`}else s.message="服务器响应超时,请刷新当前页";return Promise.resolve(s.response)});function Hs(s){return qt("/api/deepseek.deepseek/question",{method:"POST",params:s})}function Js(s){return qt("/api/deepseek.deepseek/answer_list",{method:"GET",params:s})}function Fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let W=Fe();function Mt(s){W=s}const ne={exec:()=>null};function R(s,e=""){let t=typeof s=="string"?s:s.source;const n={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(L.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}const L={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}#`),htmlBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}<(?:[a-z].*>|!--)`,"i")},Vs=/^(?:[ \t]*(?:\n|$))+/,Zs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Gs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,le=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ws=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ue=/(?:[*+-]|\d{1,9}[.)])/,jt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ht=R(jt).replace(/bull/g,Ue).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Qs=R(jt).replace(/bull/g,Ue).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),qe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Xs=/^[^\n]+/,Me=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ks=R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ys=R(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ue).getRegex(),Se="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",je=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,er=R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",je).replace("tag",Se).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jt=R(qe).replace("hr",le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex(),tr=R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jt).getRegex(),He={blockquote:tr,code:Zs,def:Ks,fences:Gs,heading:Ws,hr:le,html:er,lheading:Ht,list:Ys,newline:Vs,paragraph:Jt,table:ne,text:Xs},ht=R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex(),nr={...He,lheading:Qs,table:ht,paragraph:R(qe).replace("hr",le).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ht).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex()},sr={...He,html:R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",je).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:R(qe).replace("hr",le).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ht).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ir=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vt=/^( {2,}|\\)\n(?!\s*$)/,or=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Re=/[\p{P}\p{S}]/u,Je=/[\s\p{P}\p{S}]/u,Zt=/[^\s\p{P}\p{S}]/u,lr=R(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Je).getRegex(),Gt=/(?!~)[\p{P}\p{S}]/u,ar=/(?!~)[\s\p{P}\p{S}]/u,cr=/(?:[^\s\p{P}\p{S}]|~)/u,ur=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Wt=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,pr=R(Wt,"u").replace(/punct/g,Re).getRegex(),hr=R(Wt,"u").replace(/punct/g,Gt).getRegex(),Qt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",fr=R(Qt,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Je).replace(/punct/g,Re).getRegex(),dr=R(Qt,"gu").replace(/notPunctSpace/g,cr).replace(/punctSpace/g,ar).replace(/punct/g,Gt).getRegex(),gr=R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Je).replace(/punct/g,Re).getRegex(),mr=R(/\\(punct)/,"gu").replace(/punct/g,Re).getRegex(),br=R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wr=R(je).replace("(?:-->|$)","-->").getRegex(),kr=R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",wr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),de=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Cr=R(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",de).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xt=R(/^!?\[(label)\]\[(ref)\]/).replace("label",de).replace("ref",Me).getRegex(),Kt=R(/^!?\[(ref)\](?:\[\])?/).replace("ref",Me).getRegex(),xr=R("reflink|nolink(?!\\()","g").replace("reflink",Xt).replace("nolink",Kt).getRegex(),Ve={_backpedal:ne,anyPunctuation:mr,autolink:br,blockSkip:ur,br:Vt,code:ir,del:ne,emStrongLDelim:pr,emStrongRDelimAst:fr,emStrongRDelimUnd:gr,escape:rr,link:Cr,nolink:Kt,punctuation:lr,reflink:Xt,reflinkSearch:xr,tag:kr,text:or,url:ne},yr={...Ve,link:R(/^!?\[(label)\]\((.*?)\)/).replace("label",de).getRegex(),reflink:R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",de).getRegex()},ze={...Ve,emStrongRDelimAst:dr,emStrongLDelim:hr,url:R(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Sr={...ze,br:R(Vt).replace("{2,}","*").getRegex(),text:R(ze.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ae={normal:He,gfm:nr,pedantic:sr},Y={normal:Ve,gfm:ze,breaks:Sr,pedantic:yr},Rr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ft=s=>Rr[s];function M(s,e){if(e){if(L.escapeTest.test(s))return s.replace(L.escapeReplace,ft)}else if(L.escapeTestNoEncode.test(s))return s.replace(L.escapeReplaceNoEncode,ft);return s}function dt(s){try{s=encodeURI(s).replace(L.percentDecode,"%")}catch{return null}return s}function gt(s,e){var i;const t=s.replace(L.findPipe,(o,l,u)=>{let a=!1,c=l;for(;--c>=0&&u[c]==="\\";)a=!a;return a?"|":" |"}),n=t.split(L.splitPipe);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!((i=n.at(-1))!=null&&i.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(L.slashPipe,"|");return n}function ee(s,e,t){const n=s.length;if(n===0)return"";let r=0;for(;r<n&&s.charAt(n-r-1)===e;)r++;return s.slice(0,n-r)}function Ar(s,e){if(s.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<s.length;n++)if(s[n]==="\\")n++;else if(s[n]===e[0])t++;else if(s[n]===e[1]&&(t--,t<0))return n;return-1}function mt(s,e,t,n,r){const i=e.href,o=e.title||null,l=s[1].replace(r.other.outputLinkReplace,"$1");if(s[0].charAt(0)!=="!"){n.state.inLink=!0;const u={type:"link",raw:t,href:i,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}return{type:"image",raw:t,href:i,title:o,text:l}}function Er(s,e,t){const n=s.match(t.other.indentCodeCompensation);if(n===null)return e;const r=n[1];return e.split(`
`).map(i=>{const o=i.match(t.other.beginningSpace);if(o===null)return i;const[l]=o;return l.length>=r.length?i.slice(r.length):i}).join(`
`)}class ge{constructor(e){T(this,"options");T(this,"rules");T(this,"lexer");this.options=e||W}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ee(n,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=Er(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const r=ee(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ee(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=ee(t[0],`
`).split(`
`),r="",i="";const o=[];for(;n.length>0;){let l=!1;const u=[];let a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))u.push(n[a]),l=!0;else if(!l)u.push(n[a]);else break;n=n.slice(a);const c=u.join(`
`),h=c.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
${c}`:c,i=i?`${i}
${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,o,!0),this.lexer.state.top=d,n.length===0)break;const w=o.at(-1);if((w==null?void 0:w.type)==="code")break;if((w==null?void 0:w.type)==="blockquote"){const f=w,g=f.raw+`
`+n.join(`
`),m=this.blockquote(g);o[o.length-1]=m,r=r.substring(0,r.length-f.raw.length)+m.raw,i=i.substring(0,i.length-f.text.length)+m.text;break}else if((w==null?void 0:w.type)==="list"){const f=w,g=f.raw+`
`+n.join(`
`),m=this.list(g);o[o.length-1]=m,r=r.substring(0,r.length-w.raw.length)+m.raw,i=i.substring(0,i.length-f.raw.length)+m.raw,n=g.substring(o.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const o=this.rules.other.listItemRegex(n);let l=!1;for(;e;){let a=!1,c="",h="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),w=e.split(`
`,1)[0],f=!d.trim(),g=0;if(this.options.pedantic?(g=2,h=d.trimStart()):f?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=d.slice(g),g+=t[1].length),f&&this.rules.other.blankLine.test(w)&&(c+=w+`
`,e=e.substring(w.length+1),a=!0),!a){const b=this.rules.other.nextBulletRegex(g),S=this.rules.other.hrRegex(g),y=this.rules.other.fencesBeginRegex(g),E=this.rules.other.headingBeginRegex(g),F=this.rules.other.htmlBeginRegex(g);for(;e;){const D=e.split(`
`,1)[0];let U;if(w=D,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),U=w):U=w.replace(this.rules.other.tabCharGlobal," "),y.test(w)||E.test(w)||F.test(w)||b.test(w)||S.test(w))break;if(U.search(this.rules.other.nonSpaceChar)>=g||!w.trim())h+=`
`+U.slice(g);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(d)||E.test(d)||S.test(d))break;h+=`
`+w}!f&&!w.trim()&&(f=!0),c+=D+`
`,e=e.substring(D.length+1),d=U.slice(g)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(l=!0));let m=null,x;this.options.gfm&&(m=this.rules.other.listIsTask.exec(h),m&&(x=m[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!m,checked:x,loose:!1,text:h,tokens:[]}),i.raw+=c}const u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let a=0;a<i.items.length;a++)if(this.lexer.state.top=!1,i.items[a].tokens=this.lexer.blockTokens(i.items[a].text,[]),!i.loose){const c=i.items[a].tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=h}if(i.loose)for(let a=0;a<i.items.length;a++)i.items[a].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var l;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=gt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const u of r)this.rules.other.tableAlignRight.test(u)?o.align.push("right"):this.rules.other.tableAlignCenter.test(u)?o.align.push("center"):this.rules.other.tableAlignLeft.test(u)?o.align.push("left"):o.align.push(null);for(let u=0;u<n.length;u++)o.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:o.align[u]});for(const u of i)o.rows.push(gt(u,o.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:o.align[c]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const o=ee(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=Ar(t[2],"()");if(o>-1){const u=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),mt(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return mt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const o=[...r[0]].length-1;let l,u,a=o,c=0;const h=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+o);(r=h.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(u=[...l].length,r[3]||r[4]){a+=u;continue}else if((r[5]||r[6])&&o%3&&!((o+u)%3)){c+=u;continue}if(a-=u,a>0)continue;u=Math.min(u,u+a+c);const d=[...r[0]][0].length,w=e.slice(0,o+r.index+d+u);if(Math.min(o,u)%2){const g=w.slice(1,-1);return{type:"em",raw:w,text:g,tokens:this.lexer.inlineTokens(g)}}const f=w.slice(2,-2);return{type:"strong",raw:w,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}class z{constructor(e){T(this,"tokens");T(this,"options");T(this,"state");T(this,"tokenizer");T(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||W,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:L,block:ae.normal,inline:Y.normal};this.options.pedantic?(t.block=ae.pedantic,t.inline=Y.pedantic):this.options.gfm&&(t.block=ae.gfm,this.options.breaks?t.inline=Y.breaks:t.inline=Y.gfm),this.tokenizer.rules=t}static get rules(){return{block:ae,inline:Y}}static lex(e,t){return new z(t).lex(e)}static lexInline(e,t){return new z(t).inlineTokens(e)}lex(e){e=e.replace(L.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,i,o;for(this.options.pedantic&&(e=e.replace(L.tabCharGlobal," ").replace(L.spaceLine,""));e;){let l;if((i=(r=this.options.extensions)==null?void 0:r.block)!=null&&i.some(a=>(l=a.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),!0):!1))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);const a=t.at(-1);l.raw.length===1&&a!==void 0?a.raw+=`
`:t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);const a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.at(-1).src=a.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);const a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}let u=e;if((o=this.options.extensions)!=null&&o.startBlock){let a=1/0;const c=e.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},c),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(u=e.substring(0,a+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){const a=t.at(-1);n&&(a==null?void 0:a.type)==="paragraph"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(l),n=u.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);const a=t.at(-1);(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(l);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var l,u,a;let n=e,r=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,o="";for(;e;){i||(o=""),i=!1;let c;if((u=(l=this.options.extensions)==null?void 0:l.inline)!=null&&u.some(d=>(c=d.call({lexer:this},e,t))?(e=e.substring(c.raw.length),t.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const d=t.at(-1);c.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=c.raw,d.text+=c.text):t.push(c);continue}if(c=this.tokenizer.emStrong(e,n,o)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),t.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),t.push(c);continue}let h=e;if((a=this.options.extensions)!=null&&a.startInline){let d=1/0;const w=e.slice(1);let f;this.options.extensions.startInline.forEach(g=>{f=g.call({lexer:this},w),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(h=e.substring(0,d+1))}if(c=this.tokenizer.inlineText(h)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),i=!0;const d=t.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=c.raw,d.text+=c.text):t.push(c);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return t}}class me{constructor(e){T(this,"options");T(this,"parser");this.options=e||W}space(e){return""}code({text:e,lang:t,escaped:n}){var o;const r=(o=(t||"").match(L.notSpaceStart))==null?void 0:o[0],i=e.replace(L.endingNewline,"")+`
`;return r?'<pre><code class="language-'+M(r)+'">'+(n?i:M(i,!0))+`</code></pre>
`:"<pre><code>"+(n?i:M(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,n=e.start;let r="";for(let l=0;l<e.items.length;l++){const u=e.items[l];r+=this.listitem(u)}const i=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+i+o+`>
`+r+"</"+i+`>
`}listitem(e){var n;let t="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+M(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){const o=e.rows[i];n="";for(let l=0;l<o.length;l++)n+=this.tablecell(o[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${M(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),i=dt(e);if(i===null)return r;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+M(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n}){const r=dt(e);if(r===null)return M(n);e=r;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${M(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:M(e.text)}}class Ze{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class N{constructor(e){T(this,"options");T(this,"renderer");T(this,"textRenderer");this.options=e||W,this.options.renderer=this.options.renderer||new me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ze}static parse(e,t){return new N(t).parse(e)}static parseInline(e,t){return new N(t).parseInline(e)}parse(e,t=!0){var r,i;let n="";for(let o=0;o<e.length;o++){const l=e[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[l.type]){const a=l,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=c||"";continue}}const u=l;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let a=u,c=this.renderer.text(a);for(;o+1<e.length&&e[o+1].type==="text";)a=e[++o],c+=`
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):n+=c;continue}default:{const a='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,t=this.renderer){var r,i;let n="";for(let o=0;o<e.length;o++){const l=e[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[l.type]){const a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=a||"";continue}}const u=l;switch(u.type){case"escape":{n+=t.text(u);break}case"html":{n+=t.html(u);break}case"link":{n+=t.link(u);break}case"image":{n+=t.image(u);break}case"strong":{n+=t.strong(u);break}case"em":{n+=t.em(u);break}case"codespan":{n+=t.codespan(u);break}case"br":{n+=t.br(u);break}case"del":{n+=t.del(u);break}case"text":{n+=t.text(u);break}default:{const a='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}}class se{constructor(e){T(this,"options");T(this,"block");this.options=e||W}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?z.lex:z.lexInline}provideParser(){return this.block?N.parse:N.parseInline}}T(se,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Tr{constructor(...e){T(this,"defaults",Fe());T(this,"options",this.setOptions);T(this,"parse",this.parseMarkdown(!0));T(this,"parseInline",this.parseMarkdown(!1));T(this,"Parser",N);T(this,"Renderer",me);T(this,"TextRenderer",Ze);T(this,"Lexer",z);T(this,"Tokenizer",ge);T(this,"Hooks",se);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(const o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{const l=o;for(const u of l.header)n=n.concat(this.walkTokens(u.tokens,t));for(const u of l.rows)for(const a of u)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{const l=o;n=n.concat(this.walkTokens(l.items,t));break}default:{const l=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{const a=l[u].flat(1/0);n=n.concat(this.walkTokens(a,t))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=t.renderers[i.name];o?t.renderers[i.name]=function(...l){let u=i.renderer.apply(this,l);return u===!1&&(u=o.apply(this,l)),u}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){const i=this.defaults.renderer||new me(this.defaults);for(const o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const l=o,u=n.renderer[l],a=i[l];i[l]=(...c)=>{let h=u.apply(i,c);return h===!1&&(h=a.apply(i,c)),h||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new ge(this.defaults);for(const o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,u=n.tokenizer[l],a=i[l];i[l]=(...c)=>{let h=u.apply(i,c);return h===!1&&(h=a.apply(i,c)),h}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new se;for(const o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const l=o,u=n.hooks[l],a=i[l];se.passThroughHooks.has(o)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(u.call(i,c)).then(d=>a.call(i,d));const h=u.call(i,c);return a.call(i,h)}:i[l]=(...c)=>{let h=u.apply(i,c);return h===!1&&(h=a.apply(i,c)),h}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(l){let u=[];return u.push(o.call(this,l)),i&&(u=u.concat(i.call(this,l))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return z.lex(e,t??this.defaults)}parser(e,t){return N.parse(e,t??this.defaults)}parseMarkdown(e){return(n,r)=>{const i={...r},o={...this.defaults,...i},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const u=o.hooks?o.hooks.provideLexer():e?z.lex:z.lexInline,a=o.hooks?o.hooks.provideParser():e?N.parse:N.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>a(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let c=u(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let h=a(c,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(c){return l(c)}}}onError(e,t){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+M(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}}const G=new Tr;function A(s,e){return G.parse(s,e)}A.options=A.setOptions=function(s){return G.setOptions(s),A.defaults=G.defaults,Mt(A.defaults),A};A.getDefaults=Fe;A.defaults=W;A.use=function(...s){return G.use(...s),A.defaults=G.defaults,Mt(A.defaults),A};A.walkTokens=function(s,e){return G.walkTokens(s,e)};A.parseInline=G.parseInline;A.Parser=N;A.parser=N.parse;A.Renderer=me;A.TextRenderer=Ze;A.Lexer=z;A.lexer=z.lex;A.Tokenizer=ge;A.Hooks=se;A.parse=A;A.options;A.setOptions;A.use;A.walkTokens;A.parseInline;N.parse;z.lex;const _r={id:"root"},vr={class:"cb86951c"},Lr={class:"c3ecdb44"},Or={class:"f2eea526"},Pr={class:"a5cd95be"},$r={class:"b83ee326"},Br={key:0,class:"fa81"},zr={class:"fbb737a4"},Nr={class:"ds-flex e0558cb1",style:{position:"absolute",right:"calc(100% + 18px)",top:"12px",gap:"12px"}},Dr={class:"ds-icon-button",tabindex:"0",style:{"--ds-icon-button-text-color":"#909090","--ds-icon-button-size":"20px"}},Ir=["onClick"],Fr={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ur={key:1,class:"f9bf7997 d7dc56a8 c05b5566"},qr={class:"edb250b1"},Mr={key:0,class:"a6d716f5 db5991dd"},jr={key:1,class:"ds-loading b4e4476b",style:{"font-size":"20px"}},Hr={class:"e1675d8b"},Jr={class:"ba94db8a"},Vr={class:"ds-markdown ds-markdown--block",style:{"--ds-md-zoom":"1.143"}},Zr=["innerHTML"],Gr={class:"ds-flex",style:{"margin-top":"12px",height:"20px","align-items":"center",gap:"12px"}},Wr={class:"ds-flex abe97156",style:{"align-items":"center",gap:"12px"}},Qr={class:"ds-icon-button",tabindex:"0",style:{"--ds-icon-button-text-color":"#909090","--ds-icon-button-size":"20px"}},Xr=["onClick"],Kr={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Yr={key:1,class:"a85a674a"},ei={class:"cbcaa82c"},ti={class:"aaff8b8f"},ni={class:"cefa5c26"},si={class:"dd442025 b699646e"},ri={class:"fad49dec"},ii={class:"ec4f5d61"},oi={class:"bf38813a"},Ti=tn({__name:"ai",setup(s){const e=j(""),t=j(!1),n=j(""),r=j([]),i=nn({page:1,limit:1}),o=j(new Set),l=j(null),u=j(!1),a=j(!0),c=async()=>{u.value||(await pn(),setTimeout(()=>{if(l.value){const x=l.value;x.scrollTop=x.scrollHeight}},100))};sn(()=>{e.value=Date.now().toString()});const h=x=>{const b=x.target,S=b.scrollHeight-b.scrollTop<b.clientHeight;S||(u.value=!0),S&&(u.value=!1)},d=()=>{if(w.value==!0){w.value=!1,a.value=!0;return}const x=r.value.length-1;r.value[x].role!="assistant"&&r.value.push({role:"assistant",sk:"",content:"",skLong:!0}),Js({key:e.value,page:i.page,limit:i.limit}).then(b=>{if(b.code==1){for(let S=0;S<b.data.list.length;S++){const y=b.data.list[S];if(!o.value.has(y.id)){o.value.add(y.id);const E=r.value.length-1;y.reasoning==1?r.value[E].sk+=y.content:(r.value[E].skLong=!1,r.value[E].content+=y.content)}if(y.usage_json.length>0||y.usage_json.prompt_tokens){const E=r.value.length-1;r.value[E].content=A(r.value[E].content),r.value[E].skLong=!1,a.value=!0;return}c()}b.data.list.length==i.limit&&i.page++,d()}})},w=j(!1),f=()=>{!n.value||n.value.trim()===""||(console.log(a.value),a.value==!0&&(t.value=!0,r.value.push({role:"user",content:n.value}),e.value=Date.now().toString(),i.page=1,o.value.clear(),n.value="",a.value=!1,u.value=!1,c(),Hs({key:e.value,messages:JSON.stringify(r.value)}).then(x=>{console.log(x)}),d()))},g=()=>{w.value=!0,r.value=[],a.value=!0,t.value=!1};rn(()=>{o.value.clear(),i.page=1});const m=x=>{navigator.clipboard.writeText(x)};return(x,b)=>{const S=hn("clippath");return B(),$("div",_r,[k("div",vr,[k("div",Lr,[k("div",Or,[k("div",Pr,[k("div",$r,[k("div",{class:"f6004764",ref_key:"chatContainerRef",ref:l,onScroll:h},[k("div",{class:"f72b0bab",style:on({height:t.value?"100%":"60%"})},[t.value?(B(!0),$(ln,{key:0},an(r.value,y=>(B(),$("div",{class:"dad65929",style:{"flex-grow":"0",margin:"0px auto"},ref_for:!0,ref:"chatContainer"},[y.role=="user"?(B(),$("div",Br,[k("div",zr,[We(Qe(y.content),1),k("div",Nr,[k("div",Dr,[k("div",{onClick:E=>m(y.content),class:"ds-icon",style:{"font-size":"20px",width:"20px",height:"20px"}},[(B(),$("svg",Fr,[k("defs",null,[Xe(S,{id:"clip1257_20794"},{default:Ke(()=>b[1]||(b[1]=[k("rect",{id:"复制",width:"20.000000",height:"20.000000",fill:"white","fill-opacity":"0"},null,-1)])),_:1})]),b[2]||(b[2]=k("g",{"clip-path":"url(#clip1257_20794)"},[k("g",{"clip-path":"url(#clip1248_20193)"},[k("path",{id:"path",d:"M5.03 14.64C4.77 14.64 4.5 14.62 4.24 14.56C3.98 14.51 3.73 14.43 3.49 14.33C3.24 14.23 3.01 14.1 2.79 13.96C2.57 13.81 2.37 13.64 2.18 13.45C1.99 13.26 1.82 13.05 1.68 12.83C1.53 12.61 1.4 12.37 1.3 12.13C1.2 11.88 1.13 11.63 1.07 11.36C1.02 11.1 1 10.84 1 10.57L1 5.07C1 4.8 1.02 4.54 1.07 4.27C1.13 4.01 1.2 3.76 1.3 3.51C1.4 3.26 1.53 3.03 1.68 2.81C1.82 2.58 1.99 2.38 2.18 2.19C2.37 2 2.57 1.83 2.79 1.68C3.01 1.53 3.24 1.41 3.49 1.31C3.73 1.2 3.98 1.13 4.24 1.07C4.5 1.02 4.77 1 5.03 1L10.49 1C10.75 1 11.01 1.02 11.27 1.07C11.53 1.13 11.78 1.2 12.03 1.31C12.27 1.41 12.51 1.53 12.73 1.68C12.95 1.83 13.15 2 13.34 2.19C13.53 2.38 13.69 2.58 13.84 2.81C13.99 3.03 14.11 3.26 14.21 3.51C14.31 3.76 14.39 4.01 14.44 4.27C14.5 4.54 14.52 4.8 14.52 5.07L12.94 5.07C12.94 4.91 12.92 4.75 12.89 4.58C12.86 4.43 12.81 4.27 12.75 4.12C12.69 3.97 12.61 3.83 12.52 3.69C12.43 3.56 12.33 3.43 12.22 3.32C12.1 3.2 11.98 3.1 11.85 3.01C11.71 2.92 11.57 2.84 11.42 2.78C11.27 2.72 11.12 2.67 10.96 2.64C10.81 2.61 10.65 2.59 10.49 2.59L5.03 2.59C4.87 2.59 4.71 2.61 4.55 2.64C4.4 2.67 4.24 2.72 4.09 2.78C3.95 2.84 3.8 2.92 3.67 3.01C3.54 3.1 3.41 3.2 3.3 3.32C3.18 3.43 3.08 3.56 2.99 3.69C2.9 3.83 2.83 3.97 2.77 4.12C2.71 4.27 2.66 4.43 2.63 4.58C2.6 4.75 2.58 4.91 2.58 5.07L2.58 10.57C2.58 10.73 2.6 10.89 2.63 11.05C2.66 11.21 2.71 11.37 2.77 11.52C2.83 11.67 2.9 11.81 2.99 11.94C3.08 12.08 3.18 12.2 3.3 12.32C3.41 12.43 3.54 12.54 3.67 12.63C3.8 12.72 3.95 12.79 4.09 12.86C4.24 12.92 4.4 12.96 4.55 13C4.71 13.03 4.87 13.04 5.03 13.04L5.03 14.64Z",fill:"currentColor","fill-opacity":"1.000000","fill-rule":"evenodd"})]),k("path",{id:"path",d:"M14.75 18.91L9.3 18.91C9.03 18.91 8.77 18.88 8.51 18.83C8.25 18.78 8 18.7 7.75 18.6C7.51 18.49 7.27 18.37 7.05 18.22C6.83 18.07 6.63 17.9 6.44 17.71C6.25 17.52 6.09 17.32 5.94 17.1C5.79 16.87 5.67 16.64 5.57 16.39C5.47 16.14 5.39 15.89 5.34 15.63C5.28 15.37 5.26 15.1 5.26 14.83L5.26 9.33C5.26 9.06 5.28 8.8 5.34 8.54C5.39 8.28 5.47 8.02 5.57 7.77C5.67 7.53 5.79 7.29 5.94 7.07C6.09 6.85 6.25 6.64 6.44 6.45C6.63 6.26 6.83 6.09 7.05 5.95C7.27 5.8 7.51 5.67 7.75 5.57C8 5.47 8.25 5.39 8.51 5.34C8.77 5.29 9.03 5.26 9.3 5.26L14.75 5.26C15.01 5.26 15.28 5.29 15.54 5.34C15.8 5.39 16.05 5.47 16.29 5.57C16.54 5.67 16.77 5.8 16.99 5.95C17.21 6.09 17.41 6.26 17.6 6.45C17.79 6.64 17.96 6.85 18.1 7.07C18.25 7.29 18.37 7.53 18.48 7.77C18.58 8.02 18.65 8.28 18.71 8.54C18.76 8.8 18.78 9.06 18.78 9.33L18.78 14.83C18.78 15.1 18.76 15.37 18.71 15.63C18.65 15.89 18.58 16.14 18.48 16.39C18.37 16.64 18.25 16.87 18.1 17.1C17.96 17.32 17.79 17.52 17.6 17.71C17.41 17.9 17.21 18.07 16.99 18.22C16.77 18.37 16.54 18.49 16.29 18.6C16.05 18.7 15.8 18.78 15.54 18.83C15.28 18.88 15.01 18.91 14.75 18.91ZM9.3 6.86C9.13 6.86 8.97 6.87 8.82 6.91C8.66 6.94 8.51 6.98 8.36 7.05C8.21 7.11 8.07 7.18 7.93 7.28C7.8 7.37 7.68 7.47 7.56 7.58C7.45 7.7 7.35 7.82 7.26 7.96C7.17 8.09 7.09 8.24 7.03 8.38C6.97 8.54 6.92 8.69 6.89 8.85C6.86 9.01 6.84 9.17 6.84 9.33L6.84 14.83C6.84 15 6.86 15.16 6.89 15.32C6.92 15.48 6.97 15.63 7.03 15.78C7.09 15.93 7.17 16.07 7.26 16.21C7.35 16.34 7.45 16.47 7.56 16.58C7.68 16.7 7.8 16.8 7.93 16.89C8.07 16.98 8.21 17.06 8.36 17.12C8.51 17.18 8.66 17.23 8.82 17.26C8.97 17.29 9.13 17.31 9.3 17.31L14.75 17.31C14.91 17.31 15.07 17.29 15.23 17.26C15.38 17.23 15.54 17.18 15.69 17.12C15.83 17.06 15.98 16.98 16.11 16.89C16.24 16.8 16.37 16.7 16.48 16.58C16.59 16.47 16.7 16.34 16.79 16.21C16.87 16.07 16.95 15.93 17.01 15.78C17.07 15.63 17.12 15.48 17.15 15.32C17.18 15.16 17.2 15 17.2 14.83L17.2 9.33C17.2 9.17 17.18 9.01 17.15 8.85C17.12 8.69 17.07 8.54 17.01 8.38C16.95 8.24 16.87 8.09 16.79 7.96C16.7 7.82 16.59 7.7 16.48 7.58C16.37 7.47 16.24 7.37 16.11 7.28C15.98 7.19 15.83 7.11 15.69 7.05C15.54 6.98 15.38 6.94 15.23 6.91C15.07 6.87 14.91 6.86 14.75 6.86L9.3 6.86Z",fill:"currentColor","fill-opacity":"1.000000","fill-rule":"nonzero"})],-1))]))],8,Ir)])])])])):H("",!0),y.role=="assistant"?(B(),$("div",Ur,[b[9]||(b[9]=k("div",{class:"eb23581b dfa60d66"},[k("img",{src:fn,style:{width:"100%","border-radius":"50%"}})],-1)),k("div",qr,[y.skLong?(B(),$("div",Mr,b[3]||(b[3]=[k("div",{class:"ds-icon acbf4957",style:{"font-size":"12px",width:"12px",height:"12px"}},[k("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{d:"M2.656 17.344c-1.016-1.015-1.15-2.75-.313-4.925.325-.825.73-1.617 1.205-2.365L3.582 10l-.033-.054c-.5-.799-.91-1.596-1.206-2.365-.836-2.175-.703-3.91.313-4.926.56-.56 1.364-.86 2.335-.86 1.425 0 3.168.636 4.957 1.756l.053.034.053-.034c1.79-1.12 3.532-1.757 4.957-1.757.972 0 1.776.3 2.335.86 1.014 1.015 1.148 2.752.312 4.926a13.892 13.892 0 0 1-1.206 2.365l-.034.054.034.053c.5.8.91 1.596 1.205 2.365.837 2.175.704 3.911-.311 4.926-.56.56-1.364.861-2.335.861-1.425 0-3.168-.637-4.957-1.757L10 16.415l-.053.033c-1.79 1.12-3.532 1.757-4.957 1.757-.972 0-1.776-.3-2.335-.86zm13.631-4.399c-.187-.488-.429-.988-.71-1.492l-.075-.132-.092.12a22.075 22.075 0 0 1-3.968 3.968l-.12.093.132.074c1.308.734 2.559 1.162 3.556 1.162.563 0 1.006-.138 1.298-.43.3-.3.436-.774.428-1.346-.008-.575-.159-1.264-.449-2.017zm-6.345 1.65l.058.042.058-.042a19.881 19.881 0 0 0 4.551-4.537l.043-.058-.043-.058a20.123 20.123 0 0 0-2.093-2.458 19.732 19.732 0 0 0-2.458-2.08L10 5.364l-.058.042A19.883 19.883 0 0 0 5.39 9.942L5.348 10l.042.059c.631.874 1.332 1.695 2.094 2.457a19.74 19.74 0 0 0 2.458 2.08zm6.366-10.902c-.293-.293-.736-.431-1.298-.431-.998 0-2.248.429-3.556 1.163l-.132.074.12.092a21.938 21.938 0 0 1 3.968 3.968l.092.12.074-.132c.282-.504.524-1.004.711-1.492.29-.753.442-1.442.45-2.017.007-.572-.129-1.045-.429-1.345zM3.712 7.055c.202.514.44 1.013.712 1.493l.074.13.092-.119a21.94 21.94 0 0 1 3.968-3.968l.12-.092-.132-.074C7.238 3.69 5.987 3.262 4.99 3.262c-.563 0-1.006.138-1.298.43-.3.301-.436.774-.428 1.346.007.575.159 1.264.448 2.017zm0 5.89c-.29.753-.44 1.442-.448 2.017-.008.572.127 1.045.428 1.345.293.293.736.431 1.298.431.997 0 2.247-.428 3.556-1.162l.131-.074-.12-.093a21.94 21.94 0 0 1-3.967-3.968l-.093-.12-.074.132a11.712 11.712 0 0 0-.71 1.492z",fill:"currentColor",stroke:"currentColor","stroke-width":".1"}),k("path",{d:"M10.706 11.704A1.843 1.843 0 0 1 8.155 10a1.845 1.845 0 1 1 2.551 1.704z",fill:"currentColor",stroke:"currentColor","stroke-width":".2"})])],-1),We("思考中... ")]))):H("",!0),y.skLong?(B(),$("div",jr,b[4]||(b[4]=[Ae('<svg viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-icon="spin"><defs><linearGradient x1="0%" y1="100%" x2="100%" y2="100%" id="linearGradient-1"><stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop><stop stop-color="currentColor" stop-opacity="0.50" offset="39.9430698%"></stop><stop stop-color="currentColor" offset="100%"></stop></linearGradient></defs><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><rect fill-opacity="0.01" fill="none" x="0" y="0" width="36" height="36"></rect><path d="M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951" stroke="url(#linearGradient-1)" stroke-width="4" stroke-linecap="round"></path></g></svg>',1)]))):H("",!0),k("div",Hr,[b[5]||(b[5]=k("div",{class:"ecc93a3b"},null,-1)),k("p",Jr,Qe(y.sk),1)])]),k("div",Vr,[k("div",{innerHTML:y.content},null,8,Zr)]),k("div",Gr,[k("div",Wr,[k("div",Qr,[k("div",{onClick:E=>m(y.content),class:"ds-icon",style:{"font-size":"20px",width:"20px",height:"20px"}},[(B(),$("svg",Kr,[k("defs",null,[Xe(S,{id:"clip1257_20794"},{default:Ke(()=>b[6]||(b[6]=[k("rect",{id:"复制",width:"20.000000",height:"20.000000",fill:"white","fill-opacity":"0"},null,-1)])),_:1})]),b[7]||(b[7]=k("g",{"clip-path":"url(#clip1257_20794)"},[k("g",{"clip-path":"url(#clip1248_20193)"},[k("path",{id:"path",d:"M5.03 14.64C4.77 14.64 4.5 14.62 4.24 14.56C3.98 14.51 3.73 14.43 3.49 14.33C3.24 14.23 3.01 14.1 2.79 13.96C2.57 13.81 2.37 13.64 2.18 13.45C1.99 13.26 1.82 13.05 1.68 12.83C1.53 12.61 1.4 12.37 1.3 12.13C1.2 11.88 1.13 11.63 1.07 11.36C1.02 11.1 1 10.84 1 10.57L1 5.07C1 4.8 1.02 4.54 1.07 4.27C1.13 4.01 1.2 3.76 1.3 3.51C1.4 3.26 1.53 3.03 1.68 2.81C1.82 2.58 1.99 2.38 2.18 2.19C2.37 2 2.57 1.83 2.79 1.68C3.01 1.53 3.24 1.41 3.49 1.31C3.73 1.2 3.98 1.13 4.24 1.07C4.5 1.02 4.77 1 5.03 1L10.49 1C10.75 1 11.01 1.02 11.27 1.07C11.53 1.13 11.78 1.2 12.03 1.31C12.27 1.41 12.51 1.53 12.73 1.68C12.95 1.83 13.15 2 13.34 2.19C13.53 2.38 13.69 2.58 13.84 2.81C13.99 3.03 14.11 3.26 14.21 3.51C14.31 3.76 14.39 4.01 14.44 4.27C14.5 4.54 14.52 4.8 14.52 5.07L12.94 5.07C12.94 4.91 12.92 4.75 12.89 4.58C12.86 4.43 12.81 4.27 12.75 4.12C12.69 3.97 12.61 3.83 12.52 3.69C12.43 3.56 12.33 3.43 12.22 3.32C12.1 3.2 11.98 3.1 11.85 3.01C11.71 2.92 11.57 2.84 11.42 2.78C11.27 2.72 11.12 2.67 10.96 2.64C10.81 2.61 10.65 2.59 10.49 2.59L5.03 2.59C4.87 2.59 4.71 2.61 4.55 2.64C4.4 2.67 4.24 2.72 4.09 2.78C3.95 2.84 3.8 2.92 3.67 3.01C3.54 3.1 3.41 3.2 3.3 3.32C3.18 3.43 3.08 3.56 2.99 3.69C2.9 3.83 2.83 3.97 2.77 4.12C2.71 4.27 2.66 4.43 2.63 4.58C2.6 4.75 2.58 4.91 2.58 5.07L2.58 10.57C2.58 10.73 2.6 10.89 2.63 11.05C2.66 11.21 2.71 11.37 2.77 11.52C2.83 11.67 2.9 11.81 2.99 11.94C3.08 12.08 3.18 12.2 3.3 12.32C3.41 12.43 3.54 12.54 3.67 12.63C3.8 12.72 3.95 12.79 4.09 12.86C4.24 12.92 4.4 12.96 4.55 13C4.71 13.03 4.87 13.04 5.03 13.04L5.03 14.64Z",fill:"currentColor","fill-opacity":"1.000000","fill-rule":"evenodd"})]),k("path",{id:"path",d:"M14.75 18.91L9.3 18.91C9.03 18.91 8.77 18.88 8.51 18.83C8.25 18.78 8 18.7 7.75 18.6C7.51 18.49 7.27 18.37 7.05 18.22C6.83 18.07 6.63 17.9 6.44 17.71C6.25 17.52 6.09 17.32 5.94 17.1C5.79 16.87 5.67 16.64 5.57 16.39C5.47 16.14 5.39 15.89 5.34 15.63C5.28 15.37 5.26 15.1 5.26 14.83L5.26 9.33C5.26 9.06 5.28 8.8 5.34 8.54C5.39 8.28 5.47 8.02 5.57 7.77C5.67 7.53 5.79 7.29 5.94 7.07C6.09 6.85 6.25 6.64 6.44 6.45C6.63 6.26 6.83 6.09 7.05 5.95C7.27 5.8 7.51 5.67 7.75 5.57C8 5.47 8.25 5.39 8.51 5.34C8.77 5.29 9.03 5.26 9.3 5.26L14.75 5.26C15.01 5.26 15.28 5.29 15.54 5.34C15.8 5.39 16.05 5.47 16.29 5.57C16.54 5.67 16.77 5.8 16.99 5.95C17.21 6.09 17.41 6.26 17.6 6.45C17.79 6.64 17.96 6.85 18.1 7.07C18.25 7.29 18.37 7.53 18.48 7.77C18.58 8.02 18.65 8.28 18.71 8.54C18.76 8.8 18.78 9.06 18.78 9.33L18.78 14.83C18.78 15.1 18.76 15.37 18.71 15.63C18.65 15.89 18.58 16.14 18.48 16.39C18.37 16.64 18.25 16.87 18.1 17.1C17.96 17.32 17.79 17.52 17.6 17.71C17.41 17.9 17.21 18.07 16.99 18.22C16.77 18.37 16.54 18.49 16.29 18.6C16.05 18.7 15.8 18.78 15.54 18.83C15.28 18.88 15.01 18.91 14.75 18.91ZM9.3 6.86C9.13 6.86 8.97 6.87 8.82 6.91C8.66 6.94 8.51 6.98 8.36 7.05C8.21 7.11 8.07 7.18 7.93 7.28C7.8 7.37 7.68 7.47 7.56 7.58C7.45 7.7 7.35 7.82 7.26 7.96C7.17 8.09 7.09 8.24 7.03 8.38C6.97 8.54 6.92 8.69 6.89 8.85C6.86 9.01 6.84 9.17 6.84 9.33L6.84 14.83C6.84 15 6.86 15.16 6.89 15.32C6.92 15.48 6.97 15.63 7.03 15.78C7.09 15.93 7.17 16.07 7.26 16.21C7.35 16.34 7.45 16.47 7.56 16.58C7.68 16.7 7.8 16.8 7.93 16.89C8.07 16.98 8.21 17.06 8.36 17.12C8.51 17.18 8.66 17.23 8.82 17.26C8.97 17.29 9.13 17.31 9.3 17.31L14.75 17.31C14.91 17.31 15.07 17.29 15.23 17.26C15.38 17.23 15.54 17.18 15.69 17.12C15.83 17.06 15.98 16.98 16.11 16.89C16.24 16.8 16.37 16.7 16.48 16.58C16.59 16.47 16.7 16.34 16.79 16.21C16.87 16.07 16.95 15.93 17.01 15.78C17.07 15.63 17.12 15.48 17.15 15.32C17.18 15.16 17.2 15 17.2 14.83L17.2 9.33C17.2 9.17 17.18 9.01 17.15 8.85C17.12 8.69 17.07 8.54 17.01 8.38C16.95 8.24 16.87 8.09 16.79 7.96C16.7 7.82 16.59 7.7 16.48 7.58C16.37 7.47 16.24 7.37 16.11 7.28C15.98 7.19 15.83 7.11 15.69 7.05C15.54 6.98 15.38 6.94 15.23 6.91C15.07 6.87 14.91 6.86 14.75 6.86L9.3 6.86Z",fill:"currentColor","fill-opacity":"1.000000","fill-rule":"nonzero"})],-1))]))],8,Xr)])]),b[8]||(b[8]=k("div",{style:{flex:"1 1 0%"}},null,-1))])])):H("",!0)],512))),256)):H("",!0),t.value?H("",!0):(B(),$("div",Yr,b[10]||(b[10]=[Ae('<div class="c7e7df4d"><div class="ds-icon da6cda9a" style="font-size:60px;width:60px;height:60px;"><svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path id="path" d="M27.501 8.46875C27.249 8.3457 27.1406 8.58008 26.9932 8.69922C26.9434 8.73828 26.9004 8.78906 26.8584 8.83398C26.4902 9.22852 26.0605 9.48633 25.5 9.45508C24.6787 9.41016 23.9785 9.66797 23.3594 10.2969C23.2275 9.52148 22.79 9.05859 22.125 8.76172C21.7764 8.60742 21.4238 8.45312 21.1807 8.11719C21.0098 7.87891 20.9639 7.61328 20.8779 7.35156C20.8242 7.19336 20.7695 7.03125 20.5879 7.00391C20.3906 6.97266 20.3135 7.13867 20.2363 7.27734C19.9258 7.84375 19.8066 8.46875 19.8174 9.10156C19.8447 10.5234 20.4453 11.6562 21.6367 12.4629C21.7725 12.5547 21.8076 12.6484 21.7646 12.7832C21.6836 13.0605 21.5869 13.3301 21.501 13.6074C21.4473 13.7852 21.3662 13.8242 21.1768 13.7461C20.5225 13.4727 19.957 13.0684 19.458 12.5781C18.6104 11.7578 17.8438 10.8516 16.8877 10.1426C16.6631 9.97656 16.4395 9.82227 16.207 9.67578C15.2314 8.72656 16.335 7.94727 16.5898 7.85547C16.8574 7.75977 16.6826 7.42773 15.8193 7.43164C14.957 7.43555 14.167 7.72461 13.1611 8.10938C13.0137 8.16797 12.8594 8.21094 12.7002 8.24414C11.7871 8.07227 10.8389 8.0332 9.84766 8.14453C7.98242 8.35352 6.49219 9.23633 5.39648 10.7441C4.08105 12.5547 3.77148 14.6133 4.15039 16.7617C4.54883 19.0234 5.70215 20.8984 7.47559 22.3633C9.31348 23.8809 11.4307 24.625 13.8457 24.4824C15.3125 24.3984 16.9463 24.2012 18.7881 22.6406C19.2529 22.8711 19.7402 22.9629 20.5498 23.0332C21.1729 23.0918 21.7725 23.002 22.2373 22.9062C22.9648 22.752 22.9141 22.0781 22.6514 21.9531C20.5186 20.959 20.9863 21.3633 20.5605 21.0371C21.6445 19.752 23.2783 18.418 23.917 14.0977C23.9668 13.7539 23.9238 13.5391 23.917 13.2598C23.9131 13.0918 23.9512 13.0254 24.1445 13.0059C24.6787 12.9453 25.1973 12.7988 25.6738 12.5352C27.0557 11.7793 27.6123 10.5391 27.7441 9.05078C27.7637 8.82422 27.7402 8.58789 27.501 8.46875ZM15.46 21.8613C13.3926 20.2344 12.3906 19.6992 11.9766 19.7227C11.5898 19.7441 11.6592 20.1875 11.7441 20.4766C11.833 20.7617 11.9492 20.959 12.1123 21.209C12.2246 21.375 12.3018 21.623 12 21.8066C11.334 22.2207 10.1768 21.668 10.1221 21.6406C8.77539 20.8477 7.64941 19.7988 6.85547 18.3652C6.08984 16.9844 5.64453 15.5039 5.57129 13.9238C5.55176 13.541 5.66406 13.4062 6.04297 13.3379C6.54199 13.2461 7.05762 13.2266 7.55664 13.2988C9.66602 13.6074 11.4619 14.5527 12.9668 16.0469C13.8262 16.9004 14.4766 17.918 15.1465 18.9121C15.8584 19.9688 16.625 20.9746 17.6006 21.7988C17.9443 22.0879 18.2197 22.3086 18.4824 22.4707C17.6895 22.5586 16.3652 22.5781 15.46 21.8613ZM16.4502 15.4805C16.4502 15.3105 16.5859 15.1758 16.7568 15.1758C16.7949 15.1758 16.8301 15.1836 16.8613 15.1953C16.9033 15.2109 16.9424 15.2344 16.9727 15.2695C17.0273 15.3223 17.0586 15.4004 17.0586 15.4805C17.0586 15.6504 16.9229 15.7852 16.7529 15.7852C16.582 15.7852 16.4502 15.6504 16.4502 15.4805ZM19.5273 17.0625C19.3301 17.1426 19.1328 17.2129 18.9434 17.2207C18.6494 17.2344 18.3281 17.1152 18.1533 16.9688C17.8828 16.7422 17.6895 16.6152 17.6074 16.2168C17.5732 16.0469 17.5928 15.7852 17.623 15.6348C17.6934 15.3105 17.6152 15.1035 17.3877 14.9141C17.2012 14.7598 16.9658 14.7188 16.7061 14.7188C16.6094 14.7188 16.5205 14.6758 16.4541 14.6406C16.3457 14.5859 16.2568 14.4512 16.3418 14.2852C16.3691 14.2324 16.501 14.1016 16.5322 14.0781C16.8838 13.877 17.29 13.9434 17.666 14.0938C18.0146 14.2363 18.2773 14.498 18.6562 14.8672C19.0439 15.3145 19.1133 15.4395 19.334 15.7734C19.5078 16.0371 19.667 16.3066 19.7754 16.6152C19.8408 16.8066 19.7559 16.9648 19.5273 17.0625Z" fill-rule="nonzero" fill="#4D6BFE"></path></svg></div>我是 DeepSeek很高兴见到你 </div><div class="a8d0e1d3">我可以帮你写代码、读文件、写作各种创意内容,请把你的任务交给我吧~</div>',2)]))),H("",!0),k("div",ei,[k("div",ti,[k("div",ni,[k("div",si,[k("div",ri,[cn(k("textarea",{"onUpdate:modelValue":b[0]||(b[0]=y=>n.value=y),id:"chat-input",class:"c92459f0",placeholder:"给 DeepSeek 发送消息 ",rows:"2"},null,512),[[un,n.value]]),b[12]||(b[12]=k("div",{class:"b13855df"},null,-1))]),k("div",ii,[k("div",oi,[a.value?H("",!0):(B(),$("div",{key:0,onClick:g,role:"button","aria-disabled":"false",class:"f6d670"},b[13]||(b[13]=[k("div",{class:"f286936b"},[k("div",{class:"be24146b"})],-1)]))),a.value?(B(),$("div",{key:1,onClick:f,role:"button","aria-disabled":"false",class:"f6d670"},b[14]||(b[14]=[Ae('<div class="f286936b"><div class="ds-icon" style="font-size:16px;width:16px;height:16px;"><svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 16c-.595 0-1.077-.462-1.077-1.032V1.032C5.923.462 6.405 0 7 0s1.077.462 1.077 1.032v13.936C8.077 15.538 7.595 16 7 16z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M.315 7.44a1.002 1.002 0 0 1 0-1.46L6.238.302a1.11 1.11 0 0 1 1.523 0c.421.403.421 1.057 0 1.46L1.838 7.44a1.11 1.11 0 0 1-1.523 0z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.685 7.44a1.11 1.11 0 0 1-1.523 0L6.238 1.762a1.002 1.002 0 0 1 0-1.46 1.11 1.11 0 0 1 1.523 0l5.924 5.678c.42.403.42 1.056 0 1.46z" fill="currentColor"></path></svg></div></div>',1)]))):H("",!0)])])])])]),b[15]||(b[15]=k("div",{class:"fcaa63f8"},"内容由 AI 生成,请仔细甄别",-1))])],4)],544)])])])])])])}}});export{Ti as default};