deepseek-pc/dist/ai-CHrumffn.js
2025-03-04 12:26:10 +08:00

62 lines
98 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,e as nn,f as sn,g as rn,h as on,c as P,a as b,i as U,F as ln,j as an,b as Ee,n as cn,w as un,v as pn,k as hn,l as fn,m as dn,p as Ae,t as Ke,q as Qe,s as Xe,x as gn,o as $}from"./index-D76U6LGa.js";import{_ as mn}from"./ai-logo-BtlK3AB1.js";function bt(s,e){return function(){return s.apply(e,arguments)}}const{toString:bn}=Object.prototype,{getPrototypeOf:Fe}=Object,we=(s=>e=>{const t=bn.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),M=s=>(s=s.toLowerCase(),e=>we(e)===s),ke=s=>e=>typeof e===s,{isArray:Q}=Array,ie=ke("undefined");function wn(s){return s!==null&&!ie(s)&&s.constructor!==null&&!ie(s.constructor)&&F(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const wt=M("ArrayBuffer");function kn(s){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(s):e=s&&s.buffer&&wt(s.buffer),e}const Cn=ke("string"),F=ke("function"),kt=ke("number"),Ce=s=>s!==null&&typeof s=="object",xn=s=>s===!0||s===!1,ue=s=>{if(we(s)!=="object")return!1;const e=Fe(s);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},yn=M("Date"),Sn=M("File"),Rn=M("Blob"),Tn=M("FileList"),En=s=>Ce(s)&&F(s.pipe),An=s=>{let e;return s&&(typeof FormData=="function"&&s instanceof FormData||F(s.append)&&((e=we(s))==="formdata"||e==="object"&&F(s.toString)&&s.toString()==="[object FormData]"))},_n=M("URLSearchParams"),[vn,Ln,On,Pn]=["ReadableStream","Request","Response","Headers"].map(M),$n=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(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=>!ie(s)&&s!==J;function Oe(){const{caseless:s}=xt(this)&&this||{},e={},t=(n,r)=>{const i=s&&Ct(e,r)||r;ue(e[i])&&ue(n)?e[i]=Oe(e[i],n):ue(n)?e[i]=Oe({},n):Q(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&oe(arguments[n],t);return e}const zn=(s,e,t,{allOwnKeys:n}={})=>(oe(e,(r,i)=>{t&&F(r)?s[i]=bt(r,t):s[i]=r},{allOwnKeys:n}),s),Bn=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),Nn=(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)},Dn=(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&&Fe(s)}while(s&&(!t||t(s,e))&&s!==Object.prototype);return e},Fn=(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},In=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},qn=(s=>e=>s&&e instanceof s)(typeof Uint8Array<"u"&&Fe(Uint8Array)),Un=(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])}},Mn=(s,e)=>{let t;const n=[];for(;(t=s.exec(e))!==null;)n.push(t);return n},jn=M("HTMLFormElement"),Hn=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),Zn=M("RegExp"),yt=(s,e)=>{const t=Object.getOwnPropertyDescriptors(s),n={};oe(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(F(s)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=s[t];if(F(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+"'")})}})},Vn=(s,e)=>{const t={},n=r=>{r.forEach(i=>{t[i]=!0})};return Q(s)?n(s):n(String(s).split(e)),t},Gn=()=>{},Wn=(s,e)=>s!=null&&Number.isFinite(s=+s)?s:e;function Kn(s){return!!(s&&F(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const Qn=s=>{const e=new Array(10),t=(n,r)=>{if(Ce(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=Q(n)?[]:{};return oe(n,(o,l)=>{const u=t(o,r+1);!ie(u)&&(i[l]=u)}),e[r]=void 0,i}}return n};return t(s,0)},Xn=M("AsyncFunction"),Yn=s=>s&&(Ce(s)||F(s))&&F(s.then)&&F(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",F(J.postMessage)),es=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof process<"u"&&process.nextTick||St,p={isArray:Q,isArrayBuffer:wt,isBuffer:wn,isFormData:An,isArrayBufferView:kn,isString:Cn,isNumber:kt,isBoolean:xn,isObject:Ce,isPlainObject:ue,isReadableStream:vn,isRequest:Ln,isResponse:On,isHeaders:Pn,isUndefined:ie,isDate:yn,isFile:Sn,isBlob:Rn,isRegExp:Zn,isFunction:F,isStream:En,isURLSearchParams:_n,isTypedArray:qn,isFileList:Tn,forEach:oe,merge:Oe,extend:zn,trim:$n,stripBOM:Bn,inherits:Nn,toFlatObject:Dn,kindOf:we,kindOfTest:M,endsWith:Fn,toArray:In,forEachEntry:Un,matchAll:Mn,isHTMLForm:jn,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:yt,freezeMethods:Jn,toObjectSet:Vn,toCamelCase:Hn,noop:Gn,toFiniteNumber:Wn,findKey:Ct,global:J,isContextDefined:xt,isSpecCompliantForm:Kn,toJSONObject:Qn,isAsyncFn:Xn,isThenable:Yn,setImmediate:St,asap:es};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,Tt={};["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=>{Tt[s]={value:s}});Object.defineProperties(C,Tt);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 ts=null;function Pe(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 ns(s){return p.isArray(s)&&!s.some(Pe)}const ss=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function xe(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 E=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)&&ns(f)||(p.isFileList(f)||p.endsWith(g,"[]"))&&(E=p.toArray(f)))return g=Et(g),E.forEach(function(_,B){!(p.isUndefined(_)||_===null)&&e.append(o===!0?et([g],B,i):o===null?g:g+"[]",a(_))}),!1}return Pe(f)?!0:(e.append(et(m,g,i),a(f)),!1)}const h=[],d=Object.assign(ss,{defaultVisitor:c,convertValue:a,isVisitable:Pe});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(E,A){(!(p.isUndefined(E)||E===null)&&r.call(e,E,p.isString(A)?A.trim():A,g,d))===!0&&w(E,g?g.concat(A):[A])}),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 Ie(s,e){this._pairs=[],s&&xe(s,this,e)}const At=Ie.prototype;At.append=function(e,t){this._pairs.push([e,t])};At.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 rs(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||rs;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 Ie(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},is=typeof URLSearchParams<"u"?URLSearchParams:Ie,os=typeof FormData<"u"?FormData:null,ls=typeof Blob<"u"?Blob:null,as={isBrowser:!0,classes:{URLSearchParams:is,FormData:os,Blob:ls},protocols:["http","https","file","blob","url","data"]},qe=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,cs=qe&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),us=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ps=qe&&window.location.href||"http://localhost",hs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qe,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:$e,origin:ps},Symbol.toStringTag,{value:"Module"})),O={...hs,...as};function fs(s,e){return xe(s,new O.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,i){return O.isNode&&p.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function ds(s){return p.matchAll(/\w+|\[(\w*)]/g,s).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gs(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]=gs(r[o])),!l)}if(p.isFormData(s)&&p.isFunction(s.entries)){const t={};return p.forEachEntry(s,(n,r)=>{e(ds(n),r,t,0)}),t}return null}function ms(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 le={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 fs(e,this.formSerializer).toString();if((l=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return xe(l?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),ms(e)):e}],transformResponse:[function(e){const t=this.transitional||le.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:O.classes.FormData,Blob:O.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=>{le.headers[s]={}});const bs=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"]),ws=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]&&bs[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 Y(s){return s&&String(s).trim().toLowerCase()}function pe(s){return s===!1||s==null?s:p.isArray(s)?s.map(pe):String(s)}function ks(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 Cs=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function _e(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 xs(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ys(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 N=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(l,u,a){const c=Y(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]=pe(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())&&!Cs(e))o(ws(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=Y(e),e){const n=p.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return ks(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=Y(e),e){const n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||_e(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(o){if(o=Y(o),o){const l=p.findKey(n,o);l&&(!t||_e(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||_e(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]=pe(r),delete t[i];return}const l=e?xs(i):String(i).trim();l!==i&&delete t[i],t[l]=pe(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=Y(o);n[l]||(ys(r,o),n[l]=!0)}return p.isArray(e)?e.forEach(i):i(e),this}};N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(N.prototype,({value:s},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>s,set(n){this[t]=n}}});p.freezeMethods(N);function ve(s,e){const t=this||le,n=e||t,r=N.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 Ss(s){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return e&&e[1]||""}function Rs(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 Ts(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 fe=(s,e,t=3)=>{let n=0;const r=Rs(50,250);return Ts(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)),Es=O.hasStandardBrowserEnv?((s,e)=>t=>(t=new URL(t,O.origin),s.protocol===t.protocol&&s.host===t.host&&(e||s.port===t.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,As=O.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 _s(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function vs(s,e){return e?s.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):s}function $t(s,e,t){let n=!_s(e);return s&&n||t==!1?vs(s,e):e}const ot=s=>s instanceof N?{...s}:s;function G(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 zt=s=>{const e=G({},s);let{data:t,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:l}=e;e.headers=o=N.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(O.hasStandardBrowserEnv||O.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(O.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&Es(e.url))){const a=r&&i&&As.read(i);a&&o.set(r,a)}return e},Ls=typeof XMLHttpRequest<"u",Os=Ls&&function(s){return new Promise(function(t,n){const r=zt(s);let i=r.data;const o=N.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 E(){if(!m)return;const _=N.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:_,config:s,request:m};Pt(function(v){t(v),g()},function(v){n(v),g()},x),m=null}"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(E)},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 B=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||vt;r.timeoutErrorMessage&&(B=r.timeoutErrorMessage),n(new C(B,x.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,s,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&p.forEach(o.toJSON(),function(B,x){m.setRequestHeader(x,B)}),p.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),l&&l!=="json"&&(m.responseType=r.responseType),a&&([d,f]=fe(a,!0),m.addEventListener("progress",d)),u&&m.upload&&([h,w]=fe(u),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(c=_=>{m&&(n(!_||_.type?new X(null,s,m):_),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const A=Ss(r.url);if(A&&O.protocols.indexOf(A)===-1){n(new C("Unsupported protocol "+A+":",C.ERR_BAD_REQUEST,s));return}m.send(i||null)})},Ps=(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}},$s=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},zs=async function*(s,e){for await(const t of Bs(s))yield*$s(t,e)},Bs=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=zs(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})},ye=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bt=ye&&typeof ReadableStream=="function",Ns=ye&&(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}},Ds=Bt&&Nt(()=>{let s=!1;const e=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return s=!0,"half"}}).headers.has("Content-Type");return s&&!e}),at=64*1024,ze=Bt&&Nt(()=>p.isReadableStream(new Response("").body)),de={stream:ze&&(s=>s.body)};ye&&(s=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!de[e]&&(de[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 Fs=async s=>{if(s==null)return 0;if(p.isBlob(s))return s.size;if(p.isSpecCompliantForm(s))return(await new Request(O.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 Ns(s)).byteLength},Is=async(s,e)=>{const t=p.toFiniteNumber(s.getContentLength());return t??Fs(e)},qs=ye&&(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}=zt(s);a=a?(a+"").toLowerCase():"text";let w=Ps([r,i&&i.toAbortSignal()],o),f;const g=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(u&&Ds&&t!=="get"&&t!=="head"&&(m=await Is(c,n))!==0){let x=new Request(e,{method:"POST",body:n,duplex:"half"}),k;if(p.isFormData(n)&&(k=x.headers.get("content-type"))&&c.setContentType(k),x.body){const[v,y]=rt(m,fe(it(u)));n=lt(x.body,at,v,y)}}p.isString(h)||(h=h?"include":"omit");const E="credentials"in Request.prototype;f=new Request(e,{...d,signal:w,method:t.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:E?h:void 0});let A=await fetch(f);const _=ze&&(a==="stream"||a==="response");if(ze&&(l||_&&g)){const x={};["status","statusText","headers"].forEach(D=>{x[D]=A[D]});const k=p.toFiniteNumber(A.headers.get("content-length")),[v,y]=l&&rt(k,fe(it(l),!0))||[];A=new Response(lt(A.body,at,v,()=>{y&&y(),g&&g()}),x)}a=a||"text";let B=await de[p.findKey(de,a)||"text"](A,s);return!_&&g&&g(),await new Promise((x,k)=>{Pt(x,k,{data:B,headers:N.from(A.headers),status:A.status,statusText:A.statusText,config:s,request:f})})}catch(E){throw g&&g(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,s,f),{cause:E.cause||E}):C.from(E,E&&E.code,s,f)}}),Be={http:ts,xhr:Os,fetch:qs};p.forEach(Be,(s,e)=>{if(s){try{Object.defineProperty(s,"name",{value:e})}catch{}Object.defineProperty(s,"adapterName",{value:e})}});const ct=s=>`- ${s}`,Us=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,!Us(t)&&(n=Be[(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:Be};function Le(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new X(null,s)}function ut(s){return Le(s),s.headers=N.from(s.headers),s.data=ve.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),Dt.getAdapter(s.adapter||le.adapter)(s).then(function(n){return Le(s),n.data=ve.call(s,s.transformResponse,n),n.headers=N.from(n.headers),n},function(n){return Ot(n)||(Le(s),n&&n.response&&(n.response.data=ve.call(s,s.transformResponse,n.response),n.response.headers=N.from(n.response.headers))),Promise.reject(n)})}const Ft="1.8.1",Se={};["object","boolean","number","function","string","symbol"].forEach((s,e)=>{Se[s]=function(n){return typeof n===s||"a"+(e<1?"n ":" ")+s}});const pt={};Se.transitional=function(e,t,n){function r(i,o){return"[Axios v"+Ft+"] 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}};Se.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Ms(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 he={assertOptions:Ms,validators:Se},H=he.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=G(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&he.assertOptions(n,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),r!=null&&(p.isFunction(r)?t.paramsSerializer={serialize:r}:he.assertOptions(r,{encode:H.function,serialize:H.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),he.assertOptions(t,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.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=N.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=G(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(G(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(G(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 js=class It{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 It(function(r){e=r}),cancel:e}}};function Hs(s){return function(t){return s.apply(null,t)}}function Zs(s){return p.isObject(s)&&s.isAxiosError===!0}const Ne={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(Ne).forEach(([s,e])=>{Ne[e]=s});function qt(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 qt(G(s,r))},t}const L=qt(le);L.Axios=V;L.CanceledError=X;L.CancelToken=js;L.isCancel=Ot;L.VERSION=Ft;L.toFormData=xe;L.AxiosError=C;L.Cancel=L.CanceledError;L.all=function(e){return Promise.all(e)};L.spread=Hs;L.isAxiosError=Zs;L.mergeConfig=G;L.AxiosHeaders=N;L.formToJSON=s=>Lt(p.isHTMLForm(s)?new FormData(s):s);L.getAdapter=Dt.getAdapter;L.HttpStatusCode=Ne;L.default=L;const{Axios:mi,AxiosError:bi,CanceledError:wi,isCancel:ki,CancelToken:Ci,VERSION:xi,all:yi,Cancel:Si,isAxiosError:Ri,spread:Ti,toFormData:Ei,AxiosHeaders:Ai,HttpStatusCode:_i,formToJSON:vi,getAdapter:Li,mergeConfig:Oi}=L,Js="https://deepseek.lyzhcs.com";console.log(window.location.protocol);const ne=L.create({baseURL:Js,timeout:1e5}),Ut=(s,e={})=>{let t=e.method||"get",n=e.params||{};return t==="get"||t==="GET"?new Promise((r,i)=>{ne.get(s,{params:n}).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}):t==="post"||t==="POST"?new Promise((r,i)=>{ne.post(s,n).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}):(console.log(n),new Promise((r,i)=>{ne.delete(s,{data:n}).then(o=>{o&&o.data&&r(o.data)}).catch(o=>{i(o)})}))};ne.interceptors.request.use(s=>s,s=>Promise.reject(s));ne.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 Vs(s){return Ut("/api/deepseek.deepseek/question",{method:"POST",params:s})}function Gs(s){return Ut("/api/deepseek.deepseek/answer_list",{method:"GET",params:s})}function Ue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let K=Ue();function Mt(s){K=s}const se={exec:()=>null};function S(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(z.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}const z={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")},Ws=/^(?:[ \t]*(?:\n|$))+/,Ks=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ae=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Me=/(?:[*+-]|\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=S(jt).replace(/bull/g,Me).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(),Ys=S(jt).replace(/bull/g,Me).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(),je=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,er=/^[^\n]+/,He=/(?!\s*\])(?:\\.|[^\[\]\\])+/,tr=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",He).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nr=S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Me).getRegex(),Re="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",Ze=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sr=S("^ {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",Ze).replace("tag",Re).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zt=S(je).replace("hr",ae).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",Re).getRegex(),rr=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Zt).getRegex(),Je={blockquote:rr,code:Ks,def:tr,fences:Qs,heading:Xs,hr:ae,html:sr,lheading:Ht,list:nr,newline:Ws,paragraph:Zt,table:se,text:er},ht=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ae).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",Re).getRegex(),ir={...Je,lheading:Ys,table:ht,paragraph:S(je).replace("hr",ae).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",Re).getRegex()},or={...Je,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ze).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:se,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(je).replace("hr",ae).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ht).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ar=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jt=/^( {2,}|\\)\n(?!\s*$)/,cr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Te=/[\p{P}\p{S}]/u,Ve=/[\s\p{P}\p{S}]/u,Vt=/[^\s\p{P}\p{S}]/u,ur=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ve).getRegex(),Gt=/(?!~)[\p{P}\p{S}]/u,pr=/(?!~)[\s\p{P}\p{S}]/u,hr=/(?:[^\s\p{P}\p{S}]|~)/u,fr=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Wt=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,dr=S(Wt,"u").replace(/punct/g,Te).getRegex(),gr=S(Wt,"u").replace(/punct/g,Gt).getRegex(),Kt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mr=S(Kt,"gu").replace(/notPunctSpace/g,Vt).replace(/punctSpace/g,Ve).replace(/punct/g,Te).getRegex(),br=S(Kt,"gu").replace(/notPunctSpace/g,hr).replace(/punctSpace/g,pr).replace(/punct/g,Gt).getRegex(),wr=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vt).replace(/punctSpace/g,Ve).replace(/punct/g,Te).getRegex(),kr=S(/\\(punct)/,"gu").replace(/punct/g,Te).getRegex(),Cr=S(/^<(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(),xr=S(Ze).replace("(?:-->|$)","-->").getRegex(),yr=S("^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",xr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ge=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Sr=S(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ge).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Qt=S(/^!?\[(label)\]\[(ref)\]/).replace("label",ge).replace("ref",He).getRegex(),Xt=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",He).getRegex(),Rr=S("reflink|nolink(?!\\()","g").replace("reflink",Qt).replace("nolink",Xt).getRegex(),Ge={_backpedal:se,anyPunctuation:kr,autolink:Cr,blockSkip:fr,br:Jt,code:ar,del:se,emStrongLDelim:dr,emStrongRDelimAst:mr,emStrongRDelimUnd:wr,escape:lr,link:Sr,nolink:Xt,punctuation:ur,reflink:Qt,reflinkSearch:Rr,tag:yr,text:cr,url:se},Tr={...Ge,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",ge).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ge).getRegex()},De={...Ge,emStrongRDelimAst:br,emStrongLDelim:gr,url:S(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Er={...De,br:S(Jt).replace("{2,}","*").getRegex(),text:S(De.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ce={normal:Je,gfm:ir,pedantic:or},ee={normal:Ge,gfm:De,breaks:Er,pedantic:Tr},Ar={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ft=s=>Ar[s];function Z(s,e){if(e){if(z.escapeTest.test(s))return s.replace(z.escapeReplace,ft)}else if(z.escapeTestNoEncode.test(s))return s.replace(z.escapeReplaceNoEncode,ft);return s}function dt(s){try{s=encodeURI(s).replace(z.percentDecode,"%")}catch{return null}return s}function gt(s,e){var i;const t=s.replace(z.findPipe,(o,l,u)=>{let a=!1,c=l;for(;--c>=0&&u[c]==="\\";)a=!a;return a?"|":" |"}),n=t.split(z.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(z.slashPipe,"|");return n}function te(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 _r(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 vr(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 me{constructor(e){T(this,"options");T(this,"rules");T(this,"lexer");this.options=e||K}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:te(n,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=vr(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=te(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:te(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=te(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,A=>" ".repeat(3*A.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 A=this.rules.other.nextBulletRegex(g),_=this.rules.other.hrRegex(g),B=this.rules.other.fencesBeginRegex(g),x=this.rules.other.headingBeginRegex(g),k=this.rules.other.htmlBeginRegex(g);for(;e;){const v=e.split(`
`,1)[0];let y;if(w=v,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),y=w):y=w.replace(this.rules.other.tabCharGlobal," "),B.test(w)||x.test(w)||k.test(w)||A.test(w)||_.test(w))break;if(y.search(this.rules.other.nonSpaceChar)>=g||!w.trim())h+=`
`+y.slice(g);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||B.test(d)||x.test(d)||_.test(d))break;h+=`
`+w}!f&&!w.trim()&&(f=!0),c+=v+`
`,e=e.substring(v.length+1),d=y.slice(g)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(l=!0));let m=null,E;this.options.gfm&&(m=this.rules.other.listIsTask.exec(h),m&&(E=m[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!m,checked:E,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=te(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=_r(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 I{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||K,this.options.tokenizer=this.options.tokenizer||new me,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:z,block:ce.normal,inline:ee.normal};this.options.pedantic?(t.block=ce.pedantic,t.inline=ee.pedantic):this.options.gfm&&(t.block=ce.gfm,this.options.breaks?t.inline=ee.breaks:t.inline=ee.gfm),this.tokenizer.rules=t}static get rules(){return{block:ce,inline:ee}}static lex(e,t){return new I(t).lex(e)}static lexInline(e,t){return new I(t).inlineTokens(e)}lex(e){e=e.replace(z.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(z.tabCharGlobal," ").replace(z.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 be{constructor(e){T(this,"options");T(this,"parser");this.options=e||K}space(e){return""}code({text:e,lang:t,escaped:n}){var o;const r=(o=(t||"").match(z.notSpaceStart))==null?void 0:o[0],i=e.replace(z.endingNewline,"")+`
`;return r?'<pre><code class="language-'+Z(r)+'">'+(n?i:Z(i,!0))+`</code></pre>
`:"<pre><code>"+(n?i:Z(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+" "+Z(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>${Z(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="'+Z(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n}){const r=dt(e);if(r===null)return Z(n);e=r;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${Z(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Z(e.text)}}class We{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 q{constructor(e){T(this,"options");T(this,"renderer");T(this,"textRenderer");this.options=e||K,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new We}static parse(e,t){return new q(t).parse(e)}static parseInline(e,t){return new q(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 re{constructor(e){T(this,"options");T(this,"block");this.options=e||K}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?I.lex:I.lexInline}provideParser(){return this.block?q.parse:q.parseInline}}T(re,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Lr{constructor(...e){T(this,"defaults",Ue());T(this,"options",this.setOptions);T(this,"parse",this.parseMarkdown(!0));T(this,"parseInline",this.parseMarkdown(!1));T(this,"Parser",q);T(this,"Renderer",be);T(this,"TextRenderer",We);T(this,"Lexer",I);T(this,"Tokenizer",me);T(this,"Hooks",re);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 be(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 me(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 re;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];re.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 I.lex(e,t??this.defaults)}parser(e,t){return q.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?I.lex:I.lexInline,a=o.hooks?o.hooks.provideParser():e?q.parse:q.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>"+Z(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}}const W=new Lr;function R(s,e){return W.parse(s,e)}R.options=R.setOptions=function(s){return W.setOptions(s),R.defaults=W.defaults,Mt(R.defaults),R};R.getDefaults=Ue;R.defaults=K;R.use=function(...s){return W.use(...s),R.defaults=W.defaults,Mt(R.defaults),R};R.walkTokens=function(s,e){return W.walkTokens(s,e)};R.parseInline=W.parseInline;R.Parser=q;R.parser=q.parse;R.Renderer=be;R.TextRenderer=We;R.Lexer=I;R.lexer=I.lex;R.Tokenizer=me;R.Hooks=re;R.parse=R;R.options;R.setOptions;R.use;R.walkTokens;R.parseInline;q.parse;I.lex;const Or={id:"root"},Pr={class:"cb86951c"},$r={class:"c3ecdb44"},zr={class:"f2eea526"},Br={class:"a5cd95be"},Nr={class:"b83ee326"},Dr={class:"f6004764"},Fr={key:0,class:"fa81"},Ir={class:"fbb737a4"},qr={class:"ds-flex e0558cb1",style:{position:"absolute",right:"calc(100% + 18px)",top:"12px",gap:"12px"}},Ur={class:"ds-icon-button",tabindex:"0",style:{"--ds-icon-button-text-color":"#909090","--ds-icon-button-size":"20px"}},Mr=["onClick"],jr={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Hr={key:1,class:"f9bf7997 d7dc56a8 c05b5566"},Zr={class:"edb250b1"},Jr={key:0,class:"a6d716f5 db5991dd"},Vr={key:1,class:"a6d716f5 db5991dd"},Gr={key:2,class:"ds-loading b4e4476b",style:{"font-size":"20px"}},Wr={key:3,class:"e1675d8b"},Kr={class:"ba94db8a"},Qr={class:"ds-markdown ds-markdown--block",style:{"--ds-md-zoom":"1.143"}},Xr=["innerHTML"],Yr={class:"ds-flex",style:{"margin-top":"12px",height:"20px","align-items":"center",gap:"12px"}},ei={class:"ds-flex abe97156",style:{"align-items":"center",gap:"12px"}},ti={class:"ds-icon-button",tabindex:"0",style:{"--ds-icon-button-text-color":"#909090","--ds-icon-button-size":"20px"}},ni=["onClick"],si={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},ri={key:1,class:"a85a674a"},ii={class:"aaff8b8f"},oi={class:"cefa5c26"},li={class:"fad49dec"},ai=["onKeyup"],ci={class:"ec4f5d61"},ui={class:"bf38813a"},Pi=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()=>{await dn(),setTimeout(()=>{const x=l.value;x&&(!u.value||a.value)&&(x.scrollTop=x.scrollHeight)},100)},h=x=>{const k=x.currentTarget,v=Math.abs(k.scrollHeight-k.scrollTop-k.clientHeight)<50;console.log(k.scrollHeight-k.scrollTop-k.clientHeight),v?u.value=!1:u.value=!0};sn(()=>{e.value=Date.now().toString()});const d=()=>{if(w.value==!0){w.value=!1,a.value=!0;return}const x=r.value.length-1;if(r.value[x].role!="assistant"&&r.value.push({role:"assistant",sk:"",content:"",skLong:!1,msgCode:1}),r.value[x].msgCode==0){w.value=!1,a.value=!0;return}Gs({key:e.value,page:i.page,limit:i.limit}).then(k=>{if(k.code==1){for(let v=0;v<k.data.list.length;v++){const y=k.data.list[v];if(!o.value.has(y.id)){o.value.add(y.id);const D=r.value.length-1;y.reasoning==1?(r.value[D].skLong=!0,r.value[D].sk+=y.content):(r.value[D].skLong=!1,r.value[D].content+=y.content)}if(y.usage_json.length>0||y.usage_json.prompt_tokens){const D=r.value.length-1;r.value[D].content=R(r.value[D].content),r.value[D].skLong=!1,a.value=!0;return}c()}k.data.list.length==i.limit&&i.page++,d()}})},w=j(!1),f=()=>{if(!(!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;let x=r.value.at(-1);x.role=="assistant"&&x.content==""&&r.value.pop(),c(),Vs({key:e.value,messages:JSON.stringify(r.value)}).then(k=>{if(console.log(k),k.code==0){const v=r.value.length-1;r.value[v].skLong=!1,r.value[v].msgCode=0}}),d()}},g=()=>{window.location.reload()};rn(()=>{o.value.clear(),i.page=1});const m=x=>{navigator.clipboard.writeText(x)};on(()=>"10%");const E=x=>{x.shiftKey||(x.preventDefault(),f())},A=x=>x&&x.trim().replace(/[\s\r\n\t]/g,"").length>0,_=j(null),B=()=>{_.value&&_.value.focus()};return(x,k)=>{const v=gn("clippath");return $(),P("div",Or,[b("div",Pr,[b("div",$r,[b("div",zr,[b("div",Br,[b("div",Nr,[b("div",Dr,[t.value?($(),P("div",{key:0,class:"dad65929",onWheel:h,style:{"flex-grow":"0",margin:"0px auto",overflow:"auto"},ref_key:"chatContainerRef",ref:l},[($(!0),P(ln,null,an(r.value,y=>($(),P("div",null,[y.role=="user"?($(),P("div",Fr,[b("div",Ir,[Ae(Ke(y.content),1),b("div",qr,[b("div",Ur,[b("div",{onClick:D=>m(y.content),class:"ds-icon",style:{"font-size":"20px",width:"20px",height:"20px"}},[($(),P("svg",jr,[b("defs",null,[Qe(v,{id:"clip1257_20794"},{default:Xe(()=>k[1]||(k[1]=[b("rect",{id:"复制",width:"20.000000",height:"20.000000",fill:"white","fill-opacity":"0"},null,-1)])),_:1})]),k[2]||(k[2]=b("g",{"clip-path":"url(#clip1257_20794)"},[b("g",{"clip-path":"url(#clip1248_20193)"},[b("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"})]),b("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,Mr)])])])])):U("",!0),y.role=="assistant"?($(),P("div",Hr,[k[10]||(k[10]=b("div",{class:"eb23581b dfa60d66"},[b("img",{src:mn,style:{width:"100%","border-radius":"50%"}})],-1)),b("div",Zr,[y.skLong&&y.msgCode==1?($(),P("div",Jr,k[3]||(k[3]=[b("div",{class:"ds-icon acbf4957",style:{"font-size":"12px",width:"12px",height:"12px"}},[b("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("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"}),b("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),Ae("思考中... ")]))):U("",!0),!y.skLong&&y.msgCode==0?($(),P("div",Vr,k[4]||(k[4]=[b("div",{class:"ds-icon acbf4957",style:{"font-size":"12px",width:"12px",height:"12px"}},[b("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("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"}),b("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),Ae("您的请求过于频繁,请您稍后再试... ")]))):U("",!0),y.skLong&&y.msgCode==1?($(),P("div",Gr,k[5]||(k[5]=[Ee('<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)]))):U("",!0),A(y.sk)?($(),P("div",Wr,[k[6]||(k[6]=b("div",{class:"ecc93a3b"},null,-1)),b("p",Kr,Ke(y.sk),1)])):U("",!0)]),b("div",Qr,[b("div",{innerHTML:y.content},null,8,Xr)]),b("div",Yr,[b("div",ei,[b("div",ti,[b("div",{onClick:D=>m(y.content),class:"ds-icon",style:{"font-size":"20px",width:"20px",height:"20px"}},[($(),P("svg",si,[b("defs",null,[Qe(v,{id:"clip1257_20794"},{default:Xe(()=>k[7]||(k[7]=[b("rect",{id:"复制",width:"20.000000",height:"20.000000",fill:"white","fill-opacity":"0"},null,-1)])),_:1})]),k[8]||(k[8]=b("g",{"clip-path":"url(#clip1257_20794)"},[b("g",{"clip-path":"url(#clip1248_20193)"},[b("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"})]),b("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,ni)])]),k[9]||(k[9]=b("div",{style:{flex:"1 1 0%"}},null,-1))])])):U("",!0)]))),256))],544)):U("",!0),t.value?U("",!0):($(),P("div",ri,k[11]||(k[11]=[Ee('<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)]))),U("",!0),b("div",{class:"cbcaa82c",style:cn({bottom:t.value?"0px":"200px"})},[b("div",ii,[b("div",oi,[b("div",{class:"dd442025 b699646e",onClick:B},[b("div",li,[un(b("textarea",{"onUpdate:modelValue":k[0]||(k[0]=y=>n.value=y),id:"chat-input",class:"c92459f0",placeholder:"给 DeepSeek 发送消息 ",rows:"2",onKeyup:hn(fn(E,["prevent"]),["enter"]),ref_key:"textareaRef",ref:_},null,40,ai),[[pn,n.value]]),k[13]||(k[13]=b("div",{class:"b13855df"},null,-1))]),b("div",ci,[b("div",ui,[a.value?U("",!0):($(),P("div",{key:0,onClick:g,role:"button","aria-disabled":"false",class:"f6d670"},k[14]||(k[14]=[b("div",{class:"f286936b"},[b("div",{class:"be24146b"})],-1)]))),a.value?($(),P("div",{key:1,onClick:f,role:"button","aria-disabled":"false",class:"f6d670"},k[15]||(k[15]=[Ee('<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)]))):U("",!0)])])])])]),k[16]||(k[16]=b("div",{class:"fcaa63f8"},"内容由 AI 生成,请仔细甄别",-1)),k[17]||(k[17]=b("div",{class:"fcaa63f8",style:{"margin-top":"60px","font-size":"16px","font-weight":"600",color:"#1A9BFF"}},[b("div",{style:{"margin-bottom":"20px"}},"支持单位:"),b("div",{class:"support-units"},[b("div",null,"洛阳市行政审批和政务信息管理局"),b("div",null,"洛阳国晟投资控股集团有限公司"),b("div",null,"洛阳弘义公用事业投资发展集团有限公司"),b("div",null,"洛阳弘义智慧城市建设服务有限公司")])],-1))],4)])])])])])])])}}});export{Pi as default};