@sycsq/common 0.0.3 → 0.0.4
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/README.md +503 -215
- package/lib/http/Axios.cjs +1 -0
- package/lib/http/Axios.js +149 -0
- package/lib/http/axiosCancel.cjs +1 -0
- package/lib/http/axiosCancel.js +32 -0
- package/lib/http/axiosTransform.cjs +1 -0
- package/lib/http/axiosTransform.js +48 -0
- package/lib/http/helper.cjs +1 -0
- package/lib/http/helper.js +33 -0
- package/lib/http/types.cjs +1 -0
- package/lib/http/types.js +16 -0
- package/lib/http.cjs +1 -0
- package/lib/http.js +54 -0
- package/lib/index.cjs +1 -0
- package/lib/index.js +44 -0
- package/lib/utils.cjs +1 -0
- package/lib/utils.js +86 -0
- package/package.json +60 -19
- package/types/http/Axios.d.ts +8 -16
- package/types/http/index.d.ts +6 -1
- package/types/utils/index.d.ts +1 -1
- package/lib/index.esm.js +0 -3615
- package/lib/index.umd.js +0 -9
- package/lib/vite.svg +0 -1
package/lib/index.umd.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
(function(U,Ce){typeof exports=="object"&&typeof module<"u"?Ce(exports):typeof define=="function"&&define.amd?define(["exports"],Ce):(U=typeof globalThis<"u"?globalThis:U||self,Ce(U["@ssq/common"]={}))})(this,(function(U){"use strict";function Ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:Do}=Object.prototype,{getPrototypeOf:ft}=Object,{iterator:Ve,toStringTag:Fr}=Symbol,Ke=(e=>t=>{const r=Do.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ie=e=>(e=e.toLowerCase(),t=>Ke(t)===e),Qe=e=>t=>typeof t===e,{isArray:_e}=Array,Me=Qe("undefined");function Le(e){return e!==null&&!Me(e)&&e.constructor!==null&&!Me(e.constructor)&&Q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nr=ie("ArrayBuffer");function qo(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nr(e.buffer),t}const Io=Qe("string"),Q=Qe("function"),Dr=Qe("number"),ke=e=>e!==null&&typeof e=="object",Uo=e=>e===!0||e===!1,Xe=e=>{if(Ke(e)!=="object")return!1;const t=ft(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fr in e)&&!(Ve in e)},$o=e=>{if(!ke(e)||Le(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Bo=ie("Date"),Mo=ie("File"),Lo=ie("Blob"),ko=ie("FileList"),jo=e=>ke(e)&&Q(e.pipe),Ho=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Q(e.append)&&((t=Ke(e))==="formdata"||t==="object"&&Q(e.toString)&&e.toString()==="[object FormData]"))},Wo=ie("URLSearchParams"),[zo,Go,Jo,Vo]=["ReadableStream","Request","Response","Headers"].map(ie),Ko=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function je(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),_e(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Le(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function qr(e,t){if(Le(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ir=e=>!Me(e)&&e!==Ee;function pt(){const{caseless:e}=Ir(this)&&this||{},t={},r=(n,o)=>{const a=e&&qr(t,o)||o;Xe(t[a])&&Xe(n)?t[a]=pt(t[a],n):Xe(n)?t[a]=pt({},n):_e(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&je(arguments[n],r);return t}const Qo=(e,t,r,{allOwnKeys:n}={})=>(je(t,(o,a)=>{r&&Q(o)?e[a]=Ce(o,r):e[a]=o},{allOwnKeys:n}),e),Xo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yo=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Zo=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ft(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ei=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ti=e=>{if(!e)return null;if(_e(e))return e;let t=e.length;if(!Dr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ri=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ft(Uint8Array)),ni=(e,t)=>{const n=(e&&e[Ve]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},oi=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ii=ie("HTMLFormElement"),ai=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ur=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),si=ie("RegExp"),$r=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};je(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},ui=e=>{$r(e,(t,r)=>{if(Q(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Q(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},li=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return _e(e)?n(e):n(String(e).split(t)),r},ci=()=>{},fi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pi(e){return!!(e&&Q(e.append)&&e[Fr]==="FormData"&&e[Ve])}const di=e=>{const t=new Array(10),r=(n,o)=>{if(ke(n)){if(t.indexOf(n)>=0)return;if(Le(n))return n;if(!("toJSON"in n)){t[o]=n;const a=_e(n)?[]:{};return je(n,(i,s)=>{const g=r(i,o+1);!Me(g)&&(a[s]=g)}),t[o]=void 0,a}}return n};return r(e,0)},yi=ie("AsyncFunction"),hi=e=>e&&(ke(e)||Q(e))&&Q(e.then)&&Q(e.catch),Br=((e,t)=>e?setImmediate:t?((r,n)=>(Ee.addEventListener("message",({source:o,data:a})=>{o===Ee&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Q(Ee.postMessage)),mi=typeof queueMicrotask<"u"?queueMicrotask.bind(Ee):typeof process<"u"&&process.nextTick||Br,d={isArray:_e,isArrayBuffer:Nr,isBuffer:Le,isFormData:Ho,isArrayBufferView:qo,isString:Io,isNumber:Dr,isBoolean:Uo,isObject:ke,isPlainObject:Xe,isEmptyObject:$o,isReadableStream:zo,isRequest:Go,isResponse:Jo,isHeaders:Vo,isUndefined:Me,isDate:Bo,isFile:Mo,isBlob:Lo,isRegExp:si,isFunction:Q,isStream:jo,isURLSearchParams:Wo,isTypedArray:ri,isFileList:ko,forEach:je,merge:pt,extend:Qo,trim:Ko,stripBOM:Xo,inherits:Yo,toFlatObject:Zo,kindOf:Ke,kindOfTest:ie,endsWith:ei,toArray:ti,forEachEntry:ni,matchAll:oi,isHTMLForm:ii,hasOwnProperty:Ur,hasOwnProp:Ur,reduceDescriptors:$r,freezeMethods:ui,toObjectSet:li,toCamelCase:ai,noop:ci,toFiniteNumber:fi,findKey:qr,global:Ee,isContextDefined:Ir,isSpecCompliantForm:pi,toJSONObject:di,isAsyncFn:yi,isThenable:hi,setImmediate:Br,asap:mi,isIterable:e=>e!=null&&Q(e[Ve])};function C(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}d.inherits(C,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const Mr=C.prototype,Lr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lr[e]={value:e}}),Object.defineProperties(C,Lr),Object.defineProperty(Mr,"isAxiosError",{value:!0}),C.from=(e,t,r,n,o,a)=>{const i=Object.create(Mr);return d.toFlatObject(e,i,function(g){return g!==Error.prototype},s=>s!=="isAxiosError"),C.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const vi=null;function dt(e){return d.isPlainObject(e)||d.isArray(e)}function kr(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function jr(e,t,r){return e?e.concat(t).map(function(o,a){return o=kr(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function gi(e){return d.isArray(e)&&!e.some(dt)}const bi=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function Ye(e,t,r){if(!d.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=d.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,u){return!d.isUndefined(u[w])});const n=r.metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(t);if(!d.isFunction(o))throw new TypeError("visitor must be a function");function l(y){if(y===null)return"";if(d.isDate(y))return y.toISOString();if(d.isBoolean(y))return y.toString();if(!g&&d.isBlob(y))throw new C("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(y)||d.isTypedArray(y)?g&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,u){let h=y;if(y&&!u&&typeof y=="object"){if(d.endsWith(w,"{}"))w=n?w:w.slice(0,-2),y=JSON.stringify(y);else if(d.isArray(y)&&gi(y)||(d.isFileList(y)||d.endsWith(w,"[]"))&&(h=d.toArray(y)))return w=kr(w),h.forEach(function(E,O){!(d.isUndefined(E)||E===null)&&t.append(i===!0?jr([w],O,a):i===null?w:w+"[]",l(E))}),!1}return dt(y)?!0:(t.append(jr(u,w,a),l(y)),!1)}const b=[],S=Object.assign(bi,{defaultVisitor:c,convertValue:l,isVisitable:dt});function v(y,w){if(!d.isUndefined(y)){if(b.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));b.push(y),d.forEach(y,function(h,m){(!(d.isUndefined(h)||h===null)&&o.call(t,h,d.isString(m)?m.trim():m,w,S))===!0&&v(h,w?w.concat(m):[m])}),b.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Hr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function yt(e,t){this._pairs=[],e&&Ye(e,this,t)}const Wr=yt.prototype;Wr.append=function(t,r){this._pairs.push([t,r])},Wr.toString=function(t){const r=t?function(n){return t.call(this,n,Hr)}:Hr;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Si(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zr(e,t,r){if(!t)return e;const n=r&&r.encode||Si;d.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(t,r):a=d.isURLSearchParams(t)?t.toString():new yt(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Gr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){d.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Jr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wi={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ht=typeof window<"u"&&typeof document<"u",mt=typeof navigator=="object"&&navigator||void 0,Ei=ht&&(!mt||["ReactNative","NativeScript","NS"].indexOf(mt.product)<0),Oi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ai=ht&&window.location.href||"http://localhost",G={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ht,hasStandardBrowserEnv:Ei,hasStandardBrowserWebWorkerEnv:Oi,navigator:mt,origin:Ai},Symbol.toStringTag,{value:"Module"})),...wi};function Ri(e,t){return Ye(e,new G.classes.URLSearchParams,{visitor:function(r,n,o,a){return G.isNode&&d.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Pi(e){return d.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ti(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Vr(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),g=a>=r.length;return i=!i&&d.isArray(o)?o.length:i,g?(d.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!d.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&d.isArray(o[i])&&(o[i]=Ti(o[i])),!s)}if(d.isFormData(e)&&d.isFunction(e.entries)){const r={};return d.forEachEntry(e,(n,o)=>{t(Pi(n),o,r,0)}),r}return null}function xi(e,t,r){if(d.isString(e))try{return(t||JSON.parse)(e),d.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const He={transitional:Jr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=d.isObject(t);if(a&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return o?JSON.stringify(Vr(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ri(t,this.formSerializer).toString();if((s=d.isFileList(t))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Ye(s?{"files[]":t}:t,g&&new g,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),xi(t)):t}],transformResponse:[function(t){const r=this.transitional||He.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?C.from(s,C.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],e=>{He.headers[e]={}});const Ci=d.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"]),_i=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Ci[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Kr=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return e===!1||e==null?e:d.isArray(e)?e.map(Ze):String(e)}function Fi(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Ni=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vt(e,t,r,n,o){if(d.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!d.isString(t)){if(d.isString(n))return t.indexOf(n)!==-1;if(d.isRegExp(n))return n.test(t)}}function Di(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function qi(e,t){const r=d.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let X=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,g,l){const c=We(g);if(!c)throw new Error("header name must be a non-empty string");const b=d.findKey(o,c);(!b||o[b]===void 0||l===!0||l===void 0&&o[b]!==!1)&&(o[b||g]=Ze(s))}const i=(s,g)=>d.forEach(s,(l,c)=>a(l,c,g));if(d.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(d.isString(t)&&(t=t.trim())&&!Ni(t))i(_i(t),r);else if(d.isObject(t)&&d.isIterable(t)){let s={},g,l;for(const c of t){if(!d.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(g=s[l])?d.isArray(g)?[...g,c[1]]:[g,c[1]]:c[1]}i(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=We(t),t){const n=d.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Fi(o);if(d.isFunction(r))return r.call(this,o,n);if(d.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=We(t),t){const n=d.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||vt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=We(i),i){const s=d.findKey(n,i);s&&(!r||vt(n,n[s],s,r))&&(delete n[s],o=!0)}}return d.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||vt(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return d.forEach(this,(o,a)=>{const i=d.findKey(n,a);if(i){r[i]=Ze(o),delete r[a];return}const s=t?Di(a):String(a).trim();s!==a&&delete r[a],r[s]=Ze(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return d.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&d.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Kr]=this[Kr]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=We(i);n[s]||(qi(o,i),n[s]=!0)}return d.isArray(t)?t.forEach(a):a(t),this}};X.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(X.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),d.freezeMethods(X);function gt(e,t){const r=this||He,n=t||r,o=X.from(n.headers);let a=n.data;return d.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Qr(e){return!!(e&&e.__CANCEL__)}function Fe(e,t,r){C.call(this,e??"canceled",C.ERR_CANCELED,t,r),this.name="CanceledError"}d.inherits(Fe,C,{__CANCEL__:!0});function Xr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new C("Request failed with status code "+r.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ii(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ui(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(g){const l=Date.now(),c=n[a];i||(i=l),r[o]=g,n[o]=l;let b=a,S=0;for(;b!==o;)S+=r[b++],b=b%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const v=c&&l-c;return v?Math.round(S*1e3/v):void 0}}function $i(e,t){let r=0,n=1e3/t,o,a;const i=(l,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...l)};return[(...l)=>{const c=Date.now(),b=c-r;b>=n?i(l,c):(o=l,a||(a=setTimeout(()=>{a=null,i(o)},n-b)))},()=>o&&i(o)]}const et=(e,t,r=3)=>{let n=0;const o=Ui(50,250);return $i(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,g=i-n,l=o(g),c=i<=s;n=i;const b={loaded:i,total:s,progress:s?i/s:void 0,bytes:g,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(b)},r)},Yr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Zr=e=>(...t)=>d.asap(()=>e(...t)),Bi=G.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,G.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(G.origin),G.navigator&&/(msie|trident)/i.test(G.navigator.userAgent)):()=>!0,Mi=G.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];d.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),d.isString(n)&&i.push("path="+n),d.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Li(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ki(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function en(e,t,r){let n=!Li(t);return e&&(n||r==!1)?ki(e,t):t}const tn=e=>e instanceof X?{...e}:e;function Oe(e,t){t=t||{};const r={};function n(l,c,b,S){return d.isPlainObject(l)&&d.isPlainObject(c)?d.merge.call({caseless:S},l,c):d.isPlainObject(c)?d.merge({},c):d.isArray(c)?c.slice():c}function o(l,c,b,S){if(d.isUndefined(c)){if(!d.isUndefined(l))return n(void 0,l,b,S)}else return n(l,c,b,S)}function a(l,c){if(!d.isUndefined(c))return n(void 0,c)}function i(l,c){if(d.isUndefined(c)){if(!d.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,b){if(b in t)return n(l,c);if(b in e)return n(void 0,l)}const g={url:a,method:a,data:a,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:s,headers:(l,c,b)=>o(tn(l),tn(c),b,!0)};return d.forEach(Object.keys({...e,...t}),function(c){const b=g[c]||o,S=b(e[c],t[c],c);d.isUndefined(S)&&b!==s||(r[c]=S)}),r}const rn=e=>{const t=Oe({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;t.headers=i=X.from(i),t.url=zr(en(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let g;if(d.isFormData(r)){if(G.hasStandardBrowserEnv||G.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((g=i.getContentType())!==!1){const[l,...c]=g?g.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...c].join("; "))}}if(G.hasStandardBrowserEnv&&(n&&d.isFunction(n)&&(n=n(t)),n||n!==!1&&Bi(t.url))){const l=o&&a&&Mi.read(a);l&&i.set(o,l)}return t},ji=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=rn(e);let a=o.data;const i=X.from(o.headers).normalize();let{responseType:s,onUploadProgress:g,onDownloadProgress:l}=o,c,b,S,v,y;function w(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function h(){if(!u)return;const E=X.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:e,request:u};Xr(function(P){r(P),w()},function(P){n(P),w()},A),u=null}"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(n(new C("Request aborted",C.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new C("Network Error",C.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Jr;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new C(O,A.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,u)),u=null},a===void 0&&i.setContentType(null),"setRequestHeader"in u&&d.forEach(i.toJSON(),function(O,A){u.setRequestHeader(A,O)}),d.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),l&&([S,y]=et(l,!0),u.addEventListener("progress",S)),g&&u.upload&&([b,v]=et(g),u.upload.addEventListener("progress",b),u.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(c=E=>{u&&(n(!E||E.type?new Fe(null,e,u):E),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const m=Ii(o.url);if(m&&G.protocols.indexOf(m)===-1){n(new C("Unsupported protocol "+m+":",C.ERR_BAD_REQUEST,e));return}u.send(a||null)})},Hi=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const a=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof C?c:new Fe(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new C(`timeout ${t} of ms exceeded`,C.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:g}=n;return g.unsubscribe=()=>d.asap(s),g}},Wi=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},zi=async function*(e,t){for await(const r of Gi(e))yield*Wi(r,t)},Gi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},nn=(e,t,r,n)=>{const o=zi(e,t);let a=0,i,s=g=>{i||(i=!0,n&&n(g))};return new ReadableStream({async pull(g){try{const{done:l,value:c}=await o.next();if(l){s(),g.close();return}let b=c.byteLength;if(r){let S=a+=b;r(S)}g.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(g){return s(g),o.return()}},{highWaterMark:2})},tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",on=tt&&typeof ReadableStream=="function",Ji=tt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),an=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vi=on&&an(()=>{let e=!1;const t=new Request(G.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sn=64*1024,bt=on&&an(()=>d.isReadableStream(new Response("").body)),rt={stream:bt&&(e=>e.body)};tt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rt[t]&&(rt[t]=d.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new C(`Response type '${t}' is not supported`,C.ERR_NOT_SUPPORT,n)})})})(new Response);const Ki=async e=>{if(e==null)return 0;if(d.isBlob(e))return e.size;if(d.isSpecCompliantForm(e))return(await new Request(G.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(d.isArrayBufferView(e)||d.isArrayBuffer(e))return e.byteLength;if(d.isURLSearchParams(e)&&(e=e+""),d.isString(e))return(await Ji(e)).byteLength},Qi=async(e,t)=>{const r=d.toFiniteNumber(e.getContentLength());return r??Ki(t)},St={http:vi,xhr:ji,fetch:tt&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:g,responseType:l,headers:c,withCredentials:b="same-origin",fetchOptions:S}=rn(e);l=l?(l+"").toLowerCase():"text";let v=Hi([o,a&&a.toAbortSignal()],i),y;const w=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let u;try{if(g&&Vi&&r!=="get"&&r!=="head"&&(u=await Qi(c,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(d.isFormData(n)&&(R=A.headers.get("content-type"))&&c.setContentType(R),A.body){const[P,x]=Yr(u,et(Zr(g)));n=nn(A.body,sn,P,x)}}d.isString(b)||(b=b?"include":"omit");const h="credentials"in Request.prototype;y=new Request(t,{...S,signal:v,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:h?b:void 0});let m=await fetch(y,S);const E=bt&&(l==="stream"||l==="response");if(bt&&(s||E&&w)){const A={};["status","statusText","headers"].forEach(D=>{A[D]=m[D]});const R=d.toFiniteNumber(m.headers.get("content-length")),[P,x]=s&&Yr(R,et(Zr(s),!0))||[];m=new Response(nn(m.body,sn,P,()=>{x&&x(),w&&w()}),A)}l=l||"text";let O=await rt[d.findKey(rt,l)||"text"](m,e);return!E&&w&&w(),await new Promise((A,R)=>{Xr(A,R,{data:O,headers:X.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:y})})}catch(h){throw w&&w(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,e,y),{cause:h.cause||h}):C.from(h,h&&h.code,e,y)}})};d.forEach(St,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const un=e=>`- ${e}`,Xi=e=>d.isFunction(e)||e===null||e===!1,ln={getAdapter:e=>{e=d.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Xi(r)&&(n=St[(i=String(r)).toLowerCase()],n===void 0))throw new C(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([s,g])=>`adapter ${s} `+(g===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
4
|
-
`+a.map(un).join(`
|
|
5
|
-
`):" "+un(a[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:St};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function cn(e){return wt(e),e.headers=X.from(e.headers),e.data=gt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ln.getAdapter(e.adapter||He.adapter)(e).then(function(n){return wt(e),n.data=gt.call(e,e.transformResponse,n),n.headers=X.from(n.headers),n},function(n){return Qr(n)||(wt(e),n&&n.response&&(n.response.data=gt.call(e,e.transformResponse,n.response),n.response.headers=X.from(n.response.headers))),Promise.reject(n)})}const fn="1.11.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pn={};nt.transitional=function(t,r,n){function o(a,i){return"[Axios v"+fn+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new C(o(i," has been removed"+(r?" in "+r:"")),C.ERR_DEPRECATED);return r&&!pn[i]&&(pn[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}},nt.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Yi(e,t,r){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],g=s===void 0||i(s,a,e);if(g!==!0)throw new C("option "+a+" must be "+g,C.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new C("Unknown option "+a,C.ERR_BAD_OPTION)}}const ot={assertOptions:Yi,validators:nt},ue=ot.validators;let Ae=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gr,response:new Gr}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
-
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Oe(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ot.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),o!=null&&(d.isFunction(o)?r.paramsSerializer={serialize:o}:ot.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ot.assertOptions(r,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&d.merge(a.common,a[r.method]);a&&d.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=X.concat(i,a);const s=[];let g=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(g=g&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let c,b=0,S;if(!g){const y=[cn.bind(this),void 0];for(y.unshift(...s),y.push(...l),S=y.length,c=Promise.resolve(r);b<S;)c=c.then(y[b++],y[b++]);return c}S=s.length;let v=r;for(b=0;b<S;){const y=s[b++],w=s[b++];try{v=y(v)}catch(u){w.call(this,u);break}}try{c=cn.call(this,v)}catch(y){return Promise.reject(y)}for(b=0,S=l.length;b<S;)c=c.then(l[b++],l[b++]);return c}getUri(t){t=Oe(this.defaults,t);const r=en(t.baseURL,t.url,t.allowAbsoluteUrls);return zr(r,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){Ae.prototype[t]=function(r,n){return this.request(Oe(n||{},{method:t,url:r,data:(n||{}).data}))}}),d.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Oe(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ae.prototype[t]=r(),Ae.prototype[t+"Form"]=r(!0)});let Zi=class No{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Fe(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new No(function(o){t=o}),cancel:t}}};function ea(e){return function(r){return e.apply(null,r)}}function ta(e){return d.isObject(e)&&e.isAxiosError===!0}const Et={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(Et).forEach(([e,t])=>{Et[t]=e});function dn(e){const t=new Ae(e),r=Ce(Ae.prototype.request,t);return d.extend(r,Ae.prototype,t,{allOwnKeys:!0}),d.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return dn(Oe(e,o))},r}const k=dn(He);k.Axios=Ae,k.CanceledError=Fe,k.CancelToken=Zi,k.isCancel=Qr,k.VERSION=fn,k.toFormData=Ye,k.AxiosError=C,k.Cancel=k.CanceledError,k.all=function(t){return Promise.all(t)},k.spread=ea,k.isAxiosError=ta,k.mergeConfig=Oe,k.AxiosHeaders=X,k.formToJSON=e=>Vr(d.isHTMLForm(e)?new FormData(e):e),k.getAdapter=ln.getAdapter,k.HttpStatusCode=Et,k.default=k;const{Axios:gs,AxiosError:bs,CanceledError:Ss,isCancel:ws,CancelToken:Es,VERSION:Os,all:As,Cancel:Rs,isAxiosError:Ps,spread:Ts,toFormData:xs,AxiosHeaders:Cs,HttpStatusCode:_s,formToJSON:Fs,getAdapter:Ns,mergeConfig:Ds}=k;var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function na(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Ot,hn;function Ne(){return hn||(hn=1,Ot=TypeError),Ot}const oa=na(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var At,mn;function it(){if(mn)return At;mn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,l=g?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,b=c?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,v=S?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,w=Object.prototype.toString,u=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,E=String.prototype.replace,O=String.prototype.toUpperCase,A=String.prototype.toLowerCase,R=RegExp.prototype.test,P=Array.prototype.concat,x=Array.prototype.join,D=Array.prototype.slice,_=Math.floor,$=typeof BigInt=="function"?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,H=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===H||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,fe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function N(f,p){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||R.call(/e/,p))return p;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var M=f<0?-_(-f):_(f);if(M!==f){var L=String(M),F=m.call(p,L.length+1);return E.call(L,I,"$&_")+"."+E.call(E.call(F,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(p,I,"$&_")}var ee=oa,pe=ee.custom,Te=V(pe)?pe:null,ye={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};At=function f(p,I,M,L){var F=I||{};if(Y(F,"quoteStyle")&&!Y(ye,F.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(F,"maxStringLength")&&(typeof F.maxStringLength=="number"?F.maxStringLength<0&&F.maxStringLength!==1/0:F.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Se=Y(F,"customInspect")?F.customInspect:!0;if(typeof Se!="boolean"&&Se!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(F,"indent")&&F.indent!==null&&F.indent!==" "&&!(parseInt(F.indent,10)===F.indent&&F.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(F,"numericSeparator")&&typeof F.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xe=F.numericSeparator;if(typeof p>"u")return"undefined";if(p===null)return"null";if(typeof p=="boolean")return p?"true":"false";if(typeof p=="string")return Eo(p,F);if(typeof p=="number"){if(p===0)return 1/0/p>0?"0":"-0";var te=String(p);return xe?N(p,te):te}if(typeof p=="bigint"){var we=String(p)+"n";return xe?N(p,we):we}var Ar=typeof F.depth>"u"?5:F.depth;if(typeof M>"u"&&(M=0),M>=Ar&&Ar>0&&typeof p=="object")return ve(p)?"[Array]":"[Object]";var $e=us(F,M);if(typeof L>"u")L=[];else if(be(L,p)>=0)return"[Circular]";function se(Be,ct,cs){if(ct&&(L=D.call(L),L.push(ct)),cs){var Fo={depth:F.depth};return Y(F,"quoteStyle")&&(Fo.quoteStyle=F.quoteStyle),f(Be,Fo,M+1,L)}return f(Be,F,M+1,L)}if(typeof p=="function"&&!z(p)){var Ao=De(p),Ro=ut(p,se);return"[Function"+(Ao?": "+Ao:" (anonymous)")+"]"+(Ro.length>0?" { "+x.call(Ro,", ")+" }":"")}if(V(p)){var Po=H?E.call(String(p),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(p);return typeof p=="object"&&!H?Ge(Po):Po}if(is(p)){for(var Je="<"+A.call(String(p.nodeName)),Rr=p.attributes||[],lt=0;lt<Rr.length;lt++)Je+=" "+Rr[lt].name+"="+me(de(Rr[lt].value),"double",F);return Je+=">",p.childNodes&&p.childNodes.length&&(Je+="..."),Je+="</"+A.call(String(p.nodeName))+">",Je}if(ve(p)){if(p.length===0)return"[]";var Pr=ut(p,se);return $e&&!ss(Pr)?"["+Or(Pr,$e)+"]":"[ "+x.call(Pr,", ")+" ]"}if(q(p)){var Tr=ut(p,se);return!("cause"in Error.prototype)&&"cause"in p&&!ce.call(p,"cause")?"{ ["+String(p)+"] "+x.call(P.call("[cause]: "+se(p.cause),Tr),", ")+" }":Tr.length===0?"["+String(p)+"]":"{ ["+String(p)+"] "+x.call(Tr,", ")+" }"}if(typeof p=="object"&&Se){if(Te&&typeof p[Te]=="function"&&ee)return ee(p,{depth:Ar-M});if(Se!=="symbol"&&typeof p.inspect=="function")return p.inspect()}if(ae(p)){var To=[];return n&&n.call(p,function(Be,ct){To.push(se(ct,p,!0)+" => "+se(Be,p))}),Oo("Map",r.call(p),To,$e)}if(Ue(p)){var xo=[];return s&&s.call(p,function(Be){xo.push(se(Be,p))}),Oo("Set",i.call(p),xo,$e)}if(qe(p))return Er("WeakMap");if(os(p))return Er("WeakSet");if(Ie(p))return Er("WeakRef");if(B(p))return Ge(se(Number(p)));if(ne(p))return Ge(se($.call(p)));if(W(p))return Ge(y.call(p));if(j(p))return Ge(se(String(p)));if(typeof window<"u"&&p===window)return"{ [object Window] }";if(typeof globalThis<"u"&&p===globalThis||typeof yn<"u"&&p===yn)return"{ [object globalThis] }";if(!ge(p)&&!z(p)){var xr=ut(p,se),Co=fe?fe(p)===Object.prototype:p instanceof Object||p.constructor===Object,Cr=p instanceof Object?"":"null prototype",_o=!Co&&Z&&Object(p)===p&&Z in p?m.call(oe(p),8,-1):Cr?"Object":"",ls=Co||typeof p.constructor!="function"?"":p.constructor.name?p.constructor.name+" ":"",_r=ls+(_o||Cr?"["+x.call(P.call([],_o||[],Cr||[]),": ")+"] ":"");return xr.length===0?_r+"{}":$e?_r+"{"+Or(xr,$e)+"}":_r+"{ "+x.call(xr,", ")+" }"}return String(p)};function me(f,p,I){var M=I.quoteStyle||p,L=ye[M];return L+f+L}function de(f){return E.call(String(f),/"/g,""")}function re(f){return!Z||!(typeof f=="object"&&(Z in f||typeof f[Z]<"u"))}function ve(f){return oe(f)==="[object Array]"&&re(f)}function ge(f){return oe(f)==="[object Date]"&&re(f)}function z(f){return oe(f)==="[object RegExp]"&&re(f)}function q(f){return oe(f)==="[object Error]"&&re(f)}function j(f){return oe(f)==="[object String]"&&re(f)}function B(f){return oe(f)==="[object Number]"&&re(f)}function W(f){return oe(f)==="[object Boolean]"&&re(f)}function V(f){if(H)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!J)return!1;try{return J.call(f),!0}catch{}return!1}function ne(f){if(!f||typeof f!="object"||!$)return!1;try{return $.call(f),!0}catch{}return!1}var K=Object.prototype.hasOwnProperty||function(f){return f in this};function Y(f,p){return K.call(f,p)}function oe(f){return w.call(f)}function De(f){if(f.name)return f.name;var p=h.call(u.call(f),/^function\s*([\w$]+)/);return p?p[1]:null}function be(f,p){if(f.indexOf)return f.indexOf(p);for(var I=0,M=f.length;I<M;I++)if(f[I]===p)return I;return-1}function ae(f){if(!r||!f||typeof f!="object")return!1;try{r.call(f);try{i.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function qe(f){if(!l||!f||typeof f!="object")return!1;try{l.call(f,l);try{b.call(f,b)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Ie(f){if(!v||!f||typeof f!="object")return!1;try{return v.call(f),!0}catch{}return!1}function Ue(f){if(!i||!f||typeof f!="object")return!1;try{i.call(f);try{r.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function os(f){if(!b||!f||typeof f!="object")return!1;try{b.call(f,b);try{l.call(f,l)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function is(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function Eo(f,p){if(f.length>p.maxStringLength){var I=f.length-p.maxStringLength,M="... "+I+" more character"+(I>1?"s":"");return Eo(m.call(f,0,p.maxStringLength),p)+M}var L=he[p.quoteStyle||"single"];L.lastIndex=0;var F=E.call(E.call(f,L,"\\$1"),/[\x00-\x1f]/g,as);return me(F,"single",p)}function as(f){var p=f.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[p];return I?"\\"+I:"\\x"+(p<16?"0":"")+O.call(p.toString(16))}function Ge(f){return"Object("+f+")"}function Er(f){return f+" { ? }"}function Oo(f,p,I,M){var L=M?Or(I,M):x.call(I,", ");return f+" ("+p+") {"+L+"}"}function ss(f){for(var p=0;p<f.length;p++)if(be(f[p],`
|
|
7
|
-
`)>=0)return!1;return!0}function us(f,p){var I;if(f.indent===" ")I=" ";else if(typeof f.indent=="number"&&f.indent>0)I=x.call(Array(f.indent+1)," ");else return null;return{base:I,prev:x.call(Array(p+1),I)}}function Or(f,p){if(f.length===0)return"";var I=`
|
|
8
|
-
`+p.prev+p.base;return I+x.call(f,","+I)+`
|
|
9
|
-
`+p.prev}function ut(f,p){var I=ve(f),M=[];if(I){M.length=f.length;for(var L=0;L<f.length;L++)M[L]=Y(f,L)?p(f[L],f):""}var F=typeof T=="function"?T(f):[],Se;if(H){Se={};for(var xe=0;xe<F.length;xe++)Se["$"+F[xe]]=F[xe]}for(var te in f)Y(f,te)&&(I&&String(Number(te))===te&&te<f.length||H&&Se["$"+te]instanceof Symbol||(R.call(/[^\w$]/,te)?M.push(p(te,f)+": "+p(f[te],f)):M.push(te+": "+p(f[te],f))));if(typeof T=="function")for(var we=0;we<F.length;we++)ce.call(f,F[we])&&M.push("["+p(F[we])+"]: "+p(f[F[we]],f));return M}return At}var Rt,vn;function ia(){if(vn)return Rt;vn=1;var e=it(),t=Ne(),r=function(s,g,l){for(var c=s,b;(b=c.next)!=null;c=b)if(b.key===g)return c.next=b.next,l||(b.next=s.next,s.next=b),b},n=function(s,g){if(s){var l=r(s,g);return l&&l.value}},o=function(s,g,l){var c=r(s,g);c?c.value=l:s.next={key:g,next:s.next,value:l}},a=function(s,g){return s?!!r(s,g):!1},i=function(s,g){if(s)return r(s,g,!0)};return Rt=function(){var g,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var b=g&&g.next,S=i(g,c);return S&&b&&b===S&&(g=void 0),!!S},get:function(c){return n(g,c)},has:function(c){return a(g,c)},set:function(c,b){g||(g={next:void 0}),o(g,c,b)}};return l},Rt}var Pt,gn;function bn(){return gn||(gn=1,Pt=Object),Pt}var Tt,Sn;function aa(){return Sn||(Sn=1,Tt=Error),Tt}var xt,wn;function sa(){return wn||(wn=1,xt=EvalError),xt}var Ct,En;function ua(){return En||(En=1,Ct=RangeError),Ct}var _t,On;function la(){return On||(On=1,_t=ReferenceError),_t}var Ft,An;function ca(){return An||(An=1,Ft=SyntaxError),Ft}var Nt,Rn;function fa(){return Rn||(Rn=1,Nt=URIError),Nt}var Dt,Pn;function pa(){return Pn||(Pn=1,Dt=Math.abs),Dt}var qt,Tn;function da(){return Tn||(Tn=1,qt=Math.floor),qt}var It,xn;function ya(){return xn||(xn=1,It=Math.max),It}var Ut,Cn;function ha(){return Cn||(Cn=1,Ut=Math.min),Ut}var $t,_n;function ma(){return _n||(_n=1,$t=Math.pow),$t}var Bt,Fn;function va(){return Fn||(Fn=1,Bt=Math.round),Bt}var Mt,Nn;function ga(){return Nn||(Nn=1,Mt=Number.isNaN||function(t){return t!==t}),Mt}var Lt,Dn;function ba(){if(Dn)return Lt;Dn=1;var e=ga();return Lt=function(r){return e(r)||r===0?r:r<0?-1:1},Lt}var kt,qn;function Sa(){return qn||(qn=1,kt=Object.getOwnPropertyDescriptor),kt}var jt,In;function Un(){if(In)return jt;In=1;var e=Sa();if(e)try{e([],"length")}catch{e=null}return jt=e,jt}var Ht,$n;function wa(){if($n)return Ht;$n=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ht=e,Ht}var Wt,Bn;function Ea(){return Bn||(Bn=1,Wt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),Wt}var zt,Mn;function Oa(){if(Mn)return zt;Mn=1;var e=typeof Symbol<"u"&&Symbol,t=Ea();return zt=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},zt}var Gt,Ln;function kn(){return Ln||(Ln=1,Gt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Gt}var Jt,jn;function Hn(){if(jn)return Jt;jn=1;var e=bn();return Jt=e.getPrototypeOf||null,Jt}var Vt,Wn;function Aa(){if(Wn)return Vt;Wn=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(g,l){for(var c=[],b=0;b<g.length;b+=1)c[b]=g[b];for(var S=0;S<l.length;S+=1)c[S+g.length]=l[S];return c},a=function(g,l){for(var c=[],b=l,S=0;b<g.length;b+=1,S+=1)c[S]=g[b];return c},i=function(s,g){for(var l="",c=0;c<s.length;c+=1)l+=s[c],c+1<s.length&&(l+=g);return l};return Vt=function(g){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var c=a(arguments,1),b,S=function(){if(this instanceof b){var h=l.apply(this,o(c,arguments));return Object(h)===h?h:this}return l.apply(g,o(c,arguments))},v=r(0,l.length-c.length),y=[],w=0;w<v;w++)y[w]="$"+w;if(b=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(S),l.prototype){var u=function(){};u.prototype=l.prototype,b.prototype=new u,u.prototype=null}return b},Vt}var Kt,zn;function at(){if(zn)return Kt;zn=1;var e=Aa();return Kt=Function.prototype.bind||e,Kt}var Qt,Gn;function Xt(){return Gn||(Gn=1,Qt=Function.prototype.call),Qt}var Yt,Jn;function Vn(){return Jn||(Jn=1,Yt=Function.prototype.apply),Yt}var Zt,Kn;function Ra(){return Kn||(Kn=1,Zt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Zt}var er,Qn;function Pa(){if(Qn)return er;Qn=1;var e=at(),t=Vn(),r=Xt(),n=Ra();return er=n||e.call(r,t),er}var tr,Xn;function Yn(){if(Xn)return tr;Xn=1;var e=at(),t=Ne(),r=Xt(),n=Pa();return tr=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return n(e,r,a)},tr}var rr,Zn;function Ta(){if(Zn)return rr;Zn=1;var e=Yn(),t=Un(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return rr=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(s){return a(s==null?s:o(s))}:!1,rr}var nr,eo;function xa(){if(eo)return nr;eo=1;var e=kn(),t=Hn(),r=Ta();return nr=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,nr}var or,to;function Ca(){if(to)return or;to=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=at();return or=r.call(e,t),or}var ir,ro;function ar(){if(ro)return ir;ro=1;var e,t=bn(),r=aa(),n=sa(),o=ua(),a=la(),i=ca(),s=Ne(),g=fa(),l=pa(),c=da(),b=ya(),S=ha(),v=ma(),y=va(),w=ba(),u=Function,h=function(z){try{return u('"use strict"; return ('+z+").constructor;")()}catch{}},m=Un(),E=wa(),O=function(){throw new s},A=m?(function(){try{return arguments.callee,O}catch{try{return m(arguments,"callee").get}catch{return O}}})():O,R=Oa()(),P=xa(),x=Hn(),D=kn(),_=Vn(),$=Xt(),T={},J=typeof Uint8Array>"u"||!P?e:P(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&P?P(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":A,"%TypedArray%":J,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":$,"%Function.prototype.apply%":_,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":x,"%Math.abs%":l,"%Math.floor%":c,"%Math.max%":b,"%Math.min%":S,"%Math.pow%":v,"%Math.round%":y,"%Math.sign%":w,"%Reflect.getPrototypeOf%":D};if(P)try{null.error}catch(z){var Z=P(P(z));H["%Error.prototype%"]=Z}var ce=function z(q){var j;if(q==="%AsyncFunction%")j=h("async function () {}");else if(q==="%GeneratorFunction%")j=h("function* () {}");else if(q==="%AsyncGeneratorFunction%")j=h("async function* () {}");else if(q==="%AsyncGenerator%"){var B=z("%AsyncGeneratorFunction%");B&&(j=B.prototype)}else if(q==="%AsyncIteratorPrototype%"){var W=z("%AsyncGenerator%");W&&P&&(j=P(W.prototype))}return H[q]=j,j},fe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=at(),ee=Ca(),pe=N.call($,Array.prototype.concat),Te=N.call(_,Array.prototype.splice),ye=N.call($,String.prototype.replace),he=N.call($,String.prototype.slice),me=N.call($,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,ve=function(q){var j=he(q,0,1),B=he(q,-1);if(j==="%"&&B!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(B==="%"&&j!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var W=[];return ye(q,de,function(V,ne,K,Y){W[W.length]=K?ye(Y,re,"$1"):ne||V}),W},ge=function(q,j){var B=q,W;if(ee(fe,B)&&(W=fe[B],B="%"+W[0]+"%"),ee(H,B)){var V=H[B];if(V===T&&(V=ce(B)),typeof V>"u"&&!j)throw new s("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:W,name:B,value:V}}throw new i("intrinsic "+q+" does not exist!")};return ir=function(q,j){if(typeof q!="string"||q.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new s('"allowMissing" argument must be a boolean');if(me(/^%?[^%]*%?$/,q)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=ve(q),W=B.length>0?B[0]:"",V=ge("%"+W+"%",j),ne=V.name,K=V.value,Y=!1,oe=V.alias;oe&&(W=oe[0],Te(B,pe([0,1],oe)));for(var De=1,be=!0;De<B.length;De+=1){var ae=B[De],qe=he(ae,0,1),Ie=he(ae,-1);if((qe==='"'||qe==="'"||qe==="`"||Ie==='"'||Ie==="'"||Ie==="`")&&qe!==Ie)throw new i("property names with quotes must have matching quotes");if((ae==="constructor"||!be)&&(Y=!0),W+="."+ae,ne="%"+W+"%",ee(H,ne))K=H[ne];else if(K!=null){if(!(ae in K)){if(!j)throw new s("base intrinsic for "+q+" exists, but the property is not available.");return}if(m&&De+1>=B.length){var Ue=m(K,ae);be=!!Ue,be&&"get"in Ue&&!("originalValue"in Ue.get)?K=Ue.get:K=K[ae]}else be=ee(K,ae),K=K[ae];be&&!Y&&(H[ne]=K)}}return K},ir}var sr,no;function oo(){if(no)return sr;no=1;var e=ar(),t=Yn(),r=t([e("%String.prototype.indexOf%")]);return sr=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t([i]):i},sr}var ur,io;function ao(){if(io)return ur;io=1;var e=ar(),t=oo(),r=it(),n=Ne(),o=e("%Map%",!0),a=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),g=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return ur=!!o&&function(){var b,S={assert:function(v){if(!S.has(v))throw new n("Side channel does not contain "+r(v))},delete:function(v){if(b){var y=g(b,v);return l(b)===0&&(b=void 0),y}return!1},get:function(v){if(b)return a(b,v)},has:function(v){return b?s(b,v):!1},set:function(v,y){b||(b=new o),i(b,v,y)}};return S},ur}var lr,so;function _a(){if(so)return lr;so=1;var e=ar(),t=oo(),r=it(),n=ao(),o=Ne(),a=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),g=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return lr=a?function(){var b,S,v={assert:function(y){if(!v.has(y))throw new o("Side channel does not contain "+r(y))},delete:function(y){if(a&&y&&(typeof y=="object"||typeof y=="function")){if(b)return l(b,y)}else if(n&&S)return S.delete(y);return!1},get:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&b?i(b,y):S&&S.get(y)},has:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&b?g(b,y):!!S&&S.has(y)},set:function(y,w){a&&y&&(typeof y=="object"||typeof y=="function")?(b||(b=new a),s(b,y,w)):n&&(S||(S=n()),S.set(y,w))}};return v}:n,lr}var cr,uo;function Fa(){if(uo)return cr;uo=1;var e=Ne(),t=it(),r=ia(),n=ao(),o=_a(),a=o||n||r;return cr=function(){var s,g={assert:function(l){if(!g.has(l))throw new e("Side channel does not contain "+t(l))},delete:function(l){return!!s&&s.delete(l)},get:function(l){return s&&s.get(l)},has:function(l){return!!s&&s.has(l)},set:function(l,c){s||(s=a()),s.set(l,c)}};return g},cr}var fr,lo;function pr(){if(lo)return fr;lo=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return fr={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},fr}var dr,co;function fo(){if(co)return dr;co=1;var e=pr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=(function(){for(var u=[],h=0;h<256;++h)u.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return u})(),o=function(h){for(;h.length>1;){var m=h.pop(),E=m.obj[m.prop];if(r(E)){for(var O=[],A=0;A<E.length;++A)typeof E[A]<"u"&&O.push(E[A]);m.obj[m.prop]=O}}},a=function(h,m){for(var E=m&&m.plainObjects?{__proto__:null}:{},O=0;O<h.length;++O)typeof h[O]<"u"&&(E[O]=h[O]);return E},i=function u(h,m,E){if(!m)return h;if(typeof m!="object"&&typeof m!="function"){if(r(h))h.push(m);else if(h&&typeof h=="object")(E&&(E.plainObjects||E.allowPrototypes)||!t.call(Object.prototype,m))&&(h[m]=!0);else return[h,m];return h}if(!h||typeof h!="object")return[h].concat(m);var O=h;return r(h)&&!r(m)&&(O=a(h,E)),r(h)&&r(m)?(m.forEach(function(A,R){if(t.call(h,R)){var P=h[R];P&&typeof P=="object"&&A&&typeof A=="object"?h[R]=u(P,A,E):h.push(A)}else h[R]=A}),h):Object.keys(m).reduce(function(A,R){var P=m[R];return t.call(A,R)?A[R]=u(A[R],P,E):A[R]=P,A},O)},s=function(h,m){return Object.keys(m).reduce(function(E,O){return E[O]=m[O],E},h)},g=function(u,h,m){var E=u.replace(/\+/g," ");if(m==="iso-8859-1")return E.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(E)}catch{return E}},l=1024,c=function(h,m,E,O,A){if(h.length===0)return h;var R=h;if(typeof h=="symbol"?R=Symbol.prototype.toString.call(h):typeof h!="string"&&(R=String(h)),E==="iso-8859-1")return escape(R).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var P="",x=0;x<R.length;x+=l){for(var D=R.length>=l?R.slice(x,x+l):R,_=[],$=0;$<D.length;++$){var T=D.charCodeAt($);if(T===45||T===46||T===95||T===126||T>=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122||A===e.RFC1738&&(T===40||T===41)){_[_.length]=D.charAt($);continue}if(T<128){_[_.length]=n[T];continue}if(T<2048){_[_.length]=n[192|T>>6]+n[128|T&63];continue}if(T<55296||T>=57344){_[_.length]=n[224|T>>12]+n[128|T>>6&63]+n[128|T&63];continue}$+=1,T=65536+((T&1023)<<10|D.charCodeAt($)&1023),_[_.length]=n[240|T>>18]+n[128|T>>12&63]+n[128|T>>6&63]+n[128|T&63]}P+=_.join("")}return P},b=function(h){for(var m=[{obj:{o:h},prop:"o"}],E=[],O=0;O<m.length;++O)for(var A=m[O],R=A.obj[A.prop],P=Object.keys(R),x=0;x<P.length;++x){var D=P[x],_=R[D];typeof _=="object"&&_!==null&&E.indexOf(_)===-1&&(m.push({obj:R,prop:D}),E.push(_))}return o(m),h},S=function(h){return Object.prototype.toString.call(h)==="[object RegExp]"},v=function(h){return!h||typeof h!="object"?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},y=function(h,m){return[].concat(h,m)},w=function(h,m){if(r(h)){for(var E=[],O=0;O<h.length;O+=1)E.push(m(h[O]));return E}return m(h)};return dr={arrayToObject:a,assign:s,combine:y,compact:b,decode:g,encode:c,isBuffer:v,isRegExp:S,maybeMap:w,merge:i},dr}var yr,po;function Na(){if(po)return yr;po=1;var e=Fa(),t=fo(),r=pr(),n=Object.prototype.hasOwnProperty,o={brackets:function(u){return u+"[]"},comma:"comma",indices:function(u,h){return u+"["+h+"]"},repeat:function(u){return u}},a=Array.isArray,i=Array.prototype.push,s=function(w,u){i.apply(w,a(u)?u:[u])},g=Date.prototype.toISOString,l=r.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:r.formatters[l],indices:!1,serializeDate:function(u){return g.call(u)},skipNulls:!1,strictNullHandling:!1},b=function(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u=="symbol"||typeof u=="bigint"},S={},v=function w(u,h,m,E,O,A,R,P,x,D,_,$,T,J,H,Z,ce,fe){for(var N=u,ee=fe,pe=0,Te=!1;(ee=ee.get(S))!==void 0&&!Te;){var ye=ee.get(u);if(pe+=1,typeof ye<"u"){if(ye===pe)throw new RangeError("Cyclic object value");Te=!0}typeof ee.get(S)>"u"&&(pe=0)}if(typeof D=="function"?N=D(h,N):N instanceof Date?N=T(N):m==="comma"&&a(N)&&(N=t.maybeMap(N,function(ne){return ne instanceof Date?T(ne):ne})),N===null){if(A)return x&&!Z?x(h,c.encoder,ce,"key",J):h;N=""}if(b(N)||t.isBuffer(N)){if(x){var he=Z?h:x(h,c.encoder,ce,"key",J);return[H(he)+"="+H(x(N,c.encoder,ce,"value",J))]}return[H(h)+"="+H(String(N))]}var me=[];if(typeof N>"u")return me;var de;if(m==="comma"&&a(N))Z&&x&&(N=t.maybeMap(N,x)),de=[{value:N.length>0?N.join(",")||null:void 0}];else if(a(D))de=D;else{var re=Object.keys(N);de=_?re.sort(_):re}var ve=P?String(h).replace(/\./g,"%2E"):String(h),ge=E&&a(N)&&N.length===1?ve+"[]":ve;if(O&&a(N)&&N.length===0)return ge+"[]";for(var z=0;z<de.length;++z){var q=de[z],j=typeof q=="object"&&q&&typeof q.value<"u"?q.value:N[q];if(!(R&&j===null)){var B=$&&P?String(q).replace(/\./g,"%2E"):String(q),W=a(N)?typeof m=="function"?m(ge,B):ge:ge+($?"."+B:"["+B+"]");fe.set(u,pe);var V=e();V.set(S,fe),s(me,w(j,W,m,E,O,A,R,P,m==="comma"&&Z&&a(N)?null:x,D,_,$,T,J,H,Z,ce,V))}}return me},y=function(u){if(!u)return c;if(typeof u.allowEmptyArrays<"u"&&typeof u.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof u.encodeDotInKeys<"u"&&typeof u.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(u.encoder!==null&&typeof u.encoder<"u"&&typeof u.encoder!="function")throw new TypeError("Encoder has to be a function.");var h=u.charset||c.charset;if(typeof u.charset<"u"&&u.charset!=="utf-8"&&u.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=r.default;if(typeof u.format<"u"){if(!n.call(r.formatters,u.format))throw new TypeError("Unknown format option provided.");m=u.format}var E=r.formatters[m],O=c.filter;(typeof u.filter=="function"||a(u.filter))&&(O=u.filter);var A;if(u.arrayFormat in o?A=u.arrayFormat:"indices"in u?A=u.indices?"indices":"repeat":A=c.arrayFormat,"commaRoundTrip"in u&&typeof u.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var R=typeof u.allowDots>"u"?u.encodeDotInKeys===!0?!0:c.allowDots:!!u.allowDots;return{addQueryPrefix:typeof u.addQueryPrefix=="boolean"?u.addQueryPrefix:c.addQueryPrefix,allowDots:R,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:A,charset:h,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!u.commaRoundTrip,delimiter:typeof u.delimiter>"u"?c.delimiter:u.delimiter,encode:typeof u.encode=="boolean"?u.encode:c.encode,encodeDotInKeys:typeof u.encodeDotInKeys=="boolean"?u.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof u.encoder=="function"?u.encoder:c.encoder,encodeValuesOnly:typeof u.encodeValuesOnly=="boolean"?u.encodeValuesOnly:c.encodeValuesOnly,filter:O,format:m,formatter:E,serializeDate:typeof u.serializeDate=="function"?u.serializeDate:c.serializeDate,skipNulls:typeof u.skipNulls=="boolean"?u.skipNulls:c.skipNulls,sort:typeof u.sort=="function"?u.sort:null,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:c.strictNullHandling}};return yr=function(w,u){var h=w,m=y(u),E,O;typeof m.filter=="function"?(O=m.filter,h=O("",h)):a(m.filter)&&(O=m.filter,E=O);var A=[];if(typeof h!="object"||h===null)return"";var R=o[m.arrayFormat],P=R==="comma"&&m.commaRoundTrip;E||(E=Object.keys(h)),m.sort&&E.sort(m.sort);for(var x=e(),D=0;D<E.length;++D){var _=E[D],$=h[_];m.skipNulls&&$===null||s(A,v($,_,R,P,m.allowEmptyArrays,m.strictNullHandling,m.skipNulls,m.encodeDotInKeys,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,x))}var T=A.join(m.delimiter),J=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),T.length>0?J+T:""},yr}var hr,yo;function Da(){if(yo)return hr;yo=1;var e=fo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(S){return S.replace(/&#(\d+);/g,function(v,y){return String.fromCharCode(parseInt(y,10))})},a=function(S,v,y){if(S&&typeof S=="string"&&v.comma&&S.indexOf(",")>-1)return S.split(",");if(v.throwOnLimitExceeded&&y>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return S},i="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",g=function(v,y){var w={__proto__:null},u=y.ignoreQueryPrefix?v.replace(/^\?/,""):v;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=y.parameterLimit===1/0?void 0:y.parameterLimit,m=u.split(y.delimiter,y.throwOnLimitExceeded?h+1:h);if(y.throwOnLimitExceeded&&m.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(h===1?"":"s")+" allowed.");var E=-1,O,A=y.charset;if(y.charsetSentinel)for(O=0;O<m.length;++O)m[O].indexOf("utf8=")===0&&(m[O]===s?A="utf-8":m[O]===i&&(A="iso-8859-1"),E=O,O=m.length);for(O=0;O<m.length;++O)if(O!==E){var R=m[O],P=R.indexOf("]="),x=P===-1?R.indexOf("="):P+1,D,_;x===-1?(D=y.decoder(R,n.decoder,A,"key"),_=y.strictNullHandling?null:""):(D=y.decoder(R.slice(0,x),n.decoder,A,"key"),_=e.maybeMap(a(R.slice(x+1),y,r(w[D])?w[D].length:0),function(T){return y.decoder(T,n.decoder,A,"value")})),_&&y.interpretNumericEntities&&A==="iso-8859-1"&&(_=o(String(_))),R.indexOf("[]=")>-1&&(_=r(_)?[_]:_);var $=t.call(w,D);$&&y.duplicates==="combine"?w[D]=e.combine(w[D],_):(!$||y.duplicates==="last")&&(w[D]=_)}return w},l=function(S,v,y,w){var u=0;if(S.length>0&&S[S.length-1]==="[]"){var h=S.slice(0,-1).join("");u=Array.isArray(v)&&v[h]?v[h].length:0}for(var m=w?v:a(v,y,u),E=S.length-1;E>=0;--E){var O,A=S[E];if(A==="[]"&&y.parseArrays)O=y.allowEmptyArrays&&(m===""||y.strictNullHandling&&m===null)?[]:e.combine([],m);else{O=y.plainObjects?{__proto__:null}:{};var R=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,P=y.decodeDotInKeys?R.replace(/%2E/g,"."):R,x=parseInt(P,10);!y.parseArrays&&P===""?O={0:m}:!isNaN(x)&&A!==P&&String(x)===P&&x>=0&&y.parseArrays&&x<=y.arrayLimit?(O=[],O[x]=m):P!=="__proto__"&&(O[P]=m)}m=O}return m},c=function(v,y,w,u){if(v){var h=w.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,m=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,O=w.depth>0&&m.exec(h),A=O?h.slice(0,O.index):h,R=[];if(A){if(!w.plainObjects&&t.call(Object.prototype,A)&&!w.allowPrototypes)return;R.push(A)}for(var P=0;w.depth>0&&(O=E.exec(h))!==null&&P<w.depth;){if(P+=1,!w.plainObjects&&t.call(Object.prototype,O[1].slice(1,-1))&&!w.allowPrototypes)return;R.push(O[1])}if(O){if(w.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+w.depth+" and strictDepth is true");R.push("["+h.slice(O.index)+"]")}return l(R,y,w,u)}},b=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof v.charset>"u"?n.charset:v.charset,w=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(w!=="combine"&&w!=="first"&&w!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var u=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:u,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:y,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||e.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:w,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return hr=function(S,v){var y=b(v);if(S===""||S===null||typeof S>"u")return y.plainObjects?{__proto__:null}:{};for(var w=typeof S=="string"?g(S,y):S,u=y.plainObjects?{__proto__:null}:{},h=Object.keys(w),m=0;m<h.length;++m){var E=h[m],O=c(E,w[E],y,typeof S=="string");u=e.merge(u,O,y)}return y.allowSparse===!0?u:e.compact(u)},hr}var mr,ho;function qa(){if(ho)return mr;ho=1;var e=Na(),t=Da(),r=pr();return mr={formats:r,parse:t,stringify:e},mr}var Ia=qa();const Ua=ra(Ia),Re=e=>typeof e=="function";class $a{axiosInstance;options;constructor(t){this.options=t,this.axiosInstance=k.create(t),this.setupInterceptors()}createAxios(t){this.axiosInstance=k.create(t)}getTransform(){const{transform:t}=this.options;return t}getAxios(){return this.axiosInstance}configAxios(t){this.axiosInstance&&this.createAxios(t)}setHeader(t){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,t)}supportFormData(t){const r=t.headers||this.options.headers;return(r?.["Content-Type"]||r?.["content-type"])!=="application/x-www-form-urlencoded;charset=UTF-8"||!Reflect.has(t,"data")||t.method?.toUpperCase()==="GET"?t:{...t,data:Ua.stringify(t.data,{arrayFormat:"brackets"})}}request(t,r){let n=t;const o=this.getTransform(),{requestOptions:a}=this.options,i={...a,...r},{beforeRequestHook:s,requestCatchHook:g,transformResponseHook:l}=o||{};return s&&Re(s)&&(n=s(n,i)),n.requestOptions=i,n=this.supportFormData(n),new Promise((c,b)=>{this.axiosInstance.request(n).then(S=>{if(l&&Re(l)){try{const v=l(S,i);c(v)}catch(v){b(v||new Error("request error!"))}return}c(S)}).catch(S=>{if(g&&Re(g)){b(g(S,i));return}b(S)})})}get(t,r){return this.request({...t,method:"GET"},r)}post(t,r){return this.request({...t,method:"POST"},r)}put(t,r){return this.request({...t,method:"PUT"},r)}delete(t,r){return this.request({...t,method:"DELETE"},r)}setupInterceptors(){const t=this.getTransform();if(!t)return;const{requestInterceptors:r,requestInterceptorsCatch:n,responseInterceptors:o,responseInterceptorsCatch:a}=t;this.axiosInstance.interceptors.request.use(i=>{const{headers:{ignoreCancelToken:s}}=i,g=s!==void 0?s:this.options.requestOptions?.ignoreCancelToken;return console.log(g),r&&Re(r)&&(i=r(i,this.options)),i},i=>{if(n&&Re(n))return n(i)},{synchronous:!1,runWhen:i=>(console.log(i),!0)}),this.axiosInstance.interceptors.response.use(i=>(o&&Re(o)&&(i=o(i)),i),i=>{if(a&&Re(a))return a(i)})}}const{toString:Ba}=Object.prototype;function le(e,t){return Ba.call(e)===`[object ${t}]`}function mo(e){return typeof e<"u"}function vr(e){return!mo(e)}function ze(e){return e!==null&&le(e,"Object")}function Ma(e){return le(e,"Symbol")}function La(e){return vo(e)||Pe(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:ze(e)?Object.keys(e).length===0:!1}function ka(e){return le(e,"Date")}function gr(e){return e===null}function ja(e){return vr(e)&&gr(e)}function Ha(e){return vr(e)||gr(e)}function Wa(e){return le(e,"Number")}function za(e){return le(e,"Promise")&&ze(e)&&br(e.then)&&br(e.catch)}function Pe(e){return le(e,"String")}function br(e){return typeof e=="function"}function Ga(e){return le(e,"Boolean")}function Ja(e){return le(e,"RegExp")}function vo(e){return e&&Array.isArray(e)}function Va(e){return typeof window<"u"&&le(e,"Window")}function Ka(e){return ze(e)&&!!e.tagName}const go=typeof window>"u",Qa=!go;function Xa(e){return!!e&&/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}const Ya="YYYY-MM-DD HH:mm";let Za=0;function bo(e,t=!1){if(!e)return t?"":{};const r=new Date().getTime()+ ++Za;return t?`?_t=${r}`:{_t:r}}function Sr(e){if(Object.prototype.toString.call(e)==="[object Object]")for(const t in e){const r=e[t]?.format??null;if(r&&typeof r=="function"&&(e[t]=e[t].format(Ya)),Pe(t)){const n=e[t];if(n)try{e[t]=Pe(n)?n.trim():n}catch(o){throw new Error(o)}}ze(e[t])&&Sr(e[t])}}function es(e,t){let r="";for(const n in t)r+=`${n}=${encodeURIComponent(t[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}var st=(e=>(e.SUCCESS="200",e.ASYNC_SUCCESS="202",e.ERROR="-1",e.TIMEOUT="10042",e.TYPE="success",e.CERT_VALID="409-iam-cert-valid",e))(st||{}),So=(e=>(e.JSON="application/json;charset=UTF-8",e.TEXT="text/plain;charset=UTF-8",e.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",e.FORM_DATA="multipart/form-data;charset=UTF-8",e))(So||{}),wo=(e=>(e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e))(wo||{});const ts={transformResponseHook(e,t){const{isTransformResponse:r,isReturnNativeResponse:n}=t;if(n)return e;if(!r)return e.data;const{data:o}=e;if(!o)return"[HTTP] Request has no return value";const{code:a,body:i,data:s,message:g,msg:l}=o,c=[st.ASYNC_SUCCESS,st.SUCCESS];if(o&&Reflect.has(o,"code")&&c.includes(a))return s||i;let S="";switch(a){case st.TIMEOUT:S="请求超时";break;default:S=g||l}throw t.errorHandler?t.errorHandler(S):console.error(S),new Error(S||"请求失败")},beforeRequestHook(e,t){const{apiUrl:r,joinPrefix:n,joinParamsToUrl:o,formatDate:a,joinTime:i=!0,urlPrefix:s}=t;n&&(e.url=`${s}${e.url}`),r&&Pe(r)&&(e.url=`${r}${e.url}`);const g=e.params||{},l=e.data||null;return a&&l&&Sr(l),e.method?.toUpperCase()===wo.GET?Pe(g)?(e.url=`${e.url}${g}${bo(i,!0)}`,e.params=void 0):e.params=Object.assign(g||{},bo(i,!1)):Pe(g)?(e.url+=g,e.params=void 0):(a&&Sr(g),Reflect.has(e,"data")&&e.data&&(e.data=l),Reflect.has(e,"params")&&e.params&&(e.params=g),o&&(e.url=es(e.url,{...e.params,...e.data}))),e},requestInterceptors(e,t){console.log(t);const r=localStorage.getItem("token");return r&&e?.requestOptions?.withToken!==!1&&(e.headers.Authtoken=r),e}};function rs(){return new $a({timeout:10*1e3,headers:{"Content-Type":So.JSON},transform:ts,requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,isTransformResponse:!0,joinParamsToUrl:!1,formatDate:!0,apiUrl:"",urlPrefix:"",joinTime:!0,ignoreCancelToken:!0,withToken:!0}})}const wr=rs(),ns=wr.request.bind(wr);U.http=wr,U.is=le,U.isArray=vo,U.isBoolean=Ga,U.isClient=Qa,U.isDate=ka,U.isDef=mo,U.isElement=Ka,U.isEmpty=La,U.isFunction=br,U.isNull=gr,U.isNullAndUnDef=ja,U.isNullOrUnDef=Ha,U.isNumber=Wa,U.isObject=ze,U.isPromise=za,U.isRegExp=Ja,U.isServer=go,U.isString=Pe,U.isSymbol=Ma,U.isUnDef=vr,U.isUrl=Xa,U.isWindow=Va,U.request=ns,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|
package/lib/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|