client.e62d6c37.js
54.9 KB
import{g as Qt}from"./_commonjsHelpers.f84db168.js";var Se={},Jt={get exports(){return Se},set exports(t){Se=t}},He={},Vt={get exports(){return He},set exports(t){He=t}};(function(t){t.exports=e;function e(n){if(n)return r(n)}function r(n){for(var o in e.prototype)n[o]=e.prototype[o];return n}e.prototype.on=e.prototype.addEventListener=function(n,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(o),this},e.prototype.once=function(n,o){function i(){this.off(n,i),o.apply(this,arguments)}return i.fn=o,this.on(n,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(n,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s<i.length;s++)if(a=i[s],a===o||a.fn===o){i.splice(s,1);break}return i.length===0&&delete this._callbacks["$"+n],this},e.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),i=this._callbacks["$"+n],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(i){i=i.slice(0);for(var a=0,s=i.length;a<s;++a)i[a].apply(this,o)}return this},e.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},e.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(Vt);var Xt=he;he.default=he;he.stable=Rt;he.stableStringify=Rt;var we="[...]",xt="[Circular]",Z=[],X=[];function Pt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function he(t,e,r,n){typeof n>"u"&&(n=Pt()),ze(t,"",0,[],void 0,0,n);var o;try{X.length===0?o=JSON.stringify(t,e,r):o=JSON.stringify(t,It(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Z.length!==0;){var i=Z.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function ie(t,e,r,n){var o=Object.getOwnPropertyDescriptor(n,r);o.get!==void 0?o.configurable?(Object.defineProperty(n,r,{value:t}),Z.push([n,r,e,o])):X.push([e,r,t]):(n[r]=t,Z.push([n,r,e]))}function ze(t,e,r,n,o,i,a){i+=1;var s;if(typeof t=="object"&&t!==null){for(s=0;s<n.length;s++)if(n[s]===t){ie(xt,t,e,o);return}if(typeof a.depthLimit<"u"&&i>a.depthLimit){ie(we,t,e,o);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){ie(we,t,e,o);return}if(n.push(t),Array.isArray(t))for(s=0;s<t.length;s++)ze(t[s],s,s,n,t,i,a);else{var c=Object.keys(t);for(s=0;s<c.length;s++){var p=c[s];ze(t[p],p,s,n,t,i,a)}}n.pop()}}function Kt(t,e){return t<e?-1:t>e?1:0}function Rt(t,e,r,n){typeof n>"u"&&(n=Pt());var o=We(t,"",0,[],void 0,0,n)||t,i;try{X.length===0?i=JSON.stringify(o,e,r):i=JSON.stringify(o,It(e),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Z.length!==0;){var a=Z.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function We(t,e,r,n,o,i,a){i+=1;var s;if(typeof t=="object"&&t!==null){for(s=0;s<n.length;s++)if(n[s]===t){ie(xt,t,e,o);return}try{if(typeof t.toJSON=="function")return}catch{return}if(typeof a.depthLimit<"u"&&i>a.depthLimit){ie(we,t,e,o);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){ie(we,t,e,o);return}if(n.push(t),Array.isArray(t))for(s=0;s<t.length;s++)We(t[s],s,s,n,t,i,a);else{var c={},p=Object.keys(t).sort(Kt);for(s=0;s<p.length;s++){var d=p[s];We(t[d],d,s,n,t,i,a),c[d]=t[d]}if(typeof o<"u")Z.push([o,e,t]),o[e]=c;else return c}n.pop()}}function It(t){return t=typeof t<"u"?t:function(e,r){return r},function(e,r){if(X.length>0)for(var n=0;n<X.length;n++){var o=X[n];if(o[1]===e&&o[0]===r){r=o[2],X.splice(n,1);break}}return t.call(this,e,r)}}var Yt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},ft=typeof Symbol<"u"&&Symbol,Zt=Yt,er=function(){return typeof ft!="function"||typeof Symbol!="function"||typeof ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Zt()},tr="Function.prototype.bind called on incompatible ",Re=Array.prototype.slice,rr=Object.prototype.toString,nr="[object Function]",ir=function(e){var r=this;if(typeof r!="function"||rr.call(r)!==nr)throw new TypeError(tr+r);for(var n=Re.call(arguments,1),o,i=function(){if(this instanceof o){var d=r.apply(this,n.concat(Re.call(arguments)));return Object(d)===d?d:this}else return r.apply(e,n.concat(Re.call(arguments)))},a=Math.max(0,r.length-n.length),s=[],c=0;c<a;c++)s.push("$"+c);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=function(){};p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o},or=ir,Ze=Function.prototype.bind||or,ar=Ze,sr=ar.call(Function.call,Object.prototype.hasOwnProperty),w,ae=SyntaxError,$t=Function,oe=TypeError,Ie=function(t){try{return $t('"use strict"; return ('+t+").constructor;")()}catch{}},K=Object.getOwnPropertyDescriptor;if(K)try{K({},"")}catch{K=null}var $e=function(){throw new oe},fr=K?function(){try{return arguments.callee,$e}catch{try{return K(arguments,"callee").get}catch{return $e}}}():$e,re=er(),L=Object.getPrototypeOf||function(t){return t.__proto__},ne={},ur=typeof Uint8Array>"u"?w:L(Uint8Array),Y={"%AggregateError%":typeof AggregateError>"u"?w:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?w:ArrayBuffer,"%ArrayIteratorPrototype%":re?L([][Symbol.iterator]()):w,"%AsyncFromSyncIteratorPrototype%":w,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics>"u"?w:Atomics,"%BigInt%":typeof BigInt>"u"?w:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?w:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?w:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?w:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?w:Float32Array,"%Float64Array%":typeof Float64Array>"u"?w:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?w:FinalizationRegistry,"%Function%":$t,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array>"u"?w:Int8Array,"%Int16Array%":typeof Int16Array>"u"?w:Int16Array,"%Int32Array%":typeof Int32Array>"u"?w:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re?L(L([][Symbol.iterator]())):w,"%JSON%":typeof JSON=="object"?JSON:w,"%Map%":typeof Map>"u"?w:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re?w:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?w:Promise,"%Proxy%":typeof Proxy>"u"?w:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?w:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?w:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re?w:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?w:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re?L(""[Symbol.iterator]()):w,"%Symbol%":re?Symbol:w,"%SyntaxError%":ae,"%ThrowTypeError%":fr,"%TypedArray%":ur,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array>"u"?w:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?w:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?w:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?w:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?w:WeakMap,"%WeakRef%":typeof WeakRef>"u"?w:WeakRef,"%WeakSet%":typeof WeakSet>"u"?w:WeakSet};try{null.error}catch(t){var lr=L(L(t));Y["%Error.prototype%"]=lr}var cr=function t(e){var r;if(e==="%AsyncFunction%")r=Ie("async function () {}");else if(e==="%GeneratorFunction%")r=Ie("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ie("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=L(o.prototype))}return Y[e]=r,r},ut={"%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"]},me=Ze,_e=sr,pr=me.call(Function.call,Array.prototype.concat),yr=me.call(Function.apply,Array.prototype.splice),lt=me.call(Function.call,String.prototype.replace),Ee=me.call(Function.call,String.prototype.slice),hr=me.call(Function.call,RegExp.prototype.exec),dr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mr=/\\(\\)?/g,gr=function(e){var r=Ee(e,0,1),n=Ee(e,-1);if(r==="%"&&n!=="%")throw new ae("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ae("invalid intrinsic syntax, expected opening `%`");var o=[];return lt(e,dr,function(i,a,s,c){o[o.length]=s?lt(c,mr,"$1"):a||i}),o},vr=function(e,r){var n=e,o;if(_e(ut,n)&&(o=ut[n],n="%"+o[0]+"%"),_e(Y,n)){var i=Y[n];if(i===ne&&(i=cr(n)),typeof i>"u"&&!r)throw new oe("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new ae("intrinsic "+e+" does not exist!")},et=function(e,r){if(typeof e!="string"||e.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(hr(/^%?[^%]*%?$/,e)===null)throw new ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=gr(e),o=n.length>0?n[0]:"",i=vr("%"+o+"%",r),a=i.name,s=i.value,c=!1,p=i.alias;p&&(o=p[0],yr(n,pr([0,1],p)));for(var d=1,b=!0;d<n.length;d+=1){var g=n[d],S=Ee(g,0,1),O=Ee(g,-1);if((S==='"'||S==="'"||S==="`"||O==='"'||O==="'"||O==="`")&&S!==O)throw new ae("property names with quotes must have matching quotes");if((g==="constructor"||!b)&&(c=!0),o+="."+g,a="%"+o+"%",_e(Y,a))s=Y[a];else if(s!=null){if(!(g in s)){if(!r)throw new oe("base intrinsic for "+e+" exists, but the property is not available.");return}if(K&&d+1>=n.length){var A=K(s,g);b=!!A,b&&"get"in A&&!("originalValue"in A.get)?s=A.get:s=s[g]}else b=_e(s,g),s=s[g];b&&!c&&(Y[a]=s)}}return s},je={},br={get exports(){return je},set exports(t){je=t}};(function(t){var e=Ze,r=et,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(b){var g=i(e,o,arguments);if(a&&s){var S=a(g,"length");S.configurable&&s(g,"length",{value:1+c(0,b.length-(arguments.length-1))})}return g};var p=function(){return i(e,n,arguments)};s?s(t.exports,"apply",{value:p}):t.exports.apply=p})(br);var Ct=et,Nt=je,Sr=Nt(Ct("String.prototype.indexOf")),wr=function(e,r){var n=Ct(e,!!r);return typeof n=="function"&&Sr(e,".prototype.")>-1?Nt(n):n};const _r={},Er=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"})),Ft=Qt(Er);var tt=typeof Map=="function"&&Map.prototype,Ce=Object.getOwnPropertyDescriptor&&tt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oe=tt&&Ce&&typeof Ce.get=="function"?Ce.get:null,ct=tt&&Map.prototype.forEach,rt=typeof Set=="function"&&Set.prototype,Ne=Object.getOwnPropertyDescriptor&&rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ae=rt&&Ne&&typeof Ne.get=="function"?Ne.get:null,pt=rt&&Set.prototype.forEach,Or=typeof WeakMap=="function"&&WeakMap.prototype,ce=Or?WeakMap.prototype.has:null,Ar=typeof WeakSet=="function"&&WeakSet.prototype,pe=Ar?WeakSet.prototype.has:null,Tr=typeof WeakRef=="function"&&WeakRef.prototype,yt=Tr?WeakRef.prototype.deref:null,xr=Boolean.prototype.valueOf,Pr=Object.prototype.toString,Rr=Function.prototype.toString,Ir=String.prototype.match,nt=String.prototype.slice,G=String.prototype.replace,$r=String.prototype.toUpperCase,ht=String.prototype.toLowerCase,Dt=RegExp.prototype.test,dt=Array.prototype.concat,M=Array.prototype.join,Cr=Array.prototype.slice,mt=Math.floor,Ge=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Fe=Object.getOwnPropertySymbols,Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",R=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||"symbol")?Symbol.toStringTag:null,Ut=Object.prototype.propertyIsEnumerable,gt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function vt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-mt(-t):mt(t);if(n!==t){var o=String(n),i=nt.call(e,o.length+1);return G.call(o,r,"$&_")+"."+G.call(G.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(e,r,"$&_")}var Je=Ft,bt=Je.custom,St=Bt(bt)?bt:null,Nr=function t(e,r,n,o){var i=r||{};if(j(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=j(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Mt(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return s?vt(e,c):c}if(typeof e=="bigint"){var p=String(e)+"n";return s?vt(e,p):p}var d=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof e=="object")return Ve(e)?"[Array]":"[Object]";var b=Kr(i,n);if(typeof o>"u")o=[];else if(Lt(o,e)>=0)return"[Circular]";function g(f,u,l){if(u&&(o=Cr.call(o),o.push(u)),l){var y={depth:i.depth};return j(i,"quoteStyle")&&(y.quoteStyle=i.quoteStyle),t(f,y,n+1,o)}return t(f,i,n+1,o)}if(typeof e=="function"&&!wt(e)){var S=Hr(e),O=ge(e,g);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(O.length>0?" { "+M.call(O,", ")+" }":"")}if(Bt(e)){var A=se?G.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qe.call(e);return typeof e=="object"&&!se?le(A):A}if(Jr(e)){for(var I="<"+ht.call(String(e.nodeName)),h=e.attributes||[],$=0;$<h.length;$++)I+=" "+h[$].name+"="+qt(Fr(h[$].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+ht.call(String(e.nodeName))+">",I}if(Ve(e)){if(e.length===0)return"[]";var C=ge(e,g);return b&&!Xr(C)?"["+Xe(C,b)+"]":"[ "+M.call(C,", ")+" ]"}if(Ur(e)){var F=ge(e,g);return!("cause"in Error.prototype)&&"cause"in e&&!Ut.call(e,"cause")?"{ ["+String(e)+"] "+M.call(dt.call("[cause]: "+g(e.cause),F),", ")+" }":F.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+M.call(F,", ")+" }"}if(typeof e=="object"&&a){if(St&&typeof e[St]=="function"&&Je)return Je(e,{depth:d-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(zr(e)){var z=[];return ct&&ct.call(e,function(f,u){z.push(g(u,e,!0)+" => "+g(f,e))}),_t("Map",Oe.call(e),z,b)}if(Gr(e)){var J=[];return pt&&pt.call(e,function(f){J.push(g(f,e))}),_t("Set",Ae.call(e),J,b)}if(Wr(e))return De("WeakMap");if(Qr(e))return De("WeakSet");if(jr(e))return De("WeakRef");if(Br(e))return le(g(Number(e)));if(Mr(e))return le(g(Ge.call(e)));if(Lr(e))return le(xr.call(e));if(qr(e))return le(g(String(e)));if(!Dr(e)&&!wt(e)){var D=ge(e,g),N=gt?gt(e)===Object.prototype:e instanceof Object||e.constructor===Object,_=e instanceof Object?"":"null prototype",U=!N&&R&&Object(e)===e&&R in e?nt.call(Q(e),8,-1):_?"Object":"",q=N||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=q+(U||_?"["+M.call(dt.call([],U||[],_||[]),": ")+"] ":"");return D.length===0?k+"{}":b?k+"{"+Xe(D,b)+"}":k+"{ "+M.call(D,", ")+" }"}return String(e)};function qt(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Fr(t){return G.call(String(t),/"/g,""")}function Ve(t){return Q(t)==="[object Array]"&&(!R||!(typeof t=="object"&&R in t))}function Dr(t){return Q(t)==="[object Date]"&&(!R||!(typeof t=="object"&&R in t))}function wt(t){return Q(t)==="[object RegExp]"&&(!R||!(typeof t=="object"&&R in t))}function Ur(t){return Q(t)==="[object Error]"&&(!R||!(typeof t=="object"&&R in t))}function qr(t){return Q(t)==="[object String]"&&(!R||!(typeof t=="object"&&R in t))}function Br(t){return Q(t)==="[object Number]"&&(!R||!(typeof t=="object"&&R in t))}function Lr(t){return Q(t)==="[object Boolean]"&&(!R||!(typeof t=="object"&&R in t))}function Bt(t){if(se)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Qe)return!1;try{return Qe.call(t),!0}catch{}return!1}function Mr(t){if(!t||typeof t!="object"||!Ge)return!1;try{return Ge.call(t),!0}catch{}return!1}var kr=Object.prototype.hasOwnProperty||function(t){return t in this};function j(t,e){return kr.call(t,e)}function Q(t){return Pr.call(t)}function Hr(t){if(t.name)return t.name;var e=Ir.call(Rr.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Lt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function zr(t){if(!Oe||!t||typeof t!="object")return!1;try{Oe.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Wr(t){if(!ce||!t||typeof t!="object")return!1;try{ce.call(t,ce);try{pe.call(t,pe)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function jr(t){if(!yt||!t||typeof t!="object")return!1;try{return yt.call(t),!0}catch{}return!1}function Gr(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{Oe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Qr(t){if(!pe||!t||typeof t!="object")return!1;try{pe.call(t,pe);try{ce.call(t,ce)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Jr(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Mt(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Mt(nt.call(t,0,e.maxStringLength),e)+n}var o=G.call(G.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vr);return qt(o,"single",e)}function Vr(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$r.call(e.toString(16))}function le(t){return"Object("+t+")"}function De(t){return t+" { ? }"}function _t(t,e,r,n){var o=n?Xe(r,n):M.call(r,", ");return t+" ("+e+") {"+o+"}"}function Xr(t){for(var e=0;e<t.length;e++)if(Lt(t[e],`
`)>=0)return!1;return!0}function Kr(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=M.call(Array(t.indent+1)," ");else return null;return{base:r,prev:M.call(Array(e+1),r)}}function Xe(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+M.call(t,","+r)+`
`+e.prev}function ge(t,e){var r=Ve(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=j(t,o)?e(t[o],t):""}var i=typeof Fe=="function"?Fe(t):[],a;if(se){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in t)j(t,c)&&(r&&String(Number(c))===c&&c<t.length||se&&a["$"+c]instanceof Symbol||(Dt.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Fe=="function")for(var p=0;p<i.length;p++)Ut.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}var it=et,ue=wr,Yr=Nr,Zr=it("%TypeError%"),ve=it("%WeakMap%",!0),be=it("%Map%",!0),en=ue("WeakMap.prototype.get",!0),tn=ue("WeakMap.prototype.set",!0),rn=ue("WeakMap.prototype.has",!0),nn=ue("Map.prototype.get",!0),on=ue("Map.prototype.set",!0),an=ue("Map.prototype.has",!0),ot=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},sn=function(t,e){var r=ot(t,e);return r&&r.value},fn=function(t,e,r){var n=ot(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},un=function(t,e){return!!ot(t,e)},ln=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new Zr("Side channel does not contain "+Yr(i))},get:function(i){if(ve&&i&&(typeof i=="object"||typeof i=="function")){if(e)return en(e,i)}else if(be){if(r)return nn(r,i)}else if(n)return sn(n,i)},has:function(i){if(ve&&i&&(typeof i=="object"||typeof i=="function")){if(e)return rn(e,i)}else if(be){if(r)return an(r,i)}else if(n)return un(n,i);return!1},set:function(i,a){ve&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new ve),tn(e,i,a)):be?(r||(r=new be),on(r,i,a)):(n||(n={key:{},next:null}),fn(n,i,a))}};return o},cn=String.prototype.replace,pn=/%20/g,Ue={RFC1738:"RFC1738",RFC3986:"RFC3986"},at={default:Ue.RFC3986,formatters:{RFC1738:function(t){return cn.call(t,pn,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ue.RFC1738,RFC3986:Ue.RFC3986},yn=at,qe=Object.prototype.hasOwnProperty,V=Array.isArray,B=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),hn=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(V(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},kt=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},dn=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(V(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qe.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return V(e)&&!V(r)&&(o=kt(e,n)),V(e)&&V(r)?(r.forEach(function(i,a){if(qe.call(e,a)){var s=e[a];s&&typeof s=="object"&&i&&typeof i=="object"?e[a]=t(s,i,n):e.push(i)}else e[a]=i}),e):Object.keys(r).reduce(function(i,a){var s=r[a];return qe.call(i,a)?i[a]=t(i[a],s,n):i[a]=s,i},o)},mn=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},gn=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},vn=function(e,r,n,o,i){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;++c){var p=a.charCodeAt(c);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===yn.RFC1738&&(p===40||p===41)){s+=a.charAt(c);continue}if(p<128){s=s+B[p];continue}if(p<2048){s=s+(B[192|p>>6]+B[128|p&63]);continue}if(p<55296||p>=57344){s=s+(B[224|p>>12]+B[128|p>>6&63]+B[128|p&63]);continue}c+=1,p=65536+((p&1023)<<10|a.charCodeAt(c)&1023),s+=B[240|p>>18]+B[128|p>>12&63]+B[128|p>>6&63]+B[128|p&63]}return s},bn=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var p=s[c],d=a[p];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:a,prop:p}),n.push(d))}return hn(r),e},Sn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},wn=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_n=function(e,r){return[].concat(e,r)},En=function(e,r){if(V(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Ht={arrayToObject:kt,assign:mn,combine:_n,compact:bn,decode:gn,encode:vn,isBuffer:wn,isRegExp:Sn,maybeMap:En,merge:dn},zt=ln,Ke=Ht,ye=at,On=Object.prototype.hasOwnProperty,Et={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},H=Array.isArray,An=String.prototype.split,Tn=Array.prototype.push,Wt=function(t,e){Tn.apply(t,H(e)?e:[e])},xn=Date.prototype.toISOString,Ot=ye.default,x={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ke.encode,encodeValuesOnly:!1,format:Ot,formatter:ye.formatters[Ot],indices:!1,serializeDate:function(e){return xn.call(e)},skipNulls:!1,strictNullHandling:!1},Pn=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Be={},Rn=function t(e,r,n,o,i,a,s,c,p,d,b,g,S,O,A,I){for(var h=e,$=I,C=0,F=!1;($=$.get(Be))!==void 0&&!F;){var z=$.get(e);if(C+=1,typeof z<"u"){if(z===C)throw new RangeError("Cyclic object value");F=!0}typeof $.get(Be)>"u"&&(C=0)}if(typeof c=="function"?h=c(r,h):h instanceof Date?h=b(h):n==="comma"&&H(h)&&(h=Ke.maybeMap(h,function(P){return P instanceof Date?b(P):P})),h===null){if(i)return s&&!O?s(r,x.encoder,A,"key",g):r;h=""}if(Pn(h)||Ke.isBuffer(h)){if(s){var J=O?r:s(r,x.encoder,A,"key",g);if(n==="comma"&&O){for(var D=An.call(String(h),","),N="",_=0;_<D.length;++_)N+=(_===0?"":",")+S(s(D[_],x.encoder,A,"value",g));return[S(J)+(o&&H(h)&&D.length===1?"[]":"")+"="+N]}return[S(J)+"="+S(s(h,x.encoder,A,"value",g))]}return[S(r)+"="+S(String(h))]}var U=[];if(typeof h>"u")return U;var q;if(n==="comma"&&H(h))q=[{value:h.length>0?h.join(",")||null:void 0}];else if(H(c))q=c;else{var k=Object.keys(h);q=p?k.sort(p):k}for(var f=o&&H(h)&&h.length===1?r+"[]":r,u=0;u<q.length;++u){var l=q[u],y=typeof l=="object"&&typeof l.value<"u"?l.value:h[l];if(!(a&&y===null)){var m=H(h)?typeof n=="function"?n(f,l):f:f+(d?"."+l:"["+l+"]");I.set(e,C);var v=zt();v.set(Be,I),Wt(U,t(y,m,n,o,i,a,s,c,p,d,b,g,S,O,A,v))}}return U},In=function(e){if(!e)return x;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||x.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ye.default;if(typeof e.format<"u"){if(!On.call(ye.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ye.formatters[n],i=x.filter;return(typeof e.filter=="function"||H(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:x.addQueryPrefix,allowDots:typeof e.allowDots>"u"?x.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:x.charsetSentinel,delimiter:typeof e.delimiter>"u"?x.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:x.encode,encoder:typeof e.encoder=="function"?e.encoder:x.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:x.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:x.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:x.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:x.strictNullHandling}},$n=function(t,e){var r=t,n=In(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):H(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var s;e&&e.arrayFormat in Et?s=e.arrayFormat:e&&"indices"in e?s=e.indices?"indices":"repeat":s="indices";var c=Et[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=c==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var d=zt(),b=0;b<o.length;++b){var g=o[b];n.skipNulls&&r[g]===null||Wt(a,Rn(r[g],g,c,p,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var S=a.join(n.delimiter),O=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),S.length>0?O+S:""},fe=Ht,Ye=Object.prototype.hasOwnProperty,Cn=Array.isArray,T={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:fe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Nn=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},jt=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Fn="utf8=%26%2310003%3B",Dn="utf8=%E2%9C%93",Un=function(e,r){var n={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,i),s=-1,c,p=r.charset;if(r.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Dn?p="utf-8":a[c]===Fn&&(p="iso-8859-1"),s=c,c=a.length);for(c=0;c<a.length;++c)if(c!==s){var d=a[c],b=d.indexOf("]="),g=b===-1?d.indexOf("="):b+1,S,O;g===-1?(S=r.decoder(d,T.decoder,p,"key"),O=r.strictNullHandling?null:""):(S=r.decoder(d.slice(0,g),T.decoder,p,"key"),O=fe.maybeMap(jt(d.slice(g+1),r),function(A){return r.decoder(A,T.decoder,p,"value")})),O&&r.interpretNumericEntities&&p==="iso-8859-1"&&(O=Nn(O)),d.indexOf("[]=")>-1&&(O=Cn(O)?[O]:O),Ye.call(n,S)?n[S]=fe.combine(n[S],O):n[S]=O}return n},qn=function(t,e,r,n){for(var o=n?e:jt(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if(s==="[]"&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=parseInt(c,10);!r.parseArrays&&c===""?a={0:o}:!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[],a[p]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},Bn=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(i),p=c?i.slice(0,c.index):i,d=[];if(p){if(!n.plainObjects&&Ye.call(Object.prototype,p)&&!n.allowPrototypes)return;d.push(p)}for(var b=0;n.depth>0&&(c=s.exec(i))!==null&&b<n.depth;){if(b+=1,!n.plainObjects&&Ye.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}return c&&d.push("["+i.slice(c.index)+"]"),qn(d,r,n,o)}},Ln=function(e){if(!e)return T;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?T.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?T.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:T.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:T.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:T.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:T.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:T.comma,decoder:typeof e.decoder=="function"?e.decoder:T.decoder,delimiter:typeof e.delimiter=="string"||fe.isRegExp(e.delimiter)?e.delimiter:T.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:T.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:T.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:T.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:T.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:T.strictNullHandling}},Mn=function(t,e){var r=Ln(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Un(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Bn(s,n[s],r,typeof t=="string");o=fe.merge(o,c,r)}return r.allowSparse===!0?o:fe.compact(o)},kn=$n,Hn=Mn,zn=at,Wn={formats:zn,parse:Hn,stringify:kn},xe={};(function(t){function e(o,i){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=r(o))||i&&o&&typeof o.length=="number"){a&&(o=a);var s=0,c=function(){};return{s:c,n:function(){return s>=o.length?{done:!0}:{done:!1,value:o[s++]}},e:function(S){throw S},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,d=!1,b;return{s:function(){a=a.call(o)},n:function(){var S=a.next();return p=S.done,S},e:function(S){d=!0,b=S},f:function(){try{!p&&a.return!=null&&a.return()}finally{if(d)throw b}}}}function r(o,i){if(o){if(typeof o=="string")return n(o,i);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(o,i)}}function n(o,i){(i==null||i>o.length)&&(i=o.length);for(var a=0,s=new Array(i);a<i;a++)s[a]=o[a];return s}t.type=o=>o.split(/ *; */).shift(),t.params=o=>{const i={};var a=e(o.split(/ *; */)),s;try{for(a.s();!(s=a.n()).done;){const p=s.value.split(/ *= */),d=p.shift(),b=p.shift();d&&b&&(i[d]=b)}}catch(c){a.e(c)}finally{a.f()}return i},t.parseLinks=o=>{const i={};var a=e(o.split(/ *, */)),s;try{for(a.s();!(s=a.n()).done;){const p=s.value.split(/ *; */),d=p[0].slice(1,-1),b=p[1].split(/ *= */)[1].slice(1,-1);i[b]=d}}catch(c){a.e(c)}finally{a.f()}return i},t.cleanHeader=(o,i)=>(delete o["content-type"],delete o["content-length"],delete o["transfer-encoding"],delete o.host,i&&(delete o.authorization,delete o.cookie),o),t.isObject=o=>o!==null&&typeof o=="object",t.hasOwn=Object.hasOwn||function(o,i){if(o==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(o),i)},t.mixin=(o,i)=>{for(const a in i)t.hasOwn(i,a)&&(o[a]=i[a])}})(xe);const Le=Ft,Gt=xe,Te=Gt.isObject,de=Gt.hasOwn;var jn=E;function E(){}E.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this};E.prototype.parse=function(t){return this._parser=t,this};E.prototype.responseType=function(t){return this._responseType=t,this};E.prototype.serialize=function(t){return this._serializer=t,this};E.prototype.timeout=function(t){if(!t||typeof t!="object")return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(de(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this};E.prototype.retry=function(t,e){return(arguments.length===0||t===!0)&&(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};const Gn=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),Qn=new Set([408,413,429,500,502,503,504,521,522,524]);E.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const r=this._retryCallback(t,e);if(r===!0)return!0;if(r===!1)return!1}catch(r){console.error(r)}return!!(e&&e.status&&Qn.has(e.status)||t&&(t.code&&Gn.has(t.code)||t.timeout&&t.code==="ECONNABORTED"||t.crossDomain))};E.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()};E.prototype.then=function(t,e){if(!this._fullfilledPromise){const r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((n,o)=>{r.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError){o(this.timedoutError);return}const i=new Error("Aborted");i.code="ABORTED",i.status=this.status,i.method=this.method,i.url=this.url,o(i)}),r.end((i,a)=>{i?o(i):n(a)})})}return this._fullfilledPromise.then(t,e)};E.prototype.catch=function(t){return this.then(void 0,t)};E.prototype.use=function(t){return t(this),this};E.prototype.ok=function(t){if(typeof t!="function")throw new Error("Callback required");return this._okCallback=t,this};E.prototype._isResponseOK=function(t){return t?this._okCallback?this._okCallback(t):t.status>=200&&t.status<300:!1};E.prototype.get=function(t){return this._header[t.toLowerCase()]};E.prototype.getHeader=E.prototype.get;E.prototype.set=function(t,e){if(Te(t)){for(const r in t)de(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this};E.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this};E.prototype.field=function(t,e,r){if(t==null)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Te(t)){for(const n in t)de(t,n)&&this.field(n,t[n]);return this}if(Array.isArray(e)){for(const n in e)de(e,n)&&this.field(t,e[n]);return this}if(e==null)throw new Error(".field(name, val) val can not be empty");return typeof e=="boolean"&&(e=String(e)),r?this._getFormData().append(t,e,r):this._getFormData().append(t,e),this};E.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(Le.gte(process.version,"v13.0.0")&&Le.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");Le.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this};E.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization",`Basic ${n(`${t}:${e}`)}`);break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization",`Bearer ${t}`);break}return this};E.prototype.withCredentials=function(t){return t===void 0&&(t=!0),this._withCredentials=t,this};E.prototype.redirects=function(t){return this._maxRedirects=t,this};E.prototype.maxResponseSize=function(t){if(typeof t!="number")throw new TypeError("Invalid argument");return this._maxResponseSize=t,this};E.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}};E.prototype.send=function(t){const e=Te(t);let r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&Te(this._data))for(const n in t)de(t,n)&&(this._data[n]=t[n]);else typeof t=="string"?(r||this.type("form"),r=this._header["content-type"],r&&(r=r.toLowerCase().trim()),r==="application/x-www-form-urlencoded"?this._data=this._data?`${this._data}&${t}`:t:this._data=(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)};E.prototype.sortQuery=function(t){return this._sort=typeof t>"u"?!0:t,this};E.prototype._finalizeQueryString=function(){const t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const r=this.url.slice(e+1).split("&");typeof this._sort=="function"?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}};E.prototype._appendQueryString=()=>{console.warn("Unsupported")};E.prototype._timeoutError=function(t,e,r){if(this._aborted)return;const n=new Error(`${t+e}ms exceeded`);n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)};E.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};const Me=xe;var Jn=Pe;function Pe(){}Pe.prototype.get=function(t){return this.header[t.toLowerCase()]};Pe.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=Me.type(e);const r=Me.params(e);for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=Me.parseLinks(t.link))}catch{}};Pe.prototype._setStatusProperties=function(t){const e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=e===1,this.ok=e===2,this.redirect=e===3,this.clientError=e===4,this.serverError=e===5,this.error=e===4||e===5?this.toError():!1,this.created=t===201,this.accepted=t===202,this.noContent=t===204,this.badRequest=t===400,this.unauthorized=t===401,this.notAcceptable=t===406,this.forbidden=t===403,this.notFound=t===404,this.unprocessableEntity=t===422};function Vn(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Xn(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(t)},n:function(){var p=r.next();return i=p.done,p},e:function(p){a=!0,s=p},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function Xn(t,e){if(t){if(typeof t=="string")return At(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return At(t,e)}}function At(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function st(){this._defaults=[]}for(var ke=0,Tt=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];ke<Tt.length;ke++){const t=Tt[ke];st.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}}st.prototype._setDefaults=function(t){var e=Vn(this._defaults),r;try{for(e.s();!(r=e.n()).done;){const n=r.value;t[n.fn](...n.args)}}catch(n){e.e(n)}finally{e.f()}};var Kn=st;(function(t,e){function r(f,u){var l=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!l){if(Array.isArray(f)||(l=n(f))||u&&f&&typeof f.length=="number"){l&&(f=l);var y=0,m=function(){};return{s:m,n:function(){return y>=f.length?{done:!0}:{done:!1,value:f[y++]}},e:function(te){throw te},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,P=!1,ee;return{s:function(){l=l.call(f)},n:function(){var te=l.next();return v=te.done,te},e:function(te){P=!0,ee=te},f:function(){try{!v&&l.return!=null&&l.return()}finally{if(P)throw ee}}}}function n(f,u){if(f){if(typeof f=="string")return o(f,u);var l=Object.prototype.toString.call(f).slice(8,-1);if(l==="Object"&&f.constructor&&(l=f.constructor.name),l==="Map"||l==="Set")return Array.from(f);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return o(f,u)}}function o(f,u){(u==null||u>f.length)&&(u=f.length);for(var l=0,y=new Array(u);l<u;l++)y[l]=f[l];return y}let i;typeof window<"u"?i=window:typeof self>"u"?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;const a=He,s=Xt,c=Wn,p=jn,d=xe,b=d.isObject,g=d.mixin,S=d.hasOwn,O=Jn,A=Kn;function I(){}t.exports=function(f,u){return typeof u=="function"?new e.Request("GET",f).end(u):arguments.length===1?new e.Request("GET",f):new e.Request(f,u)},e=t.exports;const h=e;e.Request=_,h.getXHR=()=>{if(i.XMLHttpRequest)return new i.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const $="".trim?f=>f.trim():f=>f.replace(/(^\s*|\s*$)/g,"");function C(f){if(!b(f))return f;const u=[];for(const l in f)S(f,l)&&F(u,l,f[l]);return u.join("&")}function F(f,u,l){if(l!==void 0){if(l===null){f.push(encodeURI(u));return}if(Array.isArray(l)){var y=r(l),m;try{for(y.s();!(m=y.n()).done;){const v=m.value;F(f,u,v)}}catch(v){y.e(v)}finally{y.f()}}else if(b(l))for(const v in l)S(l,v)&&F(f,`${u}[${v}]`,l[v]);else f.push(encodeURI(u)+"="+encodeURIComponent(l))}}h.serializeObject=C;function z(f){const u={},l=f.split("&");let y,m;for(let v=0,P=l.length;v<P;++v)y=l[v],m=y.indexOf("="),m===-1?u[decodeURIComponent(y)]="":u[decodeURIComponent(y.slice(0,m))]=decodeURIComponent(y.slice(m+1));return u}h.parseString=z,h.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},h.serialize={"application/x-www-form-urlencoded":c.stringify,"application/json":s},h.parse={"application/x-www-form-urlencoded":z,"application/json":JSON.parse};function J(f){const u=f.split(/\r?\n/),l={};let y,m,v,P;for(let ee=0,W=u.length;ee<W;++ee)m=u[ee],y=m.indexOf(":"),y!==-1&&(v=m.slice(0,y).toLowerCase(),P=$(m.slice(y+1)),l[v]=P);return l}function D(f){return/[/+]json($|[^-\w])/i.test(f)}function N(f){this.req=f,this.xhr=this.req.xhr,this.text=this.req.method!=="HEAD"&&(this.xhr.responseType===""||this.xhr.responseType==="text")||typeof this.xhr.responseType>"u"?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let u=this.xhr.status;u===1223&&(u=204),this._setStatusProperties(u),this.headers=J(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.text===null&&f._responseType?this.body=this.xhr.response:this.body=this.req.method==="HEAD"?null:this._parseBody(this.text?this.text:this.xhr.response)}g(N.prototype,O.prototype),N.prototype._parseBody=function(f){let u=h.parse[this.type];return this.req._parser?this.req._parser(this,f):(!u&&D(this.type)&&(u=h.parse["application/json"]),u&&f&&(f.length>0||f instanceof Object)?u(f):null)},N.prototype.toError=function(){const f=this.req,u=f.method,l=f.url,y=`cannot ${u} ${l} (${this.status})`,m=new Error(y);return m.status=this.status,m.method=u,m.url=l,m},h.Response=N;function _(f,u){const l=this;this._query=this._query||[],this.method=f,this.url=u,this.header={},this._header={},this.on("end",()=>{let y=null,m=null;try{m=new N(l)}catch(P){return y=new Error("Parser is unable to parse the response"),y.parse=!0,y.original=P,l.xhr?(y.rawResponse=typeof l.xhr.responseType>"u"?l.xhr.responseText:l.xhr.response,y.status=l.xhr.status?l.xhr.status:null,y.statusCode=y.status):(y.rawResponse=null,y.status=null),l.callback(y)}l.emit("response",m);let v;try{l._isResponseOK(m)||(v=new Error(m.statusText||m.text||"Unsuccessful HTTP response"))}catch(P){v=P}v?(v.original=y,v.response=m,v.status=v.status||m.status,l.callback(v,m)):l.callback(null,m)})}a(_.prototype),g(_.prototype,p.prototype),_.prototype.type=function(f){return this.set("Content-Type",h.types[f]||f),this},_.prototype.accept=function(f){return this.set("Accept",h.types[f]||f),this},_.prototype.auth=function(f,u,l){arguments.length===1&&(u=""),typeof u=="object"&&u!==null&&(l=u,u=""),l||(l={type:typeof btoa=="function"?"basic":"auto"});const y=l.encoder?l.encoder:m=>{if(typeof btoa=="function")return btoa(m);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(f,u,l,y)},_.prototype.query=function(f){return typeof f!="string"&&(f=C(f)),f&&this._query.push(f),this},_.prototype.attach=function(f,u,l){if(u){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(f,u,l||u.name)}return this},_.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},_.prototype.callback=function(f,u){if(this._shouldRetry(f,u))return this._retry();const l=this._callback;this.clearTimeout(),f&&(this._maxRetries&&(f.retries=this._retries-1),this.emit("error",f)),l(f,u)},_.prototype.crossDomainError=function(){const f=new Error(`Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);f.crossDomain=!0,f.status=this.status,f.method=this.method,f.url=this.url,this.callback(f)},_.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},_.prototype.ca=_.prototype.agent,_.prototype.buffer=_.prototype.ca,_.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},_.prototype.pipe=_.prototype.write,_.prototype._isHost=function(f){return f&&typeof f=="object"&&!Array.isArray(f)&&Object.prototype.toString.call(f)!=="[object Object]"},_.prototype.end=function(f){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=f||I,this._finalizeQueryString(),this._end()},_.prototype._setUploadTimeout=function(){const f=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{f._timeoutError("Upload timeout of ",f._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},_.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const f=this;this.xhr=h.getXHR();const u=this.xhr;let l=this._formData||this._data;this._setTimeouts(),u.addEventListener("readystatechange",()=>{const m=u.readyState;if(m>=2&&f._responseTimeoutTimer&&clearTimeout(f._responseTimeoutTimer),m!==4)return;let v;try{v=u.status}catch{v=0}if(!v)return f.timedout||f._aborted?void 0:f.crossDomainError();f.emit("end")});const y=(m,v)=>{v.total>0&&(v.percent=v.loaded/v.total*100,v.percent===100&&clearTimeout(f._uploadTimeoutTimer)),v.direction=m,f.emit("progress",v)};if(this.hasListeners("progress"))try{u.addEventListener("progress",y.bind(null,"download")),u.upload&&u.upload.addEventListener("progress",y.bind(null,"upload"))}catch{}u.upload&&this._setUploadTimeout();try{this.username&&this.password?u.open(this.method,this.url,!0,this.username,this.password):u.open(this.method,this.url,!0)}catch(m){return this.callback(m)}if(this._withCredentials&&(u.withCredentials=!0),!this._formData&&this.method!=="GET"&&this.method!=="HEAD"&&typeof l!="string"&&!this._isHost(l)){const m=this._header["content-type"];let v=this._serializer||h.serialize[m?m.split(";")[0]:""];!v&&D(m)&&(v=h.serialize["application/json"]),v&&(l=v(l))}for(const m in this.header)this.header[m]!==null&&S(this.header,m)&&u.setRequestHeader(m,this.header[m]);this._responseType&&(u.responseType=this._responseType),this.emit("request",this),u.send(typeof l>"u"?null:l)},h.agent=()=>new A;for(var U=0,q=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];U<q.length;U++){const f=q[U];A.prototype[f.toLowerCase()]=function(u,l){const y=new h.Request(f,u);return this._setDefaults(y),l&&y.end(l),y}}A.prototype.del=A.prototype.delete,h.get=(f,u,l)=>{const y=h("GET",f);return typeof u=="function"&&(l=u,u=null),u&&y.query(u),l&&y.end(l),y},h.head=(f,u,l)=>{const y=h("HEAD",f);return typeof u=="function"&&(l=u,u=null),u&&y.query(u),l&&y.end(l),y},h.options=(f,u,l)=>{const y=h("OPTIONS",f);return typeof u=="function"&&(l=u,u=null),u&&y.send(u),l&&y.end(l),y};function k(f,u,l){const y=h("DELETE",f);return typeof u=="function"&&(l=u,u=null),u&&y.send(u),l&&y.end(l),y}h.del=k,h.delete=k,h.patch=(f,u,l)=>{const y=h("PATCH",f);return typeof u=="function"&&(l=u,u=null),u&&y.send(u),l&&y.end(l),y},h.post=(f,u,l)=>{const y=h("POST",f);return typeof u=="function"&&(l=u,u=null),u&&y.send(u),l&&y.end(l),y},h.put=(f,u,l)=>{const y=h("PUT",f);return typeof u=="function"&&(l=u,u=null),u&&y.send(u),l&&y.end(l),y}})(Jt,Se);const Zn=Se;export{Zn as s};