@sycsq/common 0.0.1

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.
@@ -0,0 +1,9 @@
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:No}=Object.prototype,{getPrototypeOf:ft}=Object,{iterator:Ve,toStringTag:_r}=Symbol,Ke=(e=>t=>{const r=No.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 Fr=ie("ArrayBuffer");function Do(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fr(e.buffer),t}const qo=Qe("string"),Q=Qe("function"),Nr=Qe("number"),ke=e=>e!==null&&typeof e=="object",Io=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)&&!(_r in e)&&!(Ve in e)},Uo=e=>{if(!ke(e)||Le(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$o=ie("Date"),Bo=ie("File"),Mo=ie("Blob"),Lo=ie("FileList"),ko=e=>ke(e)&&Q(e.pipe),jo=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]"))},Ho=ie("URLSearchParams"),[Wo,zo,Go,Jo]=["ReadableStream","Request","Response","Headers"].map(ie),Vo=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 Dr(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,qr=e=>!Me(e)&&e!==Ee;function pt(){const{caseless:e}=qr(this)&&this||{},t={},r=(n,o)=>{const a=e&&Dr(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 Ko=(e,t,r,{allOwnKeys:n}={})=>(je(t,(o,a)=>{r&&Q(o)?e[a]=Ce(o,r):e[a]=o},{allOwnKeys:n}),e),Qo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xo=(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)},Yo=(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},Zo=(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},ei=e=>{if(!e)return null;if(_e(e))return e;let t=e.length;if(!Nr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ti=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ft(Uint8Array)),ri=(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])}},ni=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},oi=ie("HTMLFormElement"),ii=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ir=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ai=ie("RegExp"),Ur=(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)},si=e=>{Ur(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+"'")})}})},ui=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return _e(e)?n(e):n(String(e).split(t)),r},li=()=>{},ci=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fi(e){return!!(e&&Q(e.append)&&e[_r]==="FormData"&&e[Ve])}const pi=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)},di=ie("AsyncFunction"),yi=e=>e&&(ke(e)||Q(e))&&Q(e.then)&&Q(e.catch),$r=((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)),hi=typeof queueMicrotask<"u"?queueMicrotask.bind(Ee):typeof process<"u"&&process.nextTick||$r,d={isArray:_e,isArrayBuffer:Fr,isBuffer:Le,isFormData:jo,isArrayBufferView:Do,isString:qo,isNumber:Nr,isBoolean:Io,isObject:ke,isPlainObject:Xe,isEmptyObject:Uo,isReadableStream:Wo,isRequest:zo,isResponse:Go,isHeaders:Jo,isUndefined:Me,isDate:$o,isFile:Bo,isBlob:Mo,isRegExp:ai,isFunction:Q,isStream:ko,isURLSearchParams:Ho,isTypedArray:ti,isFileList:Lo,forEach:je,merge:pt,extend:Ko,trim:Vo,stripBOM:Qo,inherits:Xo,toFlatObject:Yo,kindOf:Ke,kindOfTest:ie,endsWith:Zo,toArray:ei,forEachEntry:ri,matchAll:ni,isHTMLForm:oi,hasOwnProperty:Ir,hasOwnProp:Ir,reduceDescriptors:Ur,freezeMethods:si,toObjectSet:ui,toCamelCase:ii,noop:li,toFiniteNumber:ci,findKey:Dr,global:Ee,isContextDefined:qr,isSpecCompliantForm:fi,toJSONObject:pi,isAsyncFn:di,isThenable:yi,setImmediate:$r,asap:hi,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 Br=C.prototype,Mr={};["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=>{Mr[e]={value:e}}),Object.defineProperties(C,Mr),Object.defineProperty(Br,"isAxiosError",{value:!0}),C.from=(e,t,r,n,o,a)=>{const i=Object.create(Br);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 mi=null;function dt(e){return d.isPlainObject(e)||d.isArray(e)}function Lr(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function kr(e,t,r){return e?e.concat(t).map(function(o,a){return o=Lr(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function vi(e){return d.isArray(e)&&!e.some(dt)}const gi=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)&&vi(y)||(d.isFileList(y)||d.endsWith(w,"[]"))&&(h=d.toArray(y)))return w=Lr(w),h.forEach(function(E,O){!(d.isUndefined(E)||E===null)&&t.append(i===!0?kr([w],O,a):i===null?w:w+"[]",l(E))}),!1}return dt(y)?!0:(t.append(kr(u,w,a),l(y)),!1)}const S=[],b=Object.assign(gi,{defaultVisitor:c,convertValue:l,isVisitable:dt});function v(y,w){if(!d.isUndefined(y)){if(S.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));S.push(y),d.forEach(y,function(h,m){(!(d.isUndefined(h)||h===null)&&o.call(t,h,d.isString(m)?m.trim():m,w,b))===!0&&v(h,w?w.concat(m):[m])}),S.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return v(e),t}function jr(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 Hr=yt.prototype;Hr.append=function(t,r){this._pairs.push([t,r])},Hr.toString=function(t){const r=t?function(n){return t.call(this,n,jr)}:jr;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 Wr(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 zr{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 Gr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bi={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,wi=ht&&(!mt||["ReactNative","NativeScript","NS"].indexOf(mt.product)<0),Ei=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Oi=ht&&window.location.href||"http://localhost",G={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ht,hasStandardBrowserEnv:wi,hasStandardBrowserWebWorkerEnv:Ei,navigator:mt,origin:Oi},Symbol.toStringTag,{value:"Module"})),...bi};function Ai(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 Ri(e){return d.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pi(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 Jr(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]=Pi(o[i])),!s)}if(d.isFormData(e)&&d.isFunction(e.entries)){const r={};return d.forEachEntry(e,(n,o)=>{t(Ri(n),o,r,0)}),r}return null}function Ti(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:Gr,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(Jr(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 Ai(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),Ti(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 xi=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"]),Ci=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]&&xi[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Vr=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 _i(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 Fi=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 Ni(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Di(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 S=d.findKey(o,c);(!S||o[S]===void 0||l===!0||l===void 0&&o[S]!==!1)&&(o[S||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())&&!Fi(t))i(Ci(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 _i(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?Ni(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[Vr]=this[Vr]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=We(i);n[s]||(Di(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 Kr(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 Qr(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 qi(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ii(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 S=a,b=0;for(;S!==o;)b+=r[S++],S=S%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(b*1e3/v):void 0}}function Ui(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(),S=c-r;S>=n?i(l,c):(o=l,a||(a=setTimeout(()=>{a=null,i(o)},n-S)))},()=>o&&i(o)]}const et=(e,t,r=3)=>{let n=0;const o=Ii(50,250);return Ui(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,g=i-n,l=o(g),c=i<=s;n=i;const S={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(S)},r)},Xr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Yr=e=>(...t)=>d.asap(()=>e(...t)),$i=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,Bi=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 Mi(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Li(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zr(e,t,r){let n=!Mi(t);return e&&(n||r==!1)?Li(e,t):t}const en=e=>e instanceof X?{...e}:e;function Oe(e,t){t=t||{};const r={};function n(l,c,S,b){return d.isPlainObject(l)&&d.isPlainObject(c)?d.merge.call({caseless:b},l,c):d.isPlainObject(c)?d.merge({},c):d.isArray(c)?c.slice():c}function o(l,c,S,b){if(d.isUndefined(c)){if(!d.isUndefined(l))return n(void 0,l,S,b)}else return n(l,c,S,b)}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,S){if(S in t)return n(l,c);if(S 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,S)=>o(en(l),en(c),S,!0)};return d.forEach(Object.keys({...e,...t}),function(c){const S=g[c]||o,b=S(e[c],t[c],c);d.isUndefined(b)&&S!==s||(r[c]=b)}),r}const tn=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=Wr(Zr(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(S=>S.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...c].join("; "))}}if(G.hasStandardBrowserEnv&&(n&&d.isFunction(n)&&(n=n(t)),n||n!==!1&&$i(t.url))){const l=o&&a&&Bi.read(a);l&&i.set(o,l)}return t},ki=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=tn(e);let a=o.data;const i=X.from(o.headers).normalize();let{responseType:s,onUploadProgress:g,onDownloadProgress:l}=o,c,S,b,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};Qr(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||Gr;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&&([b,y]=et(l,!0),u.addEventListener("progress",b)),g&&u.upload&&([S,v]=et(g),u.upload.addEventListener("progress",S),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=qi(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)})},ji=(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}},Hi=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},Wi=async function*(e,t){for await(const r of zi(e))yield*Hi(r,t)},zi=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()}},rn=(e,t,r,n)=>{const o=Wi(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 S=c.byteLength;if(r){let b=a+=S;r(b)}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",nn=tt&&typeof ReadableStream=="function",Gi=tt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),on=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ji=nn&&on(()=>{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}),an=64*1024,St=nn&&on(()=>d.isReadableStream(new Response("").body)),rt={stream:St&&(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 Vi=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 Gi(e)).byteLength},Ki=async(e,t)=>{const r=d.toFiniteNumber(e.getContentLength());return r??Vi(t)},bt={http:mi,xhr:ki,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:S="same-origin",fetchOptions:b}=tn(e);l=l?(l+"").toLowerCase():"text";let v=ji([o,a&&a.toAbortSignal()],i),y;const w=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let u;try{if(g&&Ji&&r!=="get"&&r!=="head"&&(u=await Ki(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]=Xr(u,et(Yr(g)));n=rn(A.body,an,P,x)}}d.isString(S)||(S=S?"include":"omit");const h="credentials"in Request.prototype;y=new Request(t,{...b,signal:v,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:h?S:void 0});let m=await fetch(y,b);const E=St&&(l==="stream"||l==="response");if(St&&(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&&Xr(R,et(Yr(s),!0))||[];m=new Response(rn(m.body,an,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)=>{Qr(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(bt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sn=e=>`- ${e}`,Qi=e=>d.isFunction(e)||e===null||e===!1,un={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,!Qi(r)&&(n=bt[(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(sn).join(`
5
+ `):" "+sn(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:bt};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function ln(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),un.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 Kr(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 cn="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 fn={};nt.transitional=function(t,r,n){function o(a,i){return"[Axios v"+cn+"] 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&&!fn[i]&&(fn[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 Xi(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:Xi,validators:nt},ue=ot.validators;let Ae=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zr,response:new zr}}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,S=0,b;if(!g){const y=[ln.bind(this),void 0];for(y.unshift(...s),y.push(...l),b=y.length,c=Promise.resolve(r);S<b;)c=c.then(y[S++],y[S++]);return c}b=s.length;let v=r;for(S=0;S<b;){const y=s[S++],w=s[S++];try{v=y(v)}catch(u){w.call(this,u);break}}try{c=ln.call(this,v)}catch(y){return Promise.reject(y)}for(S=0,b=l.length;S<b;)c=c.then(l[S++],l[S++]);return c}getUri(t){t=Oe(this.defaults,t);const r=Zr(t.baseURL,t.url,t.allowAbsoluteUrls);return Wr(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 Yi=class Fo{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 Fo(function(o){t=o}),cancel:t}}};function Zi(e){return function(r){return e.apply(null,r)}}function ea(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 pn(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 pn(Oe(e,o))},r}const k=pn(He);k.Axios=Ae,k.CanceledError=Fe,k.CancelToken=Yi,k.isCancel=Kr,k.VERSION=cn,k.toFormData=Ye,k.AxiosError=C,k.Cancel=k.CanceledError,k.all=function(t){return Promise.all(t)},k.spread=Zi,k.isAxiosError=ea,k.mergeConfig=Oe,k.AxiosHeaders=X,k.formToJSON=e=>Jr(d.isHTMLForm(e)?new FormData(e):e),k.getAdapter=un.getAdapter,k.HttpStatusCode=Et,k.default=k;const{Axios:vs,AxiosError:gs,CanceledError:Ss,isCancel:bs,CancelToken:ws,VERSION:Es,all:Os,Cancel:As,isAxiosError:Rs,spread:Ps,toFormData:Ts,AxiosHeaders:xs,HttpStatusCode:Cs,formToJSON:_s,getAdapter:Fs,mergeConfig:Ns}=k;var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ra(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,yn;function Ne(){return yn||(yn=1,Ot=TypeError),Ot}const na=ra(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var At,hn;function it(){if(hn)return At;hn=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,S=c?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,v=b?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=na,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 be=Y(F,"customInspect")?F.customInspect:!0;if(typeof be!="boolean"&&be!=="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 wo(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 Or=typeof F.depth>"u"?5:F.depth;if(typeof M>"u"&&(M=0),M>=Or&&Or>0&&typeof p=="object")return ve(p)?"[Array]":"[Object]";var $e=ss(F,M);if(typeof L>"u")L=[];else if(Se(L,p)>=0)return"[Circular]";function se(Be,ct,ls){if(ct&&(L=D.call(L),L.push(ct)),ls){var _o={depth:F.depth};return Y(F,"quoteStyle")&&(_o.quoteStyle=F.quoteStyle),f(Be,_o,M+1,L)}return f(Be,F,M+1,L)}if(typeof p=="function"&&!z(p)){var Oo=De(p),Ao=ut(p,se);return"[Function"+(Oo?": "+Oo:" (anonymous)")+"]"+(Ao.length>0?" { "+x.call(Ao,", ")+" }":"")}if(V(p)){var Ro=H?E.call(String(p),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(p);return typeof p=="object"&&!H?Ge(Ro):Ro}if(os(p)){for(var Je="<"+A.call(String(p.nodeName)),Ar=p.attributes||[],lt=0;lt<Ar.length;lt++)Je+=" "+Ar[lt].name+"="+me(de(Ar[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 Rr=ut(p,se);return $e&&!as(Rr)?"["+Er(Rr,$e)+"]":"[ "+x.call(Rr,", ")+" ]"}if(q(p)){var Pr=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),Pr),", ")+" }":Pr.length===0?"["+String(p)+"]":"{ ["+String(p)+"] "+x.call(Pr,", ")+" }"}if(typeof p=="object"&&be){if(Te&&typeof p[Te]=="function"&&ee)return ee(p,{depth:Or-M});if(be!=="symbol"&&typeof p.inspect=="function")return p.inspect()}if(ae(p)){var Po=[];return n&&n.call(p,function(Be,ct){Po.push(se(ct,p,!0)+" => "+se(Be,p))}),Eo("Map",r.call(p),Po,$e)}if(Ue(p)){var To=[];return s&&s.call(p,function(Be){To.push(se(Be,p))}),Eo("Set",i.call(p),To,$e)}if(qe(p))return wr("WeakMap");if(ns(p))return wr("WeakSet");if(Ie(p))return wr("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 dn<"u"&&p===dn)return"{ [object globalThis] }";if(!ge(p)&&!z(p)){var Tr=ut(p,se),xo=fe?fe(p)===Object.prototype:p instanceof Object||p.constructor===Object,xr=p instanceof Object?"":"null prototype",Co=!xo&&Z&&Object(p)===p&&Z in p?m.call(oe(p),8,-1):xr?"Object":"",us=xo||typeof p.constructor!="function"?"":p.constructor.name?p.constructor.name+" ":"",Cr=us+(Co||xr?"["+x.call(P.call([],Co||[],xr||[]),": ")+"] ":"");return Tr.length===0?Cr+"{}":$e?Cr+"{"+Er(Tr,$e)+"}":Cr+"{ "+x.call(Tr,", ")+" }"}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,"&quot;")}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 Se(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{S.call(f,S)}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 ns(f){if(!S||!f||typeof f!="object")return!1;try{S.call(f,S);try{l.call(f,l)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function os(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function wo(f,p){if(f.length>p.maxStringLength){var I=f.length-p.maxStringLength,M="... "+I+" more character"+(I>1?"s":"");return wo(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,is);return me(F,"single",p)}function is(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 wr(f){return f+" { ? }"}function Eo(f,p,I,M){var L=M?Er(I,M):x.call(I,", ");return f+" ("+p+") {"+L+"}"}function as(f){for(var p=0;p<f.length;p++)if(Se(f[p],`
7
+ `)>=0)return!1;return!0}function ss(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 Er(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):[],be;if(H){be={};for(var xe=0;xe<F.length;xe++)be["$"+F[xe]]=F[xe]}for(var te in f)Y(f,te)&&(I&&String(Number(te))===te&&te<f.length||H&&be["$"+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,mn;function oa(){if(mn)return Rt;mn=1;var e=it(),t=Ne(),r=function(s,g,l){for(var c=s,S;(S=c.next)!=null;c=S)if(S.key===g)return c.next=S.next,l||(S.next=s.next,s.next=S),S},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 S=g&&g.next,b=i(g,c);return b&&S&&S===b&&(g=void 0),!!b},get:function(c){return n(g,c)},has:function(c){return a(g,c)},set:function(c,S){g||(g={next:void 0}),o(g,c,S)}};return l},Rt}var Pt,vn;function gn(){return vn||(vn=1,Pt=Object),Pt}var Tt,Sn;function ia(){return Sn||(Sn=1,Tt=Error),Tt}var xt,bn;function aa(){return bn||(bn=1,xt=EvalError),xt}var Ct,wn;function sa(){return wn||(wn=1,Ct=RangeError),Ct}var _t,En;function ua(){return En||(En=1,_t=ReferenceError),_t}var Ft,On;function la(){return On||(On=1,Ft=SyntaxError),Ft}var Nt,An;function ca(){return An||(An=1,Nt=URIError),Nt}var Dt,Rn;function fa(){return Rn||(Rn=1,Dt=Math.abs),Dt}var qt,Pn;function pa(){return Pn||(Pn=1,qt=Math.floor),qt}var It,Tn;function da(){return Tn||(Tn=1,It=Math.max),It}var Ut,xn;function ya(){return xn||(xn=1,Ut=Math.min),Ut}var $t,Cn;function ha(){return Cn||(Cn=1,$t=Math.pow),$t}var Bt,_n;function ma(){return _n||(_n=1,Bt=Math.round),Bt}var Mt,Fn;function va(){return Fn||(Fn=1,Mt=Number.isNaN||function(t){return t!==t}),Mt}var Lt,Nn;function ga(){if(Nn)return Lt;Nn=1;var e=va();return Lt=function(r){return e(r)||r===0?r:r<0?-1:1},Lt}var kt,Dn;function Sa(){return Dn||(Dn=1,kt=Object.getOwnPropertyDescriptor),kt}var jt,qn;function In(){if(qn)return jt;qn=1;var e=Sa();if(e)try{e([],"length")}catch{e=null}return jt=e,jt}var Ht,Un;function ba(){if(Un)return Ht;Un=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ht=e,Ht}var Wt,$n;function wa(){return $n||($n=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,Bn;function Ea(){if(Bn)return zt;Bn=1;var e=typeof Symbol<"u"&&Symbol,t=wa();return zt=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},zt}var Gt,Mn;function Ln(){return Mn||(Mn=1,Gt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Gt}var Jt,kn;function jn(){if(kn)return Jt;kn=1;var e=gn();return Jt=e.getPrototypeOf||null,Jt}var Vt,Hn;function Oa(){if(Hn)return Vt;Hn=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=[],S=0;S<g.length;S+=1)c[S]=g[S];for(var b=0;b<l.length;b+=1)c[b+g.length]=l[b];return c},a=function(g,l){for(var c=[],S=l,b=0;S<g.length;S+=1,b+=1)c[b]=g[S];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),S,b=function(){if(this instanceof S){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(S=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(b),l.prototype){var u=function(){};u.prototype=l.prototype,S.prototype=new u,u.prototype=null}return S},Vt}var Kt,Wn;function at(){if(Wn)return Kt;Wn=1;var e=Oa();return Kt=Function.prototype.bind||e,Kt}var Qt,zn;function Xt(){return zn||(zn=1,Qt=Function.prototype.call),Qt}var Yt,Gn;function Jn(){return Gn||(Gn=1,Yt=Function.prototype.apply),Yt}var Zt,Vn;function Aa(){return Vn||(Vn=1,Zt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Zt}var er,Kn;function Ra(){if(Kn)return er;Kn=1;var e=at(),t=Jn(),r=Xt(),n=Aa();return er=n||e.call(r,t),er}var tr,Qn;function Xn(){if(Qn)return tr;Qn=1;var e=at(),t=Ne(),r=Xt(),n=Ra();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,Yn;function Pa(){if(Yn)return rr;Yn=1;var e=Xn(),t=In(),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,Zn;function Ta(){if(Zn)return nr;Zn=1;var e=Ln(),t=jn(),r=Pa();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,eo;function xa(){if(eo)return or;eo=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=at();return or=r.call(e,t),or}var ir,to;function ar(){if(to)return ir;to=1;var e,t=gn(),r=ia(),n=aa(),o=sa(),a=ua(),i=la(),s=Ne(),g=ca(),l=fa(),c=pa(),S=da(),b=ya(),v=ha(),y=ma(),w=ga(),u=Function,h=function(z){try{return u('"use strict"; return ('+z+").constructor;")()}catch{}},m=In(),E=ba(),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=Ea()(),P=Ta(),x=jn(),D=Ln(),_=Jn(),$=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%":S,"%Math.min%":b,"%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=xa(),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,Se=!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"||!Se)&&(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);Se=!!Ue,Se&&"get"in Ue&&!("originalValue"in Ue.get)?K=Ue.get:K=K[ae]}else Se=ee(K,ae),K=K[ae];Se&&!Y&&(H[ne]=K)}}return K},ir}var sr,ro;function no(){if(ro)return sr;ro=1;var e=ar(),t=Xn(),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,oo;function io(){if(oo)return ur;oo=1;var e=ar(),t=no(),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 S,b={assert:function(v){if(!b.has(v))throw new n("Side channel does not contain "+r(v))},delete:function(v){if(S){var y=g(S,v);return l(S)===0&&(S=void 0),y}return!1},get:function(v){if(S)return a(S,v)},has:function(v){return S?s(S,v):!1},set:function(v,y){S||(S=new o),i(S,v,y)}};return b},ur}var lr,ao;function Ca(){if(ao)return lr;ao=1;var e=ar(),t=no(),r=it(),n=io(),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 S,b,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(S)return l(S,y)}else if(n&&b)return b.delete(y);return!1},get:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&S?i(S,y):b&&b.get(y)},has:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&S?g(S,y):!!b&&b.has(y)},set:function(y,w){a&&y&&(typeof y=="object"||typeof y=="function")?(S||(S=new a),s(S,y,w)):n&&(b||(b=n()),b.set(y,w))}};return v}:n,lr}var cr,so;function _a(){if(so)return cr;so=1;var e=Ne(),t=it(),r=oa(),n=io(),o=Ca(),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,uo;function pr(){if(uo)return fr;uo=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,lo;function co(){if(lo)return dr;lo=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},S=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},b=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:S,decode:g,encode:c,isBuffer:v,isRegExp:b,maybeMap:w,merge:i},dr}var yr,fo;function Fa(){if(fo)return yr;fo=1;var e=_a(),t=co(),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},S=function(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u=="symbol"||typeof u=="bigint"},b={},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(b))!==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(b)>"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(S(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(b,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,po;function Na(){if(po)return hr;po=1;var e=co(),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(b){return b.replace(/&#(\d+);/g,function(v,y){return String.fromCharCode(parseInt(y,10))})},a=function(b,v,y){if(b&&typeof b=="string"&&v.comma&&b.indexOf(",")>-1)return b.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 b},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(b,v,y,w){var u=0;if(b.length>0&&b[b.length-1]==="[]"){var h=b.slice(0,-1).join("");u=Array.isArray(v)&&v[h]?v[h].length:0}for(var m=w?v:a(v,y,u),E=b.length-1;E>=0;--E){var O,A=b[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)}},S=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(b,v){var y=S(v);if(b===""||b===null||typeof b>"u")return y.plainObjects?{__proto__:null}:{};for(var w=typeof b=="string"?g(b,y):b,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 b=="string");u=e.merge(u,O,y)}return y.allowSparse===!0?u:e.compact(u)},hr}var mr,yo;function Da(){if(yo)return mr;yo=1;var e=Fa(),t=Na(),r=pr();return mr={formats:r,parse:t,stringify:e},mr}var qa=Da();const Ia=ta(qa),Re=e=>typeof e=="function";class Ua{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:Ia.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,S)=>{this.axiosInstance.request(n).then(b=>{if(l&&Re(l)){try{const v=l(b,i);c(v)}catch(v){S(v||new Error("request error!"))}return}c(b)}).catch(b=>{if(g&&Re(g)){S(g(b,i));return}S(b)})})}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:$a}=Object.prototype;function le(e,t){return $a.call(e)===`[object ${t}]`}function ho(e){return typeof e<"u"}function vr(e){return!ho(e)}function ze(e){return e!==null&&le(e,"Object")}function Ba(e){return le(e,"Symbol")}function Ma(e){return mo(e)||Pe(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:ze(e)?Object.keys(e).length===0:!1}function La(e){return le(e,"Date")}function gr(e){return e===null}function ka(e){return vr(e)&&gr(e)}function ja(e){return vr(e)||gr(e)}function Ha(e){return le(e,"Number")}function Wa(e){return le(e,"Promise")&&ze(e)&&Sr(e.then)&&Sr(e.catch)}function Pe(e){return le(e,"String")}function Sr(e){return typeof e=="function"}function za(e){return le(e,"Boolean")}function Ga(e){return le(e,"RegExp")}function mo(e){return e&&Array.isArray(e)}function Ja(e){return typeof window<"u"&&le(e,"Window")}function Va(e){return ze(e)&&!!e.tagName}const vo=typeof window>"u",Ka=!vo;function Qa(e){return!!e&&/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}const Xa="YYYY-MM-DD HH:mm";let Ya=0;function go(e,t=!1){if(!e)return t?"":{};const r=new Date().getTime()+ ++Ya;return t?`?_t=${r}`:{_t:r}}function br(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(Xa)),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])&&br(e[t])}}function Za(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||{}),bo=(e=>(e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e))(bo||{});const es={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 b="";switch(a){case st.TIMEOUT:b="请求超时";break;default:b=g||l}throw t.errorHandler?t.errorHandler(b):console.error(b),new Error(b||"请求失败")},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&&br(l),e.method?.toUpperCase()===bo.GET?Pe(g)?(e.url=`${e.url}${g}${go(i,!0)}`,e.params=void 0):e.params=Object.assign(g||{},go(i,!1)):Pe(g)?(e.url+=g,e.params=void 0):(a&&br(g),Reflect.has(e,"data")&&e.data&&(e.data=l),Reflect.has(e,"params")&&e.params&&(e.params=g),o&&(e.url=Za(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 ts(){return new Ua({timeout:10*1e3,headers:{"Content-Type":So.JSON},transform:es,requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,isTransformResponse:!0,joinParamsToUrl:!1,formatDate:!0,apiUrl:"",urlPrefix:"",joinTime:!0,ignoreCancelToken:!0,withToken:!0}})}const rs=ts();U.http=rs,U.is=le,U.isArray=mo,U.isBoolean=za,U.isClient=Ka,U.isDate=La,U.isDef=ho,U.isElement=Va,U.isEmpty=Ma,U.isFunction=Sr,U.isNull=gr,U.isNullAndUnDef=ka,U.isNullOrUnDef=ja,U.isNumber=Ha,U.isObject=ze,U.isPromise=Wa,U.isRegExp=Ga,U.isServer=vo,U.isString=Pe,U.isSymbol=Ba,U.isUnDef=vr,U.isUrl=Qa,U.isWindow=Ja,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
package/lib/vite.svg ADDED
@@ -0,0 +1 @@
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>
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@sycsq/common",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "files": [
7
+ "lib",
8
+ "types"
9
+ ],
10
+ "main": "./lib/index.umd.js",
11
+ "module": "./lib/index.esm.js",
12
+ "types": "./lib/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./types/index.d.ts",
16
+ "import": "./lib/index.esm.js",
17
+ "require": "./lib/index.umd.js"
18
+ }
19
+ },
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "build": "tsc && vite build",
23
+ "build:types": "tsc --emitDeclarationOnly",
24
+ "example:install": "pnpm install --filter personal-utils-example",
25
+ "example:dev": "pnpm dev --filter personal-utils-example",
26
+ "example:build": "pnpm build --filter personal-utils-example",
27
+ "example:preview": "pnpm preview --filter personal-utils-example",
28
+ "example:setup": "pnpm install && pnpm build && pnpm example:dev"
29
+ },
30
+ "devDependencies": {
31
+ "@types/qs": "^6.14.0",
32
+ "qs": "^6.14.0",
33
+ "typescript": "~5.9.2",
34
+ "vite": "^7.0.6"
35
+ },
36
+ "dependencies": {
37
+ "axios": "^1.11.0"
38
+ }
39
+ }
@@ -0,0 +1,51 @@
1
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ type CreateAxiosOptions = any;
3
+ type RequestOptions = any;
4
+ export declare enum ContentTypeEnum {
5
+ JSON = "application/json;charset=UTF-8",
6
+ TEXT = "text/plain;charset=UTF-8",
7
+ FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
8
+ FORM_DATA = "multipart/form-data;charset=UTF-8"
9
+ }
10
+ export declare enum RequestEnum {
11
+ GET = "GET",
12
+ POST = "POST",
13
+ PUT = "PUT",
14
+ DELETE = "DELETE"
15
+ }
16
+ export declare class Axios {
17
+ private axiosInstance;
18
+ private readonly options;
19
+ constructor(options: CreateAxiosOptions);
20
+ /**
21
+ * @description create axios instance
22
+ */
23
+ private createAxios;
24
+ /**
25
+ * get transform options
26
+ */
27
+ private getTransform;
28
+ /**
29
+ * get instance
30
+ */
31
+ getAxios(): AxiosInstance;
32
+ /**
33
+ * @description Reconfigure axios
34
+ */
35
+ configAxios(config: CreateAxiosOptions): void;
36
+ /**
37
+ * @description set general header
38
+ */
39
+ setHeader(headers: any): void;
40
+ supportFormData(config: AxiosRequestConfig): AxiosRequestConfig<any>;
41
+ request<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
42
+ get<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
43
+ post<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
44
+ put<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
45
+ delete<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
46
+ /**
47
+ * @description Interceptor configuration
48
+ */
49
+ private setupInterceptors;
50
+ }
51
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type AxiosRequestConfig } from 'axios';
2
+ export declare const getPendingUrl: (config: AxiosRequestConfig) => string;
3
+ export declare class AxiosCanceler {
4
+ addPending(config: AxiosRequestConfig): void;
5
+ removePending(config: AxiosRequestConfig): void;
6
+ removeAllPending(): void;
7
+ reset(): void;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { type AxiosTransform } from './types';
2
+ export declare const axiosTransform: AxiosTransform;
@@ -0,0 +1,4 @@
1
+ import type { Recordable } from './types';
2
+ export declare function joinTimestamp<T extends boolean>(join: boolean, restful: T): T extends true ? string : object;
3
+ export declare function formatRequestDate(params: Recordable): void;
4
+ export declare function setObjToUrlParams(baseUrl: string, obj: any): string;
@@ -0,0 +1,2 @@
1
+ import { Axios } from './Axios';
2
+ export declare const http: Axios;
@@ -0,0 +1,56 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ export interface RequestOptions {
3
+ joinParamsToUrl?: boolean;
4
+ formatDate?: boolean;
5
+ isTransformResponse?: boolean;
6
+ isReturnNativeResponse?: boolean;
7
+ joinPrefix?: boolean;
8
+ apiUrl?: string;
9
+ urlPrefix?: string;
10
+ joinTime?: boolean;
11
+ ignoreCancelToken?: boolean;
12
+ withToken?: boolean;
13
+ errorHandler?: Function;
14
+ }
15
+ export interface Result<T = any> {
16
+ code: string;
17
+ type: 'success' | 'error' | 'warning';
18
+ message: string;
19
+ msg: string;
20
+ body: T;
21
+ data: T;
22
+ }
23
+ export declare enum ResultEnum {
24
+ SUCCESS = "200",
25
+ ASYNC_SUCCESS = "202",
26
+ ERROR = "-1",
27
+ TIMEOUT = "10042",
28
+ TYPE = "success",
29
+ CERT_VALID = "409-iam-cert-valid"
30
+ }
31
+ export declare enum ContentTypeEnum {
32
+ JSON = "application/json;charset=UTF-8",
33
+ TEXT = "text/plain;charset=UTF-8",
34
+ FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
35
+ FORM_DATA = "multipart/form-data;charset=UTF-8"
36
+ }
37
+ export declare enum RequestEnum {
38
+ GET = "GET",
39
+ POST = "POST",
40
+ PUT = "PUT",
41
+ DELETE = "DELETE"
42
+ }
43
+ export interface CreateAxiosOptions extends AxiosRequestConfig {
44
+ transform?: AxiosTransform;
45
+ requestOptions?: RequestOptions;
46
+ }
47
+ export declare abstract class AxiosTransform<T = any, D = any> {
48
+ beforeRequestHook?: (config: AxiosRequestConfig<D>, options: RequestOptions) => AxiosRequestConfig;
49
+ requestCatchHook?: (e: Error, options: RequestOptions) => Promise<any>;
50
+ transformResponseHook?: (res: AxiosResponse<T>, options: RequestOptions) => any;
51
+ requestInterceptors?: (config: CreateAxiosOptions, options: CreateAxiosOptions) => AxiosRequestConfig<D>;
52
+ responseInterceptors?: (res: AxiosResponse<T, D>) => AxiosResponse<T, D>;
53
+ requestInterceptorsCatch?: (err: Error) => void;
54
+ responseInterceptorsCatch?: (err: Error) => void;
55
+ }
56
+ export type Recordable<T = any> = Record<string, T>;
@@ -0,0 +1,2 @@
1
+ export * from './http';
2
+ export * from './utils';
@@ -0,0 +1,22 @@
1
+ export declare function is(val: unknown, type: string): boolean;
2
+ export declare function isDef<T = unknown>(val?: T): val is T;
3
+ export declare function isUnDef<T = unknown>(val?: T): val is T;
4
+ export declare function isObject(val: any): val is Record<any, any>;
5
+ export declare function isSymbol(val: any): val is Symbol;
6
+ export declare function isEmpty<T = unknown>(val: T): val is T;
7
+ export declare function isDate(val: unknown): val is Date;
8
+ export declare function isNull(val: unknown): val is null;
9
+ export declare function isNullAndUnDef(val: unknown): val is null | undefined;
10
+ export declare function isNullOrUnDef(val: unknown): val is null | undefined;
11
+ export declare function isNumber(val: unknown): val is number;
12
+ export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
13
+ export declare function isString(val: unknown): val is string;
14
+ export declare function isFunction(val: unknown): val is Function;
15
+ export declare function isBoolean(val: unknown): val is boolean;
16
+ export declare function isRegExp(val: unknown): val is RegExp;
17
+ export declare function isArray(val: any): val is Array<any>;
18
+ export declare function isWindow(val: any): val is Window;
19
+ export declare function isElement(val: unknown): val is Element;
20
+ export declare const isServer: boolean;
21
+ export declare const isClient: boolean;
22
+ export declare function isUrl(path?: string): boolean;