import{j as e}from"./dayjs.DCWbrgJ0.js";import{r}from"./side-channel.4q28KFJj.js";var t,o,n,i,a,l,c,s,f,p;function u(){if(o)return t;o=1;var e=String.prototype.replace,r=/%20/g,n="RFC3986";return t={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function d(){if(i)return n;i=1;var e=u(),t=r(),o=Object.prototype.hasOwnProperty,a=Array.isArray,l=t(),c=function(e,r){return l.set(e,r),e},s=function(e){return l.has(e)},f=function(e){return l.get(e)},p=function(e,r){l.set(e,r)},d=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),y=function(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},o=0;ot?c(y(i,{plainObjects:o}),i.length-1):i},compact:function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o1;){var r=e.pop(),t=r.obj[r.prop];if(a(t)){for(var o=[],n=0;n=m?a.slice(c,c+m):a,f=[],p=0;p=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===e.RFC1738&&(40===u||41===u)?f[f.length]=s.charAt(p):u<128?f[f.length]=d[u]:u<2048?f[f.length]=d[192|u>>6]+d[128|63&u]:u<55296||u>=57344?f[f.length]=d[224|u>>12]+d[128|u>>6&63]+d[128|63&u]:(p+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(p)),f[f.length]=d[240|u>>18]+d[128|u>>12&63]+d[128|u>>6&63]+d[128|63&u])}l+=f.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:s,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,r){if(a(e)){for(var t=[],o=0;on.arrayLimit)return c(y(r.concat(t),n),i);r[i]=t}else{if(!r||"object"!=typeof r)return[r,t];if(s(r)){var l=f(r)+1;r[l]=t,p(r,l)}else{if(n&&n.strictMerge)return[r,t];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,t))&&(r[t]=!0)}}return r}if(!r||"object"!=typeof r){if(s(t)){for(var u=Object.keys(t),d=n&&n.plainObjects?{__proto__:null,0:r}:{0:r},m=0;mn.arrayLimit?c(y(h,n),h.length-1):h}var g=r;return a(r)&&!a(t)&&(g=y(r,n)),a(r)&&a(t)?(t.forEach(function(t,i){if(o.call(r,i)){var a=r[i];a&&"object"==typeof a&&t&&"object"==typeof t?r[i]=e(a,t,n):r[r.length]=t}else r[i]=t}),r):Object.keys(t).reduce(function(r,i){var a=t[i];if(o.call(r,i)?r[i]=e(r[i],a,n):r[i]=a,s(t)&&!s(r)&&c(r,f(t)),s(r)){var l=parseInt(i,10);String(l)===i&&l>=0&&l>f(r)&&p(r,l)}return r},g)}}}function y(){if(l)return a;l=1;var e=r(),t=d(),o=u(),n=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,f=function(e,r){s.apply(e,c(r)?r:[r])},p=Date.prototype.toISOString,y=o.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:y,formatter:o.formatters[y], // deprecated indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},g=function r(o,n,i,a,l,s,p,u,d,y,g,b,v,w,O,E,j,D){for(var x,A=o,L=D,S=0,I=!1;void 0!==(L=L.get(h))&&!I;){var N=L.get(o);if(S+=1,void 0!==N){if(N===S)throw new RangeError("Cyclic object value");I=!0}void 0===L.get(h)&&(S=0)}if("function"==typeof y?A=y(n,A):A instanceof Date?A=v(A):"comma"===i&&c(A)&&(A=t.maybeMap(A,function(e){return e instanceof Date?v(e):e})),null===A){if(s)return d&&!E?d(n,m.encoder,j,"key",w):n;A=""}if("string"==typeof(x=A)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||t.isBuffer(A))return d?[O(E?n:d(n,m.encoder,j,"key",w))+"="+O(d(A,m.encoder,j,"value",w))]:[O(n)+"="+O(String(A))];var _,R=[];if(void 0===A)return R;if("comma"===i&&c(A))E&&d&&(A=t.maybeMap(A,d)),_=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(y))_=y;else{var P=Object.keys(A);_=g?P.sort(g):P}var T=u?String(n).replace(/\./g,"%2E"):String(n),k=a&&c(A)&&1===A.length?T+"[]":T;if(l&&c(A)&&0===A.length)return k+"[]";for(var K=0;K<_.length;++K){var C=_[K],F="object"==typeof C&&C&&void 0!==C.value?C.value:A[C];if(!p||null!==F){var H=b&&u?String(C).replace(/\./g,"%2E"):String(C),M=c(A)?"function"==typeof i?i(k,H):k:k+(b?"."+H:"["+H+"]");D.set(o,S);var Q=e();Q.set(h,D),f(R,r(F,M,i,a,l,s,p,u,"comma"===i&&E&&c(A)?null:d,y,g,b,v,w,O,E,j,Q))}}return R};return a=function(r,t){var a,l=r,s=function(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=o.default;if(void 0!==e.format){if(!n.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var a,l=o.formatters[t],s=m.filter;if(("function"==typeof e.filter||c(e.filter))&&(s=e.filter),a=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:s,format:t,formatter:l,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof s.filter?l=(0,s.filter)("",l):c(s.filter)&&(a=s.filter);var p=[];if("object"!=typeof l||null===l)return"";var u=i[s.arrayFormat],d="comma"===u&&s.commaRoundTrip;a||(a=Object.keys(l)),s.sort&&a.sort(s.sort);for(var y=e(),h=0;h0?O+w:""}}function m(){if(s)return c;s=1;var e=d(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},n=function(e){return e.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},i=function(e,r,t){if(e&&"string"==typeof e&&r.comma&&e.indexOf(",")>-1)return e.split(",");if(r.throwOnLimitExceeded&&t>=r.arrayLimit)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return e},a=function(t,o,n,a){if(t){var l=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(o),a=i?o.slice(0,i.index):o,l=[];if(a){if(!t.plainObjects&&r.call(Object.prototype,a)&&!t.allowPrototypes)return;l[l.length]=a}for(var c=0;null!==(i=n.exec(o))&&c0&&"[]"===r[r.length-1]){var l=r.slice(0,-1).join("");a=Array.isArray(t)&&t[l]?t[l].length:0}for(var c=n?t:i(t,o,a),s=r.length-1;s>=0;--s){var f,p=r[s];if("[]"===p&&o.parseArrays)f=e.isOverflow(c)?c:o.allowEmptyArrays&&(""===c||o.strictNullHandling&&null===c)?[]:e.combine([],c,o.arrayLimit,o.plainObjects);else{f=o.plainObjects?{__proto__:null}:{};var u="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,d=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,y=parseInt(d,10),m=!isNaN(y)&&p!==d&&String(y)===d&&y>=0&&o.parseArrays;if(o.parseArrays||""!==d)if(m&&yf)throw new RangeError("Parameter limit exceeded. Only "+f+" parameter"+(1===f?"":"s")+" allowed.");var u,d=-1,y=l.charset;if(l.charsetSentinel)for(u=0;u-1&&(h=t(h)?[h]:h),l.comma&&t(h)&&h.length>l.arrayLimit){if(l.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+l.arrayLimit+" element"+(1===l.arrayLimit?"":"s")+" allowed in an array.");h=e.combine([],h,l.arrayLimit,l.plainObjects)}if(null!==m){var w=r.call(c,m);w&&("combine"===l.duplicates||g.indexOf("[]=")>-1)?c[m]=e.combine(c[m],h,l.arrayLimit,l.plainObjects):w&&"last"!==l.duplicates||(c[m]=h)}}return c}(l,s):l,p=s.plainObjects?{__proto__:null}:{},u=Object.keys(f),d=0;d