@vtj/pro 0.12.52 → 0.12.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +5 -5
  13. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  15. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +21 -21
  16. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  17. package/dist/assets/{@element-plus-icons-vue-jKsd_nI4.js → @element-plus-icons-vue-F28aem0n.js} +1 -1
  18. package/dist/assets/@vueuse-CAg6njPM.js +1 -0
  19. package/dist/assets/{Editor-ii10HHlW-BN0h2hzJ.js → Editor-B0W8dFkq-CMoJ22-K.js} +23 -23
  20. package/dist/assets/{Editor-ii10HHlW-DSn1dzJb.css → Editor-B0W8dFkq-f_KLmGGl.css} +1 -1
  21. package/dist/assets/{auth-B8bh8qJq.js → auth-J8VFp0XS.js} +1 -1
  22. package/dist/assets/element-plus-C4VDY0xv.css +1 -0
  23. package/dist/assets/element-plus-DPYGYUH0.js +13 -0
  24. package/dist/assets/{index-BjdyRWzZ.js → index-7Vw08OnR.js} +1 -1
  25. package/dist/assets/index-t0VZj-zf.js +2 -0
  26. package/dist/assets/{page-DHmkeEU1.js → page-D_pRowu5.js} +2 -2
  27. package/dist/assets/{preview-CG9PSLwT.js → preview-ZCV9Yngf.js} +2 -2
  28. package/dist/assets/{uni-page-C6qrCsDE.js → uni-page-oZBEEVfo.js} +1 -1
  29. package/dist/assets/{utils-DcYUCxC5.js → utils-DGuq5Kzl.js} +1 -1
  30. package/dist/assets/{vue-MHV4BENM.js → vue-lxu90ABC.js} +1 -1
  31. package/dist/assets/{vue-router-hcT7vYFE.js → vue-router-BQ6kViA5.js} +1 -1
  32. package/dist/assets/{vxe-esnFbwoN.js → vxe-DdSKlx0d.js} +1 -1
  33. package/dist/index.html +9 -9
  34. package/dist/uni/assets/{index-DqYMLqPH.js → index-CzHP-wGI.js} +8 -8
  35. package/dist/uni/index.html +1 -1
  36. package/package.json +12 -12
  37. package/dist/assets/@vueuse-RQ0puv-F.js +0 -1
  38. package/dist/assets/element-plus-BOEdeikv.js +0 -13
  39. package/dist/assets/element-plus-DcTadS-P.css +0 -1
  40. package/dist/assets/index-w6SuO8q4.js +0 -2
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
11
  <script>
12
- var __BUILD_TIME__ = '1751853725939';
12
+ var __BUILD_TIME__ = '1751934119239';
13
13
  (function () {
14
14
  const regex = /<!--{{(\d*)}}-->/;
15
15
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -25,19 +25,19 @@
25
25
  });
26
26
  })();
27
27
  </script>
