(function(u,p){typeofexports=="object"&&typeofmodule<"u"?p(exports):typeofdefine=="function"&&define.amd?define(["exports"],p):(u=typeofglobalThis<"u"?globalThis:u||self,p(u["ff-request"]={}))})(this,function(u){"use strict";varSe=Object.defineProperty;varxe=(u,p,b)=>pinu?Se(u,p,{enumerable:!0,configurable:!0,writable:!0,value:b}):u[p]=b;varw=(u,p,b)=>(xe(u,typeofp!="symbol"?p+"":p,b),b),he=(u,p,b)=>{if(!p.has(u))throwTypeError("Cannot "+b)};vari=(u,p,b)=>(he(u,p,"read from private field"),b?b.call(u):p.get(u)),P=(u,p,b)=>{if(p.has(u))throwTypeError("Cannot add the same private member more than once");pinstanceofWeakSet?p.add(u):p.set(u,b)},M=(u,p,b,G)=>(he(u,p,"write to private field"),G?G.call(u,b):p.set(u,b),b);varq,J,j,I,X,Z,H,k,ee,L,z,V,K,te,U,m;functionp(r){returnr&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}varb={};(function(r){(function(e){e([],function(){vart=-1,n=-2,s=-3,d=-4,f=-5,F=function(a,c){c=c||{};varl=c.verbose||!1;l&&console.log("Normalize the JSON Object"),a=typeofa=="string"?this.JSON.parse(a):a,l&&console.log("Creating a empty dictionary");varg={strings:[],integers:[],floats:[]};l&&console.log("Creating the AST");varv=functionx(o){l&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(o));varE=typeofo;if(o===null)return{type:"null",index:s};if(typeofo>"u")return{type:"undefined",index:f};if(oinstanceofArray){var_=["@"];for(varOino)o.hasOwnProperty(O)&&_.push(x(o[O]));return_}if(E==="object"){var_=["$"];for(varRino)o.hasOwnProperty(R)&&(_.push(x(R)),_.push(x(o[R])));return_}if(o==="")return{type:"empty",index:d};if(E==="string"){varS=h.call(g.strings,o);returnS==-1&&(g.strings.push(Y(o)),S=g.strings.length-1),{type:"strings",index:S}}if(E==="number"&&o%1===0){varS=h.call(g.integers,o);returnS==-1&&(g.integers.push(D(o)),S=g.integers.length-1),{type:"integers",index:S}}if(E==="number"){varS=h.call(g.floats,o);returnS==-1&&(g.floats.push(o),S=g.floats.length-1),{type:"floats",index:S}}if(E==="boolean")return{type:"boolean",index:o?t:n};thrownewError("Unexpected argument of type "+typeofo)}(a),T=g.strings.length,B=g.integers.length;g.floats.length,l&&console.log("Parsing the dictionary");var$=g.strings.join("|");return$+="^"+g.integers.join("|"),$+="^"+g.floats.join("|"),l&&console.log("Parsing the structure"),$+="^"+functionx(o){if(l&&console.log("Calling a recursiveParser with "+this.JSON.stringify(o)),oinstanceofArray){varE=o.shift();for(var_ino)o.hasOwnProperty(_)&&(E+=x(o[_])+"|");return(E[E.length-1]==="|"?E.slice(0,-1):E)+"]"}varO=o.type,R=o.index;if(O==="strings")returnD(R);if(O==="integers")returnD(T+R);if(O==="floats")returnD(T+B+R);if(O==="boolean")returno.index;if(O==="null")returns;if(O==="undefined")returnf;if(O==="empty")returnd;thrownewTypeError("The item is alien!")}(v),l&&console.log("Ending parser"),c.debug?{dictionary:g,ast:v,packed:$}:$},N=function(a,c){c=c||{};varl=a.split("^");c.verbose&&console.log("Building dictionary");varg=[],v=l[0];if(v!==""){v=v.split("|"),c.verbose&&console.log("Parse the strings dictionary");for(varT=0,B=v.length;T<B;T++)g.push(re(v[T]))}if(v=l[1],v!==""){v=v.split("|"),c.verbose&&console.log("Parse the integers dictionary");for(varT=0,B=v.length;T<B;T++)g.push(Q(v[T]))}if(v=l[2],v!==""){v=v.split("|"),c.verbose&&console.log("Parse the floats dictionary");for(varT=0,B=v.length;T<B;T++)g.push(parseFloat(v[T]))}v=null,c.verbose&&console.log("Tokenizing the structure");for(var$="",x=[],o=l[3].length,T=0;T<o;T++){varE=l[3].charAt(T);E==="|"||E==="$"||E==="@"||E==="]"?($&&(x.push(Q($)),$=""),E!=="|"&&x.push(E)):$+=E}var_=x.length,O=0;returnc.verbose&&console.log("Starting recursive parser"),functionR(){varS=x[O++];if(c.verbose&&console.log("Reading collection type "+(S==="$"?"object":"Array")),S==="@"){for(vary=[];O<_;O++){varA=x[O];if(c.verbose&&console.log("Read "+A+" symbol"),A==="]")returny;if(A==="@"||A==="$")y.push(R());elseswitch(A){caset:y.push(!0);break;casen:y.push(!1);break;cases:y.push(null);break;casef:y.push(void