(function(v,p){typeofexports=="object"&&typeofmodule<"u"?p(exports):typeofdefine=="function"&&define.amd?define(["exports"],p):(v=typeofglobalThis<"u"?globalThis:v||self,p(v["ff-request"]={}))})(this,function(v){"use strict";varye=Object.defineProperty;varbe=(v,p,P)=>pinv?ye(v,p,{enumerable:!0,configurable:!0,writable:!0,value:P}):v[p]=P;varA=(v,p,P)=>(be(v,typeofp!="symbol"?p+"":p,P),P),ue=(v,p,P)=>{if(!p.has(v))throwTypeError("Cannot "+P)};varu=(v,p,P)=>(ue(v,p,"read from private field"),P?P.call(v):p.get(v)),C=(v,p,P)=>{if(p.has(v))throwTypeError("Cannot add the same private member more than once");pinstanceofWeakSet?p.add(v):p.set(v,P)},I=(v,p,P,Y)=>(ue(v,p,"write to private field"),Y?Y.call(v,P):p.set(v,P),P);varG,B,q,D,Q,W,L,X,Z,H,K,k,j,M;functionp(t){returnt&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}functionP(t){if(t.length>=255)thrownewTypeError("Alphabet too long");for(vare=newUint8Array(256),r=0;r<e.length;r++)e[r]=255;for(vari=0;i<t.length;i++){varl=t.charAt(i),w=l.charCodeAt(0);if(e[w]!==255)thrownewTypeError(l+" is ambiguous");e[w]=i}varg=t.length,R=t.charAt(0),V=Math.log(g)/Math.log(256),J=Math.log(256)/Math.log(g);functionF(n){if(ninstanceofUint8Array||(ArrayBuffer.isView(n)?n=newUint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(ninstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(n.length===0)return"";for(vars=0,f=0,o=0,h=n.length;o!==h&&n[o]===0;)o++,s++;for(varc=(h-o)*J+1>>>0,d=newUint8Array(c);o!==h;){for(varS=n[o],O=0,y=c-1;(S!==0||O<f)&&y!==-1;y--,O++)S+=256*d[y]>>>0,d[y]=S%g>>>0,S=S/g>>>0;if(S!==0)thrownewError("Non-zero carry");f=O,o++}for(vara=c-f;a!==c&&d[a]===0;)a++;for(varb=R.repeat(s);a<c;++a)b+=t.charAt(d[a]);returnb}functionx(n){if(typeofn!="string")thrownewTypeError("Expected String");if(n.length===0)returnnewUint8Array;for(vars=0,f=0,o=0;n[s]===R;)f++,s++;for(varh=(n.length-s)*V+1>>>0,c=newUint8Array(h);n[s];){vard=e[n.charCodeAt(s)];if(d===255)return;for(varS=0,O=h-1;(d!==0||S<o)&&O!==-1;O--,S++)d+=g*c[O]>>>0,c[O]=d%256>>>0,d=d/256>>>0;if(d!==0)thrownewError("Non-zero carry");o=S,s++}for(vary=h-o;y!==h&&c[y]===0;)y++;for(vara=newUint8Array(f+(h-y)),b=f;y!==h;)a[b++]=c[y++];returna}functionz(n){vars=x(n);if(s)returns;thrownewError("Non-base"+g+" character")}return{encode:F,decodeUnsafe:x,decode:z}}varY=P;constce=p(Y);varne={};(function(t){(function(e){e([],function(){varr=-1,i=-2,l=-3,w=-4,g=-5,R=function(s,f){f=f||{};varo=f.verbose||!1;o&&console.log("Normalize the JSON Object"),s=typeofs=="string"?this.JSON.parse(s):s,o&&console.log("Creating a empty dictionary");varh={strings:[],integers:[],floats:[]};o&&console.log("Creating the AST");varc=functiony(a){o&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(a));varb=typeofa;if(a===null)return{type:"null",index:l};if(typeofa>"u")return{type:"undefined",index:g};if(ainstanceofArray){varN=["@"];for(varTina)a.hasOwnProperty(T)&&N.push(y(a[T]));returnN}if(b==="object"){varN=["$"];for(var$ina)a.hasOwnProperty($)&&(N.push(y($)),N.push(y(a[$])));returnN}if(a==="")return{type:"empty",index:w};if(b==="string"){var_=n.call(h.strings,a);return_==-1&&(h.strings.push(J(a)),_=h.strings.length-1),{type:"strings",index:_}}if(b==="number"&&a%1===0){var_=n.call(h.integers,a);return_==-1&&(h.integers.push(x(a)),_=h.integers.length-1),{type:"integers",index:_}}if(b==="number"){var_=n.call(h.floats,a);return_==-1&&(h.floats.push(a),_=h.floats.length-1),{type:"floats",index:_}}if(b==="boolean")return{type:"boolean",index:a?r:i};thrownewError("Unexpected argument of type "+typeofa)}(s),d=h.strings.length,S=h.integers.length;h.floats.length,o&&console.log("Parsing the dictionary");varO=h.strings.join("|");returnO+="^"+h.integers.join("|"),O+="^"+h.floats.join("|"),o&&console.log("Parsing the structure"),O+="^"+functiony(a){if(o&&console.log("Calling a recursiveParser with "+this.JSON.stringify(a)),ainstanceofArray){varb=a.shift();for(varNina)a.hasOw