28
- <!--{{1751853725939}}-->
28
+ <!--{{1751934119239}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-w6SuO8q4.js"></script>
31
- <link rel="modulepreload" crossorigin href="./assets/vue-MHV4BENM.js">
30
+ <script type="module" crossorigin src="./assets/index-t0VZj-zf.js"></script>
31
+ <link rel="modulepreload" crossorigin href="./assets/vue-lxu90ABC.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">
33
- <link rel="modulepreload" crossorigin href="./assets/@vueuse-RQ0puv-F.js">
34
- <link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-jKsd_nI4.js">
33
+ <link rel="modulepreload" crossorigin href="./assets/@vueuse-CAg6njPM.js">
34
+ <link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-F28aem0n.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/shared-DgX_DHMy.js">
36
36
  <link rel="modulepreload" crossorigin href="./assets/dayjs-DO-COJPZ.js">
37
- <link rel="modulepreload" crossorigin href="./assets/element-plus-BOEdeikv.js">
37
+ <link rel="modulepreload" crossorigin href="./assets/element-plus-DPYGYUH0.js">
38
38
  <link rel="modulepreload" crossorigin href="./assets/monaco-editor-CrbCX11s.js">
39
- <link rel="modulepreload" crossorigin href="./assets/vue-router-hcT7vYFE.js">
40
- <link rel="stylesheet" crossorigin href="./assets/element-plus-DcTadS-P.css">
39
+ <link rel="modulepreload" crossorigin href="./assets/vue-router-BQ6kViA5.js">
40
+ <link rel="stylesheet" crossorigin href="./assets/element-plus-C4VDY0xv.css">
41
41
  <link rel="stylesheet" crossorigin href="./assets/monaco-editor-Cpw7ccEV.css">
42
42
  <link rel="stylesheet" crossorigin href="./assets/index-B-FTarqg.css">
43
43
 
@@ -51,20 +51,20 @@ version: 2.9.0
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.12.52
54
+ * @version 0.12.54
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const Ld="VueMaterial",Vd="VueRouterMaterial",Hd={[Ld]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Vd]:["RouterView","RouterLink"]};let qd=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var zd=Object.defineProperty,Kd=(e,t,r)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lt=(e,t,r)=>Kd(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Wd=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wd));function vo(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jd}=Object.prototype,{getPrototypeOf:fn}=Object,{iterator:Ze,toStringTag:bo}=Symbol,Qe=(e=>t=>{const r=Jd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Qe(t)===e),Xe=e=>t=>typeof t===e,{isArray:se}=Array,ye=Xe("undefined");function Yd(e){return e!==null&&!ye(e)&&e.constructor!==null&&!ye(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wo=gt("ArrayBuffer");function Gd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wo(e.buffer),t}const Zd=Xe("string"),ot=Xe("function"),_o=Xe("number"),tr=e=>e!==null&&typeof e=="object",Qd=e=>e===!0||e===!1,Ie=e=>{if(Qe(e)!=="object")return!1;const t=fn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bo in e)&&!(Ze in e)},Xd=gt("Date"),tg=gt("File"),eg=gt("Blob"),rg=gt("FileList"),ng=e=>tr(e)&&ot(e.pipe),ig=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Qe(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},sg=gt("URLSearchParams"),[og,ag,ug,cg]=["ReadableStream","Request","Response","Headers"].map(gt),lg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),se(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Eo(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,So=e=>!ye(e)&&e!==Ft;function Mr(){const{caseless:e}=So(this)&&this||{},t={},r=(n,i)=>{const s=e&&Eo(t,i)||i;Ie(t[s])&&Ie(n)?t[s]=Mr(t[s],n):Ie(n)?t[s]=Mr({},n):se(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&_e(arguments[n],r);return t}const fg=(e,t,r,{allOwnKeys:n}={})=>(_e(t,(i,s)=>{r&&ot(i)?e[s]=vo(i,r):e[s]=i},{allOwnKeys:n}),e),hg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},dg=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&fn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},gg=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},mg=e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!_o(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},yg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fn(Uint8Array)),vg=(e,t)=>{const r=(e&&e[Ze]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},bg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},wg=gt("HTMLFormElement"),_g=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Ai=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Eg=gt("RegExp"),xo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Sg=e=>{xo(e,(t,r)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return se(e)?n(e):n(String(e).split(t)),r},Tg=()=>{},Ag=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rg(e){return!!(e&&ot(e.append)&&e[bo]==="FormData"&&e[Ze])}const Og=e=>{const t=new Array(10),r=(n,i)=>{if(tr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=se(n)?[]:{};return _e(n,(o,u)=>{const l=r(o,i+1);!ye(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},$g=gt("AsyncFunction"),jg=e=>e&&(tr(e)||ot(e))&&ot(e.then)&&ot(e.catch),To=((e,t)=>e?setImmediate:t?((r,n)=>(Ft.addEventListener("message",({source:i,data:s})=>{i===Ft&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ft.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ot(Ft.postMessage)),Dg=typeof queueMicrotask<"u"?queueMicrotask.bind(Ft):typeof process<"u"&&process.nextTick||To,Bg=e=>e!=null&&ot(e[Ze]),A={isArray:se,isArrayBuffer:wo,isBuffer:Yd,isFormData:ig,isArrayBufferView:Gd,isString:Zd,isNumber:_o,isBoolean:Qd,isObject:tr,isPlainObject:Ie,isReadableStream:og,isRequest:ag,isResponse:ug,isHeaders:cg,isUndefined:ye,isDate:Xd,isFile:tg,isBlob:eg,isRegExp:Eg,isFunction:ot,isStream:ng,isURLSearchParams:sg,isTypedArray:yg,isFileList:rg,forEach:_e,merge:Mr,extend:fg,trim:lg,stripBOM:hg,inherits:pg,toFlatObject:dg,kindOf:Qe,kindOfTest:gt,endsWith:gg,toArray:mg,forEachEntry:vg,matchAll:bg,isHTMLForm:wg,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:xo,freezeMethods:Sg,toObjectSet:xg,toCamelCase:_g,noop:Tg,toFiniteNumber:Ag,findKey:Eo,global:Ft,isContextDefined:So,isSpecCompliantForm:Rg,toJSONObject:Og,isAsyncFn:$g,isThenable:jg,setImmediate:To,asap:Dg,isIterable:Bg};function K(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}A.inherits(K,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:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Ao=K.prototype,Ro={};["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(e=>{Ro[e]={value:e}});Object.defineProperties(K,Ro);Object.defineProperty(Ao,"isAxiosError",{value:!0});K.from=(e,t,r,n,i,s)=>{const o=Object.create(Ao);return A.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),K.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Cg=null;function Ur(e){return A.isPlainObject(e)||A.isArray(e)}function Oo(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ri(e,t,r){return e?e.concat(t).map(function(n,i){return n=Oo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Ng(e){return A.isArray(e)&&!e.some(Ur)}const Ig=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function er(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!A.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(A.isDate(h))return h.toISOString();if(!u&&A.isBlob(h))throw new K("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(h)||A.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(A.isArray(h)&&Ng(h)||(A.isFileList(h)||A.endsWith(d,"[]"))&&(b=A.toArray(h)))return d=Oo(d),b.forEach(function(E,y){!(A.isUndefined(E)||E===null)&&t.append(o===!0?Ri([d],y,s):o===null?d:d+"[]",l(E))}),!1}return Ur(h)?!0:(t.append(Ri(g,d,s),l(h)),!1)}const c=[],f=Object.assign(Ig,{defaultVisitor:a,convertValue:l,isVisitable:Ur});function p(h,d){if(!A.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),A.forEach(h,function(g,b){(!(A.isUndefined(g)||g===null)&&i.call(t,g,A.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Oi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hn(e,t){this._pairs=[],e&&er(e,this,t)}const $o=hn.prototype;$o.append=function(e,t){this._pairs.push([e,t])};$o.toString=function(e){const t=e?function(r){return e.call(this,r,Oi)}:Oi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Pg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jo(e,t,r){if(!t)return e;const n=r&&r.encode||Pg;A.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new hn(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let $i=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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 Do={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kg=typeof URLSearchParams<"u"?URLSearchParams:hn,Fg=typeof FormData<"u"?FormData:null,Mg=typeof Blob<"u"?Blob:null,Ug={isBrowser:!0,classes:{URLSearchParams:kg,FormData:Fg,Blob:Mg},protocols:["http","https","file","blob","url","data"]},pn=typeof window<"u"&&typeof document<"u",Lr=typeof navigator=="object"&&navigator||void 0,Lg=pn&&(!Lr||["ReactNative","NativeScript","NS"].indexOf(Lr.product)<0),Vg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hg=pn&&window.location.href||"http://localhost",qg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pn,hasStandardBrowserEnv:Lg,hasStandardBrowserWebWorkerEnv:Vg,navigator:Lr,origin:Hg},Symbol.toStringTag,{value:"Module"})),rt=H(H({},qg),Ug);function zg(e,t){return er(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Kg(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wg(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Bo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&A.isArray(i)?i.length:o,l?(A.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!A.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&A.isArray(i[o])&&(i[o]=Wg(i[o])),!u)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(Kg(n),i,r,0)}),r}return null}function Jg(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ee={transitional:Do,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(Bo(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zg(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return er(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Jg(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Ee.headers[e]={}});const Yg=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"]),Gg=e=>{const t={};let r,n,i;return e&&e.split(`
56
+ */const Ld="VueMaterial",Vd="VueRouterMaterial",Hd={[Ld]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Vd]:["RouterView","RouterLink"]};let qd=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var zd=Object.defineProperty,Kd=(e,t,r)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lt=(e,t,r)=>Kd(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Wd=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wd));function vo(e,t){return function(){return e.apply(t,arguments)}}const{toString:Jd}=Object.prototype,{getPrototypeOf:fn}=Object,{iterator:Ze,toStringTag:bo}=Symbol,Qe=(e=>t=>{const r=Jd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Qe(t)===e),Xe=e=>t=>typeof t===e,{isArray:se}=Array,ye=Xe("undefined");function Yd(e){return e!==null&&!ye(e)&&e.constructor!==null&&!ye(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wo=gt("ArrayBuffer");function Gd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wo(e.buffer),t}const Zd=Xe("string"),ot=Xe("function"),_o=Xe("number"),tr=e=>e!==null&&typeof e=="object",Qd=e=>e===!0||e===!1,Ie=e=>{if(Qe(e)!=="object")return!1;const t=fn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bo in e)&&!(Ze in e)},Xd=gt("Date"),tg=gt("File"),eg=gt("Blob"),rg=gt("FileList"),ng=e=>tr(e)&&ot(e.pipe),ig=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Qe(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},sg=gt("URLSearchParams"),[og,ag,ug,cg]=["ReadableStream","Request","Response","Headers"].map(gt),lg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),se(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Eo(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,So=e=>!ye(e)&&e!==Ft;function Mr(){const{caseless:e}=So(this)&&this||{},t={},r=(n,i)=>{const s=e&&Eo(t,i)||i;Ie(t[s])&&Ie(n)?t[s]=Mr(t[s],n):Ie(n)?t[s]=Mr({},n):se(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&_e(arguments[n],r);return t}const fg=(e,t,r,{allOwnKeys:n}={})=>(_e(t,(i,s)=>{r&&ot(i)?e[s]=vo(i,r):e[s]=i},{allOwnKeys:n}),e),hg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},dg=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&fn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},gg=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},mg=e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!_o(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},yg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fn(Uint8Array)),vg=(e,t)=>{const r=(e&&e[Ze]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},bg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},wg=gt("HTMLFormElement"),_g=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Ai=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Eg=gt("RegExp"),xo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Sg=e=>{xo(e,(t,r)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return se(e)?n(e):n(String(e).split(t)),r},Tg=()=>{},Ag=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rg(e){return!!(e&&ot(e.append)&&e[bo]==="FormData"&&e[Ze])}const Og=e=>{const t=new Array(10),r=(n,i)=>{if(tr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=se(n)?[]:{};return _e(n,(o,u)=>{const l=r(o,i+1);!ye(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},$g=gt("AsyncFunction"),jg=e=>e&&(tr(e)||ot(e))&&ot(e.then)&&ot(e.catch),To=((e,t)=>e?setImmediate:t?((r,n)=>(Ft.addEventListener("message",({source:i,data:s})=>{i===Ft&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ft.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ot(Ft.postMessage)),Dg=typeof queueMicrotask<"u"?queueMicrotask.bind(Ft):typeof process<"u"&&process.nextTick||To,Bg=e=>e!=null&&ot(e[Ze]),A={isArray:se,isArrayBuffer:wo,isBuffer:Yd,isFormData:ig,isArrayBufferView:Gd,isString:Zd,isNumber:_o,isBoolean:Qd,isObject:tr,isPlainObject:Ie,isReadableStream:og,isRequest:ag,isResponse:ug,isHeaders:cg,isUndefined:ye,isDate:Xd,isFile:tg,isBlob:eg,isRegExp:Eg,isFunction:ot,isStream:ng,isURLSearchParams:sg,isTypedArray:yg,isFileList:rg,forEach:_e,merge:Mr,extend:fg,trim:lg,stripBOM:hg,inherits:pg,toFlatObject:dg,kindOf:Qe,kindOfTest:gt,endsWith:gg,toArray:mg,forEachEntry:vg,matchAll:bg,isHTMLForm:wg,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:xo,freezeMethods:Sg,toObjectSet:xg,toCamelCase:_g,noop:Tg,toFiniteNumber:Ag,findKey:Eo,global:Ft,isContextDefined:So,isSpecCompliantForm:Rg,toJSONObject:Og,isAsyncFn:$g,isThenable:jg,setImmediate:To,asap:Dg,isIterable:Bg};function K(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}A.inherits(K,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:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Ao=K.prototype,Ro={};["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(e=>{Ro[e]={value:e}});Object.defineProperties(K,Ro);Object.defineProperty(Ao,"isAxiosError",{value:!0});K.from=(e,t,r,n,i,s)=>{const o=Object.create(Ao);return A.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),K.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Cg=null;function Ur(e){return A.isPlainObject(e)||A.isArray(e)}function Oo(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ri(e,t,r){return e?e.concat(t).map(function(n,i){return n=Oo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Ng(e){return A.isArray(e)&&!e.some(Ur)}const Ig=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function er(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!A.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))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(!u&&A.isBlob(h))throw new K("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(h)||A.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(A.isArray(h)&&Ng(h)||(A.isFileList(h)||A.endsWith(d,"[]"))&&(b=A.toArray(h)))return d=Oo(d),b.forEach(function(E,y){!(A.isUndefined(E)||E===null)&&t.append(o===!0?Ri([d],y,s):o===null?d:d+"[]",l(E))}),!1}return Ur(h)?!0:(t.append(Ri(g,d,s),l(h)),!1)}const c=[],f=Object.assign(Ig,{defaultVisitor:a,convertValue:l,isVisitable:Ur});function p(h,d){if(!A.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),A.forEach(h,function(g,b){(!(A.isUndefined(g)||g===null)&&i.call(t,g,A.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Oi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hn(e,t){this._pairs=[],e&&er(e,this,t)}const $o=hn.prototype;$o.append=function(e,t){this._pairs.push([e,t])};$o.toString=function(e){const t=e?function(r){return e.call(this,r,Oi)}:Oi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Pg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jo(e,t,r){if(!t)return e;const n=r&&r.encode||Pg;A.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new hn(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let $i=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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 Do={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kg=typeof URLSearchParams<"u"?URLSearchParams:hn,Fg=typeof FormData<"u"?FormData:null,Mg=typeof Blob<"u"?Blob:null,Ug={isBrowser:!0,classes:{URLSearchParams:kg,FormData:Fg,Blob:Mg},protocols:["http","https","file","blob","url","data"]},pn=typeof window<"u"&&typeof document<"u",Lr=typeof navigator=="object"&&navigator||void 0,Lg=pn&&(!Lr||["ReactNative","NativeScript","NS"].indexOf(Lr.product)<0),Vg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hg=pn&&window.location.href||"http://localhost",qg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pn,hasStandardBrowserEnv:Lg,hasStandardBrowserWebWorkerEnv:Vg,navigator:Lr,origin:Hg},Symbol.toStringTag,{value:"Module"})),rt=H(H({},qg),Ug);function zg(e,t){return er(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Kg(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wg(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Bo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&A.isArray(i)?i.length:o,l?(A.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!A.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&A.isArray(i[o])&&(i[o]=Wg(i[o])),!u)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(Kg(n),i,r,0)}),r}return null}function Jg(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ee={transitional:Do,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(Bo(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zg(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return er(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Jg(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Ee.headers[e]={}});const Yg=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"]),Gg=e=>{const t={};let r,n,i;return e&&e.split(`
57
57
  `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Yg[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ji=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return e===!1||e==null?e:A.isArray(e)?e.map(Pe):String(e)}function Zg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Qg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vr(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function Xg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function tm(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let at=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=fe(l);if(!c)throw new Error("header name must be a non-empty string");const f=A.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Pe(u))}const o=(u,l)=>A.forEach(u,(a,c)=>s(a,c,l));if(A.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(A.isString(t)&&(t=t.trim())&&!Qg(t))o(Gg(t),r);else if(A.isObject(t)&&A.isIterable(t)){let u={},l,a;for(const c of t){if(!A.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?A.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=fe(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Zg(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fe(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||vr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=fe(o),o){const u=A.findKey(n,o);u&&(!r||vr(n,n[u],u,r))&&(delete n[u],i=!0)}}return A.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||vr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return A.forEach(this,(i,s)=>{const o=A.findKey(n,s);if(o){r[o]=Pe(i),delete r[s];return}const u=t?Xg(s):String(s).trim();u!==s&&delete r[s],r[u]=Pe(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
- `)}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,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[ji]=this[ji]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=fe(s);r[o]||(tm(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(at.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(at);function br(e,t){const r=this||Ee,n=t||r,i=at.from(n.headers);let s=n.data;return A.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Co(e){return!!(e&&e.__CANCEL__)}function oe(e,t,r){K.call(this,e!=null?e:"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(oe,K,{__CANCEL__:!0});function No(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function em(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=a&&l-a;return p?Math.round(f*1e3/p):void 0}}function nm(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const He=(e,t,r=3)=>{let n=0;const i=rm(50,250);return nm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Di=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bi=e=>(...t)=>A.asap(()=>e(...t)),im=rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,sm=rt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),A.isString(n)&&o.push("path="+n),A.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function om(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function am(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Io(e,t,r){let n=!om(t);return e&&(n||r==!1)?am(e,t):t}const Ci=e=>e instanceof at?H({},e):e;function Vt(e,t){t=t||{};const r={};function n(a,c,f,p){return A.isPlainObject(a)&&A.isPlainObject(c)?A.merge.call({caseless:p},a,c):A.isPlainObject(c)?A.merge({},c):A.isArray(c)?c.slice():c}function i(a,c,f,p){if(A.isUndefined(c)){if(!A.isUndefined(a))return n(void 0,a,f,p)}else return n(a,c,f,p)}function s(a,c){if(!A.isUndefined(c))return n(void 0,c)}function o(a,c){if(A.isUndefined(c)){if(!A.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in e)return n(void 0,a)}const l={url:s,method:s,data:s,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:u,headers:(a,c,f)=>i(Ci(a),Ci(c),f,!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);A.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Po=e=>{const t=Vt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=at.from(o),t.url=jo(Io(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(A.isFormData(r)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(rt.hasStandardBrowserEnv&&(n&&A.isFunction(n)&&(n=n(t)),n||n!==!1&&im(t.url))){const a=i&&s&&sm.read(s);a&&o.set(i,a)}return t},um=typeof XMLHttpRequest<"u",cm=um&&function(e){return new Promise(function(t,r){const n=Po(e);let i=n.data;const s=at.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function b(){if(!g)return;const y=at.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};No(function(w){t(w),d()},function(w){r(w),d()},v),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new K("Request aborted",K.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Do;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new K(y,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&A.forEach(s.toJSON(),function(y,v){g.setRequestHeader(v,y)}),A.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,h]=He(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,p]=He(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{g&&(r(!y||y.type?new oe(null,e,g):y),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=em(n.url);if(E&&rt.protocols.indexOf(E)===-1){r(new K("Unsupported protocol "+E+":",K.ERR_BAD_REQUEST,e));return}g.send(i||null)})},lm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof K?c:new oe(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>A.asap(u),l}},fm=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},hm=function(e,t){return ur(this,null,function*(){try{for(var r=vn(pm(e)),n,i,s;n=!(i=yield new Ct(r.next())).done;n=!1){const o=i.value;yield*cr(fm(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ct(i.call(r)))}finally{if(s)throw s[0]}}})},pm=function(e){return ur(this,null,function*(){if(e[Symbol.asyncIterator]){yield*cr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Ct(t.read());if(r)break;yield n}}finally{yield new Ct(t.cancel())}})},Ni=(e,t,r,n)=>{const i=hm(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},rr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ko=rr&&typeof ReadableStream=="function",dm=rr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Fo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},gm=ko&&Fo(()=>{let e=!1;const t=new Request(rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ii=64*1024,Vr=ko&&Fo(()=>A.isReadableStream(new Response("").body)),qe={stream:Vr&&(e=>e.body)};rr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qe[t]&&(qe[t]=A.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const mm=e=>k(null,null,function*(){if(e==null)return 0;if(A.isBlob(e))return e.size;if(A.isSpecCompliantForm(e))return(yield new Request(rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(A.isArrayBufferView(e)||A.isArrayBuffer(e))return e.byteLength;if(A.isURLSearchParams(e)&&(e=e+""),A.isString(e))return(yield dm(e)).byteLength}),ym=(e,t)=>k(null,null,function*(){const r=A.toFiniteNumber(e.getContentLength());return r!=null?r:mm(t)}),vm=rr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Po(e);a=a?(a+"").toLowerCase():"text";let h=lm([i,s&&s.toAbortSignal()],o),d;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(l&&gm&&r!=="get"&&r!=="head"&&(b=yield ym(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),m;if(A.isFormData(n)&&(m=S.headers.get("content-type"))&&c.setContentType(m),S.body){const[x,R]=Di(b,He(Bi(l)));n=Ni(S.body,Ii,x,R)}}A.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,et(H({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Vr&&(a==="stream"||a==="response");if(Vr&&(u||v&&g)){const S={};["status","statusText","headers"].forEach(U=>{S[U]=y[U]});const m=A.toFiniteNumber(y.headers.get("content-length")),[x,R]=u&&Di(m,He(Bi(u),!0))||[];y=new Response(Ni(y.body,Ii,x,()=>{R&&R(),g&&g()}),S)}a=a||"text";let w=yield qe[A.findKey(qe,a)||"text"](y,e);return!v&&g&&g(),yield new Promise((S,m)=>{No(S,m,{data:w,headers:at.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw g&&g(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,d),{cause:E.cause||E}):K.from(E,E&&E.code,e,d)}})),Hr={http:Cg,xhr:cm,fetch:vm};A.forEach(Hr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Pi=e=>`- ${e}`,bm=e=>A.isFunction(e)||e===null||e===!1,Mo={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!bm(r)&&(n=Hr[(o=String(r)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
58
+ `)}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,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[ji]=this[ji]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=fe(s);r[o]||(tm(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(at.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(at);function br(e,t){const r=this||Ee,n=t||r,i=at.from(n.headers);let s=n.data;return A.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Co(e){return!!(e&&e.__CANCEL__)}function oe(e,t,r){K.call(this,e!=null?e:"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(oe,K,{__CANCEL__:!0});function No(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function em(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=a&&l-a;return p?Math.round(f*1e3/p):void 0}}function nm(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const He=(e,t,r=3)=>{let n=0;const i=rm(50,250);return nm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Di=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bi=e=>(...t)=>A.asap(()=>e(...t)),im=rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,sm=rt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),A.isString(n)&&o.push("path="+n),A.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function om(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function am(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Io(e,t,r){let n=!om(t);return e&&(n||r==!1)?am(e,t):t}const Ci=e=>e instanceof at?H({},e):e;function Vt(e,t){t=t||{};const r={};function n(a,c,f,p){return A.isPlainObject(a)&&A.isPlainObject(c)?A.merge.call({caseless:p},a,c):A.isPlainObject(c)?A.merge({},c):A.isArray(c)?c.slice():c}function i(a,c,f,p){if(A.isUndefined(c)){if(!A.isUndefined(a))return n(void 0,a,f,p)}else return n(a,c,f,p)}function s(a,c){if(!A.isUndefined(c))return n(void 0,c)}function o(a,c){if(A.isUndefined(c)){if(!A.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in e)return n(void 0,a)}const l={url:s,method:s,data:s,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:u,headers:(a,c,f)=>i(Ci(a),Ci(c),f,!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);A.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Po=e=>{const t=Vt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=at.from(o),t.url=jo(Io(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(A.isFormData(r)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(rt.hasStandardBrowserEnv&&(n&&A.isFunction(n)&&(n=n(t)),n||n!==!1&&im(t.url))){const a=i&&s&&sm.read(s);a&&o.set(i,a)}return t},um=typeof XMLHttpRequest<"u",cm=um&&function(e){return new Promise(function(t,r){const n=Po(e);let i=n.data;const s=at.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function b(){if(!g)return;const y=at.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};No(function(w){t(w),d()},function(w){r(w),d()},v),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new K("Request aborted",K.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Do;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new K(y,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&A.forEach(s.toJSON(),function(y,v){g.setRequestHeader(v,y)}),A.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,h]=He(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,p]=He(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{g&&(r(!y||y.type?new oe(null,e,g):y),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=em(n.url);if(E&&rt.protocols.indexOf(E)===-1){r(new K("Unsupported protocol "+E+":",K.ERR_BAD_REQUEST,e));return}g.send(i||null)})},lm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof K?c:new oe(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>A.asap(u),l}},fm=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},hm=function(e,t){return ur(this,null,function*(){try{for(var r=vn(pm(e)),n,i,s;n=!(i=yield new Ct(r.next())).done;n=!1){const o=i.value;yield*cr(fm(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ct(i.call(r)))}finally{if(s)throw s[0]}}})},pm=function(e){return ur(this,null,function*(){if(e[Symbol.asyncIterator]){yield*cr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Ct(t.read());if(r)break;yield n}}finally{yield new Ct(t.cancel())}})},Ni=(e,t,r,n)=>{const i=hm(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},rr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ko=rr&&typeof ReadableStream=="function",dm=rr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Fo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},gm=ko&&Fo(()=>{let e=!1;const t=new Request(rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ii=64*1024,Vr=ko&&Fo(()=>A.isReadableStream(new Response("").body)),qe={stream:Vr&&(e=>e.body)};rr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qe[t]&&(qe[t]=A.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const mm=e=>k(null,null,function*(){if(e==null)return 0;if(A.isBlob(e))return e.size;if(A.isSpecCompliantForm(e))return(yield new Request(rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(A.isArrayBufferView(e)||A.isArrayBuffer(e))return e.byteLength;if(A.isURLSearchParams(e)&&(e=e+""),A.isString(e))return(yield dm(e)).byteLength}),ym=(e,t)=>k(null,null,function*(){const r=A.toFiniteNumber(e.getContentLength());return r!=null?r:mm(t)}),vm=rr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Po(e);a=a?(a+"").toLowerCase():"text";let h=lm([i,s&&s.toAbortSignal()],o),d;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(l&&gm&&r!=="get"&&r!=="head"&&(b=yield ym(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),m;if(A.isFormData(n)&&(m=S.headers.get("content-type"))&&c.setContentType(m),S.body){const[x,R]=Di(b,He(Bi(l)));n=Ni(S.body,Ii,x,R)}}A.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,et(H({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d,p);const v=Vr&&(a==="stream"||a==="response");if(Vr&&(u||v&&g)){const S={};["status","statusText","headers"].forEach(U=>{S[U]=y[U]});const m=A.toFiniteNumber(y.headers.get("content-length")),[x,R]=u&&Di(m,He(Bi(u),!0))||[];y=new Response(Ni(y.body,Ii,x,()=>{R&&R(),g&&g()}),S)}a=a||"text";let w=yield qe[A.findKey(qe,a)||"text"](y,e);return!v&&g&&g(),yield new Promise((S,m)=>{No(S,m,{data:w,headers:at.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw g&&g(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,d),{cause:E.cause||E}):K.from(E,E&&E.code,e,d)}})),Hr={http:Cg,xhr:cm,fetch:vm};A.forEach(Hr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Pi=e=>`- ${e}`,bm=e=>A.isFunction(e)||e===null||e===!1,Mo={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!bm(r)&&(n=Hr[(o=String(r)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
59
59
  `+s.map(Pi).join(`
60
- `):" "+Pi(s[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Hr};function wr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oe(null,e)}function ki(e){return wr(e),e.headers=at.from(e.headers),e.data=br.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mo.getAdapter(e.adapter||Ee.adapter)(e).then(function(t){return wr(e),t.data=br.call(e,e.transformResponse,t),t.headers=at.from(t.headers),t},function(t){return Co(t)||(wr(e),t&&t.response&&(t.response.data=br.call(e,e.transformResponse,t.response),t.response.headers=at.from(t.response.headers))),Promise.reject(t)})}const Uo="1.9.0",nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fi={};nr.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Uo+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new K(n(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Fi[s]&&(Fi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};nr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function wm(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const u=e[s],l=u===void 0||o(u,s,e);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const ke={assertOptions:wm,validators:nr},mt=ke.validators;let Mt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $i,response:new $i}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
61
- `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ke.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:ke.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ke.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=at.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[ki.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(b){g.call(this,b);break}}try{c=ki.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Vt(this.defaults,t);const r=Io(t.baseURL,t.url,t.allowAbsoluteUrls);return jo(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){Mt.prototype[e]=function(t,r){return this.request(Vt(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Vt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Mt.prototype[e]=t(),Mt.prototype[e+"Form"]=t(!0)});let _m=class Lo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new oe(i,s,o),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Lo(function(r){t=r}),cancel:t}}};function Em(e){return function(t){return e.apply(null,t)}}function Sm(e){return A.isObject(e)&&e.isAxiosError===!0}const qr={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(qr).forEach(([e,t])=>{qr[t]=e});function Vo(e){const t=new Mt(e),r=vo(Mt.prototype.request,t);return A.extend(r,Mt.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Vo(Vt(e,n))},r}const Q=Vo(Ee);Q.Axios=Mt;Q.CanceledError=oe;Q.CancelToken=_m;Q.isCancel=Co;Q.VERSION=Uo;Q.toFormData=er;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(e){return Promise.all(e)};Q.spread=Em;Q.isAxiosError=Sm;Q.mergeConfig=Vt;Q.AxiosHeaders=at;Q.formToJSON=e=>Bo(A.isHTMLForm(e)?new FormData(e):e);Q.getAdapter=Mo.getAdapter;Q.HttpStatusCode=qr;Q.default=Q;const{Axios:Q0,AxiosError:X0,CanceledError:t1,isCancel:e1,CancelToken:r1,VERSION:n1,all:i1,Cancel:s1,isAxiosError:o1,spread:a1,toFormData:u1,AxiosHeaders:c1,HttpStatusCode:l1,formToJSON:f1,getAdapter:h1,mergeConfig:p1}=Q,xm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Tm=["put","post","patch"],Mi="Local-Request-Id",Am=100,Rm=300;let Om=class{constructor(e={}){lt(this,"axios"),lt(this,"settings"),lt(this,"records",{}),lt(this,"isLoading",!1),lt(this,"stopSkipWarn"),lt(this,"showLoading"),lt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=yr(e,["settings","query"]);this.axios=Q.create(he({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Js(this.openLoading.bind(this),Am),this.showError=qp(this._showError.bind(this),Rm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=he(this.settings,e.settings||{});const t=yr(e,["settings","query"]);this.axios.defaults=he(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=H(H({"Content-Type":xm[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Mi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Tm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=H({},i)):s==="form"?a=H(H(H({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=H(H({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=lo(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=jd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=he({},this.settings,e.settings||{}),n=e.query||{},i=yr(e,["settings","query"]),s=Td(!1),o=Q.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(H({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[Mi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(H({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function dn(e={}){const t=new Om(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(H({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const zr=dn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Kr=typeof window<"u";function $m(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Ho{constructor(t={}){lt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),lt(this,"caches",{}),lt(this,"types"),this.types={local:Kr?window.localStorage:this.caches,session:Kr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=H(H({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);f&&(u=JSON.parse(f))}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=H(H({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const _r=new Ho;function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},jm=Fe.exports,Ui;function Dm(){return Ui||(Ui=1,function(e,t){(function(r,n){n(t,e)})(jm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var E=c.jsonpCallbackFunction||s(),y=h+"_"+E;window[E]=function(w){g({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(E),u(y),window[E]=function(){o(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(E),u(y),d&&clearTimeout(d)}})}n.exports=l})}(Fe,Fe.exports)),Fe.exports}var Bm=Dm();const Cm=qo(Bm);function Nm(e){if(Kr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Im(e=""){const t=e.match(co);return t?t[0]:""}function zo(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Wr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Ko(e,t){t=typeof t=="string"?Wr(t):t;const r=e.split("?")[0],n=Wr(e),i=Object.assign({},n,t),s=zo(i);return s?[r,s].join("?"):e}const Me=Object.freeze(Object.defineProperty({__proto__:null,append:Ko,getCurrentHost:Nm,getHost:Im,parse:Wr,stringify:zo},Symbol.toStringTag,{value:"Module"}));function Wo(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Vp(e)(n||{}));const i=Ko(e,n);return yield(yield Cm(i,t)).json()})}var Er,Li;function Pm(){if(Li)return Er;Li=1,Er=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Er}var km=Pm();const Fm=qo(km);function Vi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Fm(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Hi={debug:-1,log:0,info:0,warn:1,error:2},Mm=function(e,t,r,n){return function(...i){if(t&&Hi[t]<=Hi[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Um(i,r))}};function Um(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Lm(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const Vm={level:"warn",bizName:"*"};class Hm{constructor(t){lt(this,"config"),lt(this,"options"),this.options=H(H({},Vm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Lm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Mm(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function qm(e){return new Hm(e)}const te=qm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var zm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Jr(e,t){function r(i,s,o){if(!(typeof document>"u")){o=De({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",De({},s,{expires:-1}))},withAttributes:function(i){return Jr(this.converter,De({},this.attributes,i))},withConverter:function(i){return Jr(De({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var gn=Jr(zm,{path:"/"});function Km(e,t,r){gn.set(e,t,r)}function Wm(e){return gn.get(e)}function Jm(e,t){gn.remove(e,t)}const Sr=Object.freeze(Object.defineProperty({__proto__:null,get:Wm,remove:Jm,set:Km},Symbol.toStringTag,{value:"Module"}));/**!
60
+ `):" "+Pi(s[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Hr};function wr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oe(null,e)}function ki(e){return wr(e),e.headers=at.from(e.headers),e.data=br.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mo.getAdapter(e.adapter||Ee.adapter)(e).then(function(t){return wr(e),t.data=br.call(e,e.transformResponse,t),t.headers=at.from(t.headers),t},function(t){return Co(t)||(wr(e),t&&t.response&&(t.response.data=br.call(e,e.transformResponse,t.response),t.response.headers=at.from(t.response.headers))),Promise.reject(t)})}const Uo="1.10.0",nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fi={};nr.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Uo+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new K(n(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Fi[s]&&(Fi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};nr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function wm(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const u=e[s],l=u===void 0||o(u,s,e);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const ke={assertOptions:wm,validators:nr},mt=ke.validators;let Mt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $i,response:new $i}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
61
+ `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ke.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:ke.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ke.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=at.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[ki.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(b){g.call(this,b);break}}try{c=ki.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Vt(this.defaults,t);const r=Io(t.baseURL,t.url,t.allowAbsoluteUrls);return jo(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){Mt.prototype[e]=function(t,r){return this.request(Vt(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Vt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Mt.prototype[e]=t(),Mt.prototype[e+"Form"]=t(!0)});let _m=class Lo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new oe(i,s,o),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Lo(function(r){t=r}),cancel:t}}};function Em(e){return function(t){return e.apply(null,t)}}function Sm(e){return A.isObject(e)&&e.isAxiosError===!0}const qr={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(qr).forEach(([e,t])=>{qr[t]=e});function Vo(e){const t=new Mt(e),r=vo(Mt.prototype.request,t);return A.extend(r,Mt.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Vo(Vt(e,n))},r}const Q=Vo(Ee);Q.Axios=Mt;Q.CanceledError=oe;Q.CancelToken=_m;Q.isCancel=Co;Q.VERSION=Uo;Q.toFormData=er;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(e){return Promise.all(e)};Q.spread=Em;Q.isAxiosError=Sm;Q.mergeConfig=Vt;Q.AxiosHeaders=at;Q.formToJSON=e=>Bo(A.isHTMLForm(e)?new FormData(e):e);Q.getAdapter=Mo.getAdapter;Q.HttpStatusCode=qr;Q.default=Q;const{Axios:Q0,AxiosError:X0,CanceledError:t1,isCancel:e1,CancelToken:r1,VERSION:n1,all:i1,Cancel:s1,isAxiosError:o1,spread:a1,toFormData:u1,AxiosHeaders:c1,HttpStatusCode:l1,formToJSON:f1,getAdapter:h1,mergeConfig:p1}=Q,xm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Tm=["put","post","patch"],Mi="Local-Request-Id",Am=100,Rm=300;let Om=class{constructor(e={}){lt(this,"axios"),lt(this,"settings"),lt(this,"records",{}),lt(this,"isLoading",!1),lt(this,"stopSkipWarn"),lt(this,"showLoading"),lt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=yr(e,["settings","query"]);this.axios=Q.create(he({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Js(this.openLoading.bind(this),Am),this.showError=qp(this._showError.bind(this),Rm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=he(this.settings,e.settings||{});const t=yr(e,["settings","query"]);this.axios.defaults=he(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=H(H({"Content-Type":xm[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Mi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Tm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=H({},i)):s==="form"?a=H(H(H({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=H(H({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=lo(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=jd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=he({},this.settings,e.settings||{}),n=e.query||{},i=yr(e,["settings","query"]),s=Td(!1),o=Q.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(H({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[Mi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(H({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function dn(e={}){const t=new Om(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(H({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const zr=dn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Kr=typeof window<"u";function $m(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}let Ho=class{constructor(t={}){lt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),lt(this,"caches",{}),lt(this,"types"),this.types={local:Kr?window.localStorage:this.caches,session:Kr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=H(H({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);f&&(u=JSON.parse(f))}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=H(H({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}};const _r=new Ho;function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},jm=Fe.exports,Ui;function Dm(){return Ui||(Ui=1,function(e,t){(function(r,n){n(t,e)})(jm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var E=c.jsonpCallbackFunction||s(),y=h+"_"+E;window[E]=function(w){g({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(E),u(y),window[E]=function(){o(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(E),u(y),d&&clearTimeout(d)}})}n.exports=l})}(Fe,Fe.exports)),Fe.exports}var Bm=Dm();const Cm=qo(Bm);function Nm(e){if(Kr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Im(e=""){const t=e.match(co);return t?t[0]:""}function zo(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Wr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Ko(e,t){t=typeof t=="string"?Wr(t):t;const r=e.split("?")[0],n=Wr(e),i=Object.assign({},n,t),s=zo(i);return s?[r,s].join("?"):e}const Me=Object.freeze(Object.defineProperty({__proto__:null,append:Ko,getCurrentHost:Nm,getHost:Im,parse:Wr,stringify:zo},Symbol.toStringTag,{value:"Module"}));function Wo(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Vp(e)(n||{}));const i=Ko(e,n);return yield(yield Cm(i,t)).json()})}var Er,Li;function Pm(){if(Li)return Er;Li=1,Er=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Er}var km=Pm();const Fm=qo(km);function Vi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Fm(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Hi={debug:-1,log:0,info:0,warn:1,error:2},Mm=function(e,t,r,n){return function(...i){if(t&&Hi[t]<=Hi[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Um(i,r))}};function Um(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Lm(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const Vm={level:"warn",bizName:"*"};class Hm{constructor(t){lt(this,"config"),lt(this,"options"),this.options=H(H({},Vm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Lm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Mm(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function qm(e){return new Hm(e)}const te=qm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var zm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Jr(e,t){function r(i,s,o){if(!(typeof document>"u")){o=De({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",De({},s,{expires:-1}))},withAttributes:function(i){return Jr(this.converter,De({},this.attributes,i))},withConverter:function(i){return Jr(De({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var gn=Jr(zm,{path:"/"});function Km(e,t,r){gn.set(e,t,r)}function Wm(e){return gn.get(e)}function Jm(e,t){gn.remove(e,t)}const Sr=Object.freeze(Object.defineProperty({__proto__:null,get:Wm,remove:Jm,set:Km},Symbol.toStringTag,{value:"Module"}));/**!
62
62
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
63
  * @name @vtj/renderer
64
64
  * @author CHC chenhuachun1549@dingtalk.com
65
- * @version 0.12.52
65
+ * @version 0.12.54
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const xr="0.12.52";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const qi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Ym=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Gm={String,Number,Boolean,Array,Object,Function,Date},Ue="VtjPage",Tr="VtjHomepage",Zm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),Qm="component,slot".split(",");function Be(e,t){return e.map(r=>lo(r)||r.startsWith("/")?r:`${t}${r}`)}function ir(e){return/\.css$/.test(e)}function sr(e){return/\.js$/.test(e)}function Xm(e){return/\.json$/.test(e)}function ty(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function ey(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:g,localeLibrary:b})=>{p==null||p.forEach(E=>{sr(E)&&i.push(ty(E,r)),ir(E)&&s.push(E)}),d&&(u.push(d),l[d]=Be(p||[],t),b&&(a[d]=b)),h&&o.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Be(i,t),css:Be(s,t),materials:Be(o,t),libraryExports:u,materialExports:Rd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function ry(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function ny(e=[]){const t=e.filter(n=>ir(n)),r=e.filter(n=>sr(n));return{css:t,js:r}}function iy(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(E,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const m=a.substring(E,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
67
+ */const xr="0.12.54";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const qi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Ym=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Gm={String,Number,Boolean,Array,Object,Function,Date},Ue="VtjPage",Tr="VtjHomepage",Zm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),Qm="component,slot".split(",");function Be(e,t){return e.map(r=>lo(r)||r.startsWith("/")?r:`${t}${r}`)}function ir(e){return/\.css$/.test(e)}function sr(e){return/\.js$/.test(e)}function Xm(e){return/\.json$/.test(e)}function ty(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function ey(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:g,localeLibrary:b})=>{p==null||p.forEach(E=>{sr(E)&&i.push(ty(E,r)),ir(E)&&s.push(E)}),d&&(u.push(d),l[d]=Be(p||[],t),b&&(a[d]=b)),h&&o.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Be(i,t),css:Be(s,t),materials:Be(o,t),libraryExports:u,materialExports:Rd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function ry(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function ny(e=[]){const t=e.filter(n=>ir(n)),r=e.filter(n=>sr(n));return{css:t,js:r}}function iy(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(E,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const m=a.substring(E,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
68
68
  `),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function Jo(e){return $t(e)?e:JSON.stringify(e)}function mn(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?iy(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function sy(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&mn(window,e,r)})}function Yo(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function Go(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=p=>{a(p)},o.appendChild(f)}})})}function oy(e){return Lt(e)||Lt(e==null?void 0:e.install)}function ay(e){return Qm.includes(e)}function uy(e){return Zm.includes(e)}function ve(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function be(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(l,a)=>`__self${a}`),o=s.join(`
69
69
  `)+o;const u=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",u)(t)}catch(s){if(te.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function ze(e,t,r=!1,n=!1){var s;const i=be(e,t,r,n);if(typeof i!="function"&&(te.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function pt(e){return e&&e.type==="JSExpression"}function or(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const cy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},ly=Symbol("access");class fy{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},cy,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===tt.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(_r.save(r,t,{type:"local",prefix:n}),i&&Sr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,_r.remove(t,{type:"local",prefix:r}),n&&Sr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Ti(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ti(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(ly,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>xi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?xi(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=_r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Sr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ue){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Lt(i)?(i(),r(!1)):$t(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield un(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function hy(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:dn({settings:H({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:Wo,notify:t,loading:r,useTitle:o,startupComponent:i,access:s?new fy(H({alert:u},s)):void 0}}function py(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(H({},e.jsonpOptions),{query:i}));{const i=e.headers?be(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(H({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(he(s,u||{},{data:o})))}}function dy(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function gy(e=[],t=[],r){const n={};for(const i of e)n[i.id]=py(i,r);for(const i of t)n[i.id]=dy(i,r);return n}function my(){return k(this,arguments,function*(e=[],t=window){const r=ve(t);r&&(Zo(t),e.forEach(n=>vy(r,n)))})}function yy(e,t=window){const r=or(e.mockTemplate)&&e.mockTemplate.value?ze(e.mockTemplate,{},!0):void 0,n=ve(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){te.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function vy(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=ln(`${r}(.*)`),s=Bd(r,{decode:decodeURIComponent}),o=be(n,{},!0);e.mock(i,u=>{var f;const l=Me.parse(u.url)||{},a=u.body instanceof FormData?$m(u.body):u.body,c=(f=s(u.url))==null?void 0:f.params;return Object.assign(u,{data:a,params:l,query:c}),e.mock(o(u))})}}function Zo(e=window){const t=ve(e);t&&(t._mocked={})}class by{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Ke){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&qi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){qi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ze({type:i,value:s},this)}else return ze(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return be({type:i,value:s},this)}else return be(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield un(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=H(H({},this.context),t),n=et(H({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Yr(e){var f,p;const{Vue:t=Ke,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new by({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(H({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:H({},_y((f=u.value.props)!=null?f:[],a)),setup(h){var v,w,S,m;a.$props=h,a.props=h,u.value.id&&mn(e.window||window,u.value.id,u.value.css||"",!0),a.state=Ey(t,(v=u.value.state)!=null?v:{},a);const d=Sy(t,(w=u.value.computed)!=null?w:{},a),g=xy((S=u.value.methods)!=null?S:{},a),b=Ty(t,u.value.inject,a);for(const[x,R]of Object.entries(b||{}))b[x]=t.inject(x,R);const E=Ay(u.value.dataSources||{},a),y=H(H(H(H({},b),d),g),E);return a.setup(y,t),Ry(t,(m=u.value.watch)!=null?m:[],a),{vtj:a}},emits:wy(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?re(h[0],a,t,o,h):h.map(d=>re(d,a,t,o,h))}},Oy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function wy(e=[]){return e.map(t=>$t(t)?t:t.name)}function _y(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Gm[i]):void 0;return e.map(n=>$t(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:pt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Ey(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return pt(s)?s=r.__parseExpression(s):or(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Sy(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function xy(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Ty(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=pt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=pt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function Ay(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=yy(i);else if(i.ref){const s=t.$apis[i.ref],o=or(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function Ry(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Oy(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield un(0),Lt(s)&&s()}),r},{})}const $y=new Ud;let Ar=[],Yt={};const jy=e=>e;function Qo(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>sr(u));if(s.length===0||!i)return null;const o=n.filter(u=>ir(u));return o.length&&Yo(o,t),yield Go(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function Gr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Ar.forEach(i=>{delete n.window[i]}),Ar=[]),(i,s,o=Ke)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Yt[s.id]||(yield $y.add(s.id,()=>t(s.id)));return u&&(u.name=i,Yt[s.id]=u),u?Yr(et(H({},n),{Vue:o,dsl:Xn(u),mode:tt.Runtime,loader:Gr(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Yt[s.url]||(yield r(s.url));return u&&(u.name=i,Yt[s.url]=u),u?Yr(et(H({},n),{Vue:o,dsl:Xn(u),mode:tt.Runtime,loader:Gr(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Yt[s.library]:null;return u||(s.library&&Ar.push(s.library),u=Yt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield Qo(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function re(e,t,r=Ke,n=jy,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:g,vHtml:b,others:E}=Xo(l);if(!s&&(c||f))return null;if(a&&!By(a,t))return Py(e,t,r,n,i);const y=(w,S=0)=>{var j,N,L,M;const m=w.$components,x=(()=>{var q,O,D,C;if(e.name==="component")return Cy(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const V=n(e.name,e.from,r);if($t(V))return ay(V)||uy(V)?V:(C=(D=m[V])!=null?D:(O=o==null?void 0:o.app)==null?void 0:O.component(V))!=null?C:V;if(ct(V)&&e.id){const I=`Loader${e.id}_${S}`;return m[I]||(m[I]=V)}return V})(),R=Ny(u,(j=e.props)!=null?j:{},w),U=Iy(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return ky(r,e,R,w,n);g&&Object.assign(R,w.__parseExpression(g.value)),h&&(R.style=Object.assign((L=R.style)!=null?L:{},My(h,w))),b&&Object.assign(R,Uy(b,w)),d.forEach(V=>{Object.assign(R,Ly(r,V,w))});const _=Vy(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,H(H(H({key:`${u}_${S}`},F),R),U),_);const P=o?Dy(o,E,w):[];return P.length&&(B=r.withDirectives(B,P)),B};return p?zy(p,y,t):y(t)}function Dy(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function Xo(e=[]){const t=e.find(c=>wt(c.name)==="vIf"),r=e.find(c=>wt(c.name)==="vElseIf"),n=e.find(c=>wt(c.name)==="vElse"),i=e.find(c=>wt(c.name)==="vFor"),s=e.find(c=>wt(c.name)==="vShow"),o=e.find(c=>wt(c.name)==="vBind"),u=e.find(c=>wt(c.name)==="vHtml"),l=e.filter(c=>wt(c.name)==="vModel"),a=e.filter(c=>!Ym.includes(wt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function By(e,t){return!!t.__parseExpression(e.value)}function Cy(e,t){return t?pt(t)?e.__parseExpression(t):t:"div"}function Ny(e,t,r){const n=Zr(t,r);return n.ref=r.__ref(e,n.ref),n}function Zr(e,t){return pt(e)?t.__parseExpression(e):or(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Zr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Zr(i,t),r},{}):e}function Iy(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=ta(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+As(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function Py(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=Xo(u);if(l){if(t.__parseExpression(l.value))return re(i[o],t,r,n,i,!0);continue}if(a)return re(i[o],t,r,n,i,!0)}return null}function ta(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function ky(e,t,r,n,i){var l;const{children:s}=t,o=Fy(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?$t(s)?e.createTextVNode(s):pt(s)?e.createTextVNode(Jo(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>re(a,n,e,i,s)):null:null}function Fy(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:pt(n)?t.__parseExpression(n):n,params:[]}}function My(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Uy(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Ly(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
70
70
  ${t.value.value} = v;
@@ -72,6 +72,6 @@ version: 2.9.0
72
72
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/uni
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.12.52
75
+ * @version 0.12.54
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
77
  */const r0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Ki="/pages",n0="VTJ",i0="__UNI__1FC118B",s0="VTJ移动跨端项目",o0="1.0.0",a0="100",u0=!1,c0={},l0={enable:!1},f0="3",h0={name:n0,appid:i0,description:s0,versionName:o0,versionCode:a0,transformPx:u0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:c0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:l0,vueVersion:f0},p0=[],d0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},g0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},m0={pages:p0,globalStyle:d0,easycom:g0};function y0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},e),{manifestJson:Object.assign({},h0,t),pagesJson:Object.assign({},m0,r,{pages:i})})}const Qr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ia(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Qr[n]&&(t[Qr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function v0(e){const t={};for(const r in e)Qr[r]||(t[r]=e[r]);return t}function b0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function w0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function _0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function E0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function S0(e){var u;const t=E0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function x0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=w0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=S0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:b0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:_0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const T0="4.57";function A0(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},v0(a)),{navigationBar:ia(a),isNVue:!1}),compilerVersion:T0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function R0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function O0(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function $0(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:H({type:"default"},ia(i)),isNVue:!1,route:c?c.pagePath:n},s)}function j0(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=$0(n,o,u),a=O0(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function D0(e,t,r=window){mn(r,String(e),t)}function B0(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function C0(e){const t=y0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;x0(t,l),A0(t,l),R0(i,l),j0(r,i,s,o,l),D0(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(B0,i),p.use(c),p}function N0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{r0.includes(n)&&i&&(r[n]=t(i))}),r}function Wi(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function I0(n){return k(this,arguments,function*(e,t=!1,r=Ki){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:Wi(e,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===Ki?"/":r;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:Wi(e,f.id),style:{navigationStyle:"custom"}})}return s})}function P0(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function sa(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function k0(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const F0=hy({loading:P0,notify:sa}),oa=new e0(Xy(sa)),M0=k0(),{provider:U0,onReady:L0}=Jy({nodeEnv:"production",mode:tt.Runtime,modules:M0,materialPath:"../",adapter:F0,service:oa,dependencies:{Vue:()=>_n(()=>import("./@dcloudio-uni-h5-vue-BPSV-pNw.js").then(e=>e.J),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>_n(()=>import("./vue-router-Uz_q6KEP.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),V0=e=>k(null,null,function*(){const t=(yield oa.getExtension().catch(()=>null))||{},r=top||window,n=yield Gy(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=N0(u,d=>ze(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield I0(e,!0),h=C0({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});L0(()=>V0(U0));
@@ -13,7 +13,7 @@
13
13
  <title></title>
14
14
  <!--preload-links-->
15
15
  <!--app-context-->
16
- <script type="module" crossorigin src="./assets/index-DqYMLqPH.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-CzHP-wGI.js"></script>
17
17
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BPSV-pNw.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.12.52",
4
+ "version": "0.12.54",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,21 +21,21 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.52",
25
- "@vtj/designer": "~0.12.52",
26
- "@vtj/local": "~0.12.52",
27
- "@vtj/renderer": "~0.12.52",
28
- "@vtj/materials": "~0.12.52",
29
- "@vtj/uni": "~0.12.52"
24
+ "@vtj/core": "~0.12.54",
25
+ "@vtj/designer": "~0.12.54",
26
+ "@vtj/local": "~0.12.54",
27
+ "@vtj/uni": "~0.12.54",
28
+ "@vtj/renderer": "~0.12.54",
29
+ "@vtj/materials": "~0.12.54"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/cli": "~0.12.7",
35
- "@vtj/charts": "~0.12.52",
36
- "@vtj/icons": "~0.12.52",
37
- "@vtj/ui": "~0.12.52",
38
- "@vtj/utils": "~0.12.52"
34
+ "@vtj/charts": "~0.12.54",
35
+ "@vtj/cli": "~0.12.8",
36
+ "@vtj/icons": "~0.12.54",
37
+ "@vtj/utils": "~0.12.54",
38
+ "@vtj/ui": "~0.12.54"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -1 +0,0 @@
1
- var Ge=Object.defineProperty,Je=Object.defineProperties;var Ue=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var pe=(e,t,n)=>t in e?Ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))me.call(t,n)&&pe(e,n,t[n]);if(K)for(var n of K(t))he.call(t,n)&&pe(e,n,t[n]);return e},Y=(e,t)=>Je(e,Ue(t));var G=(e,t)=>{var n={};for(var o in e)me.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&K)for(var o of K(e))t.indexOf(o)<0&&he.call(e,o)&&(n[o]=e[o]);return n};import{g as Me,b as Re,s as P,w as We,r as ee,e as b,f as T,h as U,i as ie,n as ue,u as Ae,j as ae,k as E,t as Ke,l as qe,m as Ze,p as O,q as Ie,v as et}from"./vue-MHV4BENM.js";var tt=Object.defineProperty,nt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&ye(e,n,t[n]);if(ge)for(var n of ge(t))st.call(t,n)&&ye(e,n,t[n]);return e},ut=(e,t)=>nt(e,ot(t));function fn(e,t){var n;const o=P();return We(()=>{o.value=e()},ut(it({},t),{flush:(n=void 0)!=null?n:"sync"})),ee(o)}var we;const te=typeof window!="undefined",at=e=>typeof e!="undefined",se=e=>typeof e=="function",lt=e=>typeof e=="string",Q=()=>{},ct=te&&((we=window==null?void 0:window.navigator)==null?void 0:we.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function H(e){return typeof e=="function"?e():Ae(e)}function De(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function ft(e,t={}){let n,o,r=Q;const s=i=>{clearTimeout(i),r(),r=Q};return i=>{const a=H(e),f=H(t.maxWait);return n&&s(n),a<=0||f!==void 0&&f<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((v,l)=>{r=t.rejectOnCancel?l:v,f&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,v(i())},f)),n=setTimeout(()=>{o&&s(o),o=null,v(i())},a)})}}function dt(e,t=!0,n=!0,o=!1){let r=0,s,u=!0,i=Q,a;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=Q)};return l=>{const c=H(e),d=Date.now()-r,p=()=>a=l();return f(),c<=0?(r=Date.now(),p()):(d>c&&(n||!u)?(r=Date.now(),p()):t&&(a=new Promise((h,g)=>{i=o?g:h,s=setTimeout(()=>{r=Date.now(),u=!0,h(p()),f()},Math.max(0,c-d))})),!n&&!s&&(s=setTimeout(()=>u=!0,c)),u=!1,a)}}function vt(e){return e}function pt(e,t){let n,o,r;const s=b(!0),u=()=>{s.value=!0,r()};T(e,u,{flush:"sync"});const i=se(t)?t:t.get,a=se(t)?void 0:t.set,f=ae((v,l)=>(o=v,r=l,{get(){return s.value&&(n=i(),s.value=!1),o(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function ne(e){return Me()?(Re(e),!0):!1}function mt(e,t=200,n={}){return De(ft(t,n),e)}function dn(e,t=200,n={}){const o=b(e.value),r=mt(()=>{o.value=e.value},t,n);return T(e,()=>r()),o}function vn(e,t=200,n=!1,o=!0,r=!1){return De(dt(t,n,o,r),e)}function le(e,t=!0){U()?ie(e):t?e():ue(e)}function pn(e,t,n={}){const{immediate:o=!0}=n,r=b(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,u()}function a(...f){u(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...f)},H(t))}return o&&(r.value=!0,te&&a()),ne(i),{isPending:ee(r),start:a,stop:i}}function L(e){var t;const n=H(e);return(t=n==null?void 0:n.$el)!=null?t:n}const B=te?window:void 0,ht=te?window.document:void 0;function F(...e){let t,n,o,r;if(lt(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=B):[t,n,o,r]=e,!t)return Q;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],u=()=>{s.forEach(v=>v()),s.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=T(()=>[L(t),H(r)],([v,l])=>{u(),v&&s.push(...n.flatMap(c=>o.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return ne(f),f}let be=!1;function mn(e,t,n={}){const{window:o=B,ignore:r=[],capture:s=!0,detectIframe:u=!1}=n;if(!o)return;ct&&!be&&(be=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",Q)));let i=!0;const a=c=>r.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[F(o,"click",c=>{const d=L(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(i=!a(c)),!i){i=!0;return}t(c)}},{passive:!0,capture:s}),F(o,"pointerdown",c=>{const d=L(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&F(o,"blur",c=>{var d;const p=L(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function hn(e={}){var t;const{window:n=B}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=pt(()=>null,()=>o==null?void 0:o.activeElement);return n&&(F(n,"blur",s=>{s.relatedTarget===null&&r.trigger()},!0),F(n,"focus",r.trigger,!0)),r}function Le(e,t=!1){const n=b(),o=()=>n.value=!!e();return o(),le(o,t),n}function gt(e){return JSON.parse(JSON.stringify(e))}const Oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},_e="__vueuse_ssr_handlers__";Oe[_e]=Oe[_e]||{};function gn(e,t,{window:n=B,initialValue:o=""}={}){const r=b(o),s=E(()=>{var u;return L(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return T([s,()=>H(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();r.value=f||o}},{immediate:!0}),T(r,u=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(H(e),u)}),r}function yn({document:e=ht}={}){if(!e)return b("visible");const t=b(e.visibilityState);return F(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Se=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Se)for(var o of Se(e))t.indexOf(o)<0&&wt.call(e,o)&&(n[o]=e[o]);return n};function Fe(e,t,n={}){const o=n,{window:r=B}=o,s=bt(o,["window"]);let u;const i=Le(()=>r&&"ResizeObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=T(()=>L(e),l=>{a(),i.value&&r&&l&&(u=new ResizeObserver(t),u.observe(l,s))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return ne(v),{isSupported:i,stop:v}}function wn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:s=!0}=t,u=b(0),i=b(0),a=b(0),f=b(0),v=b(0),l=b(0),c=b(0),d=b(0);function p(){const h=L(e);if(!h){n&&(u.value=0,i.value=0,a.value=0,f.value=0,v.value=0,l.value=0,c.value=0,d.value=0);return}const g=h.getBoundingClientRect();u.value=g.height,i.value=g.bottom,a.value=g.left,f.value=g.right,v.value=g.top,l.value=g.width,c.value=g.x,d.value=g.y}return Fe(e,p),T(()=>L(e),h=>!h&&p()),r&&F("scroll",p,{capture:!0,passive:!0}),o&&F("resize",p,{passive:!0}),le(()=>{s&&p()}),{height:u,bottom:i,left:a,right:f,top:v,width:l,x:c,y:d,update:p}}function bn(e,t={width:0,height:0},n={}){const{window:o=B,box:r="content-box"}=n,s=E(()=>{var a,f;return(f=(a=L(e))==null?void 0:a.namespaceURI)==null?void 0:f.includes("svg")}),u=b(t.width),i=b(t.height);return Fe(e,([a])=>{const f=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const v=L(e);if(v){const l=o.getComputedStyle(v);u.value=parseFloat(l.width),i.value=parseFloat(l.height)}}else if(f){const v=Array.isArray(f)?f:[f];u.value=v.reduce((l,{inlineSize:c})=>l+c,0),i.value=v.reduce((l,{blockSize:c})=>l+c,0)}else u.value=a.contentRect.width,i.value=a.contentRect.height},n),T(()=>L(e),a=>{u.value=a?t.width:0,i.value=a?t.height:0}),{width:u,height:i}}var Ee=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,St=(e,t)=>{var n={};for(var o in e)Ot.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ee)for(var o of Ee(e))t.indexOf(o)<0&&_t.call(e,o)&&(n[o]=e[o]);return n};function On(e,t,n={}){const o=n,{window:r=B}=o,s=St(o,["window"]);let u;const i=Le(()=>r&&"MutationObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=T(()=>L(e),l=>{a(),i.value&&r&&l&&(u=new MutationObserver(t),u.observe(l,s))},{immediate:!0}),v=()=>{a(),f()};return ne(v),{isSupported:i,stop:v}}var xe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xe||(xe={}));var Et=Object.defineProperty,Pe=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Te=(e,t,n)=>t in e?Et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&Te(e,n,t[n]);if(Pe)for(var n of Pe(t))Pt.call(t,n)&&Te(e,n,t[n]);return e};const Ct={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Tt({linear:vt},Ct);function _n(e,t,n,o={}){var r,s,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=o,c=U(),d=n||(c==null?void 0:c.emit)||((r=c==null?void 0:c.$emit)==null?void 0:r.bind(c))||((u=(s=c==null?void 0:c.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const h=y=>i?se(i)?i(y):gt(y):y,g=()=>at(e[t])?h(e[t]):l;if(a){const y=g(),_=b(y);return T(()=>e[t],C=>_.value=h(C)),T(_,C=>{(C!==e[t]||v)&&d(p,C)},{deep:v}),_}else return E({get(){return g()},set(y){d(p,y)}})}function Sn({window:e=B}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return F(e,"blur",()=>{t.value=!1}),F(e,"focus",()=>{t.value=!0}),t}function En(e={}){const{window:t=B,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,u=b(n),i=b(o),a=()=>{t&&(s?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),le(a),F("resize",a,{passive:!0}),r&&F("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return Me()?(Re(e),!0):!1}const re=new WeakMap,$t=(...e)=>{var t;const n=e[0],o=(t=U())==null?void 0:t.proxy;if(o==null&&!Ie())throw new Error("injectLocal must be called in setup");return o&&re.has(o)&&n in re.get(o)?re.get(o)[n]:et(...e)},ce=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Mt=e=>e!=null,Rt=Object.prototype.toString,Wt=e=>Rt.call(e)==="[object Object]",At=()=>{};function fe(...e){if(e.length!==1)return Ke(...e);const t=e[0];return typeof t=="function"?ee(ae(()=>({get:t,set:At}))):b(t)}function It(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ke=e=>e();function Dt(e=ke,t={}){const{initialState:n="active"}=t,o=fe(n==="active");function r(){o.value=!1}function s(){o.value=!0}const u=(...i)=>{o.value&&e(...i)};return{isActive:ee(o),pause:r,resume:s,eventFilter:u}}function Ce(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Lt(e){return U()}function Ft(e,t,n={}){const s=n,{eventFilter:o=ke}=s,r=G(s,["eventFilter"]);return T(e,It(o,t),r)}function kt(e,t,n={}){const l=n,{eventFilter:o,initialState:r="active"}=l,s=G(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=Dt(o,{initialState:r});return{stop:Ft(e,t,Y(V({},s),{eventFilter:u})),pause:i,resume:a,isActive:f}}function zt(e,t={}){if(!qe(e))return Ze(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=ae(()=>({get(){return e.value[o]},set(r){var s;if((s=O(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[o]=r,e.value=i}else{const i=Y(V({},e.value),{[o]:r});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[o]=r}}));return n}function de(e,t=!0,n){Lt()?ie(e,n):t?e():ue(e)}function Nt(e,t,n){return T(e,t,Y(V({},n),{immediate:!0}))}const N=ce?window:void 0,Vt=ce?window.document:void 0;function j(e){var t;const n=O(e);return(t=n==null?void 0:n.$el)!=null?t:n}function z(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,a,f,v)=>(i.addEventListener(a,f,v),()=>i.removeEventListener(a,f,v)),r=E(()=>{const i=J(O(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),s=Nt(()=>{var i,a;return[(a=(i=r.value)==null?void 0:i.map(f=>j(f)))!=null?a:[N].filter(f=>f!=null),J(O(r.value?e[1]:e[0])),J(Ae(r.value?e[2]:e[1])),O(r.value?e[3]:e[2])]},([i,a,f,v])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const l=Wt(v)?V({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(p=>o(c,d,p,l)))))},{flush:"post"}),u=()=>{s(),n()};return oe(n),u}function jt(){const e=P(!1),t=U();return t&&ie(()=>{e.value=!0},t),e}function ve(e){const t=jt();return E(()=>(t.value,!!e()))}function Bt(e,t,n={}){const c=n,{window:o=N}=c,r=G(c,["window"]);let s;const u=ve(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const d=O(e),p=J(d).map(j).filter(Mt);return new Set(p)}),f=T(()=>a.value,d=>{i(),u.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,r)))},{immediate:!0,flush:"post"}),v=()=>s==null?void 0:s.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Ht=Symbol("vueuse-ssr-width");function Xt(){const e=Ie()?$t(Ht,null):null;return typeof e=="number"?e:void 0}function Yt(e,t={}){const{window:n=N,ssrWidth:o=Xt()}=t,r=ve(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=P(typeof o=="number"),u=P(),i=P(!1),a=f=>{i.value=f.matches};return We(()=>{if(s.value){s.value=!r.value;const f=O(e).split(",");i.value=f.some(v=>{const l=v.includes("not all"),c=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||d);return c&&p&&(p=o>=Ce(c[1])),d&&p&&(p=o<=Ce(d[1])),l?!p:p});return}r.value&&(u.value=n.matchMedia(O(e)),i.value=u.value.matches)}),z(u,"change",a,{passive:!0}),E(()=>i.value)}const q=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Z="__vueuse_ssr_handlers__",Qt=Gt();function Gt(){return Z in q||(q[Z]=q[Z]||{}),q[Z]}function ze(e,t){return Qt[e]||t}function Jt(e){return Yt("(prefers-color-scheme: dark)",e)}function Ut(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Kt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$e="vueuse-storage";function qt(e,t,n,o={}){var r;const{flush:s="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=w=>{console.error(w)},initOnMounted:p}=o,h=(v?P:b)(typeof t=="function"?t():t),g=E(()=>O(e));if(!n)try{n=ze("getDefaultStorage",()=>{var w;return(w=N)==null?void 0:w.localStorage})()}catch(w){d(w)}if(!n)return h;const y=O(t),_=Ut(y),C=(r=o.serializer)!=null?r:Kt[_],{pause:x,resume:R}=kt(h,()=>W(h.value),{flush:s,deep:u,eventFilter:c});T(g,()=>D(),{flush:s});let I=!1;const m=w=>{p&&!I||D(w)},S=w=>{p&&!I||X(w)};l&&i&&(n instanceof Storage?z(l,"storage",m,{passive:!0}):z(l,$e,S)),p?de(()=>{I=!0,D()}):D();function $(w,A){if(l){const k={key:g.value,oldValue:w,newValue:A,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent($e,{detail:k}))}}function W(w){try{const A=n.getItem(g.value);if(w==null)$(A,null),n.removeItem(g.value);else{const k=C.write(w);A!==k&&(n.setItem(g.value,k),$(A,k))}}catch(A){d(A)}}function M(w){const A=w?w.newValue:n.getItem(g.value);if(A==null)return a&&y!=null&&n.setItem(g.value,C.write(y)),y;if(!w&&f){const k=C.read(A);return typeof f=="function"?f(k,y):_==="object"&&!Array.isArray(k)?V(V({},y),k):k}else return typeof A!="string"?A:C.read(A)}function D(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){h.value=y;return}if(!(w&&w.key!==g.value)){x();try{(w==null?void 0:w.newValue)!==C.write(h.value)&&(h.value=M(w))}catch(A){d(A)}finally{w?ue(R):R()}}}}function X(w){D(w.detail)}return h}const Zt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function en(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=N,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=V({auto:"",light:"light",dark:"dark"},e.modes||{}),c=Jt({window:r}),d=E(()=>c.value?"dark":"light"),p=a||(u==null?fe(o):qt(u,o,s,{window:r,listenToStorageChanges:i})),h=E(()=>p.value==="auto"?d.value:p.value),g=ze("updateHTMLAttrs",(x,R,I)=>{const m=typeof x=="string"?r==null?void 0:r.document.querySelector(x):j(x);if(!m)return;const S=new Set,$=new Set;let W=null;if(R==="class"){const D=I.split(/\s/g);Object.values(l).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{D.includes(X)?S.add(X):$.add(X)})}else W={key:R,value:I};if(S.size===0&&$.size===0&&W===null)return;let M;v&&(M=r.document.createElement("style"),M.appendChild(document.createTextNode(Zt)),r.document.head.appendChild(M));for(const D of S)m.classList.add(D);for(const D of $)m.classList.remove(D);W&&m.setAttribute(W.key,W.value),v&&(r.getComputedStyle(M).opacity,document.head.removeChild(M))});function y(x){var R;g(t,n,(R=l[x])!=null?R:x)}function _(x){e.onChanged?e.onChanged(x,y):y(x)}T(h,_,{flush:"post",immediate:!0}),de(()=>_(h.value));const C=E({get(){return f?p.value:h.value},set(x){p.value=x}});return Object.assign(C,{store:p,system:d,state:h})}function xn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=en(Y(V({},e),{onChanged:(u,i)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}})),r=E(()=>o.system.value);return E({get(){return o.value==="dark"},set(u){const i=u?"dark":"light";r.value===i?o.value="auto":o.value=i}})}function Pn(e,t={}){var n;const{pointerTypes:o,preventDefault:r,stopPropagation:s,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:p=e,buttons:h=[0]}=t,g=b((n=O(v))!=null?n:{x:0,y:0}),y=b(),_=m=>o?o.includes(m.pointerType):!0,C=m=>{O(r)&&m.preventDefault(),O(s)&&m.stopPropagation()},x=m=>{var S;if(!O(h).includes(m.button)||O(t.disabled)||!_(m)||O(u)&&m.target!==O(e))return;const $=O(d),W=(S=$==null?void 0:$.getBoundingClientRect)==null?void 0:S.call($),M=O(e).getBoundingClientRect(),D={x:m.clientX-($?M.left-W.left+$.scrollLeft:M.left),y:m.clientY-($?M.top-W.top+$.scrollTop:M.top)};(f==null?void 0:f(D,m))!==!1&&(y.value=D,C(m))},R=m=>{if(O(t.disabled)||!_(m)||!y.value)return;const S=O(d),$=O(e).getBoundingClientRect();let{x:W,y:M}=g.value;(l==="x"||l==="both")&&(W=m.clientX-y.value.x,S&&(W=Math.min(Math.max(0,W),S.scrollWidth-$.width))),(l==="y"||l==="both")&&(M=m.clientY-y.value.y,S&&(M=Math.min(Math.max(0,M),S.scrollHeight-$.height))),g.value={x:W,y:M},i==null||i(g.value,m),C(m)},I=m=>{O(t.disabled)||!_(m)||y.value&&(y.value=void 0,a==null||a(g.value,m),C(m))};if(ce){const m=()=>{var S;return{capture:(S=t.capture)!=null?S:!0,passive:!O(r)}};z(p,"pointerdown",x,m),z(c,"pointermove",R,m),z(c,"pointerup",I,m)}return Y(V({},zt(g)),{position:g,isDragging:E(()=>!!y.value),style:E(()=>`left:${g.value.x}px;top:${g.value.y}px;`)})}function tn(e,t,n={}){const l=n,{window:o=N}=l,r=G(l,["window"]);let s;const u=ve(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const c=O(e);return Array.isArray(c)?c.map(d=>j(d)):[j(c)]}),f=T(a,c=>{if(i(),u.value&&o){s=new ResizeObserver(t);for(const d of c)d&&s.observe(d,r)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function nn(e,t={width:0,height:0},n={}){const{window:o=N,box:r="content-box"}=n,s=E(()=>{var l,c;return(c=(l=j(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=P(t.width),i=P(t.height),{stop:a}=tn(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const d=j(e);if(d){const p=d.getBoundingClientRect();u.value=p.width,i.value=p.height}}else if(c){const d=J(c);u.value=d.reduce((p,{inlineSize:h})=>p+h,0),i.value=d.reduce((p,{blockSize:h})=>p+h,0)}else u.value=l.contentRect.width,i.value=l.contentRect.height},n);de(()=>{const l=j(e);l&&(u.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const f=T(()=>j(e),l=>{u.value=l?t.width:0,i.value=l?t.height:0});function v(){a(),f()}return{width:u,height:i,stop:v}}const on={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function rn(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:r={x:0,y:0},window:s=N,target:u=s,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=P(r.x),d=P(r.y),p=P(null),h=typeof t=="function"?t:on[t],g=m=>{const S=h(m);f=m,S&&([c.value,d.value]=S,p.value="mouse"),s&&(v=s.scrollX,l=s.scrollY)},y=m=>{if(m.touches.length>0){const S=h(m.touches[0]);S&&([c.value,d.value]=S,p.value="touch")}},_=()=>{if(!f||!s)return;const m=h(f);f instanceof MouseEvent&&m&&(c.value=m[0]+s.scrollX-v,d.value=m[1]+s.scrollY-l)},C=()=>{c.value=r.x,d.value=r.y},x=a?m=>a(()=>g(m),{}):m=>g(m),R=a?m=>a(()=>y(m),{}):m=>y(m),I=a?()=>a(()=>_(),{}):()=>_();if(u){const m={passive:!0};z(u,["mousemove","dragover"],x,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],R,m),o&&z(u,"touchend",C,m)),i&&t==="page"&&z(s,"scroll",I,m)}return{x:c,y:d,sourceType:p}}function Tn(e,t={}){const{handleOutside:n=!0,window:o=N}=t,r=t.type||"page",{x:s,y:u,sourceType:i}=rn(t),a=P(e!=null?e:o==null?void 0:o.document.body),f=P(0),v=P(0),l=P(0),c=P(0),d=P(0),p=P(0),h=P(!0);let g=()=>{};return o&&(g=T([a,s,u],()=>{const y=j(a);if(!y||!(y instanceof Element))return;const{left:_,top:C,width:x,height:R}=y.getBoundingClientRect();l.value=_+(r==="page"?o.pageXOffset:0),c.value=C+(r==="page"?o.pageYOffset:0),d.value=R,p.value=x;const I=s.value-l.value,m=u.value-c.value;h.value=x===0||R===0||I<0||m<0||I>x||m>R,(n||!h.value)&&(f.value=I,v.value=m)},{immediate:!0}),z(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:s,y:u,sourceType:i,elementX:f,elementY:v,elementPositionX:l,elementPositionY:c,elementHeight:d,elementWidth:p,isOutside:h,stop:g}}function Cn(e=null,t={}){var n,o,r;const{document:s=Vt,restoreOnUnmount:u=l=>l}=t,i=(n=s==null?void 0:s.title)!=null?n:"",a=fe((o=e!=null?e:s==null?void 0:s.title)!=null?o:null),f=!!(e&&typeof e=="function");function v(l){if(!("titleTemplate"in t))return l;const c=t.titleTemplate||"%s";return typeof c=="function"?c(l):O(c).replace(/%s/g,l)}return T(a,(l,c)=>{l!==c&&s&&(s.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!f&&Bt((r=s.head)==null?void 0:r.querySelector("title"),()=>{s&&s.title!==a.value&&(a.value=v(s.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&s&&(s.title=l)}}),a}function $n(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:r,calculateRange:s,currentList:u,containerRef:i}="itemHeight"in t?an(t,e):un(t,e);return{list:u,scrollTo:r,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:o}}function Ne(e){const t=P(null),n=nn(t),o=b([]),r=P(e);return{state:b({start:0,end:10}),source:r,currentList:o,size:n,containerRef:t}}function Ve(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:r=0}=e.value;let s=0,u=0;for(let i=r;i<t.value.length;i++){const a=n(i);if(s+=a,u=i,s>o)break}return u-r}}function je(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,r=0;for(let s=0;s<e.value.length;s++){const u=t(s);if(o+=u,o>=n){r=s;break}}return r+1}}function Be(e,t,n,o,{containerRef:r,state:s,currentList:u,source:i}){return()=>{const a=r.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),v=o(e==="vertical"?a.clientHeight:a.clientWidth),l=f-t,c=f+v+t;s.value={start:l<0?0:l,end:c>i.value.length?i.value.length:c},u.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function He(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,s,u)=>r+e(u),0)}function Xe(e,t,n,o){T([e.width,e.height,t,n],()=>{o()})}function Ye(e,t){return E(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,r)=>n+e(r),0))}const sn={horizontal:"scrollLeft",vertical:"scrollTop"};function Qe(e,t,n,o){return r=>{o.value&&(o.value[sn[e]]=n(r),t())}}function un(e,t){const n=Ne(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,l=Ve(o,r,f),c=je(r,f),d=Be("horizontal",v,c,l,n),p=He(f,r),h=E(()=>p(o.value.start)),g=Ye(f,r);Xe(u,t,i,d);const y=Qe("horizontal",d,p,i),_=E(()=>({style:{height:"100%",width:`${g.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:y,calculateRange:d,wrapperProps:_,containerStyle:a,currentList:s,containerRef:i}}function an(e,t){const n=Ne(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,l=Ve(o,r,f),c=je(r,f),d=Be("vertical",v,c,l,n),p=He(f,r),h=E(()=>p(o.value.start)),g=Ye(f,r);Xe(u,t,i,d);const y=Qe("vertical",d,p,i),_=E(()=>({style:{width:"100%",height:`${g.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:y,containerStyle:a,wrapperProps:_,currentList:s,containerRef:i}}export{xn as A,wn as a,F as b,fn as c,Fe as d,L as e,vn as f,gn as g,pn as h,te as i,ct as j,On as k,yn as l,Sn as m,_n as n,mn as o,hn as p,bn as q,dn as r,Cn as s,ne as t,En as u,Pn as v,Tn as w,z as x,$n as y,nn as z};