Files
wuhan-saga/client/dist/assets/index-8GqMb-ax.js
王文昊 cec461f229 feat(portal): 案例数据 SQL 与成功案例展示优化
- 新增/更新案例相关 SQL(初始化或补丁脚本)
- 首页精选案例:多卡轮播、非精选补足列表、工业风卡片
- 案例列表:无封面时深蓝工业风占位(客户水印与缩写铭牌)
2026-05-06 22:03:17 +08:00

10 lines
42 KiB
JavaScript

import{I as Le}from"./index-CzwJBVIC.js";const nr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Ge(e,t){return function(){return e.apply(t,arguments)}}const{toString:bt}=Object.prototype,{getPrototypeOf:ie}=Object,{iterator:ae,toStringTag:Qe}=Symbol,ce=(e=>t=>{const n=bt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>ce(t)===e),le=e=>t=>typeof t===e,{isArray:z}=Array,M=le("undefined");function v(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ze=L("ArrayBuffer");function Et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ze(e.buffer),t}const Rt=le("string"),P=le("function"),Ye=le("number"),K=e=>e!==null&&typeof e=="object",St=e=>e===!0||e===!1,ne=e=>{if(ce(e)!=="object")return!1;const t=ie(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Qe in e)&&!(ae in e)},Ot=e=>{if(!K(e)||v(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},At=L("Date"),Tt=L("File"),Ct=e=>!!(e&&typeof e.uri<"u"),Pt=e=>e&&typeof e.getParts<"u",xt=L("Blob"),_t=L("FileList"),Nt=e=>K(e)&&P(e.pipe);function Ft(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const De=Ft(),Ue=typeof De.FormData<"u"?De.FormData:void 0,Lt=e=>{if(!e)return!1;if(Ue&&e instanceof Ue)return!0;const t=ie(e);if(!t||t===Object.prototype||!P(e.append))return!1;const n=ce(e);return n==="formdata"||n==="object"&&P(e.toString)&&e.toString()==="[object FormData]"},Dt=L("URLSearchParams"),[Ut,Bt,kt,It]=["ReadableStream","Request","Response","Headers"].map(L),qt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(v(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function et(e,t){if(v(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tt=e=>!M(e)&&e!==I;function we(){const{caseless:e,skipUndefined:t}=tt(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&et(n,o)||o;ne(n[i])&&ne(s)?n[i]=we(n[i],s):ne(s)?n[i]=we({},s):z(s)?n[i]=s.slice():(!t||!M(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&X(arguments[s],r);return n}const jt=(e,t,n,{allOwnKeys:r}={})=>(X(t,(s,o)=>{n&&P(s)?Object.defineProperty(e,o,{value:Ge(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),$t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ht=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ie(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Jt=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!Ye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ie(Uint8Array)),Wt=(e,t)=>{const r=(e&&e[ae]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},vt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Kt=L("HTMLFormElement"),Xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gt=L("RegExp"),nt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};X(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Qt=e=>{nt(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return z(e)?r(e):r(String(e).split(t)),n},Yt=()=>{},en=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function tn(e){return!!(e&&P(e.append)&&e[Qe]==="FormData"&&e[ae])}const nn=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(v(r))return r;if(!("toJSON"in r)){t[s]=r;const o=z(r)?[]:{};return X(r,(i,c)=>{const p=n(i,s+1);!M(p)&&(o[c]=p)}),t[s]=void 0,o}}return r};return n(e,0)},rn=L("AsyncFunction"),sn=e=>e&&(K(e)||P(e))&&P(e.then)&&P(e.catch),rt=((e,t)=>e?setImmediate:t?((n,r)=>(I.addEventListener("message",({source:s,data:o})=>{s===I&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),I.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(I.postMessage)),on=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||rt,an=e=>e!=null&&P(e[ae]),a={isArray:z,isArrayBuffer:Ze,isBuffer:v,isFormData:Lt,isArrayBufferView:Et,isString:Rt,isNumber:Ye,isBoolean:St,isObject:K,isPlainObject:ne,isEmptyObject:Ot,isReadableStream:Ut,isRequest:Bt,isResponse:kt,isHeaders:It,isUndefined:M,isDate:At,isFile:Tt,isReactNativeBlob:Ct,isReactNative:Pt,isBlob:xt,isRegExp:Gt,isFunction:P,isStream:Nt,isURLSearchParams:Dt,isTypedArray:Vt,isFileList:_t,forEach:X,merge:we,extend:jt,trim:qt,stripBOM:$t,inherits:Ht,toFlatObject:Mt,kindOf:ce,kindOfTest:L,endsWith:zt,toArray:Jt,forEachEntry:Wt,matchAll:vt,isHTMLForm:Kt,hasOwnProperty:Be,hasOwnProp:Be,reduceDescriptors:nt,freezeMethods:Qt,toObjectSet:Zt,toCamelCase:Xt,noop:Yt,toFiniteNumber:en,findKey:et,global:I,isContextDefined:tt,isSpecCompliantForm:tn,toJSONObject:nn,isAsyncFn:rn,isThenable:sn,setImmediate:rt,asap:on,isIterable:an};let y=class st extends Error{static from(t,n,r,s,o,i){const c=new st(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){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:a.toJSONObject(this.config),code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const cn=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function ot(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){return e?e.concat(t).map(function(s,o){return s=ot(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function ln(e){return a.isArray(e)&&!e.some(be)}const un=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ue(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!a.isUndefined(b[f])});const r=n.metaTokens,s=n.visitor||g,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,p=n.maxDepth===void 0?100:n.maxDepth,d=c&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!d&&a.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function g(h,f,b){let D=h;if(a.isReactNative(t)&&a.isReactNativeBlob(h))return t.append(pe(b,f,o),l(h)),!1;if(h&&!b&&typeof h=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&ln(h)||(a.isFileList(h)||a.endsWith(f,"[]"))&&(D=a.toArray(h)))return f=ot(f),D.forEach(function(R,T){!(a.isUndefined(R)||R===null)&&t.append(i===!0?pe([f],T,o):i===null?f:f+"[]",l(R))}),!1}return be(h)?!0:(t.append(pe(b,f,o),l(h)),!1)}const w=[],E=Object.assign(un,{defaultVisitor:g,convertValue:l,isVisitable:be});function m(h,f,b=0){if(!a.isUndefined(h)){if(b>p)throw new y("Object is too deeply nested ("+b+" levels). Max depth: "+p,y.ERR_FORM_DATA_DEPTH_EXCEEDED);if(w.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));w.push(h),a.forEach(h,function(O,R){(!(a.isUndefined(O)||O===null)&&s.call(t,O,a.isString(R)?R.trim():R,f,E))===!0&&m(O,f?f.concat(R):[R],b+1)}),w.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Se(e,t){this._pairs=[],e&&ue(e,this,t)}const it=Se.prototype;it.append=function(t,n){this._pairs.push([t,n])};it.toString=function(t){const n=t?function(r){return t.call(this,r,ke)}:ke;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function dn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function at(e,t,n){if(!t)return e;const r=n&&n.encode||dn,s=a.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=a.isURLSearchParams(t)?t.toString():new Se(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ie{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},fn=typeof URLSearchParams<"u"?URLSearchParams:Se,pn=typeof FormData<"u"?FormData:null,hn=typeof Blob<"u"?Blob:null,mn={isBrowser:!0,classes:{URLSearchParams:fn,FormData:pn,Blob:hn},protocols:["http","https","file","blob","url","data"]},Ae=typeof window<"u"&&typeof document<"u",Ee=typeof navigator=="object"&&navigator||void 0,gn=Ae&&(!Ee||["ReactNative","NativeScript","NS"].indexOf(Ee.product)<0),yn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wn=Ae&&window.location.href||"http://localhost",bn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:gn,hasStandardBrowserWebWorkerEnv:yn,navigator:Ee,origin:wn},Symbol.toStringTag,{value:"Module"})),A={...bn,...mn};function En(e,t){return ue(e,new A.classes.URLSearchParams,{visitor:function(n,r,s,o){return A.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Rn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ct(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),p=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Sn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Rn(r),s,n,0)}),n}return null}const H=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function On(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:Oe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){const p=H(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return En(t,p).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=H(this,"env"),l=d&&d.FormData;return ue(c?{"files[]":t}:t,l&&new l,p)}}return o||s?(n.setContentType("application/json",!1),On(t)):t}],transformResponse:[function(t){const n=H(this,"transitional")||G.transitional,r=n&&n.forcedJSONParsing,s=H(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!s||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,H(this,"parseReviver"))}catch(p){if(c)throw p.name==="SyntaxError"?y.from(p,y.ERR_BAD_RESPONSE,this,null,H(this,"response")):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const An=a.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"]),Tn=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&An[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qe=Symbol("internals"),Cn=/[^\x09\x20-\x7E\x80-\xFF]/g;function Pn(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function W(e){return e&&String(e).trim().toLowerCase()}function xn(e){return Pn(e.replace(Cn,""))}function re(e){return e===!1||e==null?e:a.isArray(e)?e.map(re):xn(String(e))}function _n(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function he(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Fn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ln(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,p,d){const l=W(p);if(!l)throw new Error("header name must be a non-empty string");const g=a.findKey(s,l);(!g||s[g]===void 0||d===!0||d===void 0&&s[g]!==!1)&&(s[g||p]=re(c))}const i=(c,p)=>a.forEach(c,(d,l)=>o(d,l,p));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Nn(t))i(Tn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},p,d;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[d=l[0]]=(p=c[d])?a.isArray(p)?[...p,l[1]]:[p,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=W(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _n(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=W(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||he(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=W(i),i){const c=a.findKey(r,i);c&&(!n||he(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||he(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=re(s),delete n[o];return}const c=t?Fn(o):String(o).trim();c!==o&&delete n[o],n[c]=re(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[qe]=this[qe]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=W(i);r[c]||(Ln(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function me(e,t){const n=this||G,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function lt(e){return!!(e&&e.__CANCEL__)}let Q=class extends y{constructor(t,n,r){super(t??"canceled",y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ut(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Dn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Un(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const d=Date.now(),l=r[o];i||(i=d),n[s]=p,r[s]=d;let g=o,w=0;for(;g!==s;)w+=n[g++],g=g%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const E=l&&d-l;return E?Math.round(w*1e3/E):void 0}}function Bn(e,t){let n=0,r=1e3/t,s,o;const i=(d,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const l=Date.now(),g=l-n;g>=r?i(d,l):(s=d,o||(o=setTimeout(()=>{o=null,i(s)},r-g)))},()=>s&&i(s)]}const oe=(e,t,n=3)=>{let r=0;const s=Un(50,250);return Bn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,p=c!=null?Math.min(i,c):i,d=Math.max(0,p-r),l=s(d);r=Math.max(r,p);const g={loaded:p,total:c,progress:c?p/c:void 0,bytes:d,rate:l||void 0,estimated:l&&c?(c-p)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},je=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$e=e=>(...t)=>a.asap(()=>e(...t)),kn=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,In=A.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function qn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dt(e,t,n){let r=!qn(t);return e&&(r||n===!1)?jn(e,t):t}const He=e=>e instanceof x?{...e}:e;function j(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,l,g,w){return a.isPlainObject(d)&&a.isPlainObject(l)?a.merge.call({caseless:w},d,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(d,l,g,w){if(a.isUndefined(l)){if(!a.isUndefined(d))return r(void 0,d,g,w)}else return r(d,l,g,w)}function o(d,l){if(!a.isUndefined(l))return r(void 0,l)}function i(d,l){if(a.isUndefined(l)){if(!a.isUndefined(d))return r(void 0,d)}else return r(void 0,l)}function c(d,l,g){if(a.hasOwnProp(t,g))return r(d,l);if(a.hasOwnProp(e,g))return r(void 0,d)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(d,l,g)=>s(He(d),He(l),g,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const g=a.hasOwnProp(p,l)?p[l]:s,w=a.hasOwnProp(e,l)?e[l]:void 0,E=a.hasOwnProp(t,l)?t[l]:void 0,m=g(w,E,l);a.isUndefined(m)&&g!==c||(n[l]=m)}),n}const ft=e=>{const t=j({},e),n=w=>a.hasOwnProp(t,w)?t[w]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const p=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),g=n("url");if(t.headers=c=x.from(c),t.url=at(dt(d,g,l),e.params,e.paramsSerializer),p&&c.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),a.isFormData(r)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(a.isFunction(r.getHeaders)){const w=r.getHeaders(),E=["content-type","content-length"];Object.entries(w).forEach(([m,h])=>{E.includes(m.toLowerCase())&&c.set(m,h)})}}if(A.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&kn(t.url))){const E=o&&i&&In.read(i);E&&c.set(o,E)}return t},$n=typeof XMLHttpRequest<"u",Hn=$n&&function(e){return new Promise(function(n,r){const s=ft(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:p,onDownloadProgress:d}=s,l,g,w,E,m;function h(){E&&E(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let f=new XMLHttpRequest;f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout;function b(){if(!f)return;const O=x.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:e,request:f};ut(function(_){n(_),h()},function(_){r(_),h()},T),f=null}"onloadend"in f?f.onloadend=b:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(b)},f.onabort=function(){f&&(r(new y("Request aborted",y.ECONNABORTED,e,f)),f=null)},f.onerror=function(R){const T=R&&R.message?R.message:"Network Error",B=new y(T,y.ERR_NETWORK,e,f);B.event=R||null,r(B),f=null},f.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Oe;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new y(R,T.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,f)),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&a.forEach(i.toJSON(),function(R,T){f.setRequestHeader(T,R)}),a.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),c&&c!=="json"&&(f.responseType=s.responseType),d&&([w,m]=oe(d,!0),f.addEventListener("progress",w)),p&&f.upload&&([g,E]=oe(p),f.upload.addEventListener("progress",g),f.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=O=>{f&&(r(!O||O.type?new Q(null,e,f):O),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const D=Dn(s.url);if(D&&A.protocols.indexOf(D)===-1){r(new y("Unsupported protocol "+D+":",y.ERR_BAD_REQUEST,e));return}f.send(o||null)})},Mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(d){if(!s){s=!0,c();const l=d instanceof Error?d:this.reason;r.abort(l instanceof y?l:new Q(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:p}=r;return p.unsubscribe=()=>a.asap(c),p}},zn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Jn=async function*(e,t){for await(const n of Vn(e))yield*zn(n,t)},Vn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Me=(e,t,n,r)=>{const s=Jn(e,t);let o=0,i,c=p=>{i||(i=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:d,value:l}=await s.next();if(d){c(),p.close();return}let g=l.byteLength;if(n){let w=o+=g;n(w)}p.enqueue(new Uint8Array(l))}catch(d){throw c(d),d}},cancel(p){return c(p),s.return()}},{highWaterMark:2})},ze=64*1024,{isFunction:te}=a,Wn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Je,TextEncoder:Ve}=a.global,We=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vn=e=>{e=a.merge.call({skipUndefined:!0},Wn,e);const{fetch:t,Request:n,Response:r}=e,s=t?te(t):typeof fetch=="function",o=te(n),i=te(r);if(!s)return!1;const c=s&&te(Je),p=s&&(typeof Ve=="function"?(m=>h=>m.encode(h))(new Ve):async m=>new Uint8Array(await new n(m).arrayBuffer())),d=o&&c&&We(()=>{let m=!1;const h=new n(A.origin,{body:new Je,method:"POST",get duplex(){return m=!0,"half"}}),f=h.headers.has("Content-Type");return h.body!=null&&h.body.cancel(),m&&!f}),l=i&&c&&We(()=>a.isReadableStream(new r("").body)),g={stream:l&&(m=>m.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!g[m]&&(g[m]=(h,f)=>{let b=h&&h[m];if(b)return b.call(h);throw new y(`Response type '${m}' is not supported`,y.ERR_NOT_SUPPORT,f)})});const w=async m=>{if(m==null)return 0;if(a.isBlob(m))return m.size;if(a.isSpecCompliantForm(m))return(await new n(A.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(a.isArrayBufferView(m)||a.isArrayBuffer(m))return m.byteLength;if(a.isURLSearchParams(m)&&(m=m+""),a.isString(m))return(await p(m)).byteLength},E=async(m,h)=>{const f=a.toFiniteNumber(m.getContentLength());return f??w(h)};return async m=>{let{url:h,method:f,data:b,signal:D,cancelToken:O,timeout:R,onDownloadProgress:T,onUploadProgress:B,responseType:_,headers:J,withCredentials:Z="same-origin",fetchOptions:Ce}=ft(m),Pe=t||fetch;_=_?(_+"").toLowerCase():"text";let Y=Mn([D,O&&O.toAbortSignal()],R),V=null;const k=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let xe;try{if(B&&d&&f!=="get"&&f!=="head"&&(xe=await E(J,b))!==0){let N=new n(h,{method:"POST",body:b,duplex:"half"}),$;if(a.isFormData(b)&&($=N.headers.get("content-type"))&&J.setContentType($),N.body){const[fe,ee]=je(xe,oe($e(B)));b=Me(N.body,ze,fe,ee)}}a.isString(Z)||(Z=Z?"include":"omit");const C=o&&"credentials"in n.prototype;if(a.isFormData(b)){const N=J.getContentType();N&&/^multipart\/form-data/i.test(N)&&!/boundary=/i.test(N)&&J.delete("content-type")}const _e={...Ce,signal:Y,method:f.toUpperCase(),headers:J.normalize().toJSON(),body:b,duplex:"half",credentials:C?Z:void 0};V=o&&new n(h,_e);let U=await(o?Pe(V,Ce):Pe(h,_e));const Ne=l&&(_==="stream"||_==="response");if(l&&(T||Ne&&k)){const N={};["status","statusText","headers"].forEach(Fe=>{N[Fe]=U[Fe]});const $=a.toFiniteNumber(U.headers.get("content-length")),[fe,ee]=T&&je($,oe($e(T),!0))||[];U=new r(Me(U.body,ze,fe,()=>{ee&&ee(),k&&k()}),N)}_=_||"text";let wt=await g[a.findKey(g,_)||"text"](U,m);return!Ne&&k&&k(),await new Promise((N,$)=>{ut(N,$,{data:wt,headers:x.from(U.headers),status:U.status,statusText:U.statusText,config:m,request:V})})}catch(C){throw k&&k(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,m,V,C&&C.response),{cause:C.cause||C}):y.from(C,C&&C.code,m,V,C&&C.response)}}},Kn=new Map,pt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,p,d,l=Kn;for(;c--;)p=o[c],d=l.get(p),d===void 0&&l.set(p,d=c?new Map:vn(t)),l=d;return d};pt();const Te={http:cn,xhr:Hn,fetch:{get:pt}};a.forEach(Te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ve=e=>`- ${e}`,Xn=e=>a.isFunction(e)||e===null||e===!1;function Gn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!Xn(r)&&(s=Te[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([p,d])=>`adapter ${p} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
`+i.map(ve).join(`
`):" "+ve(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const ht={getAdapter:Gn,adapters:Te};function ge(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Q(null,e)}function Ke(e){return ge(e),e.headers=x.from(e.headers),e.data=me.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht.getAdapter(e.adapter||G.adapter,e)(e).then(function(r){return ge(e),r.data=me.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return lt(r)||(ge(e),r&&r.response&&(r.response.data=me.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const mt="1.15.2",de={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{de[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xe={};de.transitional=function(t,n,r){function s(o,i){return"[Axios v"+mt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Xe[i]&&(Xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};de.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Qn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],p=c===void 0||i(c,o,e);if(p!==!0)throw new y("option "+o+" must be "+p,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const se={assertOptions:Qn,validators:de},F=se.validators;let q=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ie,response:new Ie}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(`
`);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(`
`),c=i===-1?-1:o.indexOf(`
`,i+1),p=c===-1?"":o.slice(c+1);String(r.stack).endsWith(p)||(r.stack+=`
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=j(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&se.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean),legacyInterceptorReqResOrdering:F.transitional(F.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:se.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),se.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=x.concat(i,o);const c=[];let p=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(n)===!1)return;p=p&&h.synchronous;const f=n.transitional||Oe;f&&f.legacyInterceptorReqResOrdering?c.unshift(h.fulfilled,h.rejected):c.push(h.fulfilled,h.rejected)});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let l,g=0,w;if(!p){const m=[Ke.bind(this),void 0];for(m.unshift(...c),m.push(...d),w=m.length,l=Promise.resolve(n);g<w;)l=l.then(m[g++],m[g++]);return l}w=c.length;let E=n;for(;g<w;){const m=c[g++],h=c[g++];try{E=m(E)}catch(f){h.call(this,f);break}}try{l=Ke.call(this,E)}catch(m){return Promise.reject(m)}for(g=0,w=d.length;g<w;)l=l.then(d[g++],d[g++]);return l}getUri(t){t=j(this.defaults,t);const n=dt(t.baseURL,t.url,t.allowAbsoluteUrls);return at(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(j(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(j(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});let Zn=class gt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Q(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gt(function(s){t=s}),cancel:t}}};function Yn(e){return function(n){return e.apply(null,n)}}function er(e){return a.isObject(e)&&e.isAxiosError===!0}const Re={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Re).forEach(([e,t])=>{Re[t]=e});function yt(e){const t=new q(e),n=Ge(q.prototype.request,t);return a.extend(n,q.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return yt(j(e,s))},n}const S=yt(G);S.Axios=q;S.CanceledError=Q;S.CancelToken=Zn;S.isCancel=lt;S.VERSION=mt;S.toFormData=ue;S.AxiosError=y;S.Cancel=S.CanceledError;S.all=function(t){return Promise.all(t)};S.spread=Yn;S.isAxiosError=er;S.mergeConfig=j;S.AxiosHeaders=x;S.formToJSON=e=>ct(a.isHTMLForm(e)?new FormData(e):e);S.getAdapter=ht.getAdapter;S.HttpStatusCode=Re;S.default=S;const{Axios:ir,AxiosError:ar,CanceledError:cr,isCancel:lr,CancelToken:ur,VERSION:dr,all:fr,Cancel:pr,isAxiosError:hr,spread:mr,toFormData:gr,AxiosHeaders:yr,HttpStatusCode:wr,formToJSON:br,getAdapter:Er,mergeConfig:Rr}=S,u=S.create({baseURL:"/api",timeout:15e3,headers:{"Content-Type":"application/json"}});u.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=t),e.data instanceof FormData&&delete e.headers["Content-Type"],e},e=>Promise.reject(e));u.interceptors.response.use(e=>{const t=e.data;return t.code!==200?(Le.error(t.msg||"请求失败"),t.code===401&&(localStorage.removeItem("token"),window.location.href="/admin/login"),Promise.reject(new Error(t.msg||"请求失败"))):t},e=>(Le.error(e.message||"网络错误"),Promise.reject(e)));function ye(){return{}}const Sr={getCompanyInfo:()=>u.get("/portal/company"),getContact:()=>u.get("/portal/company/contact"),getBanners:()=>u.get("/portal/banner"),getAboutList:e=>u.get("/portal/about",{params:{sectionType:e}}),getWorkshops:()=>u.get("/portal/workshop"),getProductCategories:e=>u.get("/portal/product/category",{params:e}),getProductLines:e=>u.get("/portal/product/line",{params:e}),getProductLineById:e=>u.get(`/portal/product/line/${e}`),getEquipments:e=>u.get("/portal/product/equipment",{params:e}),getEquipmentById:e=>u.get(`/portal/product/equipment/${e}`),getSpareParts:e=>u.get("/portal/product/spare",{params:e}),getSparePartById:e=>u.get(`/portal/product/spare/${e}`),getTechnologies:()=>u.get("/portal/technology"),getCaseCategories:()=>u.get("/portal/case/category"),getCases:e=>u.get("/portal/case",{params:e}),getCaseById:e=>u.get(`/portal/case/${e}`),getNewsCategories:()=>u.get("/portal/news/category",{params:{...ye()}}),getNewsList:e=>u.get("/portal/news",{params:{...ye(),...e}}),getNewsById:e=>u.get(`/portal/news/${e}`,{params:{...ye()}})},Or={login:e=>u.post("/admin/auth/login",e),logout:()=>u.post("/admin/auth/logout"),getUserInfo:()=>u.get("/admin/auth/info"),getCompanyInfo:()=>u.get("/admin/company"),updateCompanyInfo:e=>u.put("/admin/company",e),getContact:()=>u.get("/admin/company/contact"),updateContact:e=>u.put("/admin/company/contact",e),getBanners:e=>u.get("/admin/banner",{params:e}),getBannerById:e=>u.get(`/admin/banner/${e}`),addBanner:e=>u.post("/admin/banner",e),updateBanner:e=>u.put("/admin/banner",e),deleteBanner:e=>u.delete(`/admin/banner/${e}`),getAboutList:e=>u.get("/admin/about",{params:e}),getAboutById:e=>u.get(`/admin/about/${e}`),addAbout:e=>u.post("/admin/about",e),updateAbout:e=>u.put("/admin/about",e),deleteAbout:e=>u.delete(`/admin/about/${e}`),getWorkshops:e=>u.get("/admin/workshop",{params:e}),addWorkshop:e=>u.post("/admin/workshop",e),updateWorkshop:e=>u.put("/admin/workshop",e),deleteWorkshop:e=>u.delete(`/admin/workshop/${e}`),getProductCategories:()=>u.get("/admin/product-category"),addProductCategory:e=>u.post("/admin/product-category",e),updateProductCategory:e=>u.put("/admin/product-category",e),deleteProductCategory:e=>u.delete(`/admin/product-category/${e}`),getProductLines:e=>u.get("/admin/product-line",{params:e}),getProductLineById:e=>u.get(`/admin/product-line/${e}`),addProductLine:e=>u.post("/admin/product-line",e),updateProductLine:e=>u.put("/admin/product-line",e),deleteProductLine:e=>u.delete(`/admin/product-line/${e}`),updateLineEquipments:(e,t)=>u.put(`/admin/product-line/${e}/equipments`,{equipmentIds:t}),getAvailableEquipments:()=>u.get("/admin/product-line/available-equipments"),getEquipments:e=>u.get("/admin/equipment",{params:e}),addEquipment:e=>u.post("/admin/equipment",e),updateEquipment:e=>u.put("/admin/equipment",e),deleteEquipment:e=>u.delete(`/admin/equipment/${e}`),getSpareParts:e=>u.get("/admin/spare-part",{params:e}),addSparePart:e=>u.post("/admin/spare-part",e),updateSparePart:e=>u.put("/admin/spare-part",e),deleteSparePart:e=>u.delete(`/admin/spare-part/${e}`),getTechnologies:()=>u.get("/admin/technology"),addTechnology:e=>u.post("/admin/technology",e),updateTechnology:e=>u.put("/admin/technology",e),deleteTechnology:e=>u.delete(`/admin/technology/${e}`),getCases:e=>u.get("/admin/case",{params:e}),addCase:e=>u.post("/admin/case",e),updateCase:e=>u.put("/admin/case",e),deleteCase:e=>u.delete(`/admin/case/${e}`),getCaseCategories:()=>u.get("/admin/case/category"),addCaseCategory:e=>u.post("/admin/case/category",e),deleteCaseCategory:e=>u.delete(`/admin/case/category/${e}`),getNewsList:e=>u.get("/admin/news",{params:{...e}}),addNews:e=>u.post("/admin/news",e),updateNews:e=>u.put("/admin/news",e),deleteNews:e=>u.delete(`/admin/news/${e}`),getNewsCategories:e=>u.get("/admin/news/category",{params:{...e}}),addNewsCategory:e=>u.post("/admin/news/category",e),deleteNewsCategory:e=>u.delete(`/admin/news/category/${e}`),uploadFile:e=>u.post("/admin/media/upload",e),getMediaList:e=>u.get("/admin/media",{params:e}),deleteMedia:e=>u.delete(`/admin/media/${e}`)};export{nr as _,Or as a,Sr as p};