@nocobase/plugin-multi-keyword-filter 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/0d9b6225e99c9b66.js +10 -0
  6. package/dist/client/MultipleKeywordsInput.d.ts +15 -0
  7. package/dist/client/index.d.ts +15 -0
  8. package/dist/client/index.js +10 -0
  9. package/dist/client/interceptor.d.ts +9 -0
  10. package/dist/client/locale.d.ts +10 -0
  11. package/dist/externalVersion.js +20 -0
  12. package/dist/index.d.ts +10 -0
  13. package/dist/index.js +48 -0
  14. package/dist/locale/de-DE.json +18 -0
  15. package/dist/locale/en-US.json +18 -0
  16. package/dist/locale/es-ES.json +18 -0
  17. package/dist/locale/fr-FR.json +18 -0
  18. package/dist/locale/hu-HU.json +18 -0
  19. package/dist/locale/id-ID.json +18 -0
  20. package/dist/locale/it-IT.json +18 -0
  21. package/dist/locale/ja-JP.json +18 -0
  22. package/dist/locale/ko-KR.json +18 -0
  23. package/dist/locale/nl-NL.json +18 -0
  24. package/dist/locale/pt-BR.json +18 -0
  25. package/dist/locale/ru-RU.json +18 -0
  26. package/dist/locale/tr-TR.json +18 -0
  27. package/dist/locale/uk-UA.json +18 -0
  28. package/dist/locale/vi-VN.json +18 -0
  29. package/dist/locale/zh-CN.json +18 -0
  30. package/dist/locale/zh-TW.json +18 -0
  31. package/dist/node_modules/qs/.editorconfig +43 -0
  32. package/dist/node_modules/qs/.eslintrc +38 -0
  33. package/dist/node_modules/qs/.github/FUNDING.yml +12 -0
  34. package/dist/node_modules/qs/.nycrc +13 -0
  35. package/dist/node_modules/qs/dist/qs.js +2087 -0
  36. package/dist/node_modules/qs/lib/formats.js +23 -0
  37. package/dist/node_modules/qs/lib/index.js +1 -0
  38. package/dist/node_modules/qs/lib/parse.js +264 -0
  39. package/dist/node_modules/qs/lib/stringify.js +320 -0
  40. package/dist/node_modules/qs/lib/utils.js +252 -0
  41. package/dist/node_modules/qs/package.json +1 -0
  42. package/dist/node_modules/qs/test/empty-keys-cases.js +37 -0
  43. package/dist/node_modules/qs/test/parse.js +898 -0
  44. package/dist/node_modules/qs/test/stringify.js +972 -0
  45. package/dist/node_modules/qs/test/utils.js +136 -0
  46. package/dist/server/index.d.ts +9 -0
  47. package/dist/server/index.js +42 -0
  48. package/dist/server/middlewares.d.ts +10 -0
  49. package/dist/server/middlewares.js +63 -0
  50. package/dist/server/plugin.d.ts +19 -0
  51. package/dist/server/plugin.js +58 -0
  52. package/package.json +31 -0
  53. package/server.d.ts +2 -0
  54. package/server.js +1 -0
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var replace = String.prototype.replace;
4
+ var percentTwenties = /%20/g;
5
+
6
+ var Format = {
7
+ RFC1738: 'RFC1738',
8
+ RFC3986: 'RFC3986'
9
+ };
10
+
11
+ module.exports = {
12
+ 'default': Format.RFC3986,
13
+ formatters: {
14
+ RFC1738: function (value) {
15
+ return replace.call(value, percentTwenties, '+');
16
+ },
17
+ RFC3986: function (value) {
18
+ return String(value);
19
+ }
20
+ },
21
+ RFC1738: Format.RFC1738,
22
+ RFC3986: Format.RFC3986
23
+ };
@@ -0,0 +1 @@
1
+ (function(){var e={803:function(e,r,t){"use strict";var n=t(538);var o=t(977);var a=o(n("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,r){var t=n(e,!!r);if(typeof t==="function"&&a(e,".prototype.")>-1){return o(t)}return t}},977:function(e,r,t){"use strict";var n=t(200);var o=t(538);var a=t(473);var i=o("%TypeError%");var f=o("%Function.prototype.apply%");var l=o("%Function.prototype.call%");var u=o("%Reflect.apply%",true)||n.call(l,f);var p=o("%Object.defineProperty%",true);var c=o("%Math.max%");if(p){try{p({},"a",{value:1})}catch(e){p=null}}e.exports=function callBind(e){if(typeof e!=="function"){throw new i("a function is required")}var r=u(n,l,arguments);return a(r,1+c(0,e.length-(arguments.length-1)),true)};var s=function applyBind(){return u(n,f,arguments)};if(p){p(e.exports,"apply",{value:s})}else{e.exports.apply=s}},708:function(e,r,t){"use strict";var n=t(538);var o=n("%Object.defineProperty%",true);var a=function hasPropertyDescriptors(){if(o){try{o({},"a",{value:1});return true}catch(e){return false}}return false};a.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!a()){return null}try{return o([],"length",{value:1}).length!==1}catch(e){return true}};e.exports=a},473:function(e,r,t){"use strict";var n=t(538);var o=t(564);var a=t(708)();var i=t(501);var f=n("%TypeError%");var l=n("%Math.floor%");e.exports=function setFunctionLength(e,r){if(typeof e!=="function"){throw new f("`fn` is not a function")}if(typeof r!=="number"||r<0||r>4294967295||l(r)!==r){throw new f("`length` must be a positive 32-bit integer")}var t=arguments.length>2&&!!arguments[2];var n=true;var u=true;if("length"in e&&i){var p=i(e,"length");if(p&&!p.configurable){n=false}if(p&&!p.writable){u=false}}if(n||u||!t){if(a){o(e,"length",r,true,true)}else{o(e,"length",r)}}return e}},564:function(e,r,t){"use strict";var n=t(570)();var o=t(538);var a=n&&o("%Object.defineProperty%",true);if(a){try{a({},"a",{value:1})}catch(e){a=false}}var i=o("%SyntaxError%");var f=o("%TypeError%");var l=t(501);e.exports=function defineDataProperty(e,r,t){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new f("`obj` must be an object or a function`")}if(typeof r!=="string"&&typeof r!=="symbol"){throw new f("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new f("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new f("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new f("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new f("`loose`, if provided, must be a boolean")}var n=arguments.length>3?arguments[3]:null;var o=arguments.length>4?arguments[4]:null;var u=arguments.length>5?arguments[5]:null;var p=arguments.length>6?arguments[6]:false;var c=!!l&&l(e,r);if(a){a(e,r,{configurable:u===null&&c?c.configurable:!u,enumerable:n===null&&c?c.enumerable:!n,value:t,writable:o===null&&c?c.writable:!o})}else if(p||!n&&!o&&!u){e[r]=t}else{throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},570:function(e,r,t){"use strict";var n=t(538);var o=n("%Object.defineProperty%",true);var a=function hasPropertyDescriptors(){if(o){try{o({},"a",{value:1});return true}catch(e){return false}}return false};a.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!a()){return null}try{return o([],"length",{value:1}).length!==1}catch(e){return true}};e.exports=a},320:function(e){"use strict";var r="Function.prototype.bind called on incompatible ";var t=Object.prototype.toString;var n=Math.max;var o="[object Function]";var a=function concatty(e,r){var t=[];for(var n=0;n<e.length;n+=1){t[n]=e[n]}for(var o=0;o<r.length;o+=1){t[o+e.length]=r[o]}return t};var i=function slicy(e,r){var t=[];for(var n=r||0,o=0;n<e.length;n+=1,o+=1){t[o]=e[n]}return t};var joiny=function(e,r){var t="";for(var n=0;n<e.length;n+=1){t+=e[n];if(n+1<e.length){t+=r}}return t};e.exports=function bind(e){var f=this;if(typeof f!=="function"||t.apply(f)!==o){throw new TypeError(r+f)}var l=i(arguments,1);var u;var binder=function(){if(this instanceof u){var r=f.apply(this,a(l,arguments));if(Object(r)===r){return r}return this}return f.apply(e,a(l,arguments))};var p=n(0,f.length-l.length);var c=[];for(var s=0;s<p;s++){c[s]="$"+s}u=Function("binder","return function ("+joiny(c,",")+"){ return binder.apply(this,arguments); }")(binder);if(f.prototype){var y=function Empty(){};y.prototype=f.prototype;u.prototype=new y;y.prototype=null}return u}},200:function(e,r,t){"use strict";var n=t(320);e.exports=Function.prototype.bind||n},538:function(e,r,t){"use strict";var n;var o=SyntaxError;var a=Function;var i=TypeError;var getEvalledConstructor=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}};var f=Object.getOwnPropertyDescriptor;if(f){try{f({},"")}catch(e){f=null}}var throwTypeError=function(){throw new i};var l=f?function(){try{arguments.callee;return throwTypeError}catch(e){try{return f(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var u=t(587)();var p=t(894)();var c=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null);var s={};var y=typeof Uint8Array==="undefined"||!c?n:c(Uint8Array);var v={"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":u&&c?c([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&c?c(c([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!u||!c?n:c((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!u||!c?n:c((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&c?c(""[Symbol.iterator]()):n,"%Symbol%":u?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet};if(c){try{null.error}catch(e){var d=c(c(e));v["%Error.prototype%"]=d}}var g=function doEval(e){var r;if(e==="%AsyncFunction%"){r=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){r=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){r=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var t=doEval("%AsyncGeneratorFunction%");if(t){r=t.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&c){r=c(n.prototype)}}v[e]=r;return r};var b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var h=t(200);var m=t(157);var S=h.call(Function.call,Array.prototype.concat);var w=h.call(Function.apply,Array.prototype.splice);var O=h.call(Function.call,String.prototype.replace);var j=h.call(Function.call,String.prototype.slice);var A=h.call(Function.call,RegExp.prototype.exec);var P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var x=/\\(\\)?/g;var E=function stringToPath(e){var r=j(e,0,1);var t=j(e,-1);if(r==="%"&&t!=="%"){throw new o("invalid intrinsic syntax, expected closing `%`")}else if(t==="%"&&r!=="%"){throw new o("invalid intrinsic syntax, expected opening `%`")}var n=[];O(e,P,(function(e,r,t,o){n[n.length]=t?O(o,x,"$1"):r||e}));return n};var k=function getBaseIntrinsic(e,r){var t=e;var n;if(m(b,t)){n=b[t];t="%"+n[0]+"%"}if(m(v,t)){var a=v[t];if(a===s){a=g(t)}if(typeof a==="undefined"&&!r){throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:t,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,r){if(typeof e!=="string"||e.length===0){throw new i("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof r!=="boolean"){throw new i('"allowMissing" argument must be a boolean')}if(A(/^%?[^%]*%?$/,e)===null){throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var t=E(e);var a=t.length>0?t[0]:"";var l=k("%"+a+"%",r);var u=l.name;var p=l.value;var c=false;var s=l.alias;if(s){a=s[0];w(t,S([0,1],s))}for(var y=1,d=true;y<t.length;y+=1){var g=t[y];var b=j(g,0,1);var h=j(g,-1);if((b==='"'||b==="'"||b==="`"||(h==='"'||h==="'"||h==="`"))&&b!==h){throw new o("property names with quotes must have matching quotes")}if(g==="constructor"||!d){c=true}a+="."+g;u="%"+a+"%";if(m(v,u)){p=v[u]}else if(p!=null){if(!(g in p)){if(!r){throw new i("base intrinsic for "+e+" exists, but the property is not available.")}return void n}if(f&&y+1>=t.length){var O=f(p,g);d=!!O;if(d&&"get"in O&&!("originalValue"in O.get)){p=O.get}else{p=p[g]}}else{d=m(p,g);p=p[g]}if(d&&!c){v[u]=p}}}return p}},501:function(e,r,t){"use strict";var n=t(538);var o=n("%Object.getOwnPropertyDescriptor%",true);if(o){try{o([],"length")}catch(e){o=null}}e.exports=o},894:function(e){"use strict";var r={foo:{}};var t=Object;e.exports=function hasProto(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof t)}},587:function(e,r,t){"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var o=t(747);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return o()}},747:function(e){"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var r=Symbol("test");var t=Object(r);if(typeof r==="string"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}var n=42;e[r]=n;for(r in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r){return false}if(!Object.prototype.propertyIsEnumerable.call(e,r)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==n||a.enumerable!==true){return false}}return true}},157:function(e,r,t){"use strict";var n=Function.prototype.call;var o=Object.prototype.hasOwnProperty;var a=t(200);e.exports=a.call(n,o)},504:function(e,r,t){var n=typeof Map==="function"&&Map.prototype;var o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var a=n&&o&&typeof o.get==="function"?o.get:null;var i=n&&Map.prototype.forEach;var f=typeof Set==="function"&&Set.prototype;var l=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var u=f&&l&&typeof l.get==="function"?l.get:null;var p=f&&Set.prototype.forEach;var c=typeof WeakMap==="function"&&WeakMap.prototype;var s=c?WeakMap.prototype.has:null;var y=typeof WeakSet==="function"&&WeakSet.prototype;var v=y?WeakSet.prototype.has:null;var d=typeof WeakRef==="function"&&WeakRef.prototype;var g=d?WeakRef.prototype.deref:null;var b=Boolean.prototype.valueOf;var h=Object.prototype.toString;var m=Function.prototype.toString;var S=String.prototype.match;var w=String.prototype.slice;var O=String.prototype.replace;var j=String.prototype.toUpperCase;var A=String.prototype.toLowerCase;var P=RegExp.prototype.test;var x=Array.prototype.concat;var E=Array.prototype.join;var k=Array.prototype.slice;var _=Math.floor;var R=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var I=Object.getOwnPropertySymbols;var F=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var N=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var B=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N?"object":"symbol")?Symbol.toStringTag:null;var D=Object.prototype.propertyIsEnumerable;var M=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,r){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||P.call(/e/,r)){return r}var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var n=e<0?-_(-e):_(e);if(n!==e){var o=String(n);var a=w.call(r,o.length+1);return O.call(o,t,"$&_")+"."+O.call(O.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(r,t,"$&_")}var T=t(265);var U=T.custom;var C=isSymbol(U)?U:null;e.exports=function inspect_(e,r,t,n){var o=r||{};if(has(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var f=has(o,"customInspect")?o.customInspect:true;if(typeof f!=="boolean"&&f!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var l=o.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,o)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var c=String(e);return l?addNumericSeparator(e,c):c}if(typeof e==="bigint"){var s=String(e)+"n";return l?addNumericSeparator(e,s):s}var y=typeof o.depth==="undefined"?5:o.depth;if(typeof t==="undefined"){t=0}if(t>=y&&y>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var v=getIndent(o,t);if(typeof n==="undefined"){n=[]}else if(indexOf(n,e)>=0){return"[Circular]"}function inspect(e,r,a){if(r){n=k.call(n);n.push(r)}if(a){var i={depth:o.depth};if(has(o,"quoteStyle")){i.quoteStyle=o.quoteStyle}return inspect_(e,i,t+1,n)}return inspect_(e,o,t+1,n)}if(typeof e==="function"&&!isRegExp(e)){var d=nameOf(e);var g=arrObjKeys(e,inspect);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(g.length>0?" { "+E.call(g,", ")+" }":"")}if(isSymbol(e)){var h=N?O.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(e);return typeof e==="object"&&!N?markBoxed(h):h}if(isElement(e)){var m="<"+A.call(String(e.nodeName));var S=e.attributes||[];for(var j=0;j<S.length;j++){m+=" "+S[j].name+"="+wrapQuotes(quote(S[j].value),"double",o)}m+=">";if(e.childNodes&&e.childNodes.length){m+="..."}m+="</"+A.call(String(e.nodeName))+">";return m}if(isArray(e)){if(e.length===0){return"[]"}var P=arrObjKeys(e,inspect);if(v&&!singleLineValues(P)){return"["+indentedJoin(P,v)+"]"}return"[ "+E.call(P,", ")+" ]"}if(isError(e)){var _=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!D.call(e,"cause")){return"{ ["+String(e)+"] "+E.call(x.call("[cause]: "+inspect(e.cause),_),", ")+" }"}if(_.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+E.call(_,", ")+" }"}if(typeof e==="object"&&f){if(C&&typeof e[C]==="function"&&T){return T(e,{depth:y-t})}else if(f!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var I=[];if(i){i.call(e,(function(r,t){I.push(inspect(t,e,true)+" => "+inspect(r,e))}))}return collectionOf("Map",a.call(e),I,v)}if(isSet(e)){var U=[];if(p){p.call(e,(function(r){U.push(inspect(r,e))}))}return collectionOf("Set",u.call(e),U,v)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(R.call(e)))}if(isBoolean(e)){return markBoxed(b.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(typeof window!=="undefined"&&e===window){return"{ [object Window] }"}if(e===global){return"{ [object globalThis] }"}if(!isDate(e)&&!isRegExp(e)){var W=arrObjKeys(e,inspect);var L=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object;var q=e instanceof Object?"":"null prototype";var G=!L&&B&&Object(e)===e&&B in e?w.call(toStr(e),8,-1):q?"Object":"";var Q=L||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var $=Q+(G||q?"["+E.call(x.call([],G||[],q||[]),": ")+"] ":"");if(W.length===0){return $+"{}"}if(v){return $+"{"+indentedJoin(W,v)+"}"}return $+"{ "+E.call(W,", ")+" }"}return String(e)};function wrapQuotes(e,r,t){var n=(t.quoteStyle||r)==="double"?'"':"'";return n+e+n}function quote(e){return O.call(String(e),/"/g,"&quot;")}function isArray(e){return toStr(e)==="[object Array]"&&(!B||!(typeof e==="object"&&B in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!B||!(typeof e==="object"&&B in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!B||!(typeof e==="object"&&B in e))}function isError(e){return toStr(e)==="[object Error]"&&(!B||!(typeof e==="object"&&B in e))}function isString(e){return toStr(e)==="[object String]"&&(!B||!(typeof e==="object"&&B in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!B||!(typeof e==="object"&&B in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!B||!(typeof e==="object"&&B in e))}function isSymbol(e){if(N){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!F){return false}try{F.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!R){return false}try{R.call(e);return true}catch(e){}return false}var W=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,r){return W.call(e,r)}function toStr(e){return h.call(e)}function nameOf(e){if(e.name){return e.name}var r=S.call(m.call(e),/^function\s*([\w$]+)/);if(r){return r[1]}return null}function indexOf(e,r){if(e.indexOf){return e.indexOf(r)}for(var t=0,n=e.length;t<n;t++){if(e[t]===r){return t}}return-1}function isMap(e){if(!a||!e||typeof e!=="object"){return false}try{a.call(e);try{u.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!s||!e||typeof e!=="object"){return false}try{s.call(e,s);try{v.call(e,v)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!g||!e||typeof e!=="object"){return false}try{g.call(e);return true}catch(e){}return false}function isSet(e){if(!u||!e||typeof e!=="object"){return false}try{u.call(e);try{a.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!v||!e||typeof e!=="object"){return false}try{v.call(e,v);try{s.call(e,s)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength;var n="... "+t+" more character"+(t>1?"s":"");return inspectString(w.call(e,0,r.maxStringLength),r)+n}var o=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(o,"single",r)}function lowbyte(e){var r=e.charCodeAt(0);var t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];if(t){return"\\"+t}return"\\x"+(r<16?"0":"")+j.call(r.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,r,t,n){var o=n?indentedJoin(t,n):E.call(t,", ");return e+" ("+r+") {"+o+"}"}function singleLineValues(e){for(var r=0;r<e.length;r++){if(indexOf(e[r],"\n")>=0){return false}}return true}function getIndent(e,r){var t;if(e.indent==="\t"){t="\t"}else if(typeof e.indent==="number"&&e.indent>0){t=E.call(Array(e.indent+1)," ")}else{return null}return{base:t,prev:E.call(Array(r+1),t)}}function indentedJoin(e,r){if(e.length===0){return""}var t="\n"+r.prev+r.base;return t+E.call(e,","+t)+"\n"+r.prev}function arrObjKeys(e,r){var t=isArray(e);var n=[];if(t){n.length=e.length;for(var o=0;o<e.length;o++){n[o]=has(e,o)?r(e[o],e):""}}var a=typeof I==="function"?I(e):[];var i;if(N){i={};for(var f=0;f<a.length;f++){i["$"+a[f]]=a[f]}}for(var l in e){if(!has(e,l)){continue}if(t&&String(Number(l))===l&&l<e.length){continue}if(N&&i["$"+l]instanceof Symbol){continue}else if(P.call(/[^\w$]/,l)){n.push(r(l,e)+": "+r(e[l],e))}else{n.push(l+": "+r(e[l],e))}}if(typeof I==="function"){for(var u=0;u<a.length;u++){if(D.call(e,a[u])){n.push("["+r(a[u])+"]: "+r(e[a[u]],e))}}}return n}},265:function(e,r,t){e.exports=t(837).inspect},907:function(e){"use strict";var r=String.prototype.replace;var t=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return r.call(e,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},760:function(e,r,t){"use strict";var n=t(954);var o=t(912);var a=t(907);e.exports={formats:a,parse:o,stringify:n}},912:function(e,r,t){"use strict";var n=t(360);var o=Object.prototype.hasOwnProperty;var a=Array.isArray;var i={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(parseInt(r,10))}))};var parseArrayValue=function(e,r){if(e&&typeof e==="string"&&r.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var f="utf8=%26%2310003%3B";var l="utf8=%E2%9C%93";var u=function parseQueryStringValues(e,r){var t={__proto__:null};var u=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;var p=r.parameterLimit===Infinity?undefined:r.parameterLimit;var c=u.split(r.delimiter,p);var s=-1;var y;var v=r.charset;if(r.charsetSentinel){for(y=0;y<c.length;++y){if(c[y].indexOf("utf8=")===0){if(c[y]===l){v="utf-8"}else if(c[y]===f){v="iso-8859-1"}s=y;y=c.length}}}for(y=0;y<c.length;++y){if(y===s){continue}var d=c[y];var g=d.indexOf("]=");var b=g===-1?d.indexOf("="):g+1;var h,m;if(b===-1){h=r.decoder(d,i.decoder,v,"key");m=r.strictNullHandling?null:""}else{h=r.decoder(d.slice(0,b),i.decoder,v,"key");m=n.maybeMap(parseArrayValue(d.slice(b+1),r),(function(e){return r.decoder(e,i.decoder,v,"value")}))}if(m&&r.interpretNumericEntities&&v==="iso-8859-1"){m=interpretNumericEntities(m)}if(d.indexOf("[]=")>-1){m=a(m)?[m]:m}if(o.call(t,h)){t[h]=n.combine(t[h],m)}else{t[h]=m}}return t};var parseObject=function(e,r,t,n){var o=n?r:parseArrayValue(r,t);for(var a=e.length-1;a>=0;--a){var i;var f=e[a];if(f==="[]"&&t.parseArrays){i=[].concat(o)}else{i=t.plainObjects?Object.create(null):{};var l=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f;var u=parseInt(l,10);if(!t.parseArrays&&l===""){i={0:o}}else if(!isNaN(u)&&f!==l&&String(u)===l&&u>=0&&(t.parseArrays&&u<=t.arrayLimit)){i=[];i[u]=o}else if(l!=="__proto__"){i[l]=o}}o=i}return o};var p=function parseQueryStringKeys(e,r,t,n){if(!e){return}var a=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var f=/(\[[^[\]]*])/g;var l=t.depth>0&&i.exec(a);var u=l?a.slice(0,l.index):a;var p=[];if(u){if(!t.plainObjects&&o.call(Object.prototype,u)){if(!t.allowPrototypes){return}}p.push(u)}var c=0;while(t.depth>0&&(l=f.exec(a))!==null&&c<t.depth){c+=1;if(!t.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))){if(!t.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+a.slice(l.index)+"]")}return parseObject(p,r,t,n)};var c=function normalizeParseOptions(e){if(!e){return i}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=typeof e.charset==="undefined"?i.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?i.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,r){var t=c(r);if(e===""||e===null||typeof e==="undefined"){return t.plainObjects?Object.create(null):{}}var o=typeof e==="string"?u(e,t):e;var a=t.plainObjects?Object.create(null):{};var i=Object.keys(o);for(var f=0;f<i.length;++f){var l=i[f];var s=p(l,o[l],t,typeof e==="string");a=n.merge(a,s,t)}if(t.allowSparse===true){return a}return n.compact(a)}},954:function(e,r,t){"use strict";var n=t(334);var o=t(360);var a=t(907);var i=Object.prototype.hasOwnProperty;var f={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}};var l=Array.isArray;var u=Array.prototype.push;var pushToArray=function(e,r){u.apply(e,l(r)?r:[r])};var p=Date.prototype.toISOString;var c=a["default"];var s={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:o.encode,encodeValuesOnly:false,format:c,formatter:a.formatters[c],indices:false,serializeDate:function serializeDate(e){return p.call(e)},skipNulls:false,strictNullHandling:false};var y=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var v={};var d=function stringify(e,r,t,a,i,f,u,p,c,d,g,b,h,m,S,w){var O=e;var j=w;var A=0;var P=false;while((j=j.get(v))!==void undefined&&!P){var x=j.get(e);A+=1;if(typeof x!=="undefined"){if(x===A){throw new RangeError("Cyclic object value")}else{P=true}}if(typeof j.get(v)==="undefined"){A=0}}if(typeof p==="function"){O=p(r,O)}else if(O instanceof Date){O=g(O)}else if(t==="comma"&&l(O)){O=o.maybeMap(O,(function(e){if(e instanceof Date){return g(e)}return e}))}if(O===null){if(i){return u&&!m?u(r,s.encoder,S,"key",b):r}O=""}if(y(O)||o.isBuffer(O)){if(u){var E=m?r:u(r,s.encoder,S,"key",b);return[h(E)+"="+h(u(O,s.encoder,S,"value",b))]}return[h(r)+"="+h(String(O))]}var k=[];if(typeof O==="undefined"){return k}var _;if(t==="comma"&&l(O)){if(m&&u){O=o.maybeMap(O,u)}_=[{value:O.length>0?O.join(",")||null:void undefined}]}else if(l(p)){_=p}else{var R=Object.keys(O);_=c?R.sort(c):R}var I=a&&l(O)&&O.length===1?r+"[]":r;for(var F=0;F<_.length;++F){var N=_[F];var B=typeof N==="object"&&typeof N.value!=="undefined"?N.value:O[N];if(f&&B===null){continue}var D=l(O)?typeof t==="function"?t(I,N):I:I+(d?"."+N:"["+N+"]");w.set(e,A);var M=n();M.set(v,w);pushToArray(k,stringify(B,D,t,a,i,f,t==="comma"&&m&&l(O)?null:u,p,c,d,g,b,h,m,S,M))}return k};var g=function normalizeStringifyOptions(e){if(!e){return s}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var r=e.charset||s.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=a["default"];if(typeof e.format!=="undefined"){if(!i.call(a.formatters,e.format)){throw new TypeError("Unknown format option provided.")}t=e.format}var n=a.formatters[t];var o=s.filter;if(typeof e.filter==="function"||l(e.filter)){o=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:s.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?s.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:s.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?s.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:s.encode,encoder:typeof e.encoder==="function"?e.encoder:s.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:s.encodeValuesOnly,filter:o,format:t,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:s.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:s.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,r){var t=e;var o=g(r);var a;var i;if(typeof o.filter==="function"){i=o.filter;t=i("",t)}else if(l(o.filter)){i=o.filter;a=i}var u=[];if(typeof t!=="object"||t===null){return""}var p;if(r&&r.arrayFormat in f){p=r.arrayFormat}else if(r&&"indices"in r){p=r.indices?"indices":"repeat"}else{p="indices"}var c=f[p];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var s=c==="comma"&&r&&r.commaRoundTrip;if(!a){a=Object.keys(t)}if(o.sort){a.sort(o.sort)}var y=n();for(var v=0;v<a.length;++v){var b=a[v];if(o.skipNulls&&t[b]===null){continue}pushToArray(u,d(t[b],b,c,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,y))}var h=u.join(o.delimiter);var m=o.addQueryPrefix===true?"?":"";if(o.charsetSentinel){if(o.charset==="iso-8859-1"){m+="utf8=%26%2310003%3B&"}else{m+="utf8=%E2%9C%93&"}}return h.length>0?m+h:""}},360:function(e,r,t){"use strict";var n=t(907);var o=Object.prototype.hasOwnProperty;var a=Array.isArray;var i=function(){var e=[];for(var r=0;r<256;++r){e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase())}return e}();var f=function compactQueue(e){while(e.length>1){var r=e.pop();var t=r.obj[r.prop];if(a(t)){var n=[];for(var o=0;o<t.length;++o){if(typeof t[o]!=="undefined"){n.push(t[o])}}r.obj[r.prop]=n}}};var l=function arrayToObject(e,r){var t=r&&r.plainObjects?Object.create(null):{};for(var n=0;n<e.length;++n){if(typeof e[n]!=="undefined"){t[n]=e[n]}}return t};var u=function merge(e,r,t){if(!r){return e}if(typeof r!=="object"){if(a(e)){e.push(r)}else if(e&&typeof e==="object"){if(t&&(t.plainObjects||t.allowPrototypes)||!o.call(Object.prototype,r)){e[r]=true}}else{return[e,r]}return e}if(!e||typeof e!=="object"){return[e].concat(r)}var n=e;if(a(e)&&!a(r)){n=l(e,t)}if(a(e)&&a(r)){r.forEach((function(r,n){if(o.call(e,n)){var a=e[n];if(a&&typeof a==="object"&&r&&typeof r==="object"){e[n]=merge(a,r,t)}else{e.push(r)}}else{e[n]=r}}));return e}return Object.keys(r).reduce((function(e,n){var a=r[n];if(o.call(e,n)){e[n]=merge(e[n],a,t)}else{e[n]=a}return e}),n)};var p=function assignSingleSource(e,r){return Object.keys(r).reduce((function(e,t){e[t]=r[t];return e}),e)};var decode=function(e,r,t){var n=e.replace(/\+/g," ");if(t==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var c=function encode(e,r,t,o,a){if(e.length===0){return e}var f=e;if(typeof e==="symbol"){f=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){f=String(e)}if(t==="iso-8859-1"){return escape(f).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var l="";for(var u=0;u<f.length;++u){var p=f.charCodeAt(u);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(p===40||p===41)){l+=f.charAt(u);continue}if(p<128){l=l+i[p];continue}if(p<2048){l=l+(i[192|p>>6]+i[128|p&63]);continue}if(p<55296||p>=57344){l=l+(i[224|p>>12]+i[128|p>>6&63]+i[128|p&63]);continue}u+=1;p=65536+((p&1023)<<10|f.charCodeAt(u)&1023);l+=i[240|p>>18]+i[128|p>>12&63]+i[128|p>>6&63]+i[128|p&63]}return l};var s=function compact(e){var r=[{obj:{o:e},prop:"o"}];var t=[];for(var n=0;n<r.length;++n){var o=r[n];var a=o.obj[o.prop];var i=Object.keys(a);for(var l=0;l<i.length;++l){var u=i[l];var p=a[u];if(typeof p==="object"&&p!==null&&t.indexOf(p)===-1){r.push({obj:a,prop:u});t.push(p)}}}f(r);return e};var y=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var v=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var d=function combine(e,r){return[].concat(e,r)};var g=function maybeMap(e,r){if(a(e)){var t=[];for(var n=0;n<e.length;n+=1){t.push(r(e[n]))}return t}return r(e)};e.exports={arrayToObject:l,assign:p,combine:d,compact:s,decode:decode,encode:c,isBuffer:v,isRegExp:y,maybeMap:g,merge:u}},334:function(e,r,t){"use strict";var n=t(538);var o=t(803);var a=t(504);var i=n("%TypeError%");var f=n("%WeakMap%",true);var l=n("%Map%",true);var u=o("WeakMap.prototype.get",true);var p=o("WeakMap.prototype.set",true);var c=o("WeakMap.prototype.has",true);var s=o("Map.prototype.get",true);var y=o("Map.prototype.set",true);var v=o("Map.prototype.has",true);var listGetNode=function(e,r){for(var t=e,n;(n=t.next)!==null;t=n){if(n.key===r){t.next=n.next;n.next=e.next;e.next=n;return n}}};var listGet=function(e,r){var t=listGetNode(e,r);return t&&t.value};var listSet=function(e,r,t){var n=listGetNode(e,r);if(n){n.value=t}else{e.next={key:r,next:e.next,value:t}}};var listHas=function(e,r){return!!listGetNode(e,r)};e.exports=function getSideChannel(){var e;var r;var t;var n={assert:function(e){if(!n.has(e)){throw new i("Side channel does not contain "+a(e))}},get:function(n){if(f&&n&&(typeof n==="object"||typeof n==="function")){if(e){return u(e,n)}}else if(l){if(r){return s(r,n)}}else{if(t){return listGet(t,n)}}},has:function(n){if(f&&n&&(typeof n==="object"||typeof n==="function")){if(e){return c(e,n)}}else if(l){if(r){return v(r,n)}}else{if(t){return listHas(t,n)}}return false},set:function(n,o){if(f&&n&&(typeof n==="object"||typeof n==="function")){if(!e){e=new f}p(e,n,o)}else if(l){if(!r){r=new l}y(r,n,o)}else{if(!t){t={key:{},next:null}}listSet(t,n,o)}}};return n}},837:function(e){"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};var a=true;try{e[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(760);module.exports=t})();
@@ -0,0 +1,264 @@
1
+ 'use strict';
2
+
3
+ var utils = require('./utils');
4
+
5
+ var has = Object.prototype.hasOwnProperty;
6
+ var isArray = Array.isArray;
7
+
8
+ var defaults = {
9
+ allowDots: false,
10
+ allowPrototypes: false,
11
+ allowSparse: false,
12
+ arrayLimit: 20,
13
+ charset: 'utf-8',
14
+ charsetSentinel: false,
15
+ comma: false,
16
+ decoder: utils.decode,
17
+ delimiter: '&',
18
+ depth: 5,
19
+ ignoreQueryPrefix: false,
20
+ interpretNumericEntities: false,
21
+ parameterLimit: 1000,
22
+ parseArrays: true,
23
+ plainObjects: false,
24
+ strictNullHandling: false
25
+ };
26
+
27
+ var interpretNumericEntities = function (str) {
28
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
29
+ return String.fromCharCode(parseInt(numberStr, 10));
30
+ });
31
+ };
32
+
33
+ var parseArrayValue = function (val, options) {
34
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
35
+ return val.split(',');
36
+ }
37
+
38
+ return val;
39
+ };
40
+
41
+ // This is what browsers will submit when the ✓ character occurs in an
42
+ // application/x-www-form-urlencoded body and the encoding of the page containing
43
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
44
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
45
+ // the ✓ character, such as us-ascii.
46
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
47
+
48
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
49
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
50
+
51
+ var parseValues = function parseQueryStringValues(str, options) {
52
+ var obj = { __proto__: null };
53
+
54
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
55
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
56
+ var parts = cleanStr.split(options.delimiter, limit);
57
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
58
+ var i;
59
+
60
+ var charset = options.charset;
61
+ if (options.charsetSentinel) {
62
+ for (i = 0; i < parts.length; ++i) {
63
+ if (parts[i].indexOf('utf8=') === 0) {
64
+ if (parts[i] === charsetSentinel) {
65
+ charset = 'utf-8';
66
+ } else if (parts[i] === isoSentinel) {
67
+ charset = 'iso-8859-1';
68
+ }
69
+ skipIndex = i;
70
+ i = parts.length; // The eslint settings do not allow break;
71
+ }
72
+ }
73
+ }
74
+
75
+ for (i = 0; i < parts.length; ++i) {
76
+ if (i === skipIndex) {
77
+ continue;
78
+ }
79
+ var part = parts[i];
80
+
81
+ var bracketEqualsPos = part.indexOf(']=');
82
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
83
+
84
+ var key, val;
85
+ if (pos === -1) {
86
+ key = options.decoder(part, defaults.decoder, charset, 'key');
87
+ val = options.strictNullHandling ? null : '';
88
+ } else {
89
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
90
+ val = utils.maybeMap(
91
+ parseArrayValue(part.slice(pos + 1), options),
92
+ function (encodedVal) {
93
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
94
+ }
95
+ );
96
+ }
97
+
98
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
99
+ val = interpretNumericEntities(val);
100
+ }
101
+
102
+ if (part.indexOf('[]=') > -1) {
103
+ val = isArray(val) ? [val] : val;
104
+ }
105
+
106
+ if (has.call(obj, key)) {
107
+ obj[key] = utils.combine(obj[key], val);
108
+ } else {
109
+ obj[key] = val;
110
+ }
111
+ }
112
+
113
+ return obj;
114
+ };
115
+
116
+ var parseObject = function (chain, val, options, valuesParsed) {
117
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
118
+
119
+ for (var i = chain.length - 1; i >= 0; --i) {
120
+ var obj;
121
+ var root = chain[i];
122
+
123
+ if (root === '[]' && options.parseArrays) {
124
+ obj = [].concat(leaf);
125
+ } else {
126
+ obj = options.plainObjects ? Object.create(null) : {};
127
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
128
+ var index = parseInt(cleanRoot, 10);
129
+ if (!options.parseArrays && cleanRoot === '') {
130
+ obj = { 0: leaf };
131
+ } else if (
132
+ !isNaN(index)
133
+ && root !== cleanRoot
134
+ && String(index) === cleanRoot
135
+ && index >= 0
136
+ && (options.parseArrays && index <= options.arrayLimit)
137
+ ) {
138
+ obj = [];
139
+ obj[index] = leaf;
140
+ } else if (cleanRoot !== '__proto__') {
141
+ obj[cleanRoot] = leaf;
142
+ }
143
+ }
144
+
145
+ leaf = obj;
146
+ }
147
+
148
+ return leaf;
149
+ };
150
+
151
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
152
+ if (!givenKey) {
153
+ return;
154
+ }
155
+
156
+ // Transform dot notation to bracket notation
157
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
158
+
159
+ // The regex chunks
160
+
161
+ var brackets = /(\[[^[\]]*])/;
162
+ var child = /(\[[^[\]]*])/g;
163
+
164
+ // Get the parent
165
+
166
+ var segment = options.depth > 0 && brackets.exec(key);
167
+ var parent = segment ? key.slice(0, segment.index) : key;
168
+
169
+ // Stash the parent if it exists
170
+
171
+ var keys = [];
172
+ if (parent) {
173
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
174
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
175
+ if (!options.allowPrototypes) {
176
+ return;
177
+ }
178
+ }
179
+
180
+ keys.push(parent);
181
+ }
182
+
183
+ // Loop through children appending to the array until we hit depth
184
+
185
+ var i = 0;
186
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
187
+ i += 1;
188
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
189
+ if (!options.allowPrototypes) {
190
+ return;
191
+ }
192
+ }
193
+ keys.push(segment[1]);
194
+ }
195
+
196
+ // If there's a remainder, just add whatever is left
197
+
198
+ if (segment) {
199
+ keys.push('[' + key.slice(segment.index) + ']');
200
+ }
201
+
202
+ return parseObject(keys, val, options, valuesParsed);
203
+ };
204
+
205
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
206
+ if (!opts) {
207
+ return defaults;
208
+ }
209
+
210
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
211
+ throw new TypeError('Decoder has to be a function.');
212
+ }
213
+
214
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
215
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
216
+ }
217
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
218
+
219
+ return {
220
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
221
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
222
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
223
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
224
+ charset: charset,
225
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
226
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
227
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
228
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
229
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
230
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
231
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
232
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
233
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
234
+ parseArrays: opts.parseArrays !== false,
235
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
236
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
237
+ };
238
+ };
239
+
240
+ module.exports = function (str, opts) {
241
+ var options = normalizeParseOptions(opts);
242
+
243
+ if (str === '' || str === null || typeof str === 'undefined') {
244
+ return options.plainObjects ? Object.create(null) : {};
245
+ }
246
+
247
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
248
+ var obj = options.plainObjects ? Object.create(null) : {};
249
+
250
+ // Iterate over the keys and setup the new object
251
+
252
+ var keys = Object.keys(tempObj);
253
+ for (var i = 0; i < keys.length; ++i) {
254
+ var key = keys[i];
255
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
256
+ obj = utils.merge(obj, newObj, options);
257
+ }
258
+
259
+ if (options.allowSparse === true) {
260
+ return obj;
261
+ }
262
+
263
+ return utils.compact(obj);
264
+ };