var e=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}},f=function(n,r,t,o){return r=r||"&",t=t||"=",n===null&&(n=void 0),typeof n=="object"?Object.keys(n).map(function(i){var u=encodeURIComponent(e(i))+t;return Array.isArray(n[i])?n[i].map(function(c){return u+encodeURIComponent(e(c))}).join(r):u+encodeURIComponent(e(n[i]))}).filter(Boolean).join(r):o?encodeURIComponent(e(o))+t+encodeURIComponent(e(n)):""},a;a=f;export{a as s};
