@flatfile/javascript
Version:
Flatfile embedded with vanilla javascript.
4 lines • 1.02 MB
JavaScript
'use strict';var listener=require('@flatfile/listener'),pluginRecordHook=require('@flatfile/plugin-record-hook'),embeddedUtils=require('@flatfile/embedded-utils'),u1=require('i18next'),uJe=require('i18next-browser-languagedetector');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var pluginRecordHook__namespace=/*#__PURE__*/_interopNamespace(pluginRecordHook);var u1__default=/*#__PURE__*/_interopDefault(u1);var uJe__default=/*#__PURE__*/_interopDefault(uJe);var WQ=Object.create;var ey=Object.defineProperty;var ZQ=Object.getOwnPropertyDescriptor;var YQ=Object.getOwnPropertyNames,c1=Object.getOwnPropertySymbols,QQ=Object.getPrototypeOf,f1=Object.prototype.hasOwnProperty,xQ=Object.prototype.propertyIsEnumerable;var d1=(e,r,t)=>r in e?ey(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,yP=(e,r)=>{for(var t in r||(r={}))f1.call(r,t)&&d1(e,t,r[t]);if(c1)for(var t of c1(r))xQ.call(r,t)&&d1(e,t,r[t]);return e};var kQ=(e,r)=>()=>(e&&(r=e(e=0)),r);var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ex=(e,r)=>{for(var t in r)ey(e,t,{get:r[t],enumerable:!0});},_1=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of YQ(r))!f1.call(e,n)&&n!==t&&ey(e,n,{get:()=>r[n],enumerable:!(i=ZQ(r,n))||i.enumerable});return e};var b1=(e,r,t)=>(t=e!=null?WQ(QQ(e)):{},_1(ey(t,"default",{value:e,enumerable:!0}),e)),rx=e=>_1(ey({},"__esModule",{value:!0}),e);var Tp=(e,r,t)=>new Promise((i,n)=>{var o=d=>{try{l(t.next(d));}catch(c){n(c);}},a=d=>{try{l(t.throw(d));}catch(c){n(c);}},l=d=>d.done?i(d.value):Promise.resolve(d.value).then(o,a);l((t=t.apply(e,r)).next());});var h1={};ex(h1,{CrossEnvConfig:()=>gP});var gP,p1=kQ(()=>{gP=class{static get(e){return this.safeEnvLookup(e)}static set(e,r){return this._overrides.set(e,r)}static alias(e,r){return this._aliases.set(e,r)}static attachConfigRegistry(e){this._registry=e;}static attachConfigFactory(e){this._factory=e;}static reset(){this._overrides=new Map,this._registry=void 0,this._factory=void 0;}static safeEnvLookup(e){let r=[];this._overrides.get(e)&&r.push(this._overrides.get(e)),typeof this._registry=="object"&&r.push(this._registry[e]),typeof this._factory=="function"&&r.push(this._factory(e)),typeof process=="object"&&typeof process.env=="object"&&r.push(process.env[e]),r.push(...this.checkForBrowserVariables(e));let t=r.find(n=>n!==void 0);if(t!==void 0)return t;let i=this._aliases.get(e);if(i)return this.safeEnvLookup(i)}static checkForBrowserVariables(e){let r=[];if(typeof window=="object"){let t=window[`CROSSENV_${e}`];if(t!==void 0&&r.push(t),typeof sessionStorage=="object"){let i=sessionStorage.getItem(`CROSSENV_${e}`);i!==null&&r.push(i);}}return r}};gP._overrides=new Map;gP._aliases=new Map;});var Pe=u((v1,iw)=>{(function(e,r,t){typeof iw!="undefined"&&iw.exports?iw.exports=t():typeof define=="function"&&define.amd?define(t):r[e]=t();})("urljoin",v1,function(){function e(r){var t=[];if(r.length===0)return "";if(typeof r[0]!="string")throw new TypeError("Url must be a string. Received "+r[0]);if(r[0].match(/^[^/:]+:\/*$/)&&r.length>1){var i=r.shift();r[0]=i+r[0];}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<r.length;n++){var o=r[n];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(n>0&&(o=o.replace(/^[\/]+/,"")),n<r.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),t.push(o));}var a=t.join("/");a=a.replace(/\/(\?|&|#[^!])/g,"$1");var l=a.split("?");return a=l.shift()+(l.length>0?"?":"")+l.join("&"),a}return function(){var r;return typeof arguments[0]=="object"?r=arguments[0]:r=[].slice.call(arguments),e(r)}});});var ye=u(nw=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.FlatfileEnvironment=void 0;nw.FlatfileEnvironment={Production:"https://api.x.flatfile.com/v1"};});var wP=u((jJe,y1)=>{y1.exports=typeof self=="object"?self.FormData:window.FormData;});var w1=u((PJe,g1)=>{g1.exports=Error;});var j1=u((MJe,O1)=>{O1.exports=EvalError;});var M1=u((SJe,P1)=>{P1.exports=RangeError;});var m1=u((mJe,S1)=>{S1.exports=ReferenceError;});var OP=u((EJe,E1)=>{E1.exports=SyntaxError;});var Up=u((zJe,z1)=>{z1.exports=TypeError;});var F1=u((DJe,D1)=>{D1.exports=URIError;});var T1=u((FJe,R1)=>{R1.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var r={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return !1;var n=42;r[t]=n;for(t in r)return !1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return !1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(r,t);if(a.value!==n||a.enumerable!==!0)return !1}return !0};});var B1=u((RJe,I1)=>{var U1=typeof Symbol!="undefined"&&Symbol,tx=T1();I1.exports=function(){return typeof U1!="function"||typeof Symbol!="function"||typeof U1("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:tx()};});var q1=u((TJe,C1)=>{var jP={__proto__:null,foo:{}},ix=Object;C1.exports=function(){return {__proto__:jP}.foo===jP.foo&&!(jP instanceof ix)};});var X1=u((UJe,V1)=>{var nx="Function.prototype.bind called on incompatible ",ox=Object.prototype.toString,ax=Math.max,ux="[object Function]",A1=function(r,t){for(var i=[],n=0;n<r.length;n+=1)i[n]=r[n];for(var o=0;o<t.length;o+=1)i[o+r.length]=t[o];return i},lx=function(r,t){for(var i=[],n=t,o=0;n<r.length;n+=1,o+=1)i[o]=r[n];return i},sx=function(e,r){for(var t="",i=0;i<e.length;i+=1)t+=e[i],i+1<e.length&&(t+=r);return t};V1.exports=function(r){var t=this;if(typeof t!="function"||ox.apply(t)!==ux)throw new TypeError(nx+t);for(var i=lx(arguments,1),n,o=function(){if(this instanceof n){var s=t.apply(this,A1(i,arguments));return Object(s)===s?s:this}return t.apply(r,A1(i,arguments))},a=ax(0,t.length-i.length),l=[],d=0;d<a;d++)l[d]="$"+d;if(n=Function("binder","return function ("+sx(l,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null;}return n};});var ow=u((IJe,N1)=>{var cx=X1();N1.exports=Function.prototype.bind||cx;});var L1=u((BJe,K1)=>{var dx=Function.prototype.call,fx=Object.prototype.hasOwnProperty,_x=ow();K1.exports=_x.call(dx,fx);});var ih=u((CJe,W1)=>{var ce,bx=w1(),hx=j1(),px=M1(),vx=m1(),qp=OP(),Cp=Up(),yx=F1(),$1=Function,PP=function(e){try{return $1('"use strict"; return ('+e+").constructor;")()}catch(r){}},rh=Object.getOwnPropertyDescriptor;if(rh)try{rh({},"");}catch(e){rh=null;}var MP=function(){throw new Cp},gx=rh?function(){try{return arguments.callee,MP}catch(e){try{return rh(arguments,"callee").get}catch(r){return MP}}}():MP,Ip=B1()(),wx=q1()(),Cr=Object.getPrototypeOf||(wx?function(e){return e.__proto__}:null),Bp={},Ox=typeof Uint8Array=="undefined"||!Cr?ce:Cr(Uint8Array),th={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ce:ArrayBuffer,"%ArrayIteratorPrototype%":Ip&&Cr?Cr([][Symbol.iterator]()):ce,"%AsyncFromSyncIteratorPrototype%":ce,"%AsyncFunction%":Bp,"%AsyncGenerator%":Bp,"%AsyncGeneratorFunction%":Bp,"%AsyncIteratorPrototype%":Bp,"%Atomics%":typeof Atomics=="undefined"?ce:Atomics,"%BigInt%":typeof BigInt=="undefined"?ce:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bx,"%eval%":eval,"%EvalError%":hx,"%Float32Array%":typeof Float32Array=="undefined"?ce:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ce:FinalizationRegistry,"%Function%":$1,"%GeneratorFunction%":Bp,"%Int8Array%":typeof Int8Array=="undefined"?ce:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ce:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ip&&Cr?Cr(Cr([][Symbol.iterator]())):ce,"%JSON%":typeof JSON=="object"?JSON:ce,"%Map%":typeof Map=="undefined"?ce:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Ip||!Cr?ce:Cr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ce:Promise,"%Proxy%":typeof Proxy=="undefined"?ce:Proxy,"%RangeError%":px,"%ReferenceError%":vx,"%Reflect%":typeof Reflect=="undefined"?ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ce:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Ip||!Cr?ce:Cr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ip&&Cr?Cr(""[Symbol.iterator]()):ce,"%Symbol%":Ip?Symbol:ce,"%SyntaxError%":qp,"%ThrowTypeError%":gx,"%TypedArray%":Ox,"%TypeError%":Cp,"%Uint8Array%":typeof Uint8Array=="undefined"?ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ce:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ce:Uint32Array,"%URIError%":yx,"%WeakMap%":typeof WeakMap=="undefined"?ce:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ce:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ce:WeakSet};if(Cr)try{null.error;}catch(e){H1=Cr(Cr(e)),th["%Error.prototype%"]=H1;}var H1,jx=function e(r){var t;if(r==="%AsyncFunction%")t=PP("async function () {}");else if(r==="%GeneratorFunction%")t=PP("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=PP("async function* () {}");else if(r==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(t=i.prototype);}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Cr&&(t=Cr(n.prototype));}return th[r]=t,t},J1={__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"]},ry=ow(),aw=L1(),Px=ry.call(Function.call,Array.prototype.concat),Mx=ry.call(Function.apply,Array.prototype.splice),G1=ry.call(Function.call,String.prototype.replace),uw=ry.call(Function.call,String.prototype.slice),Sx=ry.call(Function.call,RegExp.prototype.exec),mx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ex=/\\(\\)?/g,zx=function(r){var t=uw(r,0,1),i=uw(r,-1);if(t==="%"&&i!=="%")throw new qp("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new qp("invalid intrinsic syntax, expected opening `%`");var n=[];return G1(r,mx,function(o,a,l,d){n[n.length]=l?G1(d,Ex,"$1"):a||o;}),n},Dx=function(r,t){var i=r,n;if(aw(J1,i)&&(n=J1[i],i="%"+n[0]+"%"),aw(th,i)){var o=th[i];if(o===Bp&&(o=jx(i)),typeof o=="undefined"&&!t)throw new Cp("intrinsic "+r+" exists, but is not available. Please file an issue!");return {alias:n,name:i,value:o}}throw new qp("intrinsic "+r+" does not exist!")};W1.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new Cp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Cp('"allowMissing" argument must be a boolean');if(Sx(/^%?[^%]*%?$/,r)===null)throw new qp("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=zx(r),n=i.length>0?i[0]:"",o=Dx("%"+n+"%",t),a=o.name,l=o.value,d=!1,c=o.alias;c&&(n=c[0],Mx(i,Px([0,1],c)));for(var s=1,_=!0;s<i.length;s+=1){var h=i[s],b=uw(h,0,1),p=uw(h,-1);if((b==='"'||b==="'"||b==="`"||p==='"'||p==="'"||p==="`")&&b!==p)throw new qp("property names with quotes must have matching quotes");if((h==="constructor"||!_)&&(d=!0),n+="."+h,a="%"+n+"%",aw(th,a))l=th[a];else if(l!=null){if(!(h in l)){if(!t)throw new Cp("base intrinsic for "+r+" exists, but the property is not available.");return}if(rh&&s+1>=i.length){var j=rh(l,h);_=!!j,_&&"get"in j&&!("originalValue"in j.get)?l=j.get:l=l[h];}else _=aw(l,h),l=l[h];_&&!d&&(th[a]=l);}}return l};});var sw=u((qJe,Z1)=>{var Fx=ih(),lw=Fx("%Object.defineProperty%",!0)||!1;if(lw)try{lw({},"a",{value:1});}catch(e){lw=!1;}Z1.exports=lw;});var SP=u((AJe,Y1)=>{var Rx=ih(),cw=Rx("%Object.getOwnPropertyDescriptor%",!0);if(cw)try{cw([],"length");}catch(e){cw=null;}Y1.exports=cw;});var eT=u((VJe,k1)=>{var Q1=sw(),Tx=OP(),Ap=Up(),x1=SP();k1.exports=function(r,t,i){if(!r||typeof r!="object"&&typeof r!="function")throw new Ap("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Ap("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ap("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ap("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ap("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ap("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!x1&&x1(r,t);if(Q1)Q1(r,t,{configurable:a===null&&d?d.configurable:!a,enumerable:n===null&&d?d.enumerable:!n,value:i,writable:o===null&&d?d.writable:!o});else if(l||!n&&!o&&!a)r[t]=i;else throw new Tx("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")};});var iT=u((XJe,tT)=>{var mP=sw(),rT=function(){return !!mP};rT.hasArrayLengthDefineBug=function(){if(!mP)return null;try{return mP([],"length",{value:1}).length!==1}catch(r){return !0}};tT.exports=rT;});var lT=u((NJe,uT)=>{var Ux=ih(),nT=eT(),Ix=iT()(),oT=SP(),aT=Up(),Bx=Ux("%Math.floor%");uT.exports=function(r,t){if(typeof r!="function")throw new aT("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Bx(t)!==t)throw new aT("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in r&&oT){var a=oT(r,"length");a&&!a.configurable&&(n=!1),a&&!a.writable&&(o=!1);}return (n||o||!i)&&(Ix?nT(r,"length",t,!0,!0):nT(r,"length",t)),r};});var bT=u((KJe,dw)=>{var EP=ow(),fw=ih(),Cx=lT(),qx=Up(),dT=fw("%Function.prototype.apply%"),fT=fw("%Function.prototype.call%"),_T=fw("%Reflect.apply%",!0)||EP.call(fT,dT),sT=sw(),Ax=fw("%Math.max%");dw.exports=function(r){if(typeof r!="function")throw new qx("a function is required");var t=_T(EP,fT,arguments);return Cx(t,1+Ax(0,r.length-(arguments.length-1)),!0)};var cT=function(){return _T(EP,dT,arguments)};sT?sT(dw.exports,"apply",{value:cT}):dw.exports.apply=cT;});var yT=u((LJe,vT)=>{var hT=ih(),pT=bT(),Vx=pT(hT("String.prototype.indexOf"));vT.exports=function(r,t){var i=hT(r,!!t);return typeof i=="function"&&Vx(r,".prototype.")>-1?pT(i):i};});var gT=u(()=>{});var XT=u((GJe,VT)=>{var qP=typeof Map=="function"&&Map.prototype,zP=Object.getOwnPropertyDescriptor&&qP?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bw=qP&&zP&&typeof zP.get=="function"?zP.get:null,wT=qP&&Map.prototype.forEach,AP=typeof Set=="function"&&Set.prototype,DP=Object.getOwnPropertyDescriptor&&AP?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hw=AP&&DP&&typeof DP.get=="function"?DP.get:null,OT=AP&&Set.prototype.forEach,Xx=typeof WeakMap=="function"&&WeakMap.prototype,iy=Xx?WeakMap.prototype.has:null,Nx=typeof WeakSet=="function"&&WeakSet.prototype,ny=Nx?WeakSet.prototype.has:null,Kx=typeof WeakRef=="function"&&WeakRef.prototype,jT=Kx?WeakRef.prototype.deref:null,Lx=Boolean.prototype.valueOf,Hx=Object.prototype.toString,Jx=Function.prototype.toString,Gx=String.prototype.match,VP=String.prototype.slice,I_=String.prototype.replace,$x=String.prototype.toUpperCase,PT=String.prototype.toLowerCase,TT=RegExp.prototype.test,MT=Array.prototype.concat,Un=Array.prototype.join,Wx=Array.prototype.slice,ST=Math.floor,TP=typeof BigInt=="function"?BigInt.prototype.valueOf:null,FP=Object.getOwnPropertySymbols,UP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vp||!0)?Symbol.toStringTag:null,UT=Object.prototype.propertyIsEnumerable,mT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ET(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||TT.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var i=e<0?-ST(-e):ST(e);if(i!==e){var n=String(i),o=VP.call(r,n.length+1);return I_.call(n,t,"$&_")+"."+I_.call(I_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I_.call(r,t,"$&_")}var IP=gT(),zT=IP.custom,DT=CT(zT)?zT:null,IT={__proto__:null,double:'"',single:"'"},Zx={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};VT.exports=function e(r,t,i,n){var o=t||{};if(r_(o,"quoteStyle")&&!r_(IT,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(r_(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 a=r_(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(r_(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(r_(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof r=="undefined")return "undefined";if(r===null)return "null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return AT(r,o);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var d=String(r);return l?ET(r,d):d}if(typeof r=="bigint"){var c=String(r)+"n";return l?ET(r,c):c}var s=typeof o.depth=="undefined"?5:o.depth;if(typeof i=="undefined"&&(i=0),i>=s&&s>0&&typeof r=="object")return BP(r)?"[Array]":"[Object]";var _=_2(o,i);if(typeof n=="undefined")n=[];else if(qT(n,r)>=0)return "[Circular]";function h(hr,Ot,ui){if(Ot&&(n=Wx.call(n),n.push(Ot)),ui){var st={depth:o.depth};return r_(o,"quoteStyle")&&(st.quoteStyle=o.quoteStyle),e(hr,st,i+1,n)}return e(hr,o,i+1,n)}if(typeof r=="function"&&!FT(r)){var b=n2(r),p=_w(r,h);return "[Function"+(b?": "+b:" (anonymous)")+"]"+(p.length>0?" { "+Un.call(p,", ")+" }":"")}if(CT(r)){var j=Vp?I_.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):UP.call(r);return typeof r=="object"&&!Vp?ty(j):j}if(c2(r)){for(var g="<"+PT.call(String(r.nodeName)),v=r.attributes||[],A=0;A<v.length;A++)g+=" "+v[A].name+"="+BT(Yx(v[A].value),"double",o);return g+=">",r.childNodes&&r.childNodes.length&&(g+="..."),g+="</"+PT.call(String(r.nodeName))+">",g}if(BP(r)){if(r.length===0)return "[]";var X=_w(r,h);return _&&!f2(X)?"["+CP(X,_)+"]":"[ "+Un.call(X,", ")+" ]"}if(xx(r)){var P=_w(r,h);return !("cause"in Error.prototype)&&"cause"in r&&!UT.call(r,"cause")?"{ ["+String(r)+"] "+Un.call(MT.call("[cause]: "+h(r.cause),P),", ")+" }":P.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Un.call(P,", ")+" }"}if(typeof r=="object"&&a){if(DT&&typeof r[DT]=="function"&&IP)return IP(r,{depth:s-i});if(a!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(o2(r)){var x=[];return wT&&wT.call(r,function(hr,Ot){x.push(h(Ot,r,!0)+" => "+h(hr,r));}),RT("Map",bw.call(r),x,_)}if(l2(r)){var je=[];return OT&&OT.call(r,function(hr){je.push(h(hr,r));}),RT("Set",hw.call(r),je,_)}if(a2(r))return RP("WeakMap");if(s2(r))return RP("WeakSet");if(u2(r))return RP("WeakRef");if(e2(r))return ty(h(Number(r)));if(t2(r))return ty(h(TP.call(r)));if(r2(r))return ty(Lx.call(r));if(kx(r))return ty(h(String(r)));if(typeof window!="undefined"&&r===window)return "{ [object Window] }";if(typeof globalThis!="undefined"&&r===globalThis||typeof global!="undefined"&&r===global)return "{ [object globalThis] }";if(!Qx(r)&&!FT(r)){var R=_w(r,h),k=mT?mT(r)===Object.prototype:r instanceof Object||r.constructor===Object,ee=r instanceof Object?"":"null prototype",m=!k&&tt&&Object(r)===r&&tt in r?VP.call(B_(r),8,-1):ee?"Object":"",q=k||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",De=q+(m||ee?"["+Un.call(MT.call([],m||[],ee||[]),": ")+"] ":"");return R.length===0?De+"{}":_?De+"{"+CP(R,_)+"}":De+"{ "+Un.call(R,", ")+" }"}return String(r)};function BT(e,r,t){var i=t.quoteStyle||r,n=IT[i];return n+e+n}function Yx(e){return I_.call(String(e),/"/g,""")}function BP(e){return B_(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function Qx(e){return B_(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function FT(e){return B_(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function xx(e){return B_(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function kx(e){return B_(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function e2(e){return B_(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function r2(e){return B_(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function CT(e){if(Vp)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return !0;if(!e||typeof e!="object"||!UP)return !1;try{return UP.call(e),!0}catch(r){}return !1}function t2(e){if(!e||typeof e!="object"||!TP)return !1;try{return TP.call(e),!0}catch(r){}return !1}var i2=Object.prototype.hasOwnProperty||function(e){return e in this};function r_(e,r){return i2.call(e,r)}function B_(e){return Hx.call(e)}function n2(e){if(e.name)return e.name;var r=Gx.call(Jx.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function qT(e,r){if(e.indexOf)return e.indexOf(r);for(var t=0,i=e.length;t<i;t++)if(e[t]===r)return t;return -1}function o2(e){if(!bw||!e||typeof e!="object")return !1;try{bw.call(e);try{hw.call(e);}catch(r){return !0}return e instanceof Map}catch(r){}return !1}function a2(e){if(!iy||!e||typeof e!="object")return !1;try{iy.call(e,iy);try{ny.call(e,ny);}catch(r){return !0}return e instanceof WeakMap}catch(r){}return !1}function u2(e){if(!jT||!e||typeof e!="object")return !1;try{return jT.call(e),!0}catch(r){}return !1}function l2(e){if(!hw||!e||typeof e!="object")return !1;try{hw.call(e);try{bw.call(e);}catch(r){return !0}return e instanceof Set}catch(r){}return !1}function s2(e){if(!ny||!e||typeof e!="object")return !1;try{ny.call(e,ny);try{iy.call(e,iy);}catch(r){return !0}return e instanceof WeakSet}catch(r){}return !1}function c2(e){return !e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function AT(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return AT(VP.call(e,0,r.maxStringLength),r)+i}var n=Zx[r.quoteStyle||"single"];n.lastIndex=0;var o=I_.call(I_.call(e,n,"\\$1"),/[\x00-\x1f]/g,d2);return BT(o,"single",r)}function d2(e){var r=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+$x.call(r.toString(16))}function ty(e){return "Object("+e+")"}function RP(e){return e+" { ? }"}function RT(e,r,t,i){var n=i?CP(t,i):Un.call(t,", ");return e+" ("+r+") {"+n+"}"}function f2(e){for(var r=0;r<e.length;r++)if(qT(e[r],`
`)>=0)return !1;return !0}function _2(e,r){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=Un.call(Array(e.indent+1)," ");else return null;return {base:t,prev:Un.call(Array(r+1),t)}}function CP(e,r){if(e.length===0)return "";var t=`
`+r.prev+r.base;return t+Un.call(e,","+t)+`
`+r.prev}function _w(e,r){var t=BP(e),i=[];if(t){i.length=e.length;for(var n=0;n<e.length;n++)i[n]=r_(e,n)?r(e[n],e):"";}var o=typeof FP=="function"?FP(e):[],a;if(Vp){a={};for(var l=0;l<o.length;l++)a["$"+o[l]]=o[l];}for(var d in e)r_(e,d)&&(t&&String(Number(d))===d&&d<e.length||Vp&&a["$"+d]instanceof Symbol||(TT.call(/[^\w$]/,d)?i.push(r(d,e)+": "+r(e[d],e)):i.push(d+": "+r(e[d],e))));if(typeof FP=="function")for(var c=0;c<o.length;c++)UT.call(e,o[c])&&i.push("["+r(o[c])+"]: "+r(e[o[c]],e));return i}});var LT=u(($Je,KT)=>{var NT=ih(),Xp=yT(),b2=XT(),h2=Up(),pw=NT("%WeakMap%",!0),vw=NT("%Map%",!0),p2=Xp("WeakMap.prototype.get",!0),v2=Xp("WeakMap.prototype.set",!0),y2=Xp("WeakMap.prototype.has",!0),g2=Xp("Map.prototype.get",!0),w2=Xp("Map.prototype.set",!0),O2=Xp("Map.prototype.has",!0),XP=function(e,r){for(var t=e,i;(i=t.next)!==null;t=i)if(i.key===r)return t.next=i.next,i.next=e.next,e.next=i,i},j2=function(e,r){var t=XP(e,r);return t&&t.value},P2=function(e,r,t){var i=XP(e,r);i?i.value=t:e.next={key:r,next:e.next,value:t};},M2=function(e,r){return !!XP(e,r)};KT.exports=function(){var r,t,i,n={assert:function(o){if(!n.has(o))throw new h2("Side channel does not contain "+b2(o))},get:function(o){if(pw&&o&&(typeof o=="object"||typeof o=="function")){if(r)return p2(r,o)}else if(vw){if(t)return g2(t,o)}else if(i)return j2(i,o)},has:function(o){if(pw&&o&&(typeof o=="object"||typeof o=="function")){if(r)return y2(r,o)}else if(vw){if(t)return O2(t,o)}else if(i)return M2(i,o);return !1},set:function(o,a){pw&&o&&(typeof o=="object"||typeof o=="function")?(r||(r=new pw),v2(r,o,a)):vw?(t||(t=new vw),w2(t,o,a)):(i||(i={key:{},next:null}),P2(i,o,a));}};return n};});var yw=u((WJe,HT)=>{var S2=String.prototype.replace,m2=/%20/g,NP={RFC1738:"RFC1738",RFC3986:"RFC3986"};HT.exports={default:NP.RFC3986,formatters:{RFC1738:function(e){return S2.call(e,m2,"+")},RFC3986:function(e){return String(e)}},RFC1738:NP.RFC1738,RFC3986:NP.RFC3986};});var LP=u((ZJe,GT)=>{var E2=yw(),KP=Object.prototype.hasOwnProperty,nh=Array.isArray,In=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),z2=function(r){for(;r.length>1;){var t=r.pop(),i=t.obj[t.prop];if(nh(i)){for(var n=[],o=0;o<i.length;++o)typeof i[o]!="undefined"&&n.push(i[o]);t.obj[t.prop]=n;}}},JT=function(r,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<r.length;++n)typeof r[n]!="undefined"&&(i[n]=r[n]);return i},D2=function e(r,t,i){if(!t)return r;if(typeof t!="object"){if(nh(r))r.push(t);else if(r&&typeof r=="object")(i&&(i.plainObjects||i.allowPrototypes)||!KP.call(Object.prototype,t))&&(r[t]=!0);else return [r,t];return r}if(!r||typeof r!="object")return [r].concat(t);var n=r;return nh(r)&&!nh(t)&&(n=JT(r,i)),nh(r)&&nh(t)?(t.forEach(function(o,a){if(KP.call(r,a)){var l=r[a];l&&typeof l=="object"&&o&&typeof o=="object"?r[a]=e(l,o,i):r.push(o);}else r[a]=o;}),r):Object.keys(t).reduce(function(o,a){var l=t[a];return KP.call(o,a)?o[a]=e(o[a],l,i):o[a]=l,o},n)},F2=function(r,t){return Object.keys(t).reduce(function(i,n){return i[n]=t[n],i},r)},R2=function(e,r,t){var i=e.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(n){return i}},T2=function(r,t,i,n,o){if(r.length===0)return r;var a=r;if(typeof r=="symbol"?a=Symbol.prototype.toString.call(r):typeof r!="string"&&(a=String(r)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(s){return "%26%23"+parseInt(s.slice(2),16)+"%3B"});for(var l="",d=0;d<a.length;++d){var c=a.charCodeAt(d);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===E2.RFC1738&&(c===40||c===41)){l+=a.charAt(d);continue}if(c<128){l=l+In[c];continue}if(c<2048){l=l+(In[192|c>>6]+In[128|c&63]);continue}if(c<55296||c>=57344){l=l+(In[224|c>>12]+In[128|c>>6&63]+In[128|c&63]);continue}d+=1,c=65536+((c&1023)<<10|a.charCodeAt(d)&1023),l+=In[240|c>>18]+In[128|c>>12&63]+In[128|c>>6&63]+In[128|c&63];}return l},U2=function(r){for(var t=[{obj:{o:r},prop:"o"}],i=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],l=Object.keys(a),d=0;d<l.length;++d){var c=l[d],s=a[c];typeof s=="object"&&s!==null&&i.indexOf(s)===-1&&(t.push({obj:a,prop:c}),i.push(s));}return z2(t),r},I2=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},B2=function(r){return !r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},C2=function(r,t){return [].concat(r,t)},q2=function(r,t){if(nh(r)){for(var i=[],n=0;n<r.length;n+=1)i.push(t(r[n]));return i}return t(r)};GT.exports={arrayToObject:JT,assign:F2,combine:C2,compact:U2,decode:R2,encode:T2,isBuffer:B2,isRegExp:I2,maybeMap:q2,merge:D2};});var xT=u((YJe,QT)=>{var ZT=LT(),gw=LP(),oy=yw(),A2=Object.prototype.hasOwnProperty,$T={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,t){return r+"["+t+"]"},repeat:function(r){return r}},t_=Array.isArray,V2=Array.prototype.push,YT=function(e,r){V2.apply(e,t_(r)?r:[r]);},X2=Date.prototype.toISOString,WT=oy.default,it={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:gw.encode,encodeValuesOnly:!1,format:WT,formatter:oy.formatters[WT],indices:!1,serializeDate:function(r){return X2.call(r)},skipNulls:!1,strictNullHandling:!1},N2=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},HP={},K2=function e(r,t,i,n,o,a,l,d,c,s,_,h,b,p,j,g){for(var v=r,A=g,X=0,P=!1;(A=A.get(HP))!==void 0&&!P;){var x=A.get(r);if(X+=1,typeof x!="undefined"){if(x===X)throw new RangeError("Cyclic object value");P=!0;}typeof A.get(HP)=="undefined"&&(X=0);}if(typeof d=="function"?v=d(t,v):v instanceof Date?v=_(v):i==="comma"&&t_(v)&&(v=gw.maybeMap(v,function(st){return st instanceof Date?_(st):st})),v===null){if(o)return l&&!p?l(t,it.encoder,j,"key",h):t;v="";}if(N2(v)||gw.isBuffer(v)){if(l){var je=p?t:l(t,it.encoder,j,"key",h);return [b(je)+"="+b(l(v,it.encoder,j,"value",h))]}return [b(t)+"="+b(String(v))]}var R=[];if(typeof v=="undefined")return R;var k;if(i==="comma"&&t_(v))p&&l&&(v=gw.maybeMap(v,l)),k=[{value:v.length>0?v.join(",")||null:void 0}];else if(t_(d))k=d;else {var ee=Object.keys(v);k=c?ee.sort(c):ee;}for(var m=n&&t_(v)&&v.length===1?t+"[]":t,q=0;q<k.length;++q){var De=k[q],hr=typeof De=="object"&&typeof De.value!="undefined"?De.value:v[De];if(!(a&&hr===null)){var Ot=t_(v)?typeof i=="function"?i(m,De):m:m+(s?"."+De:"["+De+"]");g.set(r,X);var ui=ZT();ui.set(HP,g),YT(R,e(hr,Ot,i,n,o,a,i==="comma"&&p&&t_(v)?null:l,d,c,s,_,h,b,p,j,ui));}}return R},L2=function(r){if(!r)return it;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=r.charset||it.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=oy.default;if(typeof r.format!="undefined"){if(!A2.call(oy.formatters,r.format))throw new TypeError("Unknown format option provided.");i=r.format;}var n=oy.formatters[i],o=it.filter;return (typeof r.filter=="function"||t_(r.filter))&&(o=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:it.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?it.allowDots:!!r.allowDots,charset:t,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:it.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?it.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:it.encode,encoder:typeof r.encoder=="function"?r.encoder:it.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:it.encodeValuesOnly,filter:o,format:i,formatter:n,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:it.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:it.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:it.strictNullHandling}};QT.exports=function(e,r){var t=e,i=L2(r),n,o;typeof i.filter=="function"?(o=i.filter,t=o("",t)):t_(i.filter)&&(o=i.filter,n=o);var a=[];if(typeof t!="object"||t===null)return "";var l;r&&r.arrayFormat in $T?l=r.arrayFormat:r&&"indices"in r?l=r.indices?"indices":"repeat":l="indices";var d=$T[l];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=d==="comma"&&r&&r.commaRoundTrip;n||(n=Object.keys(t)),i.sort&&n.sort(i.sort);for(var s=ZT(),_=0;_<n.length;++_){var h=n[_];i.skipNulls&&t[h]===null||YT(a,K2(t[h],h,d,c,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s));}var b=a.join(i.delimiter),p=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),b.length>0?p+b:""};});var rU=u((QJe,eU)=>{var Np=LP(),JP=Object.prototype.hasOwnProperty,H2=Array.isArray,qr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Np.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},J2=function(e){return e.replace(/&#(\d+);/g,function(r,t){return String.fromCharCode(parseInt(t,10))})},kT=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},G2="utf8=%26%2310003%3B",$2="utf8=%E2%9C%93",W2=function(r,t){var i={__proto__:null},n=t.ignoreQueryPrefix?r.replace(/^\?/,""):r,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=n.split(t.delimiter,o),l=-1,d,c=t.charset;if(t.charsetSentinel)for(d=0;d<a.length;++d)a[d].indexOf("utf8=")===0&&(a[d]===$2?c="utf-8":a[d]===G2&&(c="iso-8859-1"),l=d,d=a.length);for(d=0;d<a.length;++d)if(d!==l){var s=a[d],_=s.indexOf("]="),h=_===-1?s.indexOf("="):_+1,b,p;h===-1?(b=t.decoder(s,qr.decoder,c,"key"),p=t.strictNullHandling?null:""):(b=t.decoder(s.slice(0,h),qr.decoder,c,"key"),p=Np.maybeMap(kT(s.slice(h+1),t),function(j){return t.decoder(j,qr.decoder,c,"value")})),p&&t.interpretNumericEntities&&c==="iso-8859-1"&&(p=J2(p)),s.indexOf("[]=")>-1&&(p=H2(p)?[p]:p),JP.call(i,b)?i[b]=Np.combine(i[b],p):i[b]=p;}return i},Z2=function(e,r,t,i){for(var n=i?r:kT(r,t),o=e.length-1;o>=0;--o){var a,l=e[o];if(l==="[]"&&t.parseArrays)a=[].concat(n);else {a=t.plainObjects?Object.create(null):{};var d=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=parseInt(d,10);!t.parseArrays&&d===""?a={0:n}:!isNaN(c)&&l!==d&&String(c)===d&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(a=[],a[c]=n):d!=="__proto__"&&(a[d]=n);}n=a;}return n},Y2=function(r,t,i,n){if(r){var o=i.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,d=i.depth>0&&a.exec(o),c=d?o.slice(0,d.index):o,s=[];if(c){if(!i.plainObjects&&JP.call(Object.prototype,c)&&!i.allowPrototypes)return;s.push(c);}for(var _=0;i.depth>0&&(d=l.exec(o))!==null&&_<i.depth;){if(_+=1,!i.plainObjects&&JP.call(Object.prototype,d[1].slice(1,-1))&&!i.allowPrototypes)return;s.push(d[1]);}return d&&s.push("["+o.slice(d.index)+"]"),Z2(s,t,i,n)}},Q2=function(r){if(!r)return qr;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof r.charset=="undefined"?qr.charset:r.charset;return {allowDots:typeof r.allowDots=="undefined"?qr.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:qr.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:qr.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:qr.arrayLimit,charset:t,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:qr.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:qr.comma,decoder:typeof r.decoder=="function"?r.decoder:qr.decoder,delimiter:typeof r.delimiter=="string"||Np.isRegExp(r.delimiter)?r.delimiter:qr.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:qr.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:qr.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:qr.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:qr.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:qr.strictNullHandling}};eU.exports=function(e,r){var t=Q2(r);if(e===""||e===null||typeof e=="undefined")return t.plainObjects?Object.create(null):{};for(var i=typeof e=="string"?W2(e,t):e,n=t.plainObjects?Object.create(null):{},o=Object.keys(i),a=0;a<o.length;++a){var l=o[a],d=Y2(l,i[l],t,typeof e=="string");n=Np.merge(n,d,t);}return t.allowSparse===!0?n:Np.compact(n)};});var iU=u((xJe,tU)=>{var x2=xT(),k2=rU(),ek=yw();tU.exports={formats:ek,parse:k2,stringify:x2};});var aU=u(ww=>{var GP,$P,WP,ZP;Object.defineProperty(ww,"__esModule",{value:!0});ww.RUNTIME=void 0;var rk=typeof window!="undefined"&&typeof window.document!="undefined",tk=typeof self=="object"&&typeof(self==null?void 0:self.importScripts)=="function"&&(((GP=self.constructor)===null||GP===void 0?void 0:GP.name)==="DedicatedWorkerGlobalScope"||(($P=self.constructor)===null||$P===void 0?void 0:$P.name)==="ServiceWorkerGlobalScope"||((WP=self.constructor)===null||WP===void 0?void 0:WP.name)==="SharedWorkerGlobalScope"),nU=typeof Deno!="undefined"&&typeof Deno.version!="undefined"&&typeof Deno.version.deno!="undefined",oU=typeof Bun!="undefined"&&typeof Bun.version!="undefined",ik=typeof process!="undefined"&&!!process.version&&!!(!((ZP=process.versions)===null||ZP===void 0)&&ZP.node)&&!nU&&!oU,nk=typeof navigator!="undefined"&&(navigator==null?void 0:navigator.product)==="ReactNative";ww.RUNTIME=ok();function ok(){return rk?{type:"browser",version:window.navigator.userAgent}:tk?{type:"web-worker"}:nU?{type:"deno",version:Deno.version.deno}:oU?{type:"bun",version:Bun.version}:ik?{type:"node",version:process.versions.node}:nk?{type:"react-native"}:{type:"unknown"}}});var YP=u(Ow=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.RUNTIME=void 0;var ak=aU();Object.defineProperty(Ow,"RUNTIME",{enumerable:!0,get:function(){return ak.RUNTIME}});});var QP=u((Kp,uU)=>{var uk=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;throw new Error("unable to locate global object")},oh=uk();uU.exports=Kp=oh.fetch;oh.fetch&&(Kp.default=oh.fetch.bind(oh));Kp.Headers=oh.Headers;Kp.Request=oh.Request;Kp.Response=oh.Response;});var cU=u(C_=>{var lU=C_&&C_.__awaiter||function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o);})}return new(t||(t=Promise))(function(o,a){function l(s){try{c(i.next(s));}catch(_){a(_);}}function d(s){try{c(i.throw(s));}catch(_){a(_);}}function c(s){s.done?o(s.value):n(s.value).then(l,d);}c((i=i.apply(e,r||[])).next());})},sU=C_&&C_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C_,"__esModule",{value:!0});C_.fetcher=void 0;var lk=sU(wP()),sk=sU(iU()),ck=YP(),dk=1,fk=60,_k=2;function bk(e){var r,t;return lU(this,void 0,void 0,function*(){let i={};if(e.body!==void 0&&e.contentType!=null&&(i["Content-Type"]=e.contentType),e.headers!=null)for(let[d,c]of Object.entries(e.headers))c!=null&&(i[d]=c);let n=Object.keys((r=e.queryParameters)!==null&&r!==void 0?r:{}).length>0?`${e.url}?${sk.default.stringify(e.queryParameters,{arrayFormat:"repeat"})}`:e.url,o;e.body instanceof lk.default||e.body instanceof Uint8Array?o=e.body:o=JSON.stringify(e.body);let a=ck.RUNTIME.type==="node"?QP().default:typeof fetch=="function"?fetch:QP().default,l=()=>lU(this,void 0,void 0,function*(){let d=new AbortController,c;e.timeoutMs!=null&&(c=setTimeout(()=>d.abort(),e.timeoutMs));let s=yield a(n,{method:e.method,headers:i,body:o,signal:d.signal,credentials:e.withCredentials?"include":void 0});return c!=null&&clearTimeout(c),s});try{let d=yield l();for(let s=0;s<((t=e.maxRetries)!==null&&t!==void 0?t:_k)&&(d.status===408||d.status===409||d.status===429||d.status>=500);++s){let _=Math.min(dk*Math.pow(s,2),fk);yield new Promise(h=>setTimeout(h,_)),d=yield l();}let c;if(d.body!=null&&e.responseType==="blob")c=yield d.blob();else if(d.body!=null&&e.responseType==="streaming")c=d.body;else {let s=yield d.text();if(s.length>0)try{c=JSON.parse(s);}catch(_){return {ok:!1,error:{reason:"non-json",statusCode:d.status,rawBody:s}}}}return d.status>=200&&d.status<400?{ok:!0,body:c,headers:d.headers}:{ok:!1,error:{reason:"status-code",statusCode:d.status,body:c}}}catch(d){return d instanceof Error&&d.name==="AbortError"?{ok:!1,error:{reason:"timeout"}}:d instanceof Error?{ok:!1,error:{reason:"unknown",errorMessage:d.message}}:{ok:!1,error:{reason:"unknown",errorMessage:JSON.stringify(d)}}}})}C_.fetcher=bk;});var dU=u(jw=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.getHeader=void 0;function hk(e,r){for(let[t,i]of Object.entries(e))if(t.toLowerCase()===r.toLowerCase())return i}jw.getHeader=hk;});var fU=u(Lp=>{var pk=Lp&&Lp.__awaiter||function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o);})}return new(t||(t=Promise))(function(o,a){function l(s){try{c(i.next(s));}catch(_){a(_);}}function d(s){try{c(i.throw(s));}catch(_){a(_);}}function c(s){s.done?o(s.value):n(s.value).then(l,d);}c((i=i.apply(e,r||[])).next());})};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.Supplier=void 0;Lp.Supplier={get:e=>pk(void 0,void 0,void 0,function*(){return typeof e=="function"?e():e})};});var _U=u(q_=>{Object.defineProperty(q_,"__esModule",{value:!0});q_.Supplier=q_.getHeader=q_.fetcher=void 0;var vk=cU();Object.defineProperty(q_,"fetcher",{enumerable:!0,get:function(){return vk.fetcher}});var yk=dU();Object.defineProperty(q_,"getHeader",{enumerable:!0,get:function(){return yk.getHeader}});var gk=fU();Object.defineProperty(q_,"Supplier",{enumerable:!0,get:function(){return gk.Supplier}});});var bU=u((xP,kP)=>{(function(e,r){typeof xP=="object"&&typeof kP!="undefined"?kP.exports=r():typeof define=="function"&&define.amd?define(r):function(){var t=e.Base64,i=r();i.noConflict=function(){return e.Base64=t,i},e.Meteor&&(Base64=i),e.Base64=i;}();})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:xP,function(){var e="3.7.2",r=e,t=typeof atob=="function",i=typeof btoa=="function",n=typeof Buffer=="function",o=typeof TextDecoder=="function"?new TextDecoder:void 0,a=typeof TextEncoder=="function"?new TextEncoder:void 0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(l),c=function(O){var C={};return O.forEach(function(xe,dt){return C[xe]=dt}),C}(d),s=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_=String.fromCharCode.bind(String),h=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(O,C){return C===void 0&&(C=function(xe){return xe}),new Uint8Array(Array.prototype.slice.call(O,0).map(C))},b=function(O){return O.replace(/=/g,"").replace(/[+\/]/g,function(C){return C=="+"?"-":"_"})},p=function(O){return O.replace(/[^A-Za-z0-9\+\/]/g,"")},j=function(O){for(var C,xe,dt,Tn,re="",et=O.length%3,rt=0;rt<O.length;){if((xe=O.charCodeAt(rt++))>255||(dt=O.charCodeAt(rt++))>255||(Tn=O.charCodeAt(rt++))>255)throw new TypeError("invalid character found");C=xe<<16|dt<<8|Tn,re+=d[C>>18&63]+d[C>>12&63]+d[C>>6&63]+d[C&63];}return et?re.slice(0,et-3)+"===".substring(et):re},g=i?function(O){return btoa(O)}:n?function(O){return Buffer.from(O,"binary").toString("base64")}:j,v=n?function(O){return Buffer.from(O).toString("base64")}:function(O){for(var C=4096,xe=[],dt=0,Tn=O.length;dt<Tn;dt+=C)xe.push(_.apply(null,O.subarray(dt,dt+C)));return g(xe.join(""))},A=function(O,C){return C===void 0&&(C=!1),C?b(v(O)):v(O)},X=function(O){if(O.length<2){var C=O.charCodeAt(0);return C<128?O:C<2048?_(192|C>>>6)+_(128|C&63):_(224|C>>>12&15)+_(128|C>>>6&63)+_(128|C&63)}else {var C=65536+(O.charCodeAt(0)-55296)*1024+(O.charCodeAt(1)-56320);return _(240|C>>>18&7)+_(128|C>>>12&63)+_(128|C>>>6&63)+_(128|C&63)}},P=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(O){return O.replace(P,X)},je=n?function(O){return Buffer.from(O,"utf8").toString("base64")}:a?function(O){return v(a.encode(O))}:function(O){return g(x(O))},R=function(O,C){return C===void 0&&(C=!1),C?b(je(O)):je(O)},k=function(O){return R(O,!0)},ee=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m=function(O){switch(O.length){case 4:var C=(7&O.charCodeAt(0))<<18|(63&O.charCodeAt(1))<<12|(63&O.charCodeAt(2))<<6|63&O.charCodeAt(3),xe=C-65536;return _((xe>>>10)+55296)+_((xe&1023)+56320);case 3:return _((15&O.charCodeAt(0))<<12|(63&O.charCodeAt(1))<<6|63&O.charCodeAt(2));default:return _((31&O.charCodeAt(0))<<6|63&O.charCodeAt(1))}},q=function(O){return O.replace(ee,m)},De=function(O){if(O=O.replace(/\s+/g,""),!s.test(O))throw new TypeError("malformed base64.");O+="==".slice(2-(O.length&3));for(var C,xe="",dt,Tn,re=0;re<O.length;)C=c[O.charAt(re++)]<<18|c[O.charAt(re++)]<<12|(dt=c[O.charAt(re++)])<<6|(Tn=c[O.charAt(re++)]),xe+=dt===64?_(C>>16&255):Tn===64?_(C>>16&255,C>>8&255):_(C>>16&255,C>>8&255,C&255);return xe},hr=t?function(O){return atob(p(O))}:n?function(O){return Buffer.from(O,"base64").toString("binary")}:De,Ot=n?function(O){return h(Buffer.from(O,"base64"))}:function(O){return h(hr(O),function(C){return C.charCodeAt(0)})},ui=function(O){return Ot(Ye(O))},st=n?function(O){return Buffer.from(O,"base64").toString("utf8")}:o?function(O){return o.decode(Ot(O))}:function(O){return q(hr(O))},Ye=function(O){return p(O.replace(/[-_]/g,function(C){return C=="-"?"+":"/"}))},kb=function(O){return st(Ye(O))},rw=function(O){if(typeof O!="string")return !1;var C=O.replace(/\s+/g,"").replace(/={0,2}$/,"");return !/[^\s0-9a-zA-Z\+/]/.test(C)||!/[^\s0-9a-zA-Z\-_]/.test(C)},ct=function(O){return {value:O,enumerable:!1,writable:!0,configurable:!0}},Rp=function(){var O=function(C,xe){return Object.defineProperty(String.prototype,C,ct(xe))};O("fromBase64",function(){return kb(this)}),O("toBase64",function(C){return R(this,C)}),O("toBase64URI",function(){return R(this,!0)}),O("toBase64URL",function(){return R(this,!0)}),O("toUint8Array",function(){return ui(this)});},tw=function(){var O=function(C,xe){return Object.defineProperty(Uint8Array.prototype,C,ct(xe))};O("toBase64",