tdg-react-doc-viewer
Version:
File viewer for React.
6 lines • 50.9 kB
JavaScript
"use strict";const ie=require("./index-DzWLhXna.cjs");var tt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(var o 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 f=Object.getOwnPropertySymbols(e);if(f.length!==1||f[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==a||i.enumerable!==!0)return!1}return!0},nt=Object,Lt=Error,Wt=EvalError,Gt=RangeError,jt=ReferenceError,at=SyntaxError,pe=TypeError,kt=URIError,zt=Math.abs,Ht=Math.floor,Kt=Math.max,Vt=Math.min,Qt=Math.pow,Jt=Math.round,Zt=Number.isNaN||function(e){return e!==e},Yt=Zt,Xt=function(e){return Yt(e)||e===0?e:e<0?-1:1},en=Object.getOwnPropertyDescriptor,De=en;if(De)try{De([],"length")}catch{De=null}var Sr=De,Me=Object.defineProperty||!1;if(Me)try{Me({},"a",{value:1})}catch{Me=!1}var ot=Me,Ve,Ir;function rn(){if(Ir)return Ve;Ir=1;var r=typeof Symbol<"u"&&Symbol,e=tt;return Ve=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ve}var Qe,Fr;function it(){return Fr||(Fr=1,Qe=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Qe}var Je,Tr;function ft(){if(Tr)return Je;Tr=1;var r=nt;return Je=r.getPrototypeOf||null,Je}var tn="Function.prototype.bind called on incompatible ",nn=Object.prototype.toString,an=Math.max,on="[object Function]",_r=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},fn=function(e,t){for(var n=[],a=t,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n},ln=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},un=function(e){var t=this;if(typeof t!="function"||nn.apply(t)!==on)throw new TypeError(tn+t);for(var n=fn(arguments,1),a,o=function(){if(this instanceof a){var s=t.apply(this,_r(n,arguments));return Object(s)===s?s:this}return t.apply(e,_r(n,arguments))},f=an(0,t.length-n.length),i=[],l=0;l<f;l++)i[l]="$"+l;if(a=Function("binder","return function ("+ln(i,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var c=function(){};c.prototype=t.prototype,a.prototype=new c,c.prototype=null}return a},sn=un,xe=Function.prototype.bind||sn,wr=Function.prototype.call,Ze,Cr;function Ar(){return Cr||(Cr=1,Ze=Function.prototype.apply),Ze}var cn=typeof Reflect<"u"&&Reflect&&Reflect.apply,pn=xe,yn=Ar(),hn=wr,dn=cn,lt=dn||pn.call(hn,yn),vn=xe,mn=pe,gn=wr,bn=lt,Or=function(e){if(e.length<1||typeof e[0]!="function")throw new mn("a function is required");return bn(vn,gn,e)},Ye,Dr;function Sn(){if(Dr)return Ye;Dr=1;var r=Or,e=Sr,t;try{t=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var n=!!t&&e&&e(Object.prototype,"__proto__"),a=Object,o=a.getPrototypeOf;return Ye=n&&typeof n.get=="function"?r([n.get]):typeof o=="function"?function(i){return o(i==null?i:a(i))}:!1,Ye}var Xe,Mr;function ut(){if(Mr)return Xe;Mr=1;var r=it(),e=ft(),t=Sn();return Xe=r?function(a){return r(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:t?function(a){return t(a)}:null,Xe}var er,Nr;function st(){if(Nr)return er;Nr=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=xe;return er=t.call(r,e),er}var b,wn=nt,An=Lt,On=Wt,Pn=Gt,En=jt,ge=at,ve=pe,xn=kt,$n=zt,Rn=Ht,In=Kt,Fn=Vt,Tn=Qt,_n=Jt,Cn=Xt,ct=Function,rr=function(r){try{return ct('"use strict"; return ('+r+").constructor;")()}catch{}},Ee=Sr,Dn=ot,tr=function(){throw new ve},Mn=Ee?function(){try{return arguments.callee,tr}catch{try{return Ee(arguments,"callee").get}catch{return tr}}}():tr,ye=rn()(),D=ut(),Nn=ft(),Un=it(),pt=Ar(),$e=wr,de={},qn=typeof Uint8Array>"u"||!D?b:D(Uint8Array),ce={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":ye&&D?D([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":de,"%AsyncGenerator%":de,"%AsyncGeneratorFunction%":de,"%AsyncIteratorPrototype%":de,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":An,"%eval%":eval,"%EvalError%":On,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":ct,"%GeneratorFunction%":de,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ye&&D?D(D([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ye||!D?b:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wn,"%Object.getOwnPropertyDescriptor%":Ee,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":Pn,"%ReferenceError%":En,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ye||!D?b:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ye&&D?D(""[Symbol.iterator]()):b,"%Symbol%":ye?Symbol:b,"%SyntaxError%":ge,"%ThrowTypeError%":Mn,"%TypedArray%":qn,"%TypeError%":ve,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":xn,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet,"%Function.prototype.call%":$e,"%Function.prototype.apply%":pt,"%Object.defineProperty%":Dn,"%Object.getPrototypeOf%":Nn,"%Math.abs%":$n,"%Math.floor%":Rn,"%Math.max%":In,"%Math.min%":Fn,"%Math.pow%":Tn,"%Math.round%":_n,"%Math.sign%":Cn,"%Reflect.getPrototypeOf%":Un};if(D)try{null.error}catch(r){var Bn=D(D(r));ce["%Error.prototype%"]=Bn}var Ln=function r(e){var t;if(e==="%AsyncFunction%")t=rr("async function () {}");else if(e==="%GeneratorFunction%")t=rr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=rr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&D&&(t=D(a.prototype))}return ce[e]=t,t},Ur={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Re=xe,Ue=st(),Wn=Re.call($e,Array.prototype.concat),Gn=Re.call(pt,Array.prototype.splice),qr=Re.call($e,String.prototype.replace),qe=Re.call($e,String.prototype.slice),jn=Re.call($e,RegExp.prototype.exec),kn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zn=/\\(\\)?/g,Hn=function(e){var t=qe(e,0,1),n=qe(e,-1);if(t==="%"&&n!=="%")throw new ge("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new ge("invalid intrinsic syntax, expected opening `%`");var a=[];return qr(e,kn,function(o,f,i,l){a[a.length]=i?qr(l,zn,"$1"):f||o}),a},Kn=function(e,t){var n=e,a;if(Ue(Ur,n)&&(a=Ur[n],n="%"+a[0]+"%"),Ue(ce,n)){var o=ce[n];if(o===de&&(o=Ln(n)),typeof o>"u"&&!t)throw new ve("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new ge("intrinsic "+e+" does not exist!")},Ge=function(e,t){if(typeof e!="string"||e.length===0)throw new ve("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ve('"allowMissing" argument must be a boolean');if(jn(/^%?[^%]*%?$/,e)===null)throw new ge("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Hn(e),a=n.length>0?n[0]:"",o=Kn("%"+a+"%",t),f=o.name,i=o.value,l=!1,c=o.alias;c&&(a=c[0],Gn(n,Wn([0,1],c)));for(var s=1,v=!0;s<n.length;s+=1){var u=n[s],d=qe(u,0,1),g=qe(u,-1);if((d==='"'||d==="'"||d==="`"||g==='"'||g==="'"||g==="`")&&d!==g)throw new ge("property names with quotes must have matching quotes");if((u==="constructor"||!v)&&(l=!0),a+="."+u,f="%"+a+"%",Ue(ce,f))i=ce[f];else if(i!=null){if(!(u in i)){if(!t)throw new ve("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ee&&s+1>=n.length){var O=Ee(i,u);v=!!O,v&&"get"in O&&!("originalValue"in O.get)?i=O.get:i=i[u]}else v=Ue(i,u),i=i[u];v&&!l&&(ce[f]=i)}}return i},yt=Ge,ht=Or,Vn=ht([yt("%String.prototype.indexOf%")]),Pr=function(e,t){var n=yt(e,!!t);return typeof n=="function"&&Vn(e,".prototype.")>-1?ht([n]):n},Be={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Be.exports;(function(r,e){(function(t){var n=e&&!e.nodeType&&e,a=!r.nodeType&&r,o=typeof ie.commonjsGlobal=="object"&&ie.commonjsGlobal;(o.global===o||o.window===o||o.self===o)&&(t=o);var f,i=2147483647,l=36,c=1,s=26,v=38,u=700,d=72,g=128,O="-",w=/^xn--/,N=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=l-c,A=Math.floor,E=String.fromCharCode,B;function R(p){throw new RangeError(y[p])}function I(p,m){for(var S=p.length,x=[];S--;)x[S]=m(p[S]);return x}function C(p,m){var S=p.split("@"),x="";S.length>1&&(x=S[0]+"@",p=S[1]),p=p.replace(h,".");var F=p.split("."),G=I(F,m).join(".");return x+G}function K(p){for(var m=[],S=0,x=p.length,F,G;S<x;)F=p.charCodeAt(S++),F>=55296&&F<=56319&&S<x?(G=p.charCodeAt(S++),(G&64512)==56320?m.push(((F&1023)<<10)+(G&1023)+65536):(m.push(F),S--)):m.push(F);return m}function V(p){return I(p,function(m){var S="";return m>65535&&(m-=65536,S+=E(m>>>10&1023|55296),m=56320|m&1023),S+=E(m),S}).join("")}function T(p){return p-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l}function L(p,m){return p+22+75*(p<26)-((m!=0)<<5)}function W(p,m,S){var x=0;for(p=S?A(p/u):p>>1,p+=A(p/m);p>P*s>>1;x+=l)p=A(p/P);return A(x+(P+1)*p/(p+v))}function j(p){var m=[],S=p.length,x,F=0,G=g,M=d,k,Q,Z,re,U,z,J,ae,ue;for(k=p.lastIndexOf(O),k<0&&(k=0),Q=0;Q<k;++Q)p.charCodeAt(Q)>=128&&R("not-basic"),m.push(p.charCodeAt(Q));for(Z=k>0?k+1:0;Z<S;){for(re=F,U=1,z=l;Z>=S&&R("invalid-input"),J=T(p.charCodeAt(Z++)),(J>=l||J>A((i-F)/U))&&R("overflow"),F+=J*U,ae=z<=M?c:z>=M+s?s:z-M,!(J<ae);z+=l)ue=l-ae,U>A(i/ue)&&R("overflow"),U*=ue;x=m.length+1,M=W(F-re,x,re==0),A(F/x)>i-G&&R("overflow"),G+=A(F/x),F%=x,m.splice(F++,0,G)}return V(m)}function ne(p){var m,S,x,F,G,M,k,Q,Z,re,U,z=[],J,ae,ue,Ke;for(p=K(p),J=p.length,m=g,S=0,G=d,M=0;M<J;++M)U=p[M],U<128&&z.push(E(U));for(x=F=z.length,F&&z.push(O);x<J;){for(k=i,M=0;M<J;++M)U=p[M],U>=m&&U<k&&(k=U);for(ae=x+1,k-m>A((i-S)/ae)&&R("overflow"),S+=(k-m)*ae,m=k,M=0;M<J;++M)if(U=p[M],U<m&&++S>i&&R("overflow"),U==m){for(Q=S,Z=l;re=Z<=G?c:Z>=G+s?s:Z-G,!(Q<re);Z+=l)Ke=Q-re,ue=l-re,z.push(E(L(re+Ke%ue,0))),Q=A(Ke/ue);z.push(E(L(Q,0))),G=W(S,ae,x==F),S=0,++x}++S,++m}return z.join("")}function He(p){return C(p,function(m){return w.test(m)?j(m.slice(4).toLowerCase()):m})}function Te(p){return C(p,function(m){return N.test(m)?"xn--"+ne(m):m})}if(f={version:"1.4.1",ucs2:{decode:K,encode:V},decode:j,encode:ne,toASCII:Te,toUnicode:He},n&&a)if(r.exports==n)a.exports=f;else for(B in f)f.hasOwnProperty(B)&&(n[B]=f[B]);else t.punycode=f})(ie.commonjsGlobal)})(Be,Be.exports);var Qn=Be.exports;const Jn=ie.getDefaultExportFromCjs(Qn),Zn={},Yn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Xn=ie.getAugmentedNamespace(Yn);var Er=typeof Map=="function"&&Map.prototype,nr=Object.getOwnPropertyDescriptor&&Er?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Le=Er&&nr&&typeof nr.get=="function"?nr.get:null,Br=Er&&Map.prototype.forEach,xr=typeof Set=="function"&&Set.prototype,ar=Object.getOwnPropertyDescriptor&&xr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,We=xr&&ar&&typeof ar.get=="function"?ar.get:null,Lr=xr&&Set.prototype.forEach,ea=typeof WeakMap=="function"&&WeakMap.prototype,Ae=ea?WeakMap.prototype.has:null,ra=typeof WeakSet=="function"&&WeakSet.prototype,Oe=ra?WeakSet.prototype.has:null,ta=typeof WeakRef=="function"&&WeakRef.prototype,Wr=ta?WeakRef.prototype.deref:null,na=Boolean.prototype.valueOf,aa=Object.prototype.toString,oa=Function.prototype.toString,ia=String.prototype.match,$r=String.prototype.slice,oe=String.prototype.replace,fa=String.prototype.toUpperCase,Gr=String.prototype.toLowerCase,dt=RegExp.prototype.test,jr=Array.prototype.concat,ee=Array.prototype.join,la=Array.prototype.slice,kr=Math.floor,cr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,or=Object.getOwnPropertySymbols,pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,be=typeof Symbol=="function"&&typeof Symbol.iterator=="object",q=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===be||!0)?Symbol.toStringTag:null,vt=Object.prototype.propertyIsEnumerable,zr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Hr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||dt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-kr(-r):kr(r);if(n!==r){var a=String(n),o=$r.call(e,a.length+1);return oe.call(a,t,"$&_")+"."+oe.call(oe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oe.call(e,t,"$&_")}var yr=Xn,Kr=yr.custom,Vr=bt(Kr)?Kr:null,mt={__proto__:null,double:'"',single:"'"},ua={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},je=function r(e,t,n,a){var o=t||{};if(te(o,"quoteStyle")&&!te(mt,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=te(o,"customInspect")?o.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.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 wt(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return i?Hr(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return i?Hr(e,c):c}var s=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=s&&s>0&&typeof e=="object")return hr(e)?"[Array]":"[Object]";var v=$a(o,n);if(typeof a>"u")a=[];else if(St(a,e)>=0)return"[Circular]";function u(T,L,W){if(L&&(a=la.call(a),a.push(L)),W){var j={depth:o.depth};return te(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),r(T,j,n+1,a)}return r(T,o,n+1,a)}if(typeof e=="function"&&!Qr(e)){var d=ga(e),g=_e(e,u);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(g.length>0?" { "+ee.call(g,", ")+" }":"")}if(bt(e)){var O=be?oe.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):pr.call(e);return typeof e=="object"&&!be?we(O):O}if(Pa(e)){for(var w="<"+Gr.call(String(e.nodeName)),N=e.attributes||[],h=0;h<N.length;h++)w+=" "+N[h].name+"="+gt(sa(N[h].value),"double",o);return w+=">",e.childNodes&&e.childNodes.length&&(w+="..."),w+="</"+Gr.call(String(e.nodeName))+">",w}if(hr(e)){if(e.length===0)return"[]";var y=_e(e,u);return v&&!xa(y)?"["+dr(y,v)+"]":"[ "+ee.call(y,", ")+" ]"}if(pa(e)){var P=_e(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!vt.call(e,"cause")?"{ ["+String(e)+"] "+ee.call(jr.call("[cause]: "+u(e.cause),P),", ")+" }":P.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ee.call(P,", ")+" }"}if(typeof e=="object"&&f){if(Vr&&typeof e[Vr]=="function"&&yr)return yr(e,{depth:s-n});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ba(e)){var A=[];return Br&&Br.call(e,function(T,L){A.push(u(L,e,!0)+" => "+u(T,e))}),Jr("Map",Le.call(e),A,v)}if(Aa(e)){var E=[];return Lr&&Lr.call(e,function(T){E.push(u(T,e))}),Jr("Set",We.call(e),E,v)}if(Sa(e))return ir("WeakMap");if(Oa(e))return ir("WeakSet");if(wa(e))return ir("WeakRef");if(ha(e))return we(u(Number(e)));if(va(e))return we(u(cr.call(e)));if(da(e))return we(na.call(e));if(ya(e))return we(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ie.commonjsGlobal<"u"&&e===ie.commonjsGlobal)return"{ [object globalThis] }";if(!ca(e)&&!Qr(e)){var B=_e(e,u),R=zr?zr(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",C=!R&&q&&Object(e)===e&&q in e?$r.call(le(e),8,-1):I?"Object":"",K=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=K+(C||I?"["+ee.call(jr.call([],C||[],I||[]),": ")+"] ":"");return B.length===0?V+"{}":v?V+"{"+dr(B,v)+"}":V+"{ "+ee.call(B,", ")+" }"}return String(e)};function gt(r,e,t){var n=t.quoteStyle||e,a=mt[n];return a+r+a}function sa(r){return oe.call(String(r),/"/g,""")}function hr(r){return le(r)==="[object Array]"&&(!q||!(typeof r=="object"&&q in r))}function ca(r){return le(r)==="[object Date]"&&(!q||!(typeof r=="object"&&q in r))}function Qr(r){return le(r)==="[object RegExp]"&&(!q||!(typeof r=="object"&&q in r))}function pa(r){return le(r)==="[object Error]"&&(!q||!(typeof r=="object"&&q in r))}function ya(r){return le(r)==="[object String]"&&(!q||!(typeof r=="object"&&q in r))}function ha(r){return le(r)==="[object Number]"&&(!q||!(typeof r=="object"&&q in r))}function da(r){return le(r)==="[object Boolean]"&&(!q||!(typeof r=="object"&&q in r))}function bt(r){if(be)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!pr)return!1;try{return pr.call(r),!0}catch{}return!1}function va(r){if(!r||typeof r!="object"||!cr)return!1;try{return cr.call(r),!0}catch{}return!1}var ma=Object.prototype.hasOwnProperty||function(r){return r in this};function te(r,e){return ma.call(r,e)}function le(r){return aa.call(r)}function ga(r){if(r.name)return r.name;var e=ia.call(oa.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function St(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function ba(r){if(!Le||!r||typeof r!="object")return!1;try{Le.call(r);try{We.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Sa(r){if(!Ae||!r||typeof r!="object")return!1;try{Ae.call(r,Ae);try{Oe.call(r,Oe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function wa(r){if(!Wr||!r||typeof r!="object")return!1;try{return Wr.call(r),!0}catch{}return!1}function Aa(r){if(!We||!r||typeof r!="object")return!1;try{We.call(r);try{Le.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Oa(r){if(!Oe||!r||typeof r!="object")return!1;try{Oe.call(r,Oe);try{Ae.call(r,Ae)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Pa(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function wt(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return wt($r.call(r,0,e.maxStringLength),e)+n}var a=ua[e.quoteStyle||"single"];a.lastIndex=0;var o=oe.call(oe.call(r,a,"\\$1"),/[\x00-\x1f]/g,Ea);return gt(o,"single",e)}function Ea(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+fa.call(e.toString(16))}function we(r){return"Object("+r+")"}function ir(r){return r+" { ? }"}function Jr(r,e,t,n){var a=n?dr(t,n):ee.call(t,", ");return r+" ("+e+") {"+a+"}"}function xa(r){for(var e=0;e<r.length;e++)if(St(r[e],`
`)>=0)return!1;return!0}function $a(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=ee.call(Array(r.indent+1)," ");else return null;return{base:t,prev:ee.call(Array(e+1),t)}}function dr(r,e){if(r.length===0)return"";var t=`
`+e.prev+e.base;return t+ee.call(r,","+t)+`
`+e.prev}function _e(r,e){var t=hr(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=te(r,a)?e(r[a],r):""}var o=typeof or=="function"?or(r):[],f;if(be){f={};for(var i=0;i<o.length;i++)f["$"+o[i]]=o[i]}for(var l in r)te(r,l)&&(t&&String(Number(l))===l&&l<r.length||be&&f["$"+l]instanceof Symbol||(dt.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof or=="function")for(var c=0;c<o.length;c++)vt.call(r,o[c])&&n.push("["+e(o[c])+"]: "+e(r[o[c]],r));return n}var Ra=je,Ia=pe,ke=function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},Fa=function(r,e){if(r){var t=ke(r,e);return t&&t.value}},Ta=function(r,e,t){var n=ke(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},_a=function(r,e){return r?!!ke(r,e):!1},Ca=function(r,e){if(r)return ke(r,e,!0)},Da=function(){var e,t={assert:function(n){if(!t.has(n))throw new Ia("Side channel does not contain "+Ra(n))},delete:function(n){var a=e&&e.next,o=Ca(e,n);return o&&a&&a===o&&(e=void 0),!!o},get:function(n){return Fa(e,n)},has:function(n){return _a(e,n)},set:function(n,a){e||(e={next:void 0}),Ta(e,n,a)}};return t},Ma=Ge,Ie=Pr,Na=je,Ua=pe,Zr=Ma("%Map%",!0),qa=Ie("Map.prototype.get",!0),Ba=Ie("Map.prototype.set",!0),La=Ie("Map.prototype.has",!0),Wa=Ie("Map.prototype.delete",!0),Ga=Ie("Map.prototype.size",!0),At=!!Zr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new Ua("Side channel does not contain "+Na(n))},delete:function(n){if(e){var a=Wa(e,n);return Ga(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return qa(e,n)},has:function(n){return e?La(e,n):!1},set:function(n,a){e||(e=new Zr),Ba(e,n,a)}};return t},ja=Ge,ze=Pr,ka=je,Ce=At,za=pe,he=ja("%WeakMap%",!0),Ha=ze("WeakMap.prototype.get",!0),Ka=ze("WeakMap.prototype.set",!0),Va=ze("WeakMap.prototype.has",!0),Qa=ze("WeakMap.prototype.delete",!0),Ja=he?function(){var e,t,n={assert:function(a){if(!n.has(a))throw new za("Side channel does not contain "+ka(a))},delete:function(a){if(he&&a&&(typeof a=="object"||typeof a=="function")){if(e)return Qa(e,a)}else if(Ce&&t)return t.delete(a);return!1},get:function(a){return he&&a&&(typeof a=="object"||typeof a=="function")&&e?Ha(e,a):t&&t.get(a)},has:function(a){return he&&a&&(typeof a=="object"||typeof a=="function")&&e?Va(e,a):!!t&&t.has(a)},set:function(a,o){he&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new he),Ka(e,a,o)):Ce&&(t||(t=Ce()),t.set(a,o))}};return n}:Ce,Za=pe,Ya=je,Xa=Da,eo=At,ro=Ja,to=ro||eo||Xa,no=function(){var e,t={assert:function(n){if(!t.has(n))throw new Za("Side channel does not contain "+Ya(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=to()),e.set(n,a)}};return t},ao=String.prototype.replace,oo=/%20/g,fr={RFC1738:"RFC1738",RFC3986:"RFC3986"},Rr={default:fr.RFC3986,formatters:{RFC1738:function(r){return ao.call(r,oo,"+")},RFC3986:function(r){return String(r)}},RFC1738:fr.RFC1738,RFC3986:fr.RFC3986},io=Rr,lr=Object.prototype.hasOwnProperty,se=Array.isArray,Y=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),fo=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(se(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);t.obj[t.prop]=a}}},Ot=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},lo=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(se(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!lr.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return se(e)&&!se(t)&&(a=Ot(e,n)),se(e)&&se(t)?(t.forEach(function(o,f){if(lr.call(e,f)){var i=e[f];i&&typeof i=="object"&&o&&typeof o=="object"?e[f]=r(i,o,n):e.push(o)}else e[f]=o}),e):Object.keys(t).reduce(function(o,f){var i=t[f];return lr.call(o,f)?o[f]=r(o[f],i,n):o[f]=i,o},a)},uo=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},so=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ur=1024,co=function(e,t,n,a,o){if(e.length===0)return e;var f=e;if(typeof e=="symbol"?f=Symbol.prototype.toString.call(e):typeof e!="string"&&(f=String(e)),n==="iso-8859-1")return escape(f).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var i="",l=0;l<f.length;l+=ur){for(var c=f.length>=ur?f.slice(l,l+ur):f,s=[],v=0;v<c.length;++v){var u=c.charCodeAt(v);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===io.RFC1738&&(u===40||u===41)){s[s.length]=c.charAt(v);continue}if(u<128){s[s.length]=Y[u];continue}if(u<2048){s[s.length]=Y[192|u>>6]+Y[128|u&63];continue}if(u<55296||u>=57344){s[s.length]=Y[224|u>>12]+Y[128|u>>6&63]+Y[128|u&63];continue}v+=1,u=65536+((u&1023)<<10|c.charCodeAt(v)&1023),s[s.length]=Y[240|u>>18]+Y[128|u>>12&63]+Y[128|u>>6&63]+Y[128|u&63]}i+=s.join("")}return i},po=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],f=o.obj[o.prop],i=Object.keys(f),l=0;l<i.length;++l){var c=i[l],s=f[c];typeof s=="object"&&s!==null&&n.indexOf(s)===-1&&(t.push({obj:f,prop:c}),n.push(s))}return fo(t),e},yo=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ho=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},vo=function(e,t){return[].concat(e,t)},mo=function(e,t){if(se(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},Pt={arrayToObject:Ot,assign:uo,combine:vo,compact:po,decode:so,encode:co,isBuffer:ho,isRegExp:yo,maybeMap:mo,merge:lo},Et=no,Ne=Pt,Pe=Rr,go=Object.prototype.hasOwnProperty,xt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},X=Array.isArray,bo=Array.prototype.push,$t=function(r,e){bo.apply(r,X(e)?e:[e])},So=Date.prototype.toISOString,Yr=Pe.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ne.encode,encodeValuesOnly:!1,format:Yr,formatter:Pe.formatters[Yr],indices:!1,serializeDate:function(e){return So.call(e)},skipNulls:!1,strictNullHandling:!1},wo=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},sr={},Ao=function r(e,t,n,a,o,f,i,l,c,s,v,u,d,g,O,w,N,h){for(var y=e,P=h,A=0,E=!1;(P=P.get(sr))!==void 0&&!E;){var B=P.get(e);if(A+=1,typeof B<"u"){if(B===A)throw new RangeError("Cyclic object value");E=!0}typeof P.get(sr)>"u"&&(A=0)}if(typeof s=="function"?y=s(t,y):y instanceof Date?y=d(y):n==="comma"&&X(y)&&(y=Ne.maybeMap(y,function(p){return p instanceof Date?d(p):p})),y===null){if(f)return c&&!w?c(t,_.encoder,N,"key",g):t;y=""}if(wo(y)||Ne.isBuffer(y)){if(c){var R=w?t:c(t,_.encoder,N,"key",g);return[O(R)+"="+O(c(y,_.encoder,N,"value",g))]}return[O(t)+"="+O(String(y))]}var I=[];if(typeof y>"u")return I;var C;if(n==="comma"&&X(y))w&&c&&(y=Ne.maybeMap(y,c)),C=[{value:y.length>0?y.join(",")||null:void 0}];else if(X(s))C=s;else{var K=Object.keys(y);C=v?K.sort(v):K}var V=l?t.replace(/\./g,"%2E"):t,T=a&&X(y)&&y.length===1?V+"[]":V;if(o&&X(y)&&y.length===0)return T+"[]";for(var L=0;L<C.length;++L){var W=C[L],j=typeof W=="object"&&typeof W.value<"u"?W.value:y[W];if(!(i&&j===null)){var ne=u&&l?W.replace(/\./g,"%2E"):W,He=X(y)?typeof n=="function"?n(T,ne):T:T+(u?"."+ne:"["+ne+"]");h.set(e,A);var Te=Et();Te.set(sr,h),$t(I,r(j,He,n,a,o,f,i,l,n==="comma"&&w&&X(y)?null:c,s,v,u,d,g,O,w,N,Te))}}return I},Oo=function(e){if(!e)return _;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||_.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=Pe.default;if(typeof e.format<"u"){if(!go.call(Pe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=Pe.formatters[n],o=_.filter;(typeof e.filter=="function"||X(e.filter))&&(o=e.filter);var f;if(e.arrayFormat in xt?f=e.arrayFormat:"indices"in e?f=e.indices?"indices":"repeat":f=_.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:f,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Po=function(r,e){var t=r,n=Oo(e),a,o;typeof n.filter=="function"?(o=n.filter,t=o("",t)):X(n.filter)&&(o=n.filter,a=o);var f=[];if(typeof t!="object"||t===null)return"";var i=xt[n.arrayFormat],l=i==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var c=Et(),s=0;s<a.length;++s){var v=a[s];n.skipNulls&&t[v]===null||$t(f,Ao(t[v],v,i,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var u=f.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),u.length>0?d+u:""},Se=Pt,vr=Object.prototype.hasOwnProperty,Eo=Array.isArray,$={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Se.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},xo=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Rt=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},$o="utf8=%26%2310003%3B",Ro="utf8=%E2%9C%93",Io=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,f=a.split(t.delimiter,o),i=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l<f.length;++l)f[l].indexOf("utf8=")===0&&(f[l]===Ro?c="utf-8":f[l]===$o&&(c="iso-8859-1"),i=l,l=f.length);for(l=0;l<f.length;++l)if(l!==i){var s=f[l],v=s.indexOf("]="),u=v===-1?s.indexOf("="):v+1,d,g;u===-1?(d=t.decoder(s,$.decoder,c,"key"),g=t.strictNullHandling?null:""):(d=t.decoder(s.slice(0,u),$.decoder,c,"key"),g=Se.maybeMap(Rt(s.slice(u+1),t),function(w){return t.decoder(w,$.decoder,c,"value")})),g&&t.interpretNumericEntities&&c==="iso-8859-1"&&(g=xo(g)),s.indexOf("[]=")>-1&&(g=Eo(g)?[g]:g);var O=vr.call(n,d);O&&t.duplicates==="combine"?n[d]=Se.combine(n[d],g):(!O||t.duplicates==="last")&&(n[d]=g)}return n},Fo=function(r,e,t,n){for(var a=n?e:Rt(e,t),o=r.length-1;o>=0;--o){var f,i=r[o];if(i==="[]"&&t.parseArrays)f=t.allowEmptyArrays&&(a===""||t.strictNullHandling&&a===null)?[]:[].concat(a);else{f=t.plainObjects?Object.create(null):{};var l=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,c=t.decodeDotInKeys?l.replace(/%2E/g,"."):l,s=parseInt(c,10);!t.parseArrays&&c===""?f={0:a}:!isNaN(s)&&i!==c&&String(s)===c&&s>=0&&t.parseArrays&&s<=t.arrayLimit?(f=[],f[s]=a):c!=="__proto__"&&(f[c]=a)}a=f}return a},To=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,f=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,l=n.depth>0&&f.exec(o),c=l?o.slice(0,l.index):o,s=[];if(c){if(!n.plainObjects&&vr.call(Object.prototype,c)&&!n.allowPrototypes)return;s.push(c)}for(var v=0;n.depth>0&&(l=i.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&vr.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");s.push("["+o.slice(l.index)+"]")}return Fo(s,t,n,a)}},_o=function(e){if(!e)return $;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&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 t=typeof e.charset>"u"?$.charset:e.charset,n=typeof e.duplicates>"u"?$.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:$.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:$.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:$.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:$.decoder,delimiter:typeof e.delimiter=="string"||Se.isRegExp(e.delimiter)?e.delimiter:$.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:$.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$.strictNullHandling}},Co=function(r,e){var t=_o(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Io(r,t):r,a=t.plainObjects?Object.create(null):{},o=Object.keys(n),f=0;f<o.length;++f){var i=o[f],l=To(i,n[i],t,typeof r=="string");a=Se.merge(a,l,t)}return t.allowSparse===!0?a:Se.compact(a)},Do=Po,Mo=Co,No=Rr,Uo={formats:No,parse:Mo,stringify:Do};const qo=ie.getDefaultExportFromCjs(Uo);var Bo=Jn;function H(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Lo=/^([a-z0-9.+-]+:)/i,Wo=/:[0-9]*$/,Go=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,jo=["<",">",'"',"`"," ","\r",`
`," "],ko=["{","}","|","\\","^","`"].concat(jo),mr=["'"].concat(ko),Xr=["%","/","?",";","#"].concat(mr),et=["/","?","#"],zo=255,rt=/^[+a-z0-9A-Z_-]{0,63}$/,Ho=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ko={javascript:!0,"javascript:":!0},gr={javascript:!0,"javascript:":!0},me={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},br=qo;function Fe(r,e,t){if(r&&typeof r=="object"&&r instanceof H)return r;var n=new H;return n.parse(r,e,t),n}H.prototype.parse=function(r,e,t){if(typeof r!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof r);var n=r.indexOf("?"),a=n!==-1&&n<r.indexOf("#")?"?":"#",o=r.split(a),f=/\\/g;o[0]=o[0].replace(f,"/"),r=o.join(a);var i=r;if(i=i.trim(),!t&&r.split("#").length===1){var l=Go.exec(i);if(l)return this.path=i,this.href=i,this.pathname=l[1],l[2]?(this.search=l[2],e?this.query=br.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=Lo.exec(i);if(c){c=c[0];var s=c.toLowerCase();this.protocol=s,i=i.substr(c.length)}if(t||c||i.match(/^\/\/[^@/]+@[^@/]+/)){var v=i.substr(0,2)==="//";v&&!(c&&gr[c])&&(i=i.substr(2),this.slashes=!0)}if(!gr[c]&&(v||c&&!me[c])){for(var u=-1,d=0;d<et.length;d++){var g=i.indexOf(et[d]);g!==-1&&(u===-1||g<u)&&(u=g)}var O,w;u===-1?w=i.lastIndexOf("@"):w=i.lastIndexOf("@",u),w!==-1&&(O=i.slice(0,w),i=i.slice(w+1),this.auth=decodeURIComponent(O)),u=-1;for(var d=0;d<Xr.length;d++){var g=i.indexOf(Xr[d]);g!==-1&&(u===-1||g<u)&&(u=g)}u===-1&&(u=i.length),this.host=i.slice(0,u),i=i.slice(u),this.parseHost(),this.hostname=this.hostname||"";var N=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!N)for(var h=this.hostname.split(/\./),d=0,y=h.length;d<y;d++){var P=h[d];if(P&&!P.match(rt)){for(var A="",E=0,B=P.length;E<B;E++)P.charCodeAt(E)>127?A+="x":A+=P[E];if(!A.match(rt)){var R=h.slice(0,d),I=h.slice(d+1),C=P.match(Ho);C&&(R.push(C[1]),I.unshift(C[2])),I.length&&(i="/"+I.join(".")+i),this.hostname=R.join(".");break}}}this.hostname.length>zo?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=Bo.toASCII(this.hostname));var K=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+K,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),i[0]!=="/"&&(i="/"+i))}if(!Ko[s])for(var d=0,y=mr.length;d<y;d++){var T=mr[d];if(i.indexOf(T)!==-1){var L=encodeURIComponent(T);L===T&&(L=escape(T)),i=i.split(T).join(L)}}var W=i.indexOf("#");W!==-1&&(this.hash=i.substr(W),i=i.slice(0,W));var j=i.indexOf("?");if(j!==-1?(this.search=i.substr(j),this.query=i.substr(j+1),e&&(this.query=br.parse(this.query)),i=i.slice(0,j)):e&&(this.search="",this.query={}),i&&(this.pathname=i),me[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var K=this.pathname||"",ne=this.search||"";this.path=K+ne}return this.href=this.format(),this};function Vo(r){return typeof r=="string"&&(r=Fe(r)),r instanceof H?r.format():H.prototype.format.call(r)}H.prototype.format=function(){var r=this.auth||"";r&&(r=encodeURIComponent(r),r=r.replace(/%3A/i,":"),r+="@");var e=this.protocol||"",t=this.pathname||"",n=this.hash||"",a=!1,o="";this.host?a=r+this.host:this.hostname&&(a=r+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=br.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var f=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||me[e])&&a!==!1?(a="//"+(a||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):a||(a=""),n&&n.charAt(0)!=="#"&&(n="#"+n),f&&f.charAt(0)!=="?"&&(f="?"+f),t=t.replace(/[?#]/g,function(i){return encodeURIComponent(i)}),f=f.replace("#","%23"),e+a+t+f+n};function Qo(r,e){return Fe(r,!1,!0).resolve(e)}H.prototype.resolve=function(r){return this.resolveObject(Fe(r,!1,!0)).format()};function Jo(r,e){return r?Fe(r,!1,!0).resolveObject(e):e}H.prototype.resolveObject=function(r){if(typeof r=="string"){var e=new H;e.parse(r,!1,!0),r=e}for(var t=new H,n=Object.keys(this),a=0;a<n.length;a++){var o=n[a];t[o]=this[o]}if(t.hash=r.hash,r.href==="")return t.href=t.format(),t;if(r.slashes&&!r.protocol){for(var f=Object.keys(r),i=0;i<f.length;i++){var l=f[i];l!=="protocol"&&(t[l]=r[l])}return me[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(r.protocol&&r.protocol!==t.protocol){if(!me[r.protocol]){for(var c=Object.keys(r),s=0;s<c.length;s++){var v=c[s];t[v]=r[v]}return t.href=t.format(),t}if(t.protocol=r.protocol,!r.host&&!gr[r.protocol]){for(var y=(r.pathname||"").split("/");y.length&&!(r.host=y.shift()););r.host||(r.host=""),r.hostname||(r.hostname=""),y[0]!==""&&y.unshift(""),y.length<2&&y.unshift(""),t.pathname=y.join("/")}else t.pathname=r.pathname;if(t.search=r.search,t.query=r.query,t.host=r.host||"",t.auth=r.auth,t.hostname=r.hostname||r.host,t.port=r.port,t.pathname||t.search){var u=t.pathname||"",d=t.search||"";t.path=u+d}return t.slashes=t.slashes||r.slashes,t.href=t.format(),t}var g=t.pathname&&t.pathname.charAt(0)==="/",O=r.host||r.pathname&&r.pathname.charAt(0)==="/",w=O||g||t.host&&r.pathname,N=w,h=t.pathname&&t.pathname.split("/")||[],y=r.pathname&&r.pathname.split("/")||[],P=t.protocol&&!me[t.protocol];if(P&&(t.hostname="",t.port=null,t.host&&(h[0]===""?h[0]=t.host:h.unshift(t.host)),t.host="",r.protocol&&(r.hostname=null,r.port=null,r.host&&(y[0]===""?y[0]=r.host:y.unshift(r.host)),r.host=null),w=w&&(y[0]===""||h[0]==="")),O)t.host=r.host||r.host===""?r.host:t.host,t.hostname=r.hostname||r.hostname===""?r.hostname:t.hostname,t.search=r.search,t.query=r.query,h=y;else if(y.length)h||(h=[]),h.pop(),h=h.concat(y),t.search=r.search,t.query=r.query;else if(r.search!=null){if(P){t.host=h.shift(),t.hostname=t.host;var A=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;A&&(t.auth=A.shift(),t.hostname=A.shift(),t.host=t.hostname)}return t.search=r.search,t.query=r.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!h.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var E=h.slice(-1)[0],B=(t.host||r.host||h.length>1)&&(E==="."||E==="..")||E==="",R=0,I=h.length;I>=0;I--)E=h[I],E==="."?h.splice(I,1):E===".."?(h.splice(I,1),R++):R&&(h.splice(I,1),R--);if(!w&&!N)for(;R--;R)h.unshift("..");w&&h[0]!==""&&(!h[0]||h[0].charAt(0)!=="/")&&h.unshift(""),B&&h.join("/").substr(-1)!=="/"&&h.push("");var C=h[0]===""||h[0]&&h[0].charAt(0)==="/";if(P){t.hostname=C?"":h.length?h.shift():"",t.host=t.hostname;var A=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;A&&(t.auth=A.shift(),t.hostname=A.shift(),t.host=t.hostname)}return w=w||t.host&&h.length,w&&!C&&h.unshift(""),h.length>0?t.pathname=h.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=r.auth||t.auth,t.slashes=t.slashes||r.slashes,t.href=t.format(),t};H.prototype.parseHost=function(){var r=this.host,e=Wo.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};var Zo=Fe,Yo=Qo,It=Jo,Xo=Vo,ei=H;function ri(r,e){for(var t=0,n=r.length-1;n>=0;n--){var a=r[n];a==="."?r.splice(n,1):a===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}function ti(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;r=n+"/"+r,e=n.charAt(0)==="/"}return r=ri(ni(r.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+r||"."}function ni(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n<r.length;n++)e(r[n],n,r)&&t.push(r[n]);return t}var Ft=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),ai=Xo,Tt=Zo,_t=Yo,Ct=ei,fe=Ft.URL,Dt=Ft.URLSearchParams,oi=/%/g,ii=/\\/g,fi=/\n/g,li=/\r/g,ui=/\t/g,si=47;function ci(r){var e=r??null;return!!(e!==null&&(e!=null&&e.href)&&(e!=null&&e.origin))}function pi(r){if(r.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var e=r.pathname,t=0;t<e.length;t++)if(e[t]==="%"){var n=e.codePointAt(t+2)|32;if(e[t+1]==="2"&&n===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(e)}function yi(r){return r.includes("%")&&(r=r.replace(oi,"%25")),r.includes("\\")&&(r=r.replace(ii,"%5C")),r.includes(`
`)&&(r=r.replace(fi,"%0A")),r.includes("\r")&&(r=r.replace(li,"%0D")),r.includes(" ")&&(r=r.replace(ui,"%09")),r}var Mt=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new fe("http://"+e).hostname},Nt=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new fe("http://"+e).hostname},Ut=function(e){var t=new fe("file://"),n=ti(e),a=e.charCodeAt(e.length-1);return a===si&&n[n.length-1]!=="/"&&(n+="/"),t.pathname=yi(n),t},qt=function(e){if(!ci(e)&&typeof e!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+" ("+e+")");var t=new fe(e);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return pi(t)},Bt=function(e,t){var n,a,o,f;if(t===void 0&&(t={}),!(e instanceof fe))return ai(e);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var i=(n=t.auth)!=null?n:!0,l=(a=t