epic-designer-gold 0.0.12 → 0.0.14
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.
- package/dist/{attributeView-jwbZhq65.js → attributeView-BN2nA4jI.js} +2 -2
- package/dist/attributeView-lpFl3t4a.cjs +1 -0
- package/dist/axios-CYGTE3lR.cjs +6 -0
- package/dist/axios-ITY6Uw7A.js +2085 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +2 -0
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/{eventView-CEeT_JLL.js → eventView-BKpQ9YIh.js} +2 -2
- package/dist/eventView-DgqXxWY1.cjs +1 -0
- package/dist/index-1afOcXnV.cjs +1 -0
- package/dist/{index-M-hTLR0c.js → index-ASoFJnMl.js} +1 -1
- package/dist/index-B03W7FZR.cjs +1 -0
- package/dist/index-BHmIF8aI.cjs +10 -0
- package/dist/index-BJlPL6eL.cjs +1 -0
- package/dist/index-BXNPTGKl.cjs +1 -0
- package/dist/{index-D4e8XNyx.js → index-BlJ0TQyn.js} +1 -1
- package/dist/index-By5rfqCj.cjs +1 -0
- package/dist/{index-E2PvWPhl.js → index-BzsFImwK.js} +2 -2
- package/dist/{index-Ba0ZjQgI.js → index-C-XUgjda.js} +1 -1
- package/dist/{index-HM72iSCq.js → index-C4sdhgF2.js} +1 -1
- package/dist/index-C6ceZM1C.cjs +1 -0
- package/dist/{index-Dm_60RQ9.js → index-CCTMCqiz.js} +3 -4
- package/dist/index-CGHtM1lr.cjs +1 -0
- package/dist/{index-yVm3iKnk.js → index-CL_7RzF7.js} +87 -88
- package/dist/index-CNzcV-bQ.cjs +1 -0
- package/dist/{index-B7sMvYm_.cjs → index-CdgT4gQu.cjs} +1 -1
- package/dist/index-CkRhCvJK.cjs +1 -0
- package/dist/index-D8YBJFH6.cjs +1 -0
- package/dist/{index-DC4NLl3o.js → index-DPfAejnH.js} +2 -2
- package/dist/{index-BcZSHbp2.js → index-DZYSBPVO.js} +2 -2
- package/dist/index-DpzLP1Zp.cjs +1 -0
- package/dist/{index-Dtax565w.js → index-Mf82MCCF.js} +2 -2
- package/dist/index-Ol-YPkY9.js +1550 -0
- package/dist/index-YHlIFgpT.cjs +1 -0
- package/dist/{index-DHwtlP2J.js → index-Yx99TN9O.js} +2 -2
- package/dist/{index-DZRPexQZ.js → index-kWCcT4er.js} +3 -3
- package/dist/{index-D3KAAzmX.cjs → index-lH0_mCG-.cjs} +1 -1
- package/dist/{index-uaq_HmHi.js → index-ooVzYa5L.js} +1 -1
- package/dist/index-qJNRPNIj.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/outline-CJSEUbgc.cjs +1 -0
- package/dist/{outline-utbOTCBV.js → outline-yy4pIEi3.js} +2 -2
- package/dist/select-B479QwwL.cjs +1 -0
- package/dist/select-CtUVWh2M.js +29 -0
- package/dist/{sign-CdhDIjlg.js → sign-BDZCr3wJ.js} +11 -12
- package/dist/sign-Gwu2PIRy.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-B1kY8Fux.js → styleView-CXp05_Ar.js} +2 -2
- package/dist/styleView-auUK19Dr.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-Bnl1CGxG.js → tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/attributeView-DEyQL7em.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/eventView-CfMax_U7.cjs +0 -1
- package/dist/index-B2N4pP55.cjs +0 -1
- package/dist/index-B3dTIoEC.cjs +0 -1
- package/dist/index-B6yexTNr.js +0 -1509
- package/dist/index-Bs6GdgDl.cjs +0 -1
- package/dist/index-CTd2_vna.cjs +0 -1
- package/dist/index-Cevjl8jo.cjs +0 -1
- package/dist/index-CrrXaIZY.js +0 -4
- package/dist/index-CuxnFxdY.cjs +0 -1
- package/dist/index-D-2x46HI.cjs +0 -1
- package/dist/index-DBQ-tc2k.cjs +0 -1
- package/dist/index-DWjMyXtP.cjs +0 -1
- package/dist/index-DgRGSX7j.cjs +0 -10
- package/dist/index-Xb_SJdEs.cjs +0 -1
- package/dist/index-br62scsB.cjs +0 -1
- package/dist/index-gFqI49-0.cjs +0 -1
- package/dist/outline-UAdT8ap6.cjs +0 -1
- package/dist/pluginManager-D8PM7ICc.js +0 -383
- package/dist/pluginManager-itCTrGag.cjs +0 -1
- package/dist/select-B8HCbraJ.js +0 -29
- package/dist/select-D6bRz5G2.cjs +0 -1
- package/dist/sign-Dx0d5kWo.cjs +0 -1
- package/dist/styleView-CHar-6GB.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-BVopU0uv.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, inject as i, computed as V, ref as P, watchEffect as C, openBlock as l, createElementBlock as s, Fragment as N, renderList as D, normalizeClass as m, toDisplayString as E, createCommentVNode as y, createElementVNode as U, createVNode as B, unref as f, nextTick as v } from "vue";
|
|
2
|
-
import { _ as x, p as g, s as h } from "./index-
|
|
3
|
-
import { p as z } from "./
|
|
2
|
+
import { _ as x, p as g, s as h } from "./index-Ol-YPkY9.js";
|
|
3
|
+
import { p as z } from "./axios-ITY6Uw7A.js";
|
|
4
4
|
const F = ["title"], M = /* @__PURE__ */ S({
|
|
5
5
|
__name: "attributeView",
|
|
6
6
|
setup(T) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BHmIF8aI.cjs"),v=require("./axios-CYGTE3lR.cjs"),k=["title"],g=e.defineComponent({__name:"attributeView",setup(b){const s=e.inject("designer"),d=e.inject("pageSchema"),p=e.inject("revoke"),f=v.pluginManager.getComponentConfings(),c=e.computed(()=>s.state.checkedNode);function h(n){var a;return typeof n.show=="boolean"?n.show:typeof n.show=="function"?(a=n.show)==null?void 0:a.call(n,{values:c.value}):!0}const u=e.ref([]);e.watchEffect(()=>{var o,t,r;const n=(o=s.state.checkedNode)==null?void 0:o.type;if(!s.state.checkedNode||!n)return[];const a=((t=f[n])==null?void 0:t.config.attribute)??[];u.value=[{label:"组件ID",type:"input",field:"id",componentProps:{disabled:!0}},...a],s.state.checkedNode.id===((r=d.schemas[0])==null?void 0:r.id)&&u.value.push({label:"画布宽度",type:"EInputSize",field:"canvas.width",editData:d},{label:"画布高度",type:"EInputSize",field:"canvas.height",editData:d})});function y(n,a,o,t=c.value){typeof o.onChange=="function"&&o.onChange({value:n,values:t,componentAttributes:u}),o.changeSync?l.setValueByPath(t,a,n):e.nextTick(()=>{l.setValueByPath(t,a,n)}),p.push(d.schemas,"编辑组件属性")}function m(n,a,o=c.value){e.nextTick(()=>{l.setValueByPath(o,"componentProps.dynamicId",n)})}return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:"epic-attribute-view",key:(o=c.value)==null?void 0:o.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>{var r;return e.openBlock(),e.createElementBlock("div",{key:t.field},[h(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",t.layout])},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:t.label},e.toDisplayString(t.label),9,k)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["epic-attr-input",{"block!":t.layout==="vertical"}])},[e.createVNode(e.unref(l._sfc_main),{componentSchema:{...t,componentProps:{...t.componentProps,...t.field==="componentProps.defaultValue"?(r=c.value)==null?void 0:r.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},dynamicId:e.unref(l.getValueByPath)(t.editData??c.value,"componentProps.dynamicId"),"model-value":e.unref(l.getValueByPath)(t.editData??c.value,t.field),"onUpdate:modelValue":i=>y(i,t.field,t,t.editData),"onUpdate:dynamicId":i=>m(i)},null,8,["componentSchema","dynamicId","model-value","onUpdate:modelValue","onUpdate:dynamicId"])],2)],2)):e.createCommentVNode("",!0)])}),128))])}}});exports.default=g;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var rt=Object.defineProperty;var st=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>st(t,typeof e!="symbol"?e+"":e,n);const I=require("vue"),G=(t,e)=>I.defineAsyncComponent({loader:t,loadingComponent:e,delay:80});function ot(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(s){s(n)}),(r=t.get("*"))&&r.slice().map(function(s){s(e,n)})}}}const Be=ot();class Fe{constructor(){A(this,"initialized",I.ref(!1));A(this,"sourceData",[]);A(this,"components",{});A(this,"componentConfigs",{});A(this,"baseComponentTypes",[]);A(this,"componentSchemaGroups",I.ref([]));A(this,"hiddenComponents",[]);A(this,"formSchemas",[{label:"表单",type:"form",componentProps:{layout:"horizontal",name:"default",labelWidth:100,labelLayout:"fixed",labelCol:{span:5},wrapperCol:{span:19},colon:!0,labelAlign:"right",labelPlacement:"left"},children:[],id:"root"}]);A(this,"componentGroupNameMap",{});A(this,"sortedGroups",["表单","布局"]);A(this,"viewsContainers",{activitybars:I.shallowRef([]),rightSidebars:I.shallowRef([])});A(this,"publicMethods",{})}component(e,n){typeof n=="function"&&(n=G(n)),this.components[e]=n}registerComponent(e){this.component(e.defaultSchema.type,e.component),e.defaultSchema.input&&(e.config.action||(e.config.action=[]),e.config.action.unshift({type:"setValue",describe:"设置值",argsConfigs:[{...e.defaultSchema,label:"设置数据",field:"0"}]},{type:"getValue",describe:"获取值"})),this.componentConfigs[e.defaultSchema.type]=e,this.computedComponentSchemaGroups()}removeComponent(e){delete this.componentConfigs[e],delete this.components[e]}setSourceData(e){this.sourceData=e,Be.emit("updateSource",new Date)}getSourceData(){return Object.prototype.toString.call(this.sourceData)==="[object Array]"?this.sourceData:[]}setBaseComponentTypes(e){this.baseComponentTypes=e}addBaseComponentTypes(e){this.baseComponentTypes.push(e)}removeBaseComponents(){this.baseComponentTypes.forEach(e=>{this.removeComponent(e)}),this.setBaseComponentTypes([]),this.computedComponentSchemaGroups()}getComponents(){return this.components}getComponent(e){return this.components[e]}registerActivitybar(e){typeof e.component=="function"&&(e.component=G(e.component)),typeof e.visible>"u"&&(e.visible=!0);const n=this.viewsContainers.activitybars.value.findIndex(r=>r.id===e.id);n!==-1?this.viewsContainers.activitybars.value[n]=e:this.viewsContainers.activitybars.value.push(e)}getActivitybars(){return this.viewsContainers.activitybars.value}hideActivitybar(e,n="title"){const r=this.viewsContainers.activitybars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.activitybars.value[r].visible=!1)}showActivitybar(e,n="title"){const r=this.viewsContainers.activitybars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.activitybars.value[r].visible=!0)}registerRightSidebar(e){typeof e.component=="function"&&(e.component=G(e.component)),typeof e.visible>"u"&&(e.visible=!0);const n=this.viewsContainers.rightSidebars.value.findIndex(r=>r.id===e.id);n!==-1?this.viewsContainers.rightSidebars.value[n]=e:this.viewsContainers.rightSidebars.value.push(e)}getRightSidebars(){return this.viewsContainers.rightSidebars.value}hideRightSidebar(e,n="title"){const r=this.viewsContainers.rightSidebars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.rightSidebars.value[r].visible=!1)}showRightSidebar(e,n="title"){const r=this.viewsContainers.rightSidebars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.rightSidebars.value[r].visible=!0)}getComponentConfings(){return this.componentConfigs}getComponentConfingByType(e){return this.componentConfigs[e]}computedComponentSchemaGroups(){const e=[];Object.values(this.componentConfigs).forEach(n=>{if(!this.hiddenComponents.includes(n.defaultSchema.type)&&n.groupName){const r=this.componentGroupNameMap[n.groupName]??n.groupName;let s=e.findIndex(i=>i.title===r);s===-1&&(e.push({title:r,list:[]}),s=e.length-1);let o=e[s].list.findIndex(i=>i.type===n.defaultSchema.type);o!==-1?e[s].list[o]=n.defaultSchema:e[s].list.push(n.defaultSchema)}}),e.sort((n,r)=>{const s=this.sortedGroups.indexOf(n.title),o=this.sortedGroups.indexOf(r.title);return s===-1?1:o===-1?-1:s-o}),e.forEach(n=>{n.list.sort((r,s)=>{var c,f;const o=((c=this.componentConfigs[r.type])==null?void 0:c.sort)??1e3,i=((f=this.componentConfigs[s.type])==null?void 0:f.sort)??1e3;return o-i})}),this.componentSchemaGroups.value=e}getComponentSchemaGroups(){return this.componentSchemaGroups}setComponentGroupNameMap(e,n){this.componentGroupNameMap[e]=n}clearComponentGroupNameMap(){this.componentGroupNameMap={}}setSortedGroups(e){this.sortedGroups=e,this.computedComponentSchemaGroups()}clearSortedGroups(){this.sortedGroups=[],this.computedComponentSchemaGroups()}hideComponent(e){this.hiddenComponents.push(e),this.computedComponentSchemaGroups()}showComponent(e){this.hiddenComponents=this.hiddenComponents.filter(n=>n!==e),this.computedComponentSchemaGroups()}setHideComponents(e){this.hiddenComponents=e,this.computedComponentSchemaGroups()}setInitialized(e){this.initialized.value=e}addPublicMethod(e){const n=e.methodName??e.name,r=e.method??e.handler;this.publicMethods[n]={...e,name:n,handler:r}}removePublicMethod(e){delete this.publicMethods[e]}}const it=new Fe;function De(t,e){return function(){return t.apply(e,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:fe}=Object,K=(t=>e=>{const n=at.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=t=>(t=t.toLowerCase(),e=>K(e)===t),X=t=>e=>typeof e===t,{isArray:U}=Array,q=X("undefined");function ct(t){return t!==null&&!q(t)&&t.constructor!==null&&!q(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Le=N("ArrayBuffer");function ut(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Le(t.buffer),e}const lt=X("string"),x=X("function"),ve=X("number"),Q=t=>t!==null&&typeof t=="object",ft=t=>t===!0||t===!1,J=t=>{if(K(t)!=="object")return!1;const e=fe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},dt=N("Date"),pt=N("File"),ht=N("Blob"),mt=N("FileList"),yt=t=>Q(t)&&x(t.pipe),bt=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((e=K(t))==="formdata"||e==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},wt=N("URLSearchParams"),[gt,St,Et,Rt]=["ReadableStream","Request","Response","Headers"].map(N),Ct=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),U(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let c;for(r=0;r<i;r++)c=o[r],e.call(null,t[c],c,t)}}function Ue(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ke=t=>!q(t)&&t!==D;function se(){const{caseless:t}=ke(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ue(e,s)||s;J(e[o])&&J(r)?e[o]=se(e[o],r):J(r)?e[o]=se({},r):U(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&M(arguments[r],n);return e}const Ot=(t,e,n,{allOwnKeys:r}={})=>(M(e,(s,o)=>{n&&x(s)?t[o]=De(s,n):t[o]=s},{allOwnKeys:r}),t),Tt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),At=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},xt=(t,e,n,r)=>{let s,o,i;const c={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!c[i]&&(e[i]=t[i],c[i]=!0);t=n!==!1&&fe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Nt=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Pt=t=>{if(!t)return null;if(U(t))return t;let e=t.length;if(!ve(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_t=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&fe(Uint8Array)),Bt=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Ft=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Dt=N("HTMLFormElement"),Lt=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),be=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),vt=N("RegExp"),je=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};M(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},Ut=t=>{je(t,(e,n)=>{if(x(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(x(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kt=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(t)?r(t):r(String(t).split(e)),n},jt=()=>{},It=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ee="abcdefghijklmnopqrstuvwxyz",we="0123456789",Ie={DIGIT:we,ALPHA:ee,ALPHA_DIGIT:ee+ee.toUpperCase()+we},qt=(t=16,e=Ie.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Mt(t){return!!(t&&x(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Ht=t=>{const e=new Array(10),n=(r,s)=>{if(Q(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=U(r)?[]:{};return M(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),e[s]=void 0,o}}return r};return n(t,0)},zt=N("AsyncFunction"),Gt=t=>t&&(Q(t)||x(t))&&x(t.then)&&x(t.catch),qe=((t,e)=>t?setImmediate:e?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(D.postMessage)),Jt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||qe,a={isArray:U,isArrayBuffer:Le,isBuffer:ct,isFormData:bt,isArrayBufferView:ut,isString:lt,isNumber:ve,isBoolean:ft,isObject:Q,isPlainObject:J,isReadableStream:gt,isRequest:St,isResponse:Et,isHeaders:Rt,isUndefined:q,isDate:dt,isFile:pt,isBlob:ht,isRegExp:vt,isFunction:x,isStream:yt,isURLSearchParams:wt,isTypedArray:_t,isFileList:mt,forEach:M,merge:se,extend:Ot,trim:Ct,stripBOM:Tt,inherits:At,toFlatObject:xt,kindOf:K,kindOfTest:N,endsWith:Nt,toArray:Pt,forEachEntry:Bt,matchAll:Ft,isHTMLForm:Dt,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:je,freezeMethods:Ut,toObjectSet:kt,toCamelCase:Lt,noop:jt,toFiniteNumber:It,findKey:Ue,global:D,isContextDefined:ke,ALPHABET:Ie,generateString:qt,isSpecCompliantForm:Mt,toJSONObject:Ht,isAsyncFn:zt,isThenable:Gt,setImmediate:qe,asap:Jt};function m(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,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 Me=m.prototype,He={};["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(t=>{He[t]={value:t}});Object.defineProperties(m,He);Object.defineProperty(Me,"isAxiosError",{value:!0});m.from=(t,e,n,r,s,o)=>{const i=Object.create(Me);return a.toFlatObject(t,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const Vt=null;function oe(t){return a.isPlainObject(t)||a.isArray(t)}function ze(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function ge(t,e,n){return t?t.concat(e).map(function(s,o){return s=ze(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Wt(t){return a.isArray(t)&&!t.some(oe)}const $t=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});function Z(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Wt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=ze(y),w.forEach(function(R,P){!(a.isUndefined(R)||R===null)&&e.append(i===!0?ge([y],P,o):i===null?y:y+"[]",u(R))}),!1}return oe(p)?!0:(e.append(ge(h,y,o),u(p)),!1)}const d=[],b=Object.assign($t,{defaultVisitor:l,convertValue:u,isVisitable:oe});function S(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,E){(!(a.isUndefined(w)||w===null)&&s.call(e,w,a.isString(E)?E.trim():E,y,b))===!0&&S(w,y?y.concat(E):[E])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return S(t),e}function Se(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function de(t,e){this._pairs=[],t&&Z(t,this,e)}const Ge=de.prototype;Ge.append=function(e,n){this._pairs.push([e,n])};Ge.toString=function(e){const n=e?function(r){return e.call(this,r,Se)}:Se;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Je(t,e,n){if(!e)return t;const r=n&&n.encode||Kt,s=n&&n.serialize;let o;if(s?o=s(e,n):o=a.isURLSearchParams(e)?e.toString():new de(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Ee{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xt=typeof URLSearchParams<"u"?URLSearchParams:de,Qt=typeof FormData<"u"?FormData:null,Zt=typeof Blob<"u"?Blob:null,Yt={isBrowser:!0,classes:{URLSearchParams:Xt,FormData:Qt,Blob:Zt},protocols:["http","https","file","blob","url","data"]},pe=typeof window<"u"&&typeof document<"u",ie=typeof navigator=="object"&&navigator||void 0,en=pe&&(!ie||["ReactNative","NativeScript","NS"].indexOf(ie.product)<0),tn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nn=pe&&window.location.href||"http://localhost",rn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pe,hasStandardBrowserEnv:en,hasStandardBrowserWebWorkerEnv:tn,navigator:ie,origin:nn},Symbol.toStringTag,{value:"Module"})),O={...rn,...Yt};function sn(t,e){return Z(t,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function on(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function an(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function We(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=an(s[i])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,s)=>{e(on(r),s,n,0)}),n}return null}function cn(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const H={transitional:Ve,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(e);if(o&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return s?JSON.stringify(We(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 n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sn(e,this.formSerializer).toString();if((c=a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Z(c?{"files[]":e}:e,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),cn(e)):e}],transformResponse:[function(e){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(e)||a.isReadableStream(e))return e;if(e&&a.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{H.headers[t]={}});const un=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"]),ln=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&un[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Re=Symbol("internals");function j(t){return t&&String(t).trim().toLowerCase()}function V(t){return t===!1||t==null?t:a.isArray(t)?t.map(V):String(t)}function fn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const dn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function te(t,e,n,r,s){if(a.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function pn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function hn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class T{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=V(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(a.isString(e)&&(e=e.trim())&&!dn(e))i(ln(e),n);else if(a.isHeaders(e))for(const[c,f]of e.entries())o(f,c,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=j(e),e){const r=a.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return fn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=j(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||te(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||te(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||te(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=V(s),delete n[o];return}const c=e?pn(o):String(o).trim();c!==o&&delete n[o],n[c]=V(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Re]=this[Re]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(hn(s,i),r[c]=!0)}return a.isArray(e)?e.forEach(o):o(e),this}}T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});a.freezeMethods(T);function ne(t,e){const n=this||H,r=e||n,s=T.from(r.headers);let o=r.data;return a.forEach(t,function(c){o=c.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function $e(t){return!!(t&&t.__CANCEL__)}function k(t,e,n){m.call(this,t??"canceled",m.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Ke(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function yn(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-i<e)return;const S=l&&u-l;return S?Math.round(b*1e3/S):void 0}}function bn(t,e){let n=0,r=1e3/e,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const W=(t,e,n=3)=>{let r=0;const s=yn(50,250);return bn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(d)},n)},Ce=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Oe=t=>(...e)=>a.asap(()=>t(...e)),wn=O.hasStandardBrowserEnv?function(){const e=O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),gn=O.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Sn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function En(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Xe(t,e){return t&&!Sn(e)?En(t,e):e}const Te=t=>t instanceof T?{...t}:t;function v(t,e){e=e||{};const n={};function r(u,l,d){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:d},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in e)return r(u,l);if(d in t)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l)=>s(Te(u),Te(l),!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=f[l]||s,b=d(t[l],e[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Qe=t=>{const e=v({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=e;e.headers=i=T.from(i),e.url=Je(Xe(e.baseURL,e.url),t.params,t.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&wn(e.url))){const u=s&&o&&gn.read(o);u&&i.set(s,u)}return e},Rn=typeof XMLHttpRequest<"u",Cn=Rn&&function(t){return new Promise(function(n,r){const s=Qe(t);let o=s.data;const i=T.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,S,p;function y(){S&&S(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const R=T.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:t,request:h};Ke(function(F){n(F),y()},function(F){r(F),y()},C),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,t,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||Ve;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,C.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,t,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,C){h.setRequestHeader(C,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=W(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=W(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(l=R=>{h&&(r(!R||R.type?new k(null,t,h):R),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const E=mn(s.url);if(E&&O.protocols.indexOf(E)===-1){r(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,t));return}h.send(o||null)})},On=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,o(new m(`timeout ${e} of ms exceeded`,m.ETIMEDOUT))},e);const c=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},Tn=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},An=async function*(t,e){for await(const n of xn(t))yield*Tn(n,e)},xn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ae=(t,e,n,r)=>{const s=An(t,e);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Y=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ze=Y&&typeof ReadableStream=="function",Nn=Y&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ye=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Pn=Ze&&Ye(()=>{let t=!1;const e=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),xe=64*1024,ae=Ze&&Ye(()=>a.isReadableStream(new Response("").body)),$={stream:ae&&(t=>t.body)};Y&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$[e]&&($[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new m(`Response type '${e}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const _n=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(O.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await Nn(t)).byteLength},Bn=async(t,e)=>{const n=a.toFiniteNumber(t.getContentLength());return n??_n(e)},Fn=Y&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Qe(t);u=u?(u+"").toLowerCase():"text";let S=On([s,o&&o.toAbortSignal()],i),p;const y=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&Pn&&n!=="get"&&n!=="head"&&(h=await Bn(l,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=C.headers.get("content-type"))&&l.setContentType(_),C.body){const[F,z]=Ce(h,W(Oe(f)));r=Ae(C.body,xe,F,z)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(e,{...b,signal:S,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let E=await fetch(p);const R=ae&&(u==="stream"||u==="response");if(ae&&(c||R&&y)){const C={};["status","statusText","headers"].forEach(ye=>{C[ye]=E[ye]});const _=a.toFiniteNumber(E.headers.get("content-length")),[F,z]=c&&Ce(_,W(Oe(c),!0))||[];E=new Response(Ae(E.body,xe,F,()=>{z&&z(),y&&y()}),C)}u=u||"text";let P=await $[a.findKey($,u)||"text"](E,t);return!R&&y&&y(),await new Promise((C,_)=>{Ke(C,_,{data:P,headers:T.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,t,p),{cause:w.cause||w}):m.from(w,w&&w.code,t,p)}}),ce={http:Vt,xhr:Cn,fetch:Fn};a.forEach(ce,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ne=t=>`- ${t}`,Dn=t=>a.isFunction(t)||t===null||t===!1,et={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!Dn(n)&&(r=ce[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
|
|
4
|
+
`+o.map(Ne).join(`
|
|
5
|
+
`):" "+Ne(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ce};function re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new k(null,t)}function Pe(t){return re(t),t.headers=T.from(t.headers),t.data=ne.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),et.getAdapter(t.adapter||H.adapter)(t).then(function(r){return re(t),r.data=ne.call(t,t.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return $e(r)||(re(t),r&&r.response&&(r.response.data=ne.call(t,t.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const tt="1.7.7",he={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{he[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const _e={};he.transitional=function(e,n,r){function s(o,i){return"[Axios v"+tt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(e===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!_e[i]&&(_e[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,c):!0}};function Ln(t,e,n){if(typeof t!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const c=t[o],f=c===void 0||i(c,o,t);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const ue={assertOptions:Ln,validators:he},B=ue.validators;class L{constructor(e){this.defaults=e,this.interceptors={request:new Ee,response:new Ee}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=v(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=T.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[Pe.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d<b;)l=l.then(p[d++],p[d++]);return l}b=c.length;let S=n;for(d=0;d<b;){const p=c[d++],y=c[d++];try{S=p(S)}catch(h){y.call(this,h);break}}try{l=Pe.call(this,S)}catch(p){return Promise.reject(p)}for(d=0,b=u.length;d<b;)l=l.then(u[d++],u[d++]);return l}getUri(e){e=v(this.defaults,e);const n=Xe(e.baseURL,e.url);return Je(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(e){L.prototype[e]=function(n,r){return this.request(v(r||{},{method:e,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,c){return this.request(v(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}L.prototype[e]=n(),L.prototype[e+"Form"]=n(!0)});class me{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new me(function(s){e=s}),cancel:e}}}function vn(t){return function(n){return t.apply(null,n)}}function Un(t){return a.isObject(t)&&t.isAxiosError===!0}const le={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(le).forEach(([t,e])=>{le[e]=t});function nt(t){const e=new L(t),n=De(L.prototype.request,e);return a.extend(n,L.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return nt(v(t,s))},n}const g=nt(H);g.Axios=L;g.CanceledError=k;g.CancelToken=me;g.isCancel=$e;g.VERSION=tt;g.toFormData=Z;g.AxiosError=m;g.Cancel=g.CanceledError;g.all=function(e){return Promise.all(e)};g.spread=vn;g.isAxiosError=Un;g.mergeConfig=v;g.AxiosHeaders=T;g.formToJSON=t=>We(a.isHTMLForm(t)?new FormData(t):t);g.getAdapter=et.getAdapter;g.HttpStatusCode=le;g.default=g;exports.EventBus=Be;exports.PluginManager=Fe;exports.axios=g;exports.loadAsyncComponent=G;exports.pluginManager=it;
|