"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index.cjs119.js");var t=g.utils;function d(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var a=function(e,r,u){if(!r)return e;var f;if(u)f=u(r);else if(t.isURLSearchParams(r))f=r.toString();else{var s=[];t.forEach(r,function(n,c){n===null||typeof n>"u"||(t.isArray(n)?c=c+"[]":n=[n],t.forEach(n,function(i){t.isDate(i)?i=i.toISOString():t.isObject(i)&&(i=JSON.stringify(i)),s.push(d(c)+"="+d(i))}))}),f=s.join("&")}if(f){var l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+f}return e};exports.buildURL=a;
//# sourceMappingURL=index.cjs252.js.map
