!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=t()}(function(){return function o(n,i,a){function p(e,t){if(!i[e]){if(!n[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}r=i[e]={exports:{}},n[e][0].call(r.exports,function(t){return p(n[e][1][t]||t)},r,r.exports,o,n,i,a)}return i[e].exports}for(var l="function"==typeof require&&require,t=0;to)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var i,a,p,l,c=-1,f=e.charset;if(e.charsetSentinel)for(i=0;i=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t};e.exports=function(t,e){var r=(t=>{if(!t)return u;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=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");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=(void 0===t.charset?u:t).charset,r=(void 0===t.duplicates?u:t).duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||u.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:u.allowEmptyArrays,allowPrototypes:("boolean"==typeof t.allowPrototypes?t:u).allowPrototypes,allowSparse:("boolean"==typeof t.allowSparse?t:u).allowSparse,arrayLimit:("number"==typeof t.arrayLimit?t:u).arrayLimit,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:u).charsetSentinel,comma:("boolean"==typeof t.comma?t:u).comma,decodeDotInKeys:("boolean"==typeof t.decodeDotInKeys?t:u).decodeDotInKeys,decoder:("function"==typeof t.decoder?t:u).decoder,delimiter:("string"==typeof t.delimiter||b.isRegExp(t.delimiter)?t:u).delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:u.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof t.interpretNumericEntities?t:u).interpretNumericEntities,parameterLimit:("number"==typeof t.parameterLimit?t:u).parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:("boolean"==typeof t.plainObjects?t:u).plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:u.strictDepth,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:u).strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}})(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var o="string"==typeof t?l(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),a=0;a{if(!t)return T;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||T.charset;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 r=u.default;if(void 0!==t.format){if(!s.call(u.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=u.formatters[r],i=T.filter;if("function"!=typeof t.filter&&!N(t.filter)||(i=t.filter),o=t.arrayFormat in d?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":T.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===t.allowDots?!0===t.encodeDotInKeys||T.allowDots:!!t.allowDots;return{addQueryPrefix:("boolean"==typeof t.addQueryPrefix?t:T).addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:T).charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:(void 0===t.delimiter?T:t).delimiter,encode:("boolean"==typeof t.encode?t:T).encode,encodeDotInKeys:("boolean"==typeof t.encodeDotInKeys?t:T).encodeDotInKeys,encoder:("function"==typeof t.encoder?t:T).encoder,encodeValuesOnly:("boolean"==typeof t.encodeValuesOnly?t:T).encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:("function"==typeof t.serializeDate?t:T).serializeDate,skipNulls:("boolean"==typeof t.skipNulls?t:T).skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:T).strictNullHandling}})(e),n=("function"==typeof o.filter?r=(0,o.filter)("",r):N(o.filter)&&(p=o.filter),[]);if("object"!=typeof r||null===r)return"";var i=d[o.arrayFormat],a="comma"===i&&o.commaRoundTrip,p=p||Object.keys(r);o.sort&&p.sort(o.sort);for(var l=M(),c=0;c{for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})();e.exports={combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o>6]+s[128|63&y]:y<55296||57344<=y?c[c.length]=s[224|y>>12]+s[128|y>>6&63]+s[128|63&y]:(f+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(f)),c[c.length]=s[240|y>>18]+s[128|y>>12&63]+s[128|y>>6&63]+s[128|63&y])}a+=c.join("")}return a},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(h(t)){for(var r=[],o=0;o{for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o{var e=N(t,0,1),r=N(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(t,K,function(t,e,r,o){n[n.length]=r?k(o,q,"$1"):e||t}),n})(t),o=0{var r,o=t;if(M(F,o)&&(o="%"+(r=F[o])[0]+"%"),M(R,o)){var n=R[o];if(void 0!==(n=n===_?D(o):n)||e)return{alias:r,name:o,value:n};throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!")}throw new u("intrinsic "+t+" does not exist!")})("%"+o+"%",e),i=(n.name,n.value),a=!1,n=n.alias;n&&(o=n[0],W(r,B([0,1],n)));for(var p=1,l=!0;p=r.length?(l=!!(y=S(i,c)))&&"get"in y&&!("originalValue"in y.get)?y.get:i[c]:(l=M(i,c),i[c]),l&&!a&&(R[f]=i)}}return i}},{14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,24:24,26:26,27:27,28:28,30:30,31:31,33:33,34:34,35:35,37:37,38:38,39:39,40:40,41:41,8:8,9:9}],13:[function(t,e,r){var o=t(10),t=t(30);try{n=[].__proto__===Array.prototype}catch(t){if(!(t&&"object"==typeof t&&"code"in t&&"ERR_PROTO_ACCESS"===t.code))throw t}var n=!!n&&t&&t(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;e.exports=n&&"function"==typeof n.get?o([n.get]):"function"==typeof a&&function(t){return a(null==t?t:i(t))}},{10:10,30:30}],30:[function(e,t,r){e=e(29);if(e)try{e([],"length")}catch(t){e=null}t.exports=e},{29:29}],14:[function(t,e,r){var o=Object.defineProperty||!1;if(o)try{o({},"a",{value:1})}catch(t){o=!1}e.exports=o},{}],15:[function(t,e,r){e.exports=EvalError},{}],16:[function(t,e,r){e.exports=Error},{}],17:[function(t,e,r){e.exports=RangeError},{}],18:[function(t,e,r){e.exports=ReferenceError},{}],19:[function(t,e,r){e.exports=SyntaxError},{}],21:[function(t,e,r){e.exports=URIError},{}],22:[function(t,e,r){e.exports=Object},{}],23:[function(t,e,r){function l(t,e){for(var r=[],o=0;o{for(var r=[],o=e||0,n=0;o{for(var r="",o=0;o 0, or `null`');if(q(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var e=a.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function t(e,r){if(e.length>r.maxStringLength)return o=e.length-r.maxStringLength,o="... "+o+" more character"+(1{var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&0"}if(C(r))return 0===r.length?"[]":(u=V(r,d),s&&!(t=>{for(var e=0;e{if(b&&t&&"object"==typeof t)try{b.call(t);try{w.call(t)}catch(t){return 1}return t instanceof Map}catch(t){}})(r)?(c=[],v&&v.call(r,function(t,e){c.push(d(e,r,!0)+" => "+d(t,r))}),ot("Map",b.call(r),c,s)):(t=>{if(w&&t&&"object"==typeof t)try{w.call(t);try{b.call(t)}catch(t){return 1}return t instanceof Set}catch(t){}})(r)?(f=[],S&&S.call(r,function(t){f.push(d(t,r))}),ot("Set",w.call(r),f,s)):(t=>{if(A&&t&&"object"==typeof t)try{A.call(t,A);try{x.call(t,x)}catch(t){return 1}return t instanceof WeakMap}catch(t){}})(r)?H("WeakMap"):(t=>{if(x&&t&&"object"==typeof t)try{x.call(t,x);try{A.call(t,A)}catch(t){return 1}return t instanceof WeakSet}catch(t){}})(r)?H("WeakSet"):(t=>{if(O&&t&&"object"==typeof t)try{return O.call(t),1}catch(t){}})(r)?H("WeakRef"):"[object Number]"!==G(u=r)||M&&"object"==typeof u&&M in u?(t=>{if(t&&"object"==typeof t&&R)try{return R.call(t),1}catch(t){}})(r)?$(d(R.call(r))):"[object Boolean]"!==G(e=r)||M&&"object"==typeof e&&M in e?"[object String]"!==G(t=r)||M&&"object"==typeof t&&M in t?"undefined"!=typeof window&&r===window?"{ [object Window] }":"undefined"!=typeof globalThis&&r===globalThis||void 0!==nt&&r===nt?"{ [object globalThis] }":("[object Date]"!==G(u=r)||M&&"object"==typeof u&&M in u)&&!K(r)?(e=V(r,d),t=N?N(r)===Object.prototype:r instanceof Object||r.constructor===Object,u=r instanceof Object?"":"null prototype",y=!t&&M&&Object(r)===r&&M in r?j.call(G(r),8,-1):u?"Object":"",t=(!t&&"function"==typeof r.constructor&&r.constructor.name?r.constructor.name+" ":"")+(y||u?"["+_.call(I.call([],y||[],u||[]),": ")+"] ":""),0===e.length?t+"{}":s?t+"{"+z(e,s)+"}":t+"{ "+_.call(e,", ")+" }"):String(r):$(d(String(r))):$(Q.call(r)):$(d(Number(r)))};var i=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return i.call(t,e)}function G(t){return r.call(t)}function et(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r{if(t)return i(t,e,!0)})(n,t);return t&&e&&e===t&&(n=void 0),!!t},get:function(t){var e=n;if(e)return(e=i(e,t))&&e.value},has:function(t){return t=t,!!(e=n)&&!!i(e,t);var e},set:function(t,e){var r,o;e=e,(o=i(r=n=n||{next:void 0},t=t))?o.value=e:r.next={key:t,next:r.next,value:e}}};return e}},{20:20,42:42}],44:[function(t,e,r){var o=t(25),n=t(12),i=t(42),a=t(20),p=o("%Map%",!0),l=n("Map.prototype.get",!0),c=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),y=n("Map.prototype.delete",!0),u=n("Map.prototype.size",!0);e.exports=!!p&&function(){var r,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(t){return!!r&&(t=y(r,t),0===u(r)&&(r=void 0),t)},get:function(t){if(r)return l(r,t)},has:function(t){return!!r&&f(r,t)},set:function(t,e){r=r||new p,c(r,t,e)}};return e}},{12:12,20:20,25:25,42:42}],45:[function(t,e,r){var o=t(25),n=t(12),i=t(42),a=t(44),p=t(20),l=o("%WeakMap%",!0),c=n("WeakMap.prototype.get",!0),f=n("WeakMap.prototype.set",!0),y=n("WeakMap.prototype.has",!0),u=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var r,o,e={assert:function(t){if(!e.has(t))throw new p("Side channel does not contain "+i(t))},delete:function(t){if(l&&t&&("object"==typeof t||"function"==typeof t)){if(r)return u(r,t)}else if(a&&o)return o.delete(t);return!1},get:function(t){return l&&t&&("object"==typeof t||"function"==typeof t)&&r?c(r,t):o&&o.get(t)},has:function(t){return l&&t&&("object"==typeof t||"function"==typeof t)&&r?y(r,t):!!o&&o.has(t)},set:function(t,e){l&&t&&("object"==typeof t||"function"==typeof t)?(r=r||new l,f(r,t,e)):a&&(o=o||a()).set(t,e)}};return e}:a},{12:12,20:20,25:25,42:42,44:44}]},{},[2])(2)});