1 |
- System.register(["./index-legacy-401db5e3.js"],(function(e,t){"use strict";var r,n,o;return{setters:[e=>{r=e.t,n=e.G,o=e.y}],execute:function(){e("u",(function(){const e=r(),{name:n="unknown"}=(null==e?void 0:e.type)||{};return`${n}-${++t}`}));let t=0;var i,a="undefined"!=typeof Symbol&&Symbol,c={foo:{}},u=Object,s=Object.prototype.toString,l=Math.max,f=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},p=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==s.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e,t){for(var r=[],n=1,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments),o=l(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(i)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,f(n,arguments));return Object(o)===o?o:this}return t.apply(e,f(n,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r},y=Function.prototype.call,d=Object.prototype.hasOwnProperty,h=p.call(y,d),b=SyntaxError,m=Function,g=TypeError,v=function(e){try{return m('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(e){w=null}var S=function(){throw new g},O=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,j="function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),A={__proto__:c}.foo===c.foo&&!({__proto__:null}instanceof u),P=Object.getPrototypeOf||(A?function(e){return e.__proto__}:null),E={},x="undefined"!=typeof Uint8Array&&P?P(Uint8Array):i,T={"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":j&&P?P([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&P?P(P([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&P?P((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&P?P((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&P?P(""[Symbol.iterator]()):i,"%Symbol%":j?Symbol:i,"%SyntaxError%":b,"%ThrowTypeError%":O,"%TypedArray%":x,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(P)try{null.error}catch(e){var R=P(P(e));T["%Error.prototype%"]=R}var _=function pn(e){var t;if("%AsyncFunction%"===e)t=v("async function () {}");else if("%GeneratorFunction%"===e)t=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=v("async function* () {}");else if("%AsyncGenerator%"===e){var r=pn("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=pn("%AsyncGenerator%");n&&P&&(t=P(n.prototype))}return T[e]=t,t},I={"%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"]},k=p,B=h,F=k.call(Function.call,Array.prototype.concat),M=k.call(Function.apply,Array.prototype.splice),C=k.call(Function.call,String.prototype.replace),U=k.call(Function.call,String.prototype.slice),N=k.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,L=function(e,t){var r,n=e;if(B(I,n)&&(n="%"+(r=I[n])[0]+"%"),B(T,n)){var o=T[n];if(o===E&&(o=_(n)),void 0===o&&!t)throw new g("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new b("intrinsic "+e+" does not exist!")},W=function(e,t){if("string"!=typeof e||0===e.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new g('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new b("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new b("invalid intrinsic syntax, expected opening `%`");var n=[];return C(e,D,(function(e,t,r,o){n[n.length]=r?C(o,q,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=L("%"+n+"%",t),i=o.name,a=o.value,c=!1,u=o.alias;u&&(n=u[0],M(r,F([0,1],u)));for(var s=1,l=!0;s<r.length;s+=1){var f=r[s],p=U(f,0,1),y=U(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new b("property names with quotes must have matching quotes");if("constructor"!==f&&l||(c=!0),B(T,i="%"+(n+="."+f)+"%"))a=T[i];else if(null!=a){if(!(f in a)){if(!t)throw new g("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&s+1>=r.length){var d=w(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=B(a,f),a=a[f];l&&!c&&(T[i]=a)}}return a},H={exports:{}},G=W("%Object.defineProperty%",!0),$=function(){if(G)try{return G({},"a",{value:1}),!0}catch(e){return!1}return!1};$.hasArrayLengthDefineBug=function(){if(!$())return null;try{return 1!==G([],"length",{value:1}).length}catch(e){return!0}};var z=$,J=W("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(e){J=null}var V=J,Q=z(),X=W,K=Q&&X("%Object.defineProperty%",!0);if(K)try{K({},"a",{value:1})}catch(e){K=!1}var Z=X("%SyntaxError%"),Y=X("%TypeError%"),ee=V,te=W,re=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new Y("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new Y("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Y("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Y("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Y("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Y("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],c=!!ee&&ee(e,t);if(K)K(e,t,{configurable:null===i&&c?c.configurable:!i,enumerable:null===n&&c?c.enumerable:!n,value:r,writable:null===o&&c?c.writable:!o});else{if(!a&&(n||o||i))throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},ne=z(),oe=V,ie=te("%TypeError%"),ae=te("%Math.floor%"),ce=function(e,t){if("function"!=typeof e)throw new ie("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||ae(t)!==t)throw new ie("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&oe){var i=oe(e,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(ne?re(e,"length",t,!0,!0):re(e,"length",t)),e};!function(e){var t=p,r=W,n=ce,o=r("%TypeError%"),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||t.call(a,i),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=c(t,a,arguments);return n(r,1+s(0,e.length-(arguments.length-1)),!0)};var l=function(){return c(t,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}(H);var ue=W,se=H.exports,le=se(ue("String.prototype.indexOf"));const fe=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"})),pe=n(fe);var ye="function"==typeof Map&&Map.prototype,de=Object.getOwnPropertyDescriptor&&ye?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,he=ye&&de&&"function"==typeof de.get?de.get:null,be=ye&&Map.prototype.forEach,me="function"==typeof Set&&Set.prototype,ge=Object.getOwnPropertyDescriptor&&me?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ve=me&&ge&&"function"==typeof ge.get?ge.get:null,we=me&&Set.prototype.forEach,Se="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Oe="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,je="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ae=Boolean.prototype.valueOf,Pe=Object.prototype.toString,Ee=Function.prototype.toString,xe=String.prototype.match,Te=String.prototype.slice,Re=String.prototype.replace,_e=String.prototype.toUpperCase,Ie=String.prototype.toLowerCase,ke=RegExp.prototype.test,Be=Array.prototype.concat,Fe=Array.prototype.join,Me=Array.prototype.slice,Ce=Math.floor,Ue="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ne=Object.getOwnPropertySymbols,De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,qe="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Le="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,We=Object.prototype.propertyIsEnumerable,He=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ge(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ke.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Ce(-e):Ce(e);if(n!==e){var o=String(n),i=Te.call(t,o.length+1);return Re.call(o,r,"$&_")+"."+Re.call(Re.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Re.call(t,r,"$&_")}var $e=pe,ze=$e.custom,Je=Ze(ze)?ze:null;function Ve(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Qe(e){return Re.call(String(e),/"/g,""")}function Xe(e){return!("[object Array]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}function Ke(e){return!("[object RegExp]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}function Ze(e){if(qe)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!De)return!1;try{return De.call(e),!0}catch(e){}return!1}var Ye=Object.prototype.hasOwnProperty||function(e){return e in this};function et(e,t){return Ye.call(e,t)}function tt(e){return Pe.call(e)}function rt(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function nt(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nt(Te.call(e,0,t.maxStringLength),t)+n}return Ve(Re.call(Re.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ot),"single",t)}function ot(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_e.call(t.toString(16))}function it(e){return"Object("+e+")"}function at(e){return e+" { ? }"}function ct(e,t,r,n){return e+" ("+t+") {"+(n?ut(r,n):Fe.call(r,", "))+"}"}function ut(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Fe.call(e,","+r)+"\n"+t.prev}function st(e,t){var r=Xe(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=et(e,o)?t(e[o],e):""}var i,a="function"==typeof Ne?Ne(e):[];if(qe){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var u in e)et(e,u)&&(r&&String(Number(u))===u&&u<e.length||qe&&i["$"+u]instanceof Symbol||(ke.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof Ne)for(var s=0;s<a.length;s++)We.call(e,a[s])&&n.push("["+t(a[s])+"]: "+t(e[a[s]],e));return n}var lt=W,ft=function(e,t){var r=ue(e,!!t);return"function"==typeof r&&le(e,".prototype.")>-1?se(r):r},pt=function yn(e,t,r,n){var i=t||{};if(et(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!et(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(i,"indent")&&null!==i.indent&&"\t"!==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(et(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return nt(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return c?Ge(e,u):u}if("bigint"==typeof e){var s=String(e)+"n";return c?Ge(e,s):s}var l=void 0===i.depth?5:i.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof e)return Xe(e)?"[Array]":"[Object]";var f=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Fe.call(Array(e.indent+1)," ")}return{base:r,prev:Fe.call(Array(t+1),r)}}(i,r);if(void 0===n)n=[];else if(rt(n,e)>=0)return"[Circular]";function p(e,t,o){if(t&&(n=Me.call(n)).push(t),o){var a={depth:i.depth};return et(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),yn(e,a,r+1,n)}return yn(e,i,r+1,n)}if("function"==typeof e&&!Ke(e)){var y=function(e){if(e.name)return e.name;var t=xe.call(Ee.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(e),d=st(e,p);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+Fe.call(d,", ")+" }":"")}if(Ze(e)){var h=qe?Re.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):De.call(e);return"object"!=typeof e||qe?h:it(h)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(e)){for(var b="<"+Ie.call(String(e.nodeName)),m=e.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+Ve(Qe(m[g].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+"</"+Ie.call(String(e.nodeName))+">"}if(Xe(e)){if(0===e.length)return"[]";var v=st(e,p);return f&&!function(e){for(var t=0;t<e.length;t++)if(rt(e[t],"\n")>=0)return!1;return!0}(v)?"["+ut(v,f)+"]":"[ "+Fe.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e)){var w=st(e,p);return"cause"in Error.prototype||!("cause"in e)||We.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Fe.call(w,", ")+" }":"{ ["+String(e)+"] "+Fe.call(Be.call("[cause]: "+p(e.cause),w),", ")+" }"}if("object"==typeof e&&a){if(Je&&"function"==typeof e[Je]&&$e)return $e(e,{depth:l-r});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(e){if(!he||!e||"object"!=typeof e)return!1;try{he.call(e);try{ve.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(e)){var S=[];return be&&be.call(e,(function(t,r){S.push(p(r,e,!0)+" => "+p(t,e))})),ct("Map",he.call(e),S,f)}if(function(e){if(!ve||!e||"object"!=typeof e)return!1;try{ve.call(e);try{he.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(e)){var O=[];return we&&we.call(e,(function(t){O.push(p(t,e))})),ct("Set",ve.call(e),O,f)}if(function(e){if(!Se||!e||"object"!=typeof e)return!1;try{Se.call(e,Se);try{Oe.call(e,Oe)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(e))return at("WeakMap");if(function(e){if(!Oe||!e||"object"!=typeof e)return!1;try{Oe.call(e,Oe);try{Se.call(e,Se)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(e))return at("WeakSet");if(function(e){if(!je||!e||"object"!=typeof e)return!1;try{return je.call(e),!0}catch(e){}return!1}(e))return at("WeakRef");if(function(e){return!("[object Number]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(p(Number(e)));if(function(e){if(!e||"object"!=typeof e||!Ue)return!1;try{return Ue.call(e),!0}catch(e){}return!1}(e))return it(p(Ue.call(e)));if(function(e){return!("[object Boolean]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(Ae.call(e));if(function(e){return!("[object String]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(p(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===o)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e)&&!Ke(e)){var j=st(e,p),A=He?He(e)===Object.prototype:e instanceof Object||e.constructor===Object,P=e instanceof Object?"":"null prototype",E=!A&&Le&&Object(e)===e&&Le in e?Te.call(tt(e),8,-1):P?"Object":"",x=(A||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(E||P?"["+Fe.call(Be.call([],E||[],P||[]),": ")+"] ":"");return 0===j.length?x+"{}":f?x+"{"+ut(j,f)+"}":x+"{ "+Fe.call(j,", ")+" }"}return String(e)},yt=lt("%TypeError%"),dt=lt("%WeakMap%",!0),ht=lt("%Map%",!0),bt=ft("WeakMap.prototype.get",!0),mt=ft("WeakMap.prototype.set",!0),gt=ft("WeakMap.prototype.has",!0),vt=ft("Map.prototype.get",!0),wt=ft("Map.prototype.set",!0),St=ft("Map.prototype.has",!0),Ot=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},jt=String.prototype.replace,At=/%20/g,Pt="RFC3986",Et={"default":Pt,formatters:{RFC1738:function(e){return jt.call(e,At,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Pt},xt=Et,Tt=Object.prototype.hasOwnProperty,Rt=Array.isArray,_t=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),It=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},kt={arrayToObject:It,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],s=i[u];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:u}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Rt(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",c=0;c<i.length;++c){var u=i.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===xt.RFC1738&&(40===u||41===u)?a+=i.charAt(c):u<128?a+=_t[u]:u<2048?a+=_t[192|u>>6]+_t[128|63&u]:u<55296||u>=57344?a+=_t[224|u>>12]+_t[128|u>>6&63]+_t[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(c)),a+=_t[240|u>>18]+_t[128|u>>12&63]+_t[128|u>>6&63]+_t[128|63&u])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Rt(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function dn(e,t,r){if(!t)return e;if("object"!=typeof t){if(Rt(e))e.push(t);else{if(!e||"object"!=typeof e)return[e,t];(r&&(r.plainObjects||r.allowPrototypes)||!Tt.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(t);var n=e;return Rt(e)&&!Rt(t)&&(n=It(e,r)),Rt(e)&&Rt(t)?(t.forEach((function(t,n){if(Tt.call(e,n)){var o=e[n];o&&"object"==typeof o&&t&&"object"==typeof t?e[n]=dn(o,t,r):e.push(t)}else e[n]=t})),e):Object.keys(t).reduce((function(e,n){var o=t[n];return Tt.call(e,n)?e[n]=dn(e[n],o,r):e[n]=o,e}),n)}},Bt=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new yt("Side channel does not contain "+pt(e))},get:function(n){if(dt&&n&&("object"==typeof n||"function"==typeof n)){if(e)return bt(e,n)}else if(ht){if(t)return vt(t,n)}else if(r)return function(e,t){var r=Ot(e,t);return r&&r.value}(r,n)},has:function(n){if(dt&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gt(e,n)}else if(ht){if(t)return St(t,n)}else if(r)return function(e,t){return!!Ot(e,t)}(r,n);return!1},set:function(n,o){dt&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dt),mt(e,n,o)):ht?(t||(t=new ht),wt(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=Ot(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},Ft=kt,Mt=Et,Ct=Object.prototype.hasOwnProperty,Ut={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Nt=Array.isArray,Dt=Array.prototype.push,qt=function(e,t){Dt.apply(e,Nt(t)?t:[t])},Lt=Date.prototype.toISOString,Wt=Mt["default"],Ht={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ft.encode,encodeValuesOnly:!1,format:Wt,formatter:Mt.formatters[Wt],indices:!1,serializeDate:function(e){return Lt.call(e)},skipNulls:!1,strictNullHandling:!1},Gt={},$t=function hn(e,t,r,n,o,i,a,c,u,s,l,f,p,y,d,h){for(var b,m=e,g=h,v=0,w=!1;void 0!==(g=g.get(Gt))&&!w;){var S=g.get(e);if(v+=1,void 0!==S){if(S===v)throw new RangeError("Cyclic object value");w=!0}void 0===g.get(Gt)&&(v=0)}if("function"==typeof c?m=c(t,m):m instanceof Date?m=l(m):"comma"===r&&Nt(m)&&(m=Ft.maybeMap(m,(function(e){return e instanceof Date?l(e):e}))),null===m){if(o)return a&&!y?a(t,Ht.encoder,d,"key",f):t;m=""}if("string"==typeof(b=m)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Ft.isBuffer(m))return a?[p(y?t:a(t,Ht.encoder,d,"key",f))+"="+p(a(m,Ht.encoder,d,"value",f))]:[p(t)+"="+p(String(m))];var O,j=[];if(void 0===m)return j;if("comma"===r&&Nt(m))y&&a&&(m=Ft.maybeMap(m,a)),O=[{value:m.length>0?m.join(",")||null:void 0}];else if(Nt(c))O=c;else{var A=Object.keys(m);O=u?A.sort(u):A}for(var P=n&&Nt(m)&&1===m.length?t+"[]":t,E=0;E<O.length;++E){var x=O[E],T="object"==typeof x&&void 0!==x.value?x.value:m[x];if(!i||null!==T){var R=Nt(m)?"function"==typeof r?r(P,x):P:P+(s?"."+x:"["+x+"]");h.set(e,v);var _=Bt();_.set(Gt,h),qt(j,hn(T,R,r,n,o,i,"comma"===r&&y&&Nt(m)?null:a,c,u,s,l,f,p,y,d,_))}}return j},zt=kt,Jt=Object.prototype.hasOwnProperty,Vt=Array.isArray,Qt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:zt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Xt=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Kt=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Zt=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,u=[];if(c){if(!r.plainObjects&&Jt.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s<r.depth;){if(s+=1,!r.plainObjects&&Jt.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:Kt(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(u,10);r.parseArrays||""!==u?!isNaN(s)&&c!==u&&String(s)===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,r,n)}},Yt={formats:Et,parse:function(e,t){var r=function(e){if(!e)return Qt;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Qt.charset:e.charset;return{allowDots:void 0===e.allowDots?Qt.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Qt.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Qt.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Qt.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qt.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Qt.comma,decoder:"function"==typeof e.decoder?e.decoder:Qt.decoder,delimiter:"string"==typeof e.delimiter||zt.isRegExp(e.delimiter)?e.delimiter:Qt.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Qt.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Qt.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Qt.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Qt.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qt.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),c=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?u="utf-8":"utf8=%26%2310003%3B"===a[r]&&(u="iso-8859-1"),c=r,r=a.length);for(r=0;r<a.length;++r)if(r!==c){var s,l,f=a[r],p=f.indexOf("]="),y=-1===p?f.indexOf("="):p+1;-1===y?(s=t.decoder(f,Qt.decoder,u,"key"),l=t.strictNullHandling?null:""):(s=t.decoder(f.slice(0,y),Qt.decoder,u,"key"),l=zt.maybeMap(Kt(f.slice(y+1),t),(function(e){return t.decoder(e,Qt.decoder,u,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Xt(l)),f.indexOf("[]=")>-1&&(l=Vt(l)?[l]:l),Jt.call(n,s)?n[s]=zt.combine(n[s],l):n[s]=l}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var c=i[a],u=Zt(c,n[c],r,"string"==typeof e);o=zt.merge(o,u,r)}return!0===r.allowSparse?o:zt.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return Ht;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ht.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Mt["default"];if(void 0!==e.format){if(!Ct.call(Mt.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Mt.formatters[r],o=Ht.filter;return("function"==typeof e.filter||Nt(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ht.addQueryPrefix,allowDots:void 0===e.allowDots?Ht.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ht.charsetSentinel,delimiter:void 0===e.delimiter?Ht.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ht.encode,encoder:"function"==typeof e.encoder?e.encoder:Ht.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ht.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ht.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ht.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ht.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Nt(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Ut?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=Ut[i];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="comma"===c&&t&&t.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var s=Bt(),l=0;l<r.length;++l){var f=r[l];o.skipNulls&&null===n[f]||qt(a,$t(n[f],f,c,u,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,s))}var p=a.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),p.length>0?y+p:""}},er="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},tr="URLSearchParams"in er,rr="Symbol"in er&&"iterator"in Symbol,nr="FileReader"in er&&"Blob"in er&&function(){try{return new Blob,!0}catch(e){return!1}}(),or="FormData"in er,ir="ArrayBuffer"in er;if(ir)var ar=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],cr=ArrayBuffer.isView||function(e){return e&&ar.indexOf(Object.prototype.toString.call(e))>-1};function ur(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function sr(e){return"string"!=typeof e&&(e=String(e)),e}function lr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return rr&&(t[Symbol.iterator]=function(){return t}),t}function fr(e){this.map={},e instanceof fr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function pr(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function yr(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function dr(e){var t=new FileReader,r=yr(t);return t.readAsArrayBuffer(e),r}function hr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function br(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:nr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:or&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:tr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ir&&nr&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=hr(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ir&&(ArrayBuffer.prototype.isPrototypeOf(e)||cr(e))?this._bodyArrayBuffer=hr(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):tr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},nr&&(this.blob=function(){var e=pr(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return pr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(nr)return this.blob().then(dr);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=pr(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=yr(t=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},or&&(this.formData=function(){return this.text().then(vr)}),this.json=function(){return this.text().then(JSON.parse)},this}fr.prototype.append=function(e,t){e=ur(e),t=sr(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},fr.prototype["delete"]=function(e){delete this.map[ur(e)]},fr.prototype.get=function(e){return e=ur(e),this.has(e)?this.map[e]:null},fr.prototype.has=function(e){return this.map.hasOwnProperty(ur(e))},fr.prototype.set=function(e,t){this.map[ur(e)]=sr(t)},fr.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},fr.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),lr(e)},fr.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),lr(e)},fr.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),lr(e)},rr&&(fr.prototype[Symbol.iterator]=fr.prototype.entries);var mr=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function gr(e,t){if(!(this instanceof gr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof gr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new fr(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new fr(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),mr.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in er)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function vr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function wr(e,t){if(!(this instanceof wr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new fr(t.headers),this.url=t.url||"",this._initBody(e)}gr.prototype.clone=function(){return new gr(this,{body:this._bodyInit})},br.call(gr.prototype),br.call(wr.prototype),wr.prototype.clone=function(){return new wr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new fr(this.headers),url:this.url})},wr.error=function(){var e=new wr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Sr=[301,302,303,307,308];wr.redirect=function(e,t){if(-1===Sr.indexOf(t))throw new RangeError("Invalid status code");return new wr(null,{status:t,headers:{location:e}})};var Or=er.DOMException;try{new Or}catch(e){(Or=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function jr(e,t){return new Promise((function(r,n){var o=new gr(e,t);if(o.signal&&o.signal.aborted)return n(new Or("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new fr,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){}}})),t)};o.url.startsWith("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new wr(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new Or("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&er.location.href?er.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(nr?i.responseType="blob":ir&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof fr||er.Headers&&t.headers instanceof er.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){c.push(ur(e)),i.setRequestHeader(e,sr(t.headers[e]))})),o.headers.forEach((function(e,t){-1===c.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}function Ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(e)}function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rr(e,t,r){return t&&Tr(e.prototype,t),r&&Tr(e,r),e}function _r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ir(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function Br(e,t){return Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Br(e,t)}function Fr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Mr(e,t,r){return Mr=Fr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Br(o,r.prototype),o},Mr.apply(null,arguments)}function Cr(e){var t="function"==typeof Map?new Map:void 0;return Cr=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Mr(e,arguments,kr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Br(n,e)},Cr(e)}function Ur(e){var t=Fr();return function(){var r,n=kr(e);if(t){var o=kr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Nr(e){return function(e){if(Array.isArray(e))return Dr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Dr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}jr.polyfill=!0,er.fetch||(er.fetch=jr,er.Headers=fr,er.Request=gr,er.Response=wr),self.fetch.bind(self);var qr=function(){function e(t){if(xr(this,e),!Array.isArray(t))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=Nr(t),this.middlewares=[]}return Rr(e,[{key:"use",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},n=!1,o=!1,i=!1;"number"==typeof r?(process&&process.env,n=!0,o=!1):"object"===Er(r)&&r&&(o=r.global||!1,n=r.core||!1,i=r.defaultInstance||!1),o?e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,t):n?e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,t):i?this.defaultMiddlewares.push(t):this.middlewares.push(t)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=function(e){if(!Array.isArray(e))throw new TypeError("Middlewares must be an array!");for(var t=e.length,r=0;r<t;r++)if("function"!=typeof e[r])throw new TypeError("Middleware must be componsed of function");return function(t,r){var n=-1;return function o(i){if(i<=n)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));n=i;var a=e[i]||r;if(!a)return Promise.resolve();try{return Promise.resolve(a(t,(function(){return o(i+1)})))}catch(e){return Promise.reject(e)}}(0)}}([].concat(Nr(this.middlewares),Nr(this.defaultMiddlewares),Nr(e.globalMiddlewares),Nr(e.coreMiddlewares)));return r(t)}}]),e}();qr.globalMiddlewares=[],qr.defaultGlobalMiddlewaresLength=0,qr.coreMiddlewares=[],qr.defaultCoreMiddlewaresLength=0;var Lr=function(){function e(t){xr(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return Rr(e,[{key:"extendOptions",value:function(e){this.maxCache=e.maxCache||0}},{key:"get",value:function(e){return this.cache.get(JSON.stringify(e))}},{key:"set",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var o=Nr(this.cache.keys())[0];this.cache["delete"](o),this.timer[o]&&clearTimeout(this.timer[o])}var i=JSON.stringify(e);this.cache.set(i,t),n>0&&(this.timer[i]=setTimeout((function(){r.cache["delete"](i),delete r.timer[i]}),n))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache["delete"](t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),Wr=function(e){Ir(r,e);var t=Ur(r);function r(e,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return xr(this,r),(o=t.call(this,e)).name="RequestError",o.request=n,o.type=i,o}return r}(Cr(Error)),Hr=function(e){Ir(r,e);var t=Ur(r);function r(e,n,o,i){var a,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return xr(this,r),(a=t.call(this,n||e.statusText)).name="ResponseError",a.data=o,a.response=e,a.request=i,a.type=c,a}return r}(Cr(Error));function Gr(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=r,n.readAsText(e,"GBK")}))}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{return JSON.parse(e)}catch(o){if(t)throw new Hr(r,"JSON.parse fail",e,n,"ParseError")}return e}function zr(e,t,r){return new Promise((function(n,o){setTimeout((function(){o(new Wr(t||"timeout of ".concat(e,"ms exceeded"),r,"Timeout"))}),e)}))}function Jr(e){return new Promise((function(t,r){e.cancelToken&&e.cancelToken.promise.then((function(e){r(e)}))}))}var Vr=Object.prototype.toString;function Qr(){var e;return"undefined"!=typeof process&&"[object process]"===Vr.call(process)&&(e="NODE"),"undefined"!=typeof XMLHttpRequest&&(e="BROWSER"),e}function Xr(e){return"object"===Er(e)&&"[object Array]"===Object.prototype.toString.call(e)}function Kr(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function Zr(e){return null!==e&&"object"===Er(e)}function Yr(e,t){if(e)if("object"!==Er(e)&&(e=[e]),Xr(e))for(var r=0;r<e.length;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function en(e){return Kr(e)?Yt.parse(e.toString(),{strictNullHandling:!0}):"string"==typeof e?[e]:e}function tn(e){return Yt.stringify(e,{arrayFormat:"repeat",strictNullHandling:!0})}function rn(e,t){return Pr(Pr(Pr({},e),t),{},{headers:Pr(Pr({},e.headers),t.headers),params:Pr(Pr({},en(e.params)),en(t.params)),method:(t.method||e.method||"get").toLowerCase()})}function nn(e,t){var r=t.method;return"get"===(void 0===r?"get":r).toLowerCase()}var on=[function(e,t){if(!e)return t();var r=e.req,n=(r=void 0===r?{}:r).options,o=void 0===n?{}:n,i=o.method;if(-1===["post","put","patch","delete"].indexOf((void 0===i?"get":i).toLowerCase()))return t();var a=o.requestType,c=void 0===a?"json":a,u=o.data;if(u){var s=Object.prototype.toString.call(u);"[object Object]"===s||"[object Array]"===s?"json"===c?(o.headers=Pr({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},o.headers),o.body=JSON.stringify(u)):"form"===c&&(o.headers=Pr({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},o.headers),o.body=tn(u)):(o.headers=Pr({Accept:"application/json"},o.headers),o.body=u)}return e.req.options=o,t()},function(e,t){if(!e)return t();var r=e.req,n=(r=void 0===r?{}:r).options,o=void 0===n?{}:n,i=o.paramsSerializer,a=o.params,c=e.req,u=(c=void 0===c?{}:c).url,s=void 0===u?"":u;o.method=o.method?o.method.toUpperCase():"GET",o.credentials=o.credentials||"same-origin";var l=function(e,t){var r,n;return e&&(t?r=t(e):Kr(e)?r=e.toString():Xr(e)?(n=[],Yr(e,(function(e){null==e?n.push(e):n.push(Zr(e)?JSON.stringify(e):e)})),r=tn(n)):(n={},Yr(e,(function(e,t){var r,o=e;null==e?n[t]=e:"object"===Er(r=e)&&"[object Date]"===Object.prototype.toString.call(r)?o=e.toISOString():Xr(e)?o=e:Zr(e)&&(o=JSON.stringify(e)),n[t]=o})),r=tn(n))),r}(a,i);if(e.req.originUrl=s,l){var f=-1!==s.indexOf("?")?"&":"?";e.req.url="".concat(s).concat(f).concat(l)}return e.req.options=o,t()},function(e,t){var r;return t().then((function(){if(e){var t=e.res,n=void 0===t?{}:t,o=e.req,i=void 0===o?{}:o,a=(i||{}).options,c=(a=void 0===a?{}:a).responseType,u=void 0===c?"json":c,s=a.charset,l=void 0===s?"utf8":s;a.getResponse;var f=a.throwErrIfParseFail,p=void 0!==f&&f,y=a.parseResponse;if((void 0===y||y)&&n&&n.clone){if((r="BROWSER"===Qr()?n.clone():n).useCache=n.useCache||!1,"gbk"===l)try{return n.blob().then(Gr).then((function(e){return $r(e,!1,r,i)}))}catch(e){throw new Hr(r,e.message,null,i,"ParseError")}else if("json"===u)return n.text().then((function(e){return $r(e,p,r,i)}));try{return n[u]()}catch(e){throw new Hr(r,"responseType not support",null,i,"ParseError")}}}})).then((function(t){if(e){e.res;var n=e.req,o=void 0===n?{}:n,i=(o||{}).options,a=(i=void 0===i?{}:i).getResponse,c=void 0!==a&&a;if(r){if(r.status>=200&&r.status<300)return c?void(e.res={data:t,response:r}):void(e.res=t);throw new Hr(r,"http error",t,o,"HttpError")}}}))["catch"]((function(t){if(t instanceof Wr||t instanceof Hr)throw t;var r=e.req,n=e.res;throw t.request=t.request||r,t.response=t.response||n,t.type=t.type||t.name,t.data=t.data||void 0,t}))}],an=[function(e,t){if(!e)return t();var r=e.req,n=(r=void 0===r?{}:r).options,o=void 0===n?{}:n,i=r.url,a=void 0===i?"":i,c=e.cache,u=e.responseInterceptors,s=o.timeout,l=void 0===s?0:s,f=o.timeoutMessage,p=o.__umiRequestCoreType__,y=void 0===p?"normal":p,d=o.useCache,h=void 0!==d&&d,b=o.method,m=void 0===b?"get":b,g=o.params,v=o.ttl,w=o.validateCache,S=void 0===w?nn:w;if("normal"!==y)return process&&process.env,t();var O=fetch;if(!O)throw new Error("Global fetch not exist!");var j,A="BROWSER"===Qr(),P=S(a,o)&&h&&A;if(P){var E=c.get({url:a,params:g,method:m});if(E)return(E=E.clone()).useCache=!0,e.res=E,t()}return j=l>0?Promise.race([Jr(o),O(a,o),zr(l,f,e.req)]):Promise.race([Jr(o),O(a,o)]),u.forEach((function(e){j=j.then((function(t){var r="function"==typeof t.clone?t.clone():t;return e(r,o)}))})),j.then((function(r){if(P&&200===r.status){var n=r.clone();n.useCache=!0,c.set({url:a,params:g,method:m},n,v)}return e.res=r,t()}))}];qr.globalMiddlewares=on,qr.defaultGlobalMiddlewaresLength=on.length,qr.coreMiddlewares=an,qr.defaultCoreMiddlewaresLength=an.length;var cn=function(){function e(t){xr(this,e),this.onion=new qr([]),this.fetchIndex=0,this.mapCache=new Lr(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return Rr(e,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=rn(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(t){return[].concat(Nr(e.requestInterceptors),Nr(this.instanceRequestInterceptors)).reduce((function(e,r){return e.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,r(t.req.url,t.req.options)}))}),Promise.resolve()).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve()}))}},{key:"request",value:function(t,r){var n=this,o=this.onion,i={req:{url:t,options:Pr(Pr({},r),{},{url:t})},res:null,cache:this.mapCache,responseInterceptors:[].concat(Nr(e.responseInterceptors),Nr(this.instanceResponseInterceptors))};if("string"!=typeof t)throw new Error("url MUST be a string");return new Promise((function(e,t){n.dealRequestInterceptors(i).then((function(){return o.execute(i)})).then((function(){e(i.res)}))["catch"]((function(r){var n=i.req.options.errorHandler;if(n)try{var o=n(r);e(o)}catch(e){t(e)}else t(r)}))}))}}],[{key:"requestUse",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");r.global?e.requestInterceptors.push(t):this.instanceRequestInterceptors.push(t)}},{key:"responseUse",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");r.global?e.responseInterceptors.push(t):this.instanceResponseInterceptors.push(t)}}]),e}();function un(e){this.message=e}function sn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new un(e),t(r.reason))}))}function ln(e){return!(!e||!e.__CANCEL__)}cn.requestInterceptors=[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.prefix,n=t.suffix;return r&&(e="".concat(r).concat(e)),n&&(e="".concat(e).concat(n)),{url:e,options:t}}],cn.responseInterceptors=[],un.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},un.prototype.__CANCEL__=!0,sn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},sn.source=function(){var e;return{token:new sn((function(t){e=t})),cancel:e}};var fn=function(){var e=new cn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rn(e.initOptions,r);return e.request(t,n)};return t.use=e.use.bind(e),t.fetchIndex=e.fetchIndex,t.interceptors={request:{use:cn.requestUse.bind(e)},response:{use:cn.responseUse.bind(e)}},["get","post","delete","put","patch","head","options","rpc"].forEach((function(e){t[e]=function(r,n){return t(r,Pr(Pr({},n),{},{method:e}))}})),t.Cancel=un,t.CancelToken=sn,t.isCancel=ln,t.extendOptions=e.extendOptions.bind(e),t.middlewares={instance:e.onion.middlewares,defaultInstance:e.onion.defaultMiddlewares,global:qr.globalMiddlewares,core:qr.coreMiddlewares},t};e("e",(function(e){return fn(e)})),fn({parseResponse:!1}),e("r",fn({}))}}}));
|