Files
workspace/code/fms/fms-vue/.tmp-build/assets/api-BHfsXASe.js
T
2026-09-05 17:25:35 +08:00

9 lines
49 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{Kt as e,M as t,_ as n,it as r,ut as i}from"./_plugin-vue_export-helper-Ktpf6lZe.js";import{n as a}from"./pinia-C_7Z-Pt5.js";import{t as o}from"./ui-BhP3ZSBa.js";function s(e,t){return function(){return e.apply(t,arguments)}}var{toString:c}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:u,toStringTag:d}=Symbol,f=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),p=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),f(n,t))return!0;n=l(n)}return!1},m=(e,t)=>e!=null&&p(e,t)?e[t]:void 0,h=(e=>t=>{let n=c.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),g=e=>(e=e.toLowerCase(),t=>h(t)===e),_=e=>t=>typeof t===e,{isArray:v}=Array,y=_(`undefined`);function b(e){return e!==null&&!y(e)&&e.constructor!==null&&!y(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var x=g(`ArrayBuffer`);function S(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer),t}var ee=_(`string`),C=_(`function`),w=_(`number`),T=e=>typeof e==`object`&&!!e,E=e=>e===!0||e===!1,D=e=>{if(!T(e))return!1;let t=l(e);return(t===null||t===Object.prototype||l(t)===null)&&!p(e,d)&&!p(e,u)},te=e=>{if(!T(e)||b(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},O=g(`Date`),k=g(`File`),A=e=>!!(e&&e.uri!==void 0),j=e=>e&&e.getParts!==void 0,M=g(`Blob`),ne=g(`FileList`),re=g(`Set`),ie=e=>T(e)&&C(e.pipe);function N(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var ae=N(),P=ae.FormData===void 0?void 0:ae.FormData,F=e=>{if(!e)return!1;if(P&&e instanceof P)return!0;let t=l(e);if(!t||t===Object.prototype||!C(e.append))return!1;let n=h(e);return n===`formdata`||n===`object`&&C(e.toString)&&e.toString()===`[object FormData]`},oe=g(`URLSearchParams`),[se,ce,le,ue]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(g),de=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function I(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),v(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(b(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function fe(e,t){if(b(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var L=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,pe=e=>!y(e)&&e!==L;function me(...e){let{caseless:t,skipUndefined:n}=pe(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&fe(r,i)||i,o=f(r,a)?r[a]:void 0;D(o)&&D(e)?r[a]=me(o,e):D(e)?r[a]=me({},e):v(e)?r[a]=e.slice():(!n||!y(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||b(n)||(I(n,i),typeof n!=`object`||v(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ee.call(n,t)&&i(n[t],t)}}return r}var he=(e,t,n,{allOwnKeys:r}={})=>(I(t,(t,r)=>{n&&C(t)?Object.defineProperty(e,r,{__proto__:null,value:s(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ge=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ve=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},be=e=>{if(!e)return null;if(v(e))return e;let t=e.length;if(!w(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&l(Uint8Array)),Se=(e,t)=>{let n=(e&&e[u]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ce=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},we=g(`HTMLFormElement`),Te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ee}=Object.prototype,De=g(`RegExp`),Oe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};I(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ke=e=>{Oe(e,(t,n)=>{if(C(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(C(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ae=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return v(e)?r(e):r(String(e).split(t)),n},je=()=>{},Me=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ne(e){return!!(e&&C(e.append)&&e[d]===`FormData`&&e[u])}var Pe=e=>{let t=new WeakSet,n=e=>{if(T(e)){if(t.has(e))return;if(b(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(re(e)){r=[];for(let t of e){let e=n(t);!y(e)&&r.push(e)}}else r=v(e)?[]:{},I(e,(e,t)=>{let i=n(e);!y(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Fe=g(`AsyncFunction`),Ie=e=>e&&(T(e)||C(e))&&C(e.then)&&C(e.catch),Le=((e,t)=>e?setImmediate:t?((e,t)=>(L.addEventListener(`message`,({source:n,data:r})=>{n===L&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),L.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,C(L.postMessage)),Re=typeof queueMicrotask<`u`?queueMicrotask.bind(L):typeof process<`u`&&process.nextTick||Le,ze=e=>e!=null&&C(e[u]),R={isArray:v,isArrayBuffer:x,isBuffer:b,isFormData:F,isArrayBufferView:S,isString:ee,isNumber:w,isBoolean:E,isObject:T,isPlainObject:D,isEmptyObject:te,isReadableStream:se,isRequest:ce,isResponse:le,isHeaders:ue,isUndefined:y,isDate:O,isFile:k,isReactNativeBlob:A,isReactNative:j,isBlob:M,isRegExp:De,isFunction:C,isStream:ie,isURLSearchParams:oe,isTypedArray:xe,isFileList:ne,forEach:I,merge:me,extend:he,trim:de,stripBOM:ge,inherits:_e,toFlatObject:ve,kindOf:h,kindOfTest:g,endsWith:ye,toArray:be,forEachEntry:Se,matchAll:Ce,isHTMLForm:we,hasOwnProperty:f,hasOwnProp:f,hasOwnInPrototypeChain:p,getSafeProp:m,reduceDescriptors:Oe,freezeMethods:ke,toObjectSet:Ae,toCamelCase:Te,noop:je,toFiniteNumber:Me,findKey:fe,global:L,isContextDefined:pe,isSpecCompliantForm:Ne,toJSONObject:Pe,isAsyncFn:Fe,isThenable:Ie,setImmediate:Le,asap:Re,isIterable:ze,isSafeIterable:e=>e!=null&&p(e,u)&&ze(e)},Be=R.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`]),Ve=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=R.hasOwnProp(t,n);!n||a&&R.hasOwnProp(Be,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function He(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Ue=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),We=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ge(e,t){return R.isArray(e)?e.map(e=>Ge(e,t)):He(String(e).replace(t,``))}var Ke=e=>Ge(e,Ue),qe=e=>Ge(e,We);function Je(e){let t=Object.create(null);return R.forEach(e.toJSON(),(e,n)=>{t[n]=qe(e)}),t}var Ye=Symbol(`internals`);function z(e){return e&&String(e).trim().toLowerCase()}function B(e){return e===!1||e==null?e:R.isArray(e)?e.map(B):Ke(String(e))}function Xe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Ze=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Qe(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function $e(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function et(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=Qe(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=Qe(i.slice(0,a));if(!Ze.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=Qe(i.slice(a+1));t[s]=$e(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var tt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nt(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function rt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function it(e,t){let n=R.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var V=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=z(t);if(!i)return;let a=R.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=B(e))}let a=(e,t)=>R.forEach(e,(e,n)=>i(e,n,t));if(R.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(R.isString(e)&&(e=e.trim())&&!tt(e))a(Ve(e),t);else if(R.isObject(e)&&R.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!R.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],R.hasOwnProp(n,i)?(r=n[i],n[i]=R.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=z(e),e){let n=R.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Xe(e);if(R.isFunction(t))return t.call(this,e,n);if(R.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=z(e),e){let n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||nt(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=z(e),e){let i=R.findKey(n,e);i&&(!t||nt(n,n[i],i,t))&&(delete n[i],r=!0)}}return R.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||nt(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return R.forEach(this,(r,i)=>{let a=R.findKey(n,i);if(a){t[a]=B(r),delete t[i];return}let o=e?rt(i):String(i).trim();o!==i&&delete t[i],t[o]=B(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return R.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&R.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){let e=this.get(`set-cookie`);return R.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return et(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=z(e);t[r]||(it(n,e),t[r]=!0)}return R.isArray(e)?e.forEach(r):r(e),this}};V.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),R.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),R.freezeMethods(V);var H=`[REDACTED ****]`;function at(e){if(R.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(R.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ot(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||R.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof V&&(e=e.toJSON()),r.push(e);let t;if(R.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);R.isUndefined(r)||(t[n]=r)});else{if(!R.isPlainObject(e)&&at(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?H:i(a);R.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function st(e){try{return String(e)}catch{return``}}function ct(e){return e.errors.map(e=>{try{return e&&e.message?st(e.message):st(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var U=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&R.isArray(t.errors)&&t.errors.length&&(s=ct(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&R.hasOwnProp(e,`redact`)?e.redact:void 0,n=R.isArray(t)&&t.length>0?ot(e,t):R.toJSONObject(e);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:n,code:this.code,status:this.status}}};U.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,U.ERR_BAD_OPTION=`ERR_BAD_OPTION`,U.ECONNABORTED=`ECONNABORTED`,U.ETIMEDOUT=`ETIMEDOUT`,U.ECONNREFUSED=`ECONNREFUSED`,U.ERR_NETWORK=`ERR_NETWORK`,U.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,U.ERR_DEPRECATED=`ERR_DEPRECATED`,U.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,U.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,U.ERR_CANCELED=`ERR_CANCELED`,U.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,U.ERR_INVALID_URL=`ERR_INVALID_URL`,U.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function lt(e){return R.isPlainObject(e)||R.isArray(e)}function ut(e){return R.endsWith(e,`[]`)?e.slice(0,-2):e}function dt(e,t,n){return e?e.concat(t).map(function(e,t){return e=ut(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function ft(e){return R.isArray(e)&&!e.some(lt)}var pt=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function W(e,t,n){if(!R.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!R.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&R.isSpecCompliantForm(t),u=[];if(!R.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(R.isDate(e))return e.toISOString();if(R.isBoolean(e))return e.toString();if(!l&&R.isBlob(e))throw new U(`Blob is not supported. Use a Buffer instead.`);if(R.isArrayBuffer(e)||R.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);throw new U(`Blob is not supported. Use a Buffer instead.`,U.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new U(`Object is too deeply nested (`+e+` levels). Max depth: `+c,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!R.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(R.isReactNative(t)&&R.isReactNativeBlob(e))return t.append(dt(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(R.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(R.isArray(e)&&ft(e)||(R.isFileList(e)||R.endsWith(n,`[]`))&&(s=R.toArray(e)))return n=ut(n),s.forEach(function(e,r){!(R.isUndefined(e)||e===null)&&t.append(o===!0?dt([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return lt(e)?!0:(t.append(dt(i,n,a),d(e)),!1)}let h=Object.assign(pt,{defaultVisitor:m,convertValue:d,isVisitable:lt});function g(e,n,r=0){if(!R.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),R.forEach(e,function(e,a){(!(R.isUndefined(e)||e===null)&&i.call(t,e,R.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!R.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function mt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ht(e,t){this._pairs=[],e&&W(e,this,t)}var gt=ht.prototype;gt.append=function(e,t){this._pairs.push([e,t])},gt.toString=function(e){let t=e?t=>e.call(this,t,mt):mt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function _t(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function vt(e,t,n){if(!t)return e;e||=``;let r=R.isFunction(n)?{serialize:n}:n,i=R.getSafeProp(r,`encode`)||_t,a=R.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):R.isURLSearchParams(t)?t.toString():new ht(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var yt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}},bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},xt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:ht,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},St=e({hasBrowserEnv:()=>Ct,hasStandardBrowserEnv:()=>Tt,hasStandardBrowserWebWorkerEnv:()=>Et,navigator:()=>wt,origin:()=>Dt}),Ct=typeof window<`u`&&typeof document<`u`,wt=typeof navigator==`object`&&navigator||void 0,Tt=Ct&&(!wt||[`ReactNative`,`NativeScript`,`NS`].indexOf(wt.product)<0),Et=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Dt=Ct&&window.location.href||`http://localhost`,G={...St,...xt};function Ot(e,t){return W(e,new G.classes.URLSearchParams,{visitor:function(e,t,n,r){return G.isNode&&R.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var kt=100;function At(e){if(e>kt)throw new U(`FormData field is too deeply nested (`+e+` levels). Max depth: `+kt,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function jt(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)At(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Mt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Nt(e){function t(e,n,r,i){At(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&R.isArray(r)?r.length:a,s?(R.hasOwnProp(r,a)?r[a]=R.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!R.hasOwnProp(r,a)||!R.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&R.isArray(r[a])&&(r[a]=Mt(r[a])),!o)}if(R.isFormData(e)&&R.isFunction(e.entries)){let n={};return R.forEachEntry(e,(e,r)=>{t(jt(e),r,n,0)}),n}return null}var K=(e,t)=>e!=null&&R.hasOwnProp(e,t)?e[t]:void 0;function Pt(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var q={transitional:bt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return r?JSON.stringify(Nt(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=K(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Ot(e,t).toString();if((a=R.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=K(this,`env`),r=n&&n.FormData;return W(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Pt(e)):e}],transformResponse:[function(e){let t=K(this,`transitional`)||q.transitional,n=t&&t.forcedJSONParsing,r=K(this,`responseType`),i=r===`json`;if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,K(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?U.from(e,U.ERR_BAD_RESPONSE,this,null,K(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{q.headers[e]={}});function Ft(e,t){let n=this||q,r=t||n,i=V.from(r.headers),a=r.data;return R.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function It(e){return!!(e&&e.__CANCEL__)}var J=class extends U{constructor(e,t,n){super(e??`canceled`,U.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Lt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U(`Request failed with status code `+n.status,n.status>=400&&n.status<500?U.ERR_BAD_REQUEST:U.ERR_BAD_RESPONSE,n.config,n.request,n))}function Rt(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function zt(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Bt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Vt=(e,t,n=3)=>{let r=0,i=zt(50,250);return Bt(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ht=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ut=(e,t=R.asap)=>(...n)=>t(()=>e(...n)),Wt=G.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,G.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(G.origin),G.navigator&&/(msie|trident)/i.test(G.navigator.userAgent)):()=>!0,Gt=G.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&s.push(`path=${r}`),R.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),R.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Kt(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qt(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var Jt=/^https?:(?!\/\/)/i,Yt=/[\t\n\r]/g;function Xt(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Zt(e){return Xt(e).replace(Yt,``)}function Qt(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${H}`)}function $t(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${H}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${H}`);return n===-1?r:`${r}#${Qt(t.slice(n+1))}`}function en(e,t){if(typeof e==`string`){let n=Zt(e);if(Jt.test(n))throw new U(`Invalid URL ${JSON.stringify($t(n))}: missing "//" after protocol`,U.ERR_INVALID_URL,t)}}function tn(e,t,n,r){en(t,r);let i=!Kt(t);return e&&(i||n===!1)?(en(e,r),qt(e,t)):t}var nn=e=>e instanceof V?{...e}:e,rn=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Y(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return R.isPlainObject(e)&&R.isPlainObject(t)?R.merge.call({caseless:r},e,t):R.isPlainObject(t)?R.merge({},t):R.isArray(t)?t.slice():t}function i(e,t,n,i){if(!R.isUndefined(t))return r(e,t,n,i);if(!R.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!R.isUndefined(t))return r(void 0,t)}function o(e,t){if(!R.isUndefined(t))return r(void 0,t);if(!R.isUndefined(e))return r(void 0,e)}function s(n){let r=R.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!R.isUndefined(r)){if(R.isPlainObject(r)){if(R.hasOwnProp(r,n))return r[n]}else return}let i=R.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(R.isPlainObject(i)&&R.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(R.hasOwnProp(t,a))return r(n,i);if(R.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,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,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(nn(e),nn(t),n,!0)};return R.forEach(rn({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=R.hasOwnProp(l,r)?l[r]:i,o=a(R.hasOwnProp(e,r)?e[r]:void 0,R.hasOwnProp(t,r)?t[r]:void 0,r);R.isUndefined(o)&&a!==c||(n[r]=o)}),R.hasOwnProp(t,`validateStatus`)&&R.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(R.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var an=[`content-type`,`content-length`];function on(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{an.includes(t.toLowerCase())&&e.set(t,n)})}var sn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function cn(e){let t=Y({},e),n=e=>R.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=V.from(s),t.url=vt(tn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=R.getSafeProp(c,`username`)||``,n=R.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?sn(n):``)))}catch(t){throw U.from(t,U.ERR_BAD_OPTION_VALUE,e)}}if(R.isFormData(r)&&(G.hasStandardBrowserEnv||G.hasStandardBrowserWebWorkerEnv||R.isReactNative(r)?s.setContentType(void 0):R.isFunction(r.getHeaders)&&on(s,r.getHeaders(),n(`formDataHeaderPolicy`))),G.hasStandardBrowserEnv&&(R.isFunction(i)&&(i=i(t)),i===!0||i==null&&Wt(t.url))){let e=a&&o&&Gt.read(o);e&&s.set(a,e)}return t}var ln=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=cn(e),i=r.data,a=V.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=V.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Lt(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new U(`Request aborted`,U.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new U(t&&t.message?t.message:`Network Error`,U.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||bt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new U(t,i.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&R.forEach(Je(a),function(e,t){h.setRequestHeader(t,e)}),R.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Vt(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Vt(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new J(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Rt(r.url);if(_&&!G.protocols.includes(_)){n(new U(`Unsupported protocol `+_+`:`,U.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},un=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof U?t:new J(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new U(`timeout of ${t}ms exceeded`,U.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>R.asap(o),s},dn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},fn=async function*(e,t){for await(let n of pn(e))yield*dn(n,t)},pn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},mn=(e,t,n,r)=>{let i=fn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},hn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gn=(e,t,n)=>t+2<n&&hn(e.charCodeAt(t+1))&&hn(e.charCodeAt(t+2)),_n=e=>e<=57?e-48:(e&223)-55,vn=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yn=e=>e===9||e===10||e===12||e===13||e===32,bn=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},xn=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Sn=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&gn(e,a,t)&&(o=_n(e.charCodeAt(a+1))*16+_n(e.charCodeAt(a+2)),a+=2),!yn(o)){if(o===61){r++;continue}if(!vn(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?xn(e):bn(n)},Cn=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&gn(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function wn(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Cn(t===-1?e:e.slice(0,t),Sn)}var Tn=`1.19.0`,En=65536,{isFunction:Dn}=R,On=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),kn=e=>{if(!R.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},An=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Mn=e=>{let t=R.global!==void 0&&R.global!==null?R.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=R.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Dn(i):typeof fetch==`function`,c=Dn(a),l=Dn(o);if(!s)return!1;let u=s&&Dn(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&An(()=>{let e=!1,t=new a(G.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&An(()=>R.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new a(G.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e+=``),R.isString(e))return(await d(e)).byteLength},g=async(e,t)=>R.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:ee,maxContentLength:C,maxBodyLength:w}=cn(e),T=R.isNumber(C)&&C>-1,E=R.isNumber(w)&&w>-1,D=t=>R.hasOwnProp(e,t)?e[t]:void 0,te=i||fetch;b=b?(b+``).toLowerCase():`text`;let O=un([l,d&&d.toAbortSignal()],_),k=null,A=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),j,M=null,ne=()=>new U(`Request body larger than maxBodyLength limit`,U.ERR_BAD_REQUEST,e,k);try{let i,l=D(`auth`);if(l&&(i={username:R.getSafeProp(l,`username`)||``,password:R.getSafeProp(l,`password`)||``}),jn(t)){let e=new URL(t,G.origin);!i&&(e.username||e.password)&&(i={username:kn(e.username),password:kn(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(On((i.username||``)+`:`+(i.password||``))))),T&&typeof t==`string`&&t.startsWith(`data:`)&&wn(t)>C)throw new U(`maxContentLength size of `+C+` exceeded`,U.ERR_BAD_RESPONSE,e,k);if(E&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(j=e,e>w))throw ne()}let d=E&&(R.isReadableStream(s)||R.isStream(s)),_=(e,t,n)=>mn(e,En,e=>{if(E&&e>w)throw M=ne();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(j??=await g(x,s),j!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(R.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&Ht(j,Vt(Ut(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new U(`Stream request bodies are not supported by the current fetch implementation`,U.ERR_NOT_SUPPORT,e,k);R.isString(S)||(S=S?`include`:`omit`);let re=c&&`credentials`in a.prototype;if(R.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Tn,!1);let ie={...ee,signal:O,method:n.toUpperCase(),headers:Je(x.normalize()),body:s,duplex:`half`,credentials:re?S:void 0};k=c&&new a(t,ie);let N=await(c?te(k,ee):te(t,ie)),ae=V.from(N.headers);if(T){let t=R.toFiniteNumber(ae.getContentLength());if(t!=null&&t>C)throw new U(`maxContentLength size of `+C+` exceeded`,U.ERR_BAD_RESPONSE,e,k)}let P=p&&(b===`stream`||b===`response`);if(p&&N.body&&(v||T||P&&A)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=N[e]});let n=R.toFiniteNumber(ae.getContentLength()),[r,i]=v&&Ht(n,Vt(Ut(v),!0))||[],a=0;N=new o(mn(N.body,En,t=>{if(T&&(a=t,a>C))throw new U(`maxContentLength size of `+C+` exceeded`,U.ERR_BAD_RESPONSE,e,k);r&&r(t)},()=>{i&&i(),A&&A()}),t)}b||=`text`;let F=await m[R.findKey(m,b)||`text`](N,e);if(T&&!p&&!P){let t;if(F!=null&&(typeof F.byteLength==`number`?t=F.byteLength:typeof F.size==`number`?t=F.size:typeof F==`string`&&(t=typeof r==`function`?new r().encode(F).byteLength:F.length)),typeof t==`number`&&t>C)throw new U(`maxContentLength size of `+C+` exceeded`,U.ERR_BAD_RESPONSE,e,k)}return!P&&A&&A(),await new Promise((t,n)=>{Lt(t,n,{data:F,headers:V.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:k})})}catch(t){if(A&&A(),O&&O.aborted&&O.reason instanceof U){let n=O.reason;throw n.config=e,k&&(n.request=k),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(M)throw k&&!M.request&&(M.request=k),M;if(t instanceof U)throw k&&!t.request&&(t.request=k),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new U(`Network Error`,U.ERR_NETWORK,e,k,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw U.from(t,t&&t.code,e,k,t&&t.response)}}},Nn=new Map,Pn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Nn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Mn(t)),l=c;return c};Pn();var Fn={http:null,xhr:ln,fetch:{get:Pn}};R.forEach(Fn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var In=e=>`- ${e}`,Ln=e=>R.isFunction(e)||e===null||e===!1;function Rn(e,t){e=R.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Ln(r)&&(i=Fn[(n=String(r)).toLowerCase()],i===void 0))throw new U(`Unknown adapter '${n}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new U(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(In).join(`
`):` `+In(e[0]):`as no adapter specified`),U.ERR_NOT_SUPPORT)}return i}var zn={getAdapter:Rn,adapters:Fn};function Bn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new J(null,e)}function Vn(e){return Bn(e),e.headers=V.from(e.headers),e.data=Ft.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),zn.getAdapter(e.adapter||q.adapter,e)(e).then(function(t){Bn(e),e.response=t;try{t.data=Ft.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=V.from(t.headers),t},function(t){if(!It(t)&&(Bn(e),t&&t.response)){e.response=t.response;try{t.response.data=Ft.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=V.from(t.response.headers)}return Promise.reject(t)})}var Hn={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Hn[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Un={};Hn.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Tn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new U(r(i,` has been removed`+(t?` in `+t:``)),U.ERR_DEPRECATED);return t&&!Un[i]&&(Un[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},Hn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Wn(e,t,n){if(typeof e!=`object`||!e)throw new U(`options must be an object`,U.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new U(`option `+a+` must be `+n,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U(`Unknown option `+a,U.ERR_BAD_OPTION)}}var Gn={assertOptions:Wn,validators:Hn},X=Gn.validators,Z=class{constructor(e){this.defaults=e||{},this.interceptors={request:new yt,response:new yt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
`),r=t===-1?-1:n.indexOf(`
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Y(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Gn.assertOptions(n,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean),legacyInterceptorReqResOrdering:X.transitional(X.boolean),advertiseZstdAcceptEncoding:X.transitional(X.boolean),validateStatusUndefinedResolves:X.transitional(X.boolean)},!1),r!=null&&(R.isFunction(r)?t.paramsSerializer={serialize:r}:Gn.assertOptions(r,{encode:X.function,serialize:X.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Gn.assertOptions(t,{baseUrl:X.spelling(`baseURL`),withXsrfToken:X.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&R.merge(i.common,i[t.method]);i&&R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=V.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||bt;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Vn.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);R.isThenable(n)&&(l=Promise.resolve(n).then(()=>Vn.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Vn.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Y(this.defaults,e),vt(tn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};R.forEach([`delete`,`get`,`head`,`options`],function(e){Z.prototype[e]=function(t,n){return this.request(Y(n||{},{method:e,url:t,data:n&&R.hasOwnProp(n,`data`)?n.data:void 0}))}}),R.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Y(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Z.prototype[e]=t(),e!==`query`&&(Z.prototype[e+`Form`]=t(!0))});var Kn=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new J(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function qn(e){return function(t){return e.apply(null,t)}}function Jn(e){return R.isObject(e)&&e.isAxiosError===!0}var Yn={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Yn).forEach(([e,t])=>{Yn[t]=e});function Xn(e){let t=new Z(e),n=s(Z.prototype.request,t);return R.extend(n,Z.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Xn(Y(e,t))},n}var Q=Xn(q);Q.Axios=Z,Q.CanceledError=J,Q.CancelToken=Kn,Q.isCancel=It,Q.VERSION=Tn,Q.toFormData=W,Q.AxiosError=U,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=qn,Q.isAxiosError=Jn,Q.mergeConfig=Y,Q.AxiosHeaders=V,Q.formToJSON=e=>Nt(R.isHTMLForm(e)?new FormData(e):e),Q.getAdapter=zn.getAdapter,Q.HttpStatusCode=Yn,Q.default=Q,t(),r();var Zn=a(`auth`,()=>{let e=i({token:``,user:null}),t=i({orgId:``,account:``}),r=n(()=>!!e.value.token);function a(n,r){e.value={token:n.token??n.access_token??``,user:n.user??n.user_info??null},t.value.orgId=n.orgid??r??``}function o(){e.value={token:``,user:null}}function s(e,n){t.value={orgId:e??``,account:n??``}}return{loginInfo:e,userInfo:t,isAuthenticated:r,setSession:a,clearSession:o,saveLastLogin:s}},{persist:[{key:`fms-login`,storage:sessionStorage,pick:[`loginInfo`]},{key:`fms-user`,storage:localStorage,pick:[`userInfo`]}]}),Qn=401,$n=40101,er=Q.create({baseURL:`/api`,timeout:15e3,headers:{Accept:`application/json`,"Content-Type":`application/json`}}),tr=!1;function nr(e){if((window.location.pathname.replace(/\/+$/,``)||`/`)===`/login`||tr)return;tr=!0;let t=`${window.location.pathname}${window.location.search}${window.location.hash}`,n=new URLSearchParams({redirect:t});e&&n.set(`reason`,e),window.location.assign(`/login?${n.toString()}`)}function rr(e){return e===Qn||e===$n}function ir(e){Zn().clearSession(),nr(e===$n?`session-replaced`:`expired`)}er.interceptors.request.use(e=>{let t=Zn();return t.loginInfo.token&&(e.headers.Authorization=`Bearer ${t.loginInfo.token}`),e}),er.interceptors.response.use(e=>{let t=e.data;if(t?.code===void 0)return{success:!0,code:0,message:``,data:t};if(t.success=t.code===0,t.success)return e;rr(t.code)&&ir(t.code);let n=Error(t.message||`请求失败`);throw n.code=t.code,n.data=t.data,n.success=t.success,n},e=>{let t=e.response?.status,n=e.response?.data,r=n?.code??t??0;rr(r)&&ir(r);let i=n?.message||(e.code===`ECONNABORTED`?`请求超时,请稍后重试`:`网络异常,请检查服务是否正常`),a=Error(i);throw a.code=n?.code??t??-1,a.data=n?.data,a.success=!1,(!t||t>=500)&&(o.error(i),a.toasted=!0),a});function $(e,t,n){return er.post(e,t,n).then(e=>e.data)}function ar(e,t,n){return $(`/auth/login`,{orgid:e,userid:t,password:n})}function or(e,t,n,r){return $(`/data/loaddata`,{view_name:e,search_condition:t,order_by:n,search_columns:r})}function sr(e){return $(`/data/loaddatabysql`,{sql:e})}function cr({viewName:e,orderBy:t,searchColumns:n,searchCondition:r,pageNo:i=1,pageSize:a=20}){return $(`/data/page`,{view_name:e,order_by:t,search_columns:n,search_condition:r,page_no:i,page_size:a})}function lr(e){return $(`/data/saveobjt`,e)}function ur(e=1){return $(`/data/nextid`,{count:e})}function dr(e){return $(`/data/describe`,{table:e})}export{ur as a,$ as c,ar as i,Zn as l,or as n,cr as o,sr as r,lr as s,dr as t};