/** * Minified by jsDelivr using Terser v5.10.0. * Original file: /npm/qs@6.10.3/dist/qs.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=t()}}((function(){return function t(e,r,o){function n(a,c){if(!r[a]){if(!e[a]){var p="function"==typeof require&&require;if(!c&&p)return p(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[a]={exports:{}};e[a][0].call(f.exports,(function(t){return n(e[a][1][t]||t)}),f,f.exports,t,e,r,o)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a-1?t.split(","):t},l=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,f=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;f.push(l)}for(var u=0;r.depth>0&&null!==(c=a.exec(i))&&u=0;--i){var a,c=t[i];if("[]"===c&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,f=parseInt(l,10);r.parseArrays||""!==l?!isNaN(f)&&c!==l&&String(f)===l&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==l&&(a[l]=n):a={0:n}}n=a}return n}(f,e,r,o)}};e.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,l={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,y=f.split(e.delimiter,u),s=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(g=i(g)?[g]:g),n.call(l,b)?l[b]=o.combine(l[b],g):l[b]=g}return l}(t,r):t,u=r.plainObjects?Object.create(null):{},y=Object.keys(f),s=0;s0?w.join(",")||null:void 0}];else if(p(y))M=y;else{var U=Object.keys(w);M=s?U.sort(s):U}for(var _=0;_0?S+v:""}},{"./formats":1,"./utils":5,"side-channel":16}],5:[function(t,e,r){"use strict";var o=t("./formats"),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===o.RFC1738&&(40===f||41===f)?p+=c.charAt(l):f<128?p+=a[f]:f<2048?p+=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?p+=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(l+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(l)),p+=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}return p},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o-1?n(r):r}},{"./":8,"get-intrinsic":11}],8:[function(t,e,r){"use strict";var o=t("function-bind"),n=t("get-intrinsic"),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||o.call(a,i),p=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}e.exports=function(t){var e=c(o,a,arguments);if(p&&l){var r=p(e,"length");r.configurable&&l(e,"length",{value:1+f(0,t.length-(arguments.length-1))})}return e};var u=function(){return c(o,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u},{"function-bind":10,"get-intrinsic":11}],9:[function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";e.exports=function(t){var e=this;if("function"!=typeof e||i.call(e)!==a)throw new TypeError(o+e);for(var r,c=n.call(arguments,1),p=function(){if(this instanceof r){var o=e.apply(this,c.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,c.concat(n.call(arguments)))},l=Math.max(0,e.length-c.length),f=[],u=0;u1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=x(t),o=r.length>0?r[0]:"",i=E("%"+o+"%",e),c=i.name,l=i.value,f=!1,u=i.alias;u&&(o=u[0],j(r,S([0,1],u)));for(var y=1,s=!0;y=r.length){var h=p(l,d);l=(s=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[d]}else s=v(l,d),l=l[d];s&&!f&&(b[c]=l)}}return l}},{"function-bind":10,has:14,"has-symbols":12}],12:[function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=t("./shams");e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},{"./shams":13}],13:[function(t,e,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},{}],14:[function(t,e,r){"use strict";var o=t("function-bind");e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":10}],15:[function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,p=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&p&&"function"==typeof p.get?p.get:null,f=c&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,b=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,h=String.prototype.slice,v=String.prototype.replace,S=String.prototype.toUpperCase,j=String.prototype.toLowerCase,A=RegExp.prototype.test,O=Array.prototype.concat,w=Array.prototype.join,P=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-x(-t):x(t);if(o!==t){var n=String(o),i=h.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var U=t("./util.inspect").custom,_=U&&T(U)?U:null;function W(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function B(t){return v.call(String(t),/"/g,""")}function C(t){return!("[object Array]"!==q(t)||N&&"object"==typeof t&&N in t)}function T(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}e.exports=function t(e,r,o,n){var c=r||{};if(G(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=!G(c,"customInspect")||c.customInspect;if("boolean"!=typeof p&&"symbol"!==p)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return b?D(e,S):S}if("bigint"==typeof e){var A=String(e)+"n";return b?D(e,A):A}var x=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof e)return C(e)?"[Array]":"[Object]";var F=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(c,o);if(void 0===n)n=[];else if($(n,e)>=0)return"[Circular]";function U(e,r,i){if(r&&(n=P.call(n)).push(r),i){var a={depth:c.depth};return G(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,o+1,n)}return t(e,c,o+1,n)}if("function"==typeof e){var L=function(t){if(t.name)return t.name;var e=m.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),V=X(e,U);return"[Function"+(L?": "+L:" (anonymous)")+"]"+(V.length>0?" { "+w.call(V,", ")+" }":"")}if(T(e)){var Y=I?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||I?Y:z(Y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var Z="<"+j.call(String(e.nodeName)),tt=e.attributes||[],et=0;et"}if(C(e)){if(0===e.length)return"[]";var rt=X(e,U);return F&&!function(t){for(var e=0;e=0)return!1;return!0}(rt)?"["+K(rt,F)+"]":"[ "+w.call(rt,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||N&&"object"==typeof t&&N in t)}(e)){var ot=X(e,U);return"cause"in e&&!R.call(e,"cause")?"{ ["+String(e)+"] "+w.call(O.call("[cause]: "+U(e.cause),ot),", ")+" }":0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(ot,", ")+" }"}if("object"==typeof e&&p){if(_&&"function"==typeof e[_])return e[_]();if("symbol"!==p&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var nt=[];return a.call(e,(function(t,r){nt.push(U(r,e,!0)+" => "+U(t,e))})),J("Map",i.call(e),nt,F)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var it=[];return f.call(e,(function(t){it.push(U(t,e))})),J("Set",l.call(e),it,F)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t,u);try{y.call(t,y)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Q("WeakMap");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{u.call(t,u)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Q("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(t){}return!1}(e))return Q("WeakRef");if(function(t){return!("[object Number]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return z(U(Number(e)));if(function(t){if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}(e))return z(U(E.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return z(d.call(e));if(function(t){return!("[object String]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return z(U(String(e)));if(!function(t){return!("[object Date]"!==q(t)||N&&"object"==typeof t&&N in t)}(e)&&!function(t){return!("[object RegExp]"!==q(t)||N&&"object"==typeof t&&N in t)}(e)){var at=X(e,U),ct=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",lt=!ct&&N&&Object(e)===e&&N in e?h.call(q(e),8,-1):pt?"Object":"",ft=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(lt||pt?"["+w.call(O.call([],lt||[],pt||[]),": ")+"] ":"");return 0===at.length?ft+"{}":F?ft+"{"+K(at,F)+"}":ft+"{ "+w.call(at,", ")+" }"}return String(e)};var L=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return L.call(t,e)}function q(t){return b.call(t)}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return H(h.call(t,0,e.maxStringLength),e)+o}return W(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",e)}function V(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+S.call(e.toString(16))}function z(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function J(t,e,r,o){return t+" ("+e+") {"+(o?K(r,o):w.call(r,", "))+"}"}function K(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+w.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=C(t),o=[];if(r){o.length=t.length;for(var n=0;n