swagger-client 3.28.3 → 3.29.1

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.
@@ -1896,15 +1896,13 @@ function formatKeyValueBySerializationOption(key, value, skipEncoding, serializa
1896
1896
  __webpack_require__.r(__webpack_exports__);
1897
1897
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1898
1898
  /* harmony export */ encodeFormOrQuery: () => (/* binding */ encodeFormOrQuery),
1899
- /* harmony export */ serializeRequest: () => (/* binding */ serializeRequest)
1899
+ /* harmony export */ serializeRequest: () => (/* binding */ serializeRequest),
1900
+ /* harmony export */ stringifyQuery: () => (/* binding */ stringifyQuery)
1900
1901
  /* harmony export */ });
1901
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55373);
1902
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
1903
1902
  /* harmony import */ var _format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46439);
1904
1903
  /* harmony import */ var _file_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
1905
1904
 
1906
1905
 
1907
-
1908
1906
  function buildFormData(reqForm) {
1909
1907
  /**
1910
1908
  * Build a new FormData instance, support array as field value
@@ -1941,6 +1939,27 @@ function buildFormData(reqForm) {
1941
1939
  return formData;
1942
1940
  }, new FormData());
1943
1941
  }
1942
+ const stringifyQuery = (queryObject, {
1943
+ encode = true
1944
+ } = {}) => {
1945
+ const buildNestedParams = (params, key, value) => {
1946
+ if (value == null) {
1947
+ params.append(key, '');
1948
+ } else if (Array.isArray(value)) {
1949
+ value.reduce((acc, v) => buildNestedParams(params, key, v), params);
1950
+ } else if (value instanceof Date) {
1951
+ params.append(key, value.toISOString());
1952
+ } else if (typeof value === 'object') {
1953
+ Object.entries(value).reduce((acc, [k, v]) => buildNestedParams(params, `${key}[${k}]`, v), params);
1954
+ } else {
1955
+ params.append(key, value);
1956
+ }
1957
+ return params;
1958
+ };
1959
+ const params = Object.entries(queryObject).reduce((acc, [key, value]) => buildNestedParams(acc, key, value), new URLSearchParams());
1960
+ const queryString = String(params);
1961
+ return encode ? queryString : decodeURIComponent(queryString);
1962
+ };
1944
1963
 
1945
1964
  // Encodes an object using appropriate serializer.
1946
1965
  function encodeFormOrQuery(data) {
@@ -1950,7 +1969,7 @@ function encodeFormOrQuery(data) {
1950
1969
  * @param {string} parameterName - Parameter name
1951
1970
  * @return {object} encoded parameter names and values
1952
1971
  */
1953
- const encodedQuery = Object.keys(data).reduce((result, parameterName) => {
1972
+ const encodedQueryObj = Object.keys(data).reduce((result, parameterName) => {
1954
1973
  // eslint-disable-next-line no-restricted-syntax
1955
1974
  for (const [key, value] of (0,_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(parameterName, data[parameterName])) {
1956
1975
  if (value instanceof _file_js__WEBPACK_IMPORTED_MODULE_1__.FileWithData) {
@@ -1961,10 +1980,9 @@ function encodeFormOrQuery(data) {
1961
1980
  }
1962
1981
  return result;
1963
1982
  }, {});
1964
- return qs__WEBPACK_IMPORTED_MODULE_2___default().stringify(encodedQuery, {
1965
- encode: false,
1966
- indices: false
1967
- }) || '';
1983
+ return stringifyQuery(encodedQueryObj, {
1984
+ encode: false
1985
+ });
1968
1986
  }
1969
1987
 
1970
1988
  // If the request has a `query` object, merge it into the request.url, and delete the object
@@ -2000,12 +2018,10 @@ function serializeRequest(req = {}) {
2000
2018
  const [baseUrl, oriSearch] = url.split('?');
2001
2019
  let newStr = '';
2002
2020
  if (oriSearch) {
2003
- const oriQuery = qs__WEBPACK_IMPORTED_MODULE_2___default().parse(oriSearch);
2021
+ const oriQuery = new URLSearchParams(oriSearch);
2004
2022
  const keysToRemove = Object.keys(query);
2005
- keysToRemove.forEach(key => delete oriQuery[key]);
2006
- newStr = qs__WEBPACK_IMPORTED_MODULE_2___default().stringify(oriQuery, {
2007
- encode: true
2008
- });
2023
+ keysToRemove.forEach(key => oriQuery.delete(key));
2024
+ newStr = String(oriQuery);
2009
2025
  }
2010
2026
  const finalStr = joinSearch(newStr, encodeFormOrQuery(query));
2011
2027
  req.url = baseUrl + finalStr;
@@ -3414,10 +3430,9 @@ __webpack_require__.r(__webpack_exports__);
3414
3430
  class JSONParser extends _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_0__["default"] {
3415
3431
  constructor(options = {}) {
3416
3432
  super({
3417
- ...options,
3418
3433
  name: 'json-swagger-client',
3419
- fileExtensions: ['.json'],
3420
- mediaTypes: ['application/json']
3434
+ mediaTypes: ['application/json'],
3435
+ ...options
3421
3436
  });
3422
3437
  }
3423
3438
  async canParse(file) {
@@ -3483,10 +3498,9 @@ class OpenAPIJSON3_1Parser extends _swagger_api_apidom_reference_configuration_e
3483
3498
  detectionRegExp = /"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;
3484
3499
  constructor(options = {}) {
3485
3500
  super({
3486
- ...options,
3487
3501
  name: 'openapi-json-3-1-swagger-client',
3488
- fileExtensions: ['.json'],
3489
- mediaTypes: new _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__.OpenAPIMediaTypes(..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__["default"].filterByFormat('generic'), ..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__["default"].filterByFormat('json'))
3502
+ mediaTypes: new _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__.OpenAPIMediaTypes(..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__["default"].filterByFormat('generic'), ..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_1__["default"].filterByFormat('json')),
3503
+ ...options
3490
3504
  });
3491
3505
  }
3492
3506
  async canParse(file) {
@@ -3558,9 +3572,8 @@ class OpenAPIYAML31Parser extends _swagger_api_apidom_reference_configuration_em
3558
3572
  constructor(options = {}) {
3559
3573
  super({
3560
3574
  name: 'openapi-yaml-3-1-swagger-client',
3561
- ...options,
3562
- fileExtensions: ['.yaml', '.yml'],
3563
- mediaTypes: new _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__.OpenAPIMediaTypes(..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__["default"].filterByFormat('generic'), ..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__["default"].filterByFormat('yaml'))
3575
+ mediaTypes: new _swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__.OpenAPIMediaTypes(..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__["default"].filterByFormat('generic'), ..._swagger_api_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_2__["default"].filterByFormat('yaml')),
3576
+ ...options
3564
3577
  });
3565
3578
  }
3566
3579
  async canParse(file) {
@@ -3627,10 +3640,9 @@ __webpack_require__.r(__webpack_exports__);
3627
3640
  class YAMLParser extends _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__["default"] {
3628
3641
  constructor(options = {}) {
3629
3642
  super({
3630
- ...options,
3631
3643
  name: 'yaml-1-2-swagger-client',
3632
- fileExtensions: ['.yaml', '.yml'],
3633
- mediaTypes: ['text/yaml', 'application/yaml']
3644
+ mediaTypes: ['text/yaml', 'application/yaml'],
3645
+ ...options
3634
3646
  });
3635
3647
  }
3636
3648
  async canParse(file) {
@@ -3824,8 +3836,7 @@ __webpack_require__.r(__webpack_exports__);
3824
3836
  /* harmony export */ generateAbsoluteRefPatches: () => (/* binding */ generateAbsoluteRefPatches),
3825
3837
  /* harmony export */ isFreelyNamed: () => (/* binding */ isFreelyNamed)
3826
3838
  /* harmony export */ });
3827
- /* harmony import */ var traverse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36623);
3828
- /* harmony import */ var traverse__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(traverse__WEBPACK_IMPORTED_MODULE_0__);
3839
+ /* harmony import */ var neotraverse_legacy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70909);
3829
3840
  /* harmony import */ var _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83748);
3830
3841
  /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3832);
3831
3842
 
@@ -3869,7 +3880,7 @@ function generateAbsoluteRefPatches(obj, basePath, {
3869
3880
  targetKeys = ['$ref', '$$ref']
3870
3881
  } = {}) {
3871
3882
  const patches = [];
3872
- traverse__WEBPACK_IMPORTED_MODULE_0___default()(obj).forEach(function callback() {
3883
+ (0,neotraverse_legacy__WEBPACK_IMPORTED_MODULE_0__["default"])(obj).forEach(function callback() {
3873
3884
  if (targetKeys.includes(this.key) && typeof this.node === 'string') {
3874
3885
  const nodePath = this.path; // this node's path, relative to `obj`
3875
3886
  const fullPath = basePath.concat(this.path);
@@ -6146,72 +6157,6 @@ const makeResolveSubtree = defaultOptions => async (obj, path, options = {}) =>
6146
6157
  strategies: [_resolver_strategies_openapi_3_0_index_js__WEBPACK_IMPORTED_MODULE_3__["default"], _resolver_strategies_openapi_2_index_js__WEBPACK_IMPORTED_MODULE_2__["default"], _resolver_strategies_generic_index_js__WEBPACK_IMPORTED_MODULE_1__["default"]]
6147
6158
  }));
6148
6159
 
6149
- /***/ }),
6150
-
6151
- /***/ 38075:
6152
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6153
-
6154
- "use strict";
6155
-
6156
-
6157
- var GetIntrinsic = __webpack_require__(70453);
6158
-
6159
- var callBind = __webpack_require__(10487);
6160
-
6161
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
6162
-
6163
- module.exports = function callBoundIntrinsic(name, allowMissing) {
6164
- var intrinsic = GetIntrinsic(name, !!allowMissing);
6165
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
6166
- return callBind(intrinsic);
6167
- }
6168
- return intrinsic;
6169
- };
6170
-
6171
-
6172
- /***/ }),
6173
-
6174
- /***/ 10487:
6175
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6176
-
6177
- "use strict";
6178
-
6179
-
6180
- var bind = __webpack_require__(66743);
6181
- var GetIntrinsic = __webpack_require__(70453);
6182
- var setFunctionLength = __webpack_require__(96897);
6183
-
6184
- var $TypeError = __webpack_require__(69675);
6185
- var $apply = GetIntrinsic('%Function.prototype.apply%');
6186
- var $call = GetIntrinsic('%Function.prototype.call%');
6187
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
6188
-
6189
- var $defineProperty = __webpack_require__(30655);
6190
- var $max = GetIntrinsic('%Math.max%');
6191
-
6192
- module.exports = function callBind(originalFunction) {
6193
- if (typeof originalFunction !== 'function') {
6194
- throw new $TypeError('a function is required');
6195
- }
6196
- var func = $reflectApply(bind, $call, arguments);
6197
- return setFunctionLength(
6198
- func,
6199
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
6200
- true
6201
- );
6202
- };
6203
-
6204
- var applyBind = function applyBind() {
6205
- return $reflectApply(bind, $apply, arguments);
6206
- };
6207
-
6208
- if ($defineProperty) {
6209
- $defineProperty(module.exports, 'apply', { value: applyBind });
6210
- } else {
6211
- module.exports.apply = applyBind;
6212
- }
6213
-
6214
-
6215
6160
  /***/ }),
6216
6161
 
6217
6162
  /***/ 57427:
@@ -6635,814 +6580,6 @@ var deepmerge_1 = deepmerge;
6635
6580
  module.exports = deepmerge_1;
6636
6581
 
6637
6582
 
6638
- /***/ }),
6639
-
6640
- /***/ 30041:
6641
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6642
-
6643
- "use strict";
6644
-
6645
-
6646
- var $defineProperty = __webpack_require__(30655);
6647
-
6648
- var $SyntaxError = __webpack_require__(58068);
6649
- var $TypeError = __webpack_require__(69675);
6650
-
6651
- var gopd = __webpack_require__(75795);
6652
-
6653
- /** @type {import('.')} */
6654
- module.exports = function defineDataProperty(
6655
- obj,
6656
- property,
6657
- value
6658
- ) {
6659
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
6660
- throw new $TypeError('`obj` must be an object or a function`');
6661
- }
6662
- if (typeof property !== 'string' && typeof property !== 'symbol') {
6663
- throw new $TypeError('`property` must be a string or a symbol`');
6664
- }
6665
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
6666
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
6667
- }
6668
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
6669
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
6670
- }
6671
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
6672
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
6673
- }
6674
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
6675
- throw new $TypeError('`loose`, if provided, must be a boolean');
6676
- }
6677
-
6678
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
6679
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
6680
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
6681
- var loose = arguments.length > 6 ? arguments[6] : false;
6682
-
6683
- /* @type {false | TypedPropertyDescriptor<unknown>} */
6684
- var desc = !!gopd && gopd(obj, property);
6685
-
6686
- if ($defineProperty) {
6687
- $defineProperty(obj, property, {
6688
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
6689
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
6690
- value: value,
6691
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
6692
- });
6693
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
6694
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
6695
- obj[property] = value; // eslint-disable-line no-param-reassign
6696
- } else {
6697
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
6698
- }
6699
- };
6700
-
6701
-
6702
- /***/ }),
6703
-
6704
- /***/ 30655:
6705
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6706
-
6707
- "use strict";
6708
-
6709
-
6710
- var GetIntrinsic = __webpack_require__(70453);
6711
-
6712
- /** @type {import('.')} */
6713
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
6714
- if ($defineProperty) {
6715
- try {
6716
- $defineProperty({}, 'a', { value: 1 });
6717
- } catch (e) {
6718
- // IE 8 has a broken defineProperty
6719
- $defineProperty = false;
6720
- }
6721
- }
6722
-
6723
- module.exports = $defineProperty;
6724
-
6725
-
6726
- /***/ }),
6727
-
6728
- /***/ 41237:
6729
- /***/ ((module) => {
6730
-
6731
- "use strict";
6732
-
6733
-
6734
- /** @type {import('./eval')} */
6735
- module.exports = EvalError;
6736
-
6737
-
6738
- /***/ }),
6739
-
6740
- /***/ 69383:
6741
- /***/ ((module) => {
6742
-
6743
- "use strict";
6744
-
6745
-
6746
- /** @type {import('.')} */
6747
- module.exports = Error;
6748
-
6749
-
6750
- /***/ }),
6751
-
6752
- /***/ 79290:
6753
- /***/ ((module) => {
6754
-
6755
- "use strict";
6756
-
6757
-
6758
- /** @type {import('./range')} */
6759
- module.exports = RangeError;
6760
-
6761
-
6762
- /***/ }),
6763
-
6764
- /***/ 79538:
6765
- /***/ ((module) => {
6766
-
6767
- "use strict";
6768
-
6769
-
6770
- /** @type {import('./ref')} */
6771
- module.exports = ReferenceError;
6772
-
6773
-
6774
- /***/ }),
6775
-
6776
- /***/ 58068:
6777
- /***/ ((module) => {
6778
-
6779
- "use strict";
6780
-
6781
-
6782
- /** @type {import('./syntax')} */
6783
- module.exports = SyntaxError;
6784
-
6785
-
6786
- /***/ }),
6787
-
6788
- /***/ 69675:
6789
- /***/ ((module) => {
6790
-
6791
- "use strict";
6792
-
6793
-
6794
- /** @type {import('./type')} */
6795
- module.exports = TypeError;
6796
-
6797
-
6798
- /***/ }),
6799
-
6800
- /***/ 35345:
6801
- /***/ ((module) => {
6802
-
6803
- "use strict";
6804
-
6805
-
6806
- /** @type {import('./uri')} */
6807
- module.exports = URIError;
6808
-
6809
-
6810
- /***/ }),
6811
-
6812
- /***/ 89353:
6813
- /***/ ((module) => {
6814
-
6815
- "use strict";
6816
-
6817
-
6818
- /* eslint no-invalid-this: 1 */
6819
-
6820
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
6821
- var toStr = Object.prototype.toString;
6822
- var max = Math.max;
6823
- var funcType = '[object Function]';
6824
-
6825
- var concatty = function concatty(a, b) {
6826
- var arr = [];
6827
-
6828
- for (var i = 0; i < a.length; i += 1) {
6829
- arr[i] = a[i];
6830
- }
6831
- for (var j = 0; j < b.length; j += 1) {
6832
- arr[j + a.length] = b[j];
6833
- }
6834
-
6835
- return arr;
6836
- };
6837
-
6838
- var slicy = function slicy(arrLike, offset) {
6839
- var arr = [];
6840
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
6841
- arr[j] = arrLike[i];
6842
- }
6843
- return arr;
6844
- };
6845
-
6846
- var joiny = function (arr, joiner) {
6847
- var str = '';
6848
- for (var i = 0; i < arr.length; i += 1) {
6849
- str += arr[i];
6850
- if (i + 1 < arr.length) {
6851
- str += joiner;
6852
- }
6853
- }
6854
- return str;
6855
- };
6856
-
6857
- module.exports = function bind(that) {
6858
- var target = this;
6859
- if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
6860
- throw new TypeError(ERROR_MESSAGE + target);
6861
- }
6862
- var args = slicy(arguments, 1);
6863
-
6864
- var bound;
6865
- var binder = function () {
6866
- if (this instanceof bound) {
6867
- var result = target.apply(
6868
- this,
6869
- concatty(args, arguments)
6870
- );
6871
- if (Object(result) === result) {
6872
- return result;
6873
- }
6874
- return this;
6875
- }
6876
- return target.apply(
6877
- that,
6878
- concatty(args, arguments)
6879
- );
6880
-
6881
- };
6882
-
6883
- var boundLength = max(0, target.length - args.length);
6884
- var boundArgs = [];
6885
- for (var i = 0; i < boundLength; i++) {
6886
- boundArgs[i] = '$' + i;
6887
- }
6888
-
6889
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
6890
-
6891
- if (target.prototype) {
6892
- var Empty = function Empty() {};
6893
- Empty.prototype = target.prototype;
6894
- bound.prototype = new Empty();
6895
- Empty.prototype = null;
6896
- }
6897
-
6898
- return bound;
6899
- };
6900
-
6901
-
6902
- /***/ }),
6903
-
6904
- /***/ 66743:
6905
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6906
-
6907
- "use strict";
6908
-
6909
-
6910
- var implementation = __webpack_require__(89353);
6911
-
6912
- module.exports = Function.prototype.bind || implementation;
6913
-
6914
-
6915
- /***/ }),
6916
-
6917
- /***/ 70453:
6918
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6919
-
6920
- "use strict";
6921
-
6922
-
6923
- var undefined;
6924
-
6925
- var $Error = __webpack_require__(69383);
6926
- var $EvalError = __webpack_require__(41237);
6927
- var $RangeError = __webpack_require__(79290);
6928
- var $ReferenceError = __webpack_require__(79538);
6929
- var $SyntaxError = __webpack_require__(58068);
6930
- var $TypeError = __webpack_require__(69675);
6931
- var $URIError = __webpack_require__(35345);
6932
-
6933
- var $Function = Function;
6934
-
6935
- // eslint-disable-next-line consistent-return
6936
- var getEvalledConstructor = function (expressionSyntax) {
6937
- try {
6938
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
6939
- } catch (e) {}
6940
- };
6941
-
6942
- var $gOPD = Object.getOwnPropertyDescriptor;
6943
- if ($gOPD) {
6944
- try {
6945
- $gOPD({}, '');
6946
- } catch (e) {
6947
- $gOPD = null; // this is IE 8, which has a broken gOPD
6948
- }
6949
- }
6950
-
6951
- var throwTypeError = function () {
6952
- throw new $TypeError();
6953
- };
6954
- var ThrowTypeError = $gOPD
6955
- ? (function () {
6956
- try {
6957
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
6958
- arguments.callee; // IE 8 does not throw here
6959
- return throwTypeError;
6960
- } catch (calleeThrows) {
6961
- try {
6962
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
6963
- return $gOPD(arguments, 'callee').get;
6964
- } catch (gOPDthrows) {
6965
- return throwTypeError;
6966
- }
6967
- }
6968
- }())
6969
- : throwTypeError;
6970
-
6971
- var hasSymbols = __webpack_require__(64039)();
6972
- var hasProto = __webpack_require__(80024)();
6973
-
6974
- var getProto = Object.getPrototypeOf || (
6975
- hasProto
6976
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
6977
- : null
6978
- );
6979
-
6980
- var needsEval = {};
6981
-
6982
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
6983
-
6984
- var INTRINSICS = {
6985
- __proto__: null,
6986
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
6987
- '%Array%': Array,
6988
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
6989
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
6990
- '%AsyncFromSyncIteratorPrototype%': undefined,
6991
- '%AsyncFunction%': needsEval,
6992
- '%AsyncGenerator%': needsEval,
6993
- '%AsyncGeneratorFunction%': needsEval,
6994
- '%AsyncIteratorPrototype%': needsEval,
6995
- '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
6996
- '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
6997
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
6998
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
6999
- '%Boolean%': Boolean,
7000
- '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
7001
- '%Date%': Date,
7002
- '%decodeURI%': decodeURI,
7003
- '%decodeURIComponent%': decodeURIComponent,
7004
- '%encodeURI%': encodeURI,
7005
- '%encodeURIComponent%': encodeURIComponent,
7006
- '%Error%': $Error,
7007
- '%eval%': eval, // eslint-disable-line no-eval
7008
- '%EvalError%': $EvalError,
7009
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
7010
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
7011
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
7012
- '%Function%': $Function,
7013
- '%GeneratorFunction%': needsEval,
7014
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
7015
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
7016
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
7017
- '%isFinite%': isFinite,
7018
- '%isNaN%': isNaN,
7019
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
7020
- '%JSON%': typeof JSON === 'object' ? JSON : undefined,
7021
- '%Map%': typeof Map === 'undefined' ? undefined : Map,
7022
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
7023
- '%Math%': Math,
7024
- '%Number%': Number,
7025
- '%Object%': Object,
7026
- '%parseFloat%': parseFloat,
7027
- '%parseInt%': parseInt,
7028
- '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
7029
- '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
7030
- '%RangeError%': $RangeError,
7031
- '%ReferenceError%': $ReferenceError,
7032
- '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
7033
- '%RegExp%': RegExp,
7034
- '%Set%': typeof Set === 'undefined' ? undefined : Set,
7035
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
7036
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
7037
- '%String%': String,
7038
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
7039
- '%Symbol%': hasSymbols ? Symbol : undefined,
7040
- '%SyntaxError%': $SyntaxError,
7041
- '%ThrowTypeError%': ThrowTypeError,
7042
- '%TypedArray%': TypedArray,
7043
- '%TypeError%': $TypeError,
7044
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
7045
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
7046
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
7047
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
7048
- '%URIError%': $URIError,
7049
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
7050
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
7051
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
7052
- };
7053
-
7054
- if (getProto) {
7055
- try {
7056
- null.error; // eslint-disable-line no-unused-expressions
7057
- } catch (e) {
7058
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
7059
- var errorProto = getProto(getProto(e));
7060
- INTRINSICS['%Error.prototype%'] = errorProto;
7061
- }
7062
- }
7063
-
7064
- var doEval = function doEval(name) {
7065
- var value;
7066
- if (name === '%AsyncFunction%') {
7067
- value = getEvalledConstructor('async function () {}');
7068
- } else if (name === '%GeneratorFunction%') {
7069
- value = getEvalledConstructor('function* () {}');
7070
- } else if (name === '%AsyncGeneratorFunction%') {
7071
- value = getEvalledConstructor('async function* () {}');
7072
- } else if (name === '%AsyncGenerator%') {
7073
- var fn = doEval('%AsyncGeneratorFunction%');
7074
- if (fn) {
7075
- value = fn.prototype;
7076
- }
7077
- } else if (name === '%AsyncIteratorPrototype%') {
7078
- var gen = doEval('%AsyncGenerator%');
7079
- if (gen && getProto) {
7080
- value = getProto(gen.prototype);
7081
- }
7082
- }
7083
-
7084
- INTRINSICS[name] = value;
7085
-
7086
- return value;
7087
- };
7088
-
7089
- var LEGACY_ALIASES = {
7090
- __proto__: null,
7091
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
7092
- '%ArrayPrototype%': ['Array', 'prototype'],
7093
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
7094
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
7095
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
7096
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
7097
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
7098
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
7099
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
7100
- '%BooleanPrototype%': ['Boolean', 'prototype'],
7101
- '%DataViewPrototype%': ['DataView', 'prototype'],
7102
- '%DatePrototype%': ['Date', 'prototype'],
7103
- '%ErrorPrototype%': ['Error', 'prototype'],
7104
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
7105
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
7106
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
7107
- '%FunctionPrototype%': ['Function', 'prototype'],
7108
- '%Generator%': ['GeneratorFunction', 'prototype'],
7109
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
7110
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
7111
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
7112
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
7113
- '%JSONParse%': ['JSON', 'parse'],
7114
- '%JSONStringify%': ['JSON', 'stringify'],
7115
- '%MapPrototype%': ['Map', 'prototype'],
7116
- '%NumberPrototype%': ['Number', 'prototype'],
7117
- '%ObjectPrototype%': ['Object', 'prototype'],
7118
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
7119
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
7120
- '%PromisePrototype%': ['Promise', 'prototype'],
7121
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
7122
- '%Promise_all%': ['Promise', 'all'],
7123
- '%Promise_reject%': ['Promise', 'reject'],
7124
- '%Promise_resolve%': ['Promise', 'resolve'],
7125
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
7126
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
7127
- '%RegExpPrototype%': ['RegExp', 'prototype'],
7128
- '%SetPrototype%': ['Set', 'prototype'],
7129
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
7130
- '%StringPrototype%': ['String', 'prototype'],
7131
- '%SymbolPrototype%': ['Symbol', 'prototype'],
7132
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
7133
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
7134
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
7135
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
7136
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
7137
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
7138
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
7139
- '%URIErrorPrototype%': ['URIError', 'prototype'],
7140
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
7141
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
7142
- };
7143
-
7144
- var bind = __webpack_require__(66743);
7145
- var hasOwn = __webpack_require__(9957);
7146
- var $concat = bind.call(Function.call, Array.prototype.concat);
7147
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
7148
- var $replace = bind.call(Function.call, String.prototype.replace);
7149
- var $strSlice = bind.call(Function.call, String.prototype.slice);
7150
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
7151
-
7152
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
7153
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
7154
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
7155
- var stringToPath = function stringToPath(string) {
7156
- var first = $strSlice(string, 0, 1);
7157
- var last = $strSlice(string, -1);
7158
- if (first === '%' && last !== '%') {
7159
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
7160
- } else if (last === '%' && first !== '%') {
7161
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
7162
- }
7163
- var result = [];
7164
- $replace(string, rePropName, function (match, number, quote, subString) {
7165
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
7166
- });
7167
- return result;
7168
- };
7169
- /* end adaptation */
7170
-
7171
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
7172
- var intrinsicName = name;
7173
- var alias;
7174
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
7175
- alias = LEGACY_ALIASES[intrinsicName];
7176
- intrinsicName = '%' + alias[0] + '%';
7177
- }
7178
-
7179
- if (hasOwn(INTRINSICS, intrinsicName)) {
7180
- var value = INTRINSICS[intrinsicName];
7181
- if (value === needsEval) {
7182
- value = doEval(intrinsicName);
7183
- }
7184
- if (typeof value === 'undefined' && !allowMissing) {
7185
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
7186
- }
7187
-
7188
- return {
7189
- alias: alias,
7190
- name: intrinsicName,
7191
- value: value
7192
- };
7193
- }
7194
-
7195
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
7196
- };
7197
-
7198
- module.exports = function GetIntrinsic(name, allowMissing) {
7199
- if (typeof name !== 'string' || name.length === 0) {
7200
- throw new $TypeError('intrinsic name must be a non-empty string');
7201
- }
7202
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
7203
- throw new $TypeError('"allowMissing" argument must be a boolean');
7204
- }
7205
-
7206
- if ($exec(/^%?[^%]*%?$/, name) === null) {
7207
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
7208
- }
7209
- var parts = stringToPath(name);
7210
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
7211
-
7212
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
7213
- var intrinsicRealName = intrinsic.name;
7214
- var value = intrinsic.value;
7215
- var skipFurtherCaching = false;
7216
-
7217
- var alias = intrinsic.alias;
7218
- if (alias) {
7219
- intrinsicBaseName = alias[0];
7220
- $spliceApply(parts, $concat([0, 1], alias));
7221
- }
7222
-
7223
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
7224
- var part = parts[i];
7225
- var first = $strSlice(part, 0, 1);
7226
- var last = $strSlice(part, -1);
7227
- if (
7228
- (
7229
- (first === '"' || first === "'" || first === '`')
7230
- || (last === '"' || last === "'" || last === '`')
7231
- )
7232
- && first !== last
7233
- ) {
7234
- throw new $SyntaxError('property names with quotes must have matching quotes');
7235
- }
7236
- if (part === 'constructor' || !isOwn) {
7237
- skipFurtherCaching = true;
7238
- }
7239
-
7240
- intrinsicBaseName += '.' + part;
7241
- intrinsicRealName = '%' + intrinsicBaseName + '%';
7242
-
7243
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
7244
- value = INTRINSICS[intrinsicRealName];
7245
- } else if (value != null) {
7246
- if (!(part in value)) {
7247
- if (!allowMissing) {
7248
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
7249
- }
7250
- return void undefined;
7251
- }
7252
- if ($gOPD && (i + 1) >= parts.length) {
7253
- var desc = $gOPD(value, part);
7254
- isOwn = !!desc;
7255
-
7256
- // By convention, when a data property is converted to an accessor
7257
- // property to emulate a data property that does not suffer from
7258
- // the override mistake, that accessor's getter is marked with
7259
- // an `originalValue` property. Here, when we detect this, we
7260
- // uphold the illusion by pretending to see that original data
7261
- // property, i.e., returning the value rather than the getter
7262
- // itself.
7263
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
7264
- value = desc.get;
7265
- } else {
7266
- value = value[part];
7267
- }
7268
- } else {
7269
- isOwn = hasOwn(value, part);
7270
- value = value[part];
7271
- }
7272
-
7273
- if (isOwn && !skipFurtherCaching) {
7274
- INTRINSICS[intrinsicRealName] = value;
7275
- }
7276
- }
7277
- }
7278
- return value;
7279
- };
7280
-
7281
-
7282
- /***/ }),
7283
-
7284
- /***/ 75795:
7285
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7286
-
7287
- "use strict";
7288
-
7289
-
7290
- var GetIntrinsic = __webpack_require__(70453);
7291
-
7292
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
7293
-
7294
- if ($gOPD) {
7295
- try {
7296
- $gOPD([], 'length');
7297
- } catch (e) {
7298
- // IE 8 has a broken gOPD
7299
- $gOPD = null;
7300
- }
7301
- }
7302
-
7303
- module.exports = $gOPD;
7304
-
7305
-
7306
- /***/ }),
7307
-
7308
- /***/ 30592:
7309
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7310
-
7311
- "use strict";
7312
-
7313
-
7314
- var $defineProperty = __webpack_require__(30655);
7315
-
7316
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
7317
- return !!$defineProperty;
7318
- };
7319
-
7320
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
7321
- // node v0.6 has a bug where array lengths can be Set but not Defined
7322
- if (!$defineProperty) {
7323
- return null;
7324
- }
7325
- try {
7326
- return $defineProperty([], 'length', { value: 1 }).length !== 1;
7327
- } catch (e) {
7328
- // In Firefox 4-22, defining length on an array throws an exception.
7329
- return true;
7330
- }
7331
- };
7332
-
7333
- module.exports = hasPropertyDescriptors;
7334
-
7335
-
7336
- /***/ }),
7337
-
7338
- /***/ 80024:
7339
- /***/ ((module) => {
7340
-
7341
- "use strict";
7342
-
7343
-
7344
- var test = {
7345
- __proto__: null,
7346
- foo: {}
7347
- };
7348
-
7349
- var $Object = Object;
7350
-
7351
- /** @type {import('.')} */
7352
- module.exports = function hasProto() {
7353
- // @ts-expect-error: TS errors on an inherited property for some reason
7354
- return { __proto__: test }.foo === test.foo
7355
- && !(test instanceof $Object);
7356
- };
7357
-
7358
-
7359
- /***/ }),
7360
-
7361
- /***/ 64039:
7362
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7363
-
7364
- "use strict";
7365
-
7366
-
7367
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
7368
- var hasSymbolSham = __webpack_require__(41333);
7369
-
7370
- module.exports = function hasNativeSymbols() {
7371
- if (typeof origSymbol !== 'function') { return false; }
7372
- if (typeof Symbol !== 'function') { return false; }
7373
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
7374
- if (typeof Symbol('bar') !== 'symbol') { return false; }
7375
-
7376
- return hasSymbolSham();
7377
- };
7378
-
7379
-
7380
- /***/ }),
7381
-
7382
- /***/ 41333:
7383
- /***/ ((module) => {
7384
-
7385
- "use strict";
7386
-
7387
-
7388
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
7389
- module.exports = function hasSymbols() {
7390
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
7391
- if (typeof Symbol.iterator === 'symbol') { return true; }
7392
-
7393
- var obj = {};
7394
- var sym = Symbol('test');
7395
- var symObj = Object(sym);
7396
- if (typeof sym === 'string') { return false; }
7397
-
7398
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
7399
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
7400
-
7401
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
7402
- // if (sym instanceof Symbol) { return false; }
7403
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
7404
- // if (!(symObj instanceof Symbol)) { return false; }
7405
-
7406
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
7407
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
7408
-
7409
- var symVal = 42;
7410
- obj[sym] = symVal;
7411
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
7412
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
7413
-
7414
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
7415
-
7416
- var syms = Object.getOwnPropertySymbols(obj);
7417
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
7418
-
7419
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
7420
-
7421
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
7422
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
7423
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
7424
- }
7425
-
7426
- return true;
7427
- };
7428
-
7429
-
7430
- /***/ }),
7431
-
7432
- /***/ 9957:
7433
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7434
-
7435
- "use strict";
7436
-
7437
-
7438
- var call = Function.prototype.call;
7439
- var $hasOwn = Object.prototype.hasOwnProperty;
7440
- var bind = __webpack_require__(66743);
7441
-
7442
- /** @type {import('.')} */
7443
- module.exports = bind.call(call, $hasOwn);
7444
-
7445
-
7446
6583
  /***/ }),
7447
6584
 
7448
6585
  /***/ 55580:
@@ -13149,537 +12286,6 @@ class JSONSerialiser {
13149
12286
  module.exports = JSONSerialiser;
13150
12287
 
13151
12288
 
13152
- /***/ }),
13153
-
13154
- /***/ 58859:
13155
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
13156
-
13157
- var hasMap = typeof Map === 'function' && Map.prototype;
13158
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
13159
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
13160
- var mapForEach = hasMap && Map.prototype.forEach;
13161
- var hasSet = typeof Set === 'function' && Set.prototype;
13162
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
13163
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
13164
- var setForEach = hasSet && Set.prototype.forEach;
13165
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
13166
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
13167
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
13168
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
13169
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
13170
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
13171
- var booleanValueOf = Boolean.prototype.valueOf;
13172
- var objectToString = Object.prototype.toString;
13173
- var functionToString = Function.prototype.toString;
13174
- var $match = String.prototype.match;
13175
- var $slice = String.prototype.slice;
13176
- var $replace = String.prototype.replace;
13177
- var $toUpperCase = String.prototype.toUpperCase;
13178
- var $toLowerCase = String.prototype.toLowerCase;
13179
- var $test = RegExp.prototype.test;
13180
- var $concat = Array.prototype.concat;
13181
- var $join = Array.prototype.join;
13182
- var $arrSlice = Array.prototype.slice;
13183
- var $floor = Math.floor;
13184
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
13185
- var gOPS = Object.getOwnPropertySymbols;
13186
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
13187
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
13188
- // ie, `has-tostringtag/shams
13189
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
13190
- ? Symbol.toStringTag
13191
- : null;
13192
- var isEnumerable = Object.prototype.propertyIsEnumerable;
13193
-
13194
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
13195
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
13196
- ? function (O) {
13197
- return O.__proto__; // eslint-disable-line no-proto
13198
- }
13199
- : null
13200
- );
13201
-
13202
- function addNumericSeparator(num, str) {
13203
- if (
13204
- num === Infinity
13205
- || num === -Infinity
13206
- || num !== num
13207
- || (num && num > -1000 && num < 1000)
13208
- || $test.call(/e/, str)
13209
- ) {
13210
- return str;
13211
- }
13212
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
13213
- if (typeof num === 'number') {
13214
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
13215
- if (int !== num) {
13216
- var intStr = String(int);
13217
- var dec = $slice.call(str, intStr.length + 1);
13218
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
13219
- }
13220
- }
13221
- return $replace.call(str, sepRegex, '$&_');
13222
- }
13223
-
13224
- var utilInspect = __webpack_require__(42634);
13225
- var inspectCustom = utilInspect.custom;
13226
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
13227
-
13228
- module.exports = function inspect_(obj, options, depth, seen) {
13229
- var opts = options || {};
13230
-
13231
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
13232
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
13233
- }
13234
- if (
13235
- has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
13236
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
13237
- : opts.maxStringLength !== null
13238
- )
13239
- ) {
13240
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
13241
- }
13242
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
13243
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
13244
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
13245
- }
13246
-
13247
- if (
13248
- has(opts, 'indent')
13249
- && opts.indent !== null
13250
- && opts.indent !== '\t'
13251
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
13252
- ) {
13253
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
13254
- }
13255
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
13256
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
13257
- }
13258
- var numericSeparator = opts.numericSeparator;
13259
-
13260
- if (typeof obj === 'undefined') {
13261
- return 'undefined';
13262
- }
13263
- if (obj === null) {
13264
- return 'null';
13265
- }
13266
- if (typeof obj === 'boolean') {
13267
- return obj ? 'true' : 'false';
13268
- }
13269
-
13270
- if (typeof obj === 'string') {
13271
- return inspectString(obj, opts);
13272
- }
13273
- if (typeof obj === 'number') {
13274
- if (obj === 0) {
13275
- return Infinity / obj > 0 ? '0' : '-0';
13276
- }
13277
- var str = String(obj);
13278
- return numericSeparator ? addNumericSeparator(obj, str) : str;
13279
- }
13280
- if (typeof obj === 'bigint') {
13281
- var bigIntStr = String(obj) + 'n';
13282
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
13283
- }
13284
-
13285
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
13286
- if (typeof depth === 'undefined') { depth = 0; }
13287
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
13288
- return isArray(obj) ? '[Array]' : '[Object]';
13289
- }
13290
-
13291
- var indent = getIndent(opts, depth);
13292
-
13293
- if (typeof seen === 'undefined') {
13294
- seen = [];
13295
- } else if (indexOf(seen, obj) >= 0) {
13296
- return '[Circular]';
13297
- }
13298
-
13299
- function inspect(value, from, noIndent) {
13300
- if (from) {
13301
- seen = $arrSlice.call(seen);
13302
- seen.push(from);
13303
- }
13304
- if (noIndent) {
13305
- var newOpts = {
13306
- depth: opts.depth
13307
- };
13308
- if (has(opts, 'quoteStyle')) {
13309
- newOpts.quoteStyle = opts.quoteStyle;
13310
- }
13311
- return inspect_(value, newOpts, depth + 1, seen);
13312
- }
13313
- return inspect_(value, opts, depth + 1, seen);
13314
- }
13315
-
13316
- if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
13317
- var name = nameOf(obj);
13318
- var keys = arrObjKeys(obj, inspect);
13319
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
13320
- }
13321
- if (isSymbol(obj)) {
13322
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
13323
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
13324
- }
13325
- if (isElement(obj)) {
13326
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
13327
- var attrs = obj.attributes || [];
13328
- for (var i = 0; i < attrs.length; i++) {
13329
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
13330
- }
13331
- s += '>';
13332
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
13333
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
13334
- return s;
13335
- }
13336
- if (isArray(obj)) {
13337
- if (obj.length === 0) { return '[]'; }
13338
- var xs = arrObjKeys(obj, inspect);
13339
- if (indent && !singleLineValues(xs)) {
13340
- return '[' + indentedJoin(xs, indent) + ']';
13341
- }
13342
- return '[ ' + $join.call(xs, ', ') + ' ]';
13343
- }
13344
- if (isError(obj)) {
13345
- var parts = arrObjKeys(obj, inspect);
13346
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
13347
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
13348
- }
13349
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
13350
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
13351
- }
13352
- if (typeof obj === 'object' && customInspect) {
13353
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
13354
- return utilInspect(obj, { depth: maxDepth - depth });
13355
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
13356
- return obj.inspect();
13357
- }
13358
- }
13359
- if (isMap(obj)) {
13360
- var mapParts = [];
13361
- if (mapForEach) {
13362
- mapForEach.call(obj, function (value, key) {
13363
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
13364
- });
13365
- }
13366
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
13367
- }
13368
- if (isSet(obj)) {
13369
- var setParts = [];
13370
- if (setForEach) {
13371
- setForEach.call(obj, function (value) {
13372
- setParts.push(inspect(value, obj));
13373
- });
13374
- }
13375
- return collectionOf('Set', setSize.call(obj), setParts, indent);
13376
- }
13377
- if (isWeakMap(obj)) {
13378
- return weakCollectionOf('WeakMap');
13379
- }
13380
- if (isWeakSet(obj)) {
13381
- return weakCollectionOf('WeakSet');
13382
- }
13383
- if (isWeakRef(obj)) {
13384
- return weakCollectionOf('WeakRef');
13385
- }
13386
- if (isNumber(obj)) {
13387
- return markBoxed(inspect(Number(obj)));
13388
- }
13389
- if (isBigInt(obj)) {
13390
- return markBoxed(inspect(bigIntValueOf.call(obj)));
13391
- }
13392
- if (isBoolean(obj)) {
13393
- return markBoxed(booleanValueOf.call(obj));
13394
- }
13395
- if (isString(obj)) {
13396
- return markBoxed(inspect(String(obj)));
13397
- }
13398
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
13399
- /* eslint-env browser */
13400
- if (typeof window !== 'undefined' && obj === window) {
13401
- return '{ [object Window] }';
13402
- }
13403
- if (obj === __webpack_require__.g) {
13404
- return '{ [object globalThis] }';
13405
- }
13406
- if (!isDate(obj) && !isRegExp(obj)) {
13407
- var ys = arrObjKeys(obj, inspect);
13408
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
13409
- var protoTag = obj instanceof Object ? '' : 'null prototype';
13410
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
13411
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
13412
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
13413
- if (ys.length === 0) { return tag + '{}'; }
13414
- if (indent) {
13415
- return tag + '{' + indentedJoin(ys, indent) + '}';
13416
- }
13417
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
13418
- }
13419
- return String(obj);
13420
- };
13421
-
13422
- function wrapQuotes(s, defaultStyle, opts) {
13423
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
13424
- return quoteChar + s + quoteChar;
13425
- }
13426
-
13427
- function quote(s) {
13428
- return $replace.call(String(s), /"/g, '&quot;');
13429
- }
13430
-
13431
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13432
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13433
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13434
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13435
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13436
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13437
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
13438
-
13439
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
13440
- function isSymbol(obj) {
13441
- if (hasShammedSymbols) {
13442
- return obj && typeof obj === 'object' && obj instanceof Symbol;
13443
- }
13444
- if (typeof obj === 'symbol') {
13445
- return true;
13446
- }
13447
- if (!obj || typeof obj !== 'object' || !symToString) {
13448
- return false;
13449
- }
13450
- try {
13451
- symToString.call(obj);
13452
- return true;
13453
- } catch (e) {}
13454
- return false;
13455
- }
13456
-
13457
- function isBigInt(obj) {
13458
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
13459
- return false;
13460
- }
13461
- try {
13462
- bigIntValueOf.call(obj);
13463
- return true;
13464
- } catch (e) {}
13465
- return false;
13466
- }
13467
-
13468
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
13469
- function has(obj, key) {
13470
- return hasOwn.call(obj, key);
13471
- }
13472
-
13473
- function toStr(obj) {
13474
- return objectToString.call(obj);
13475
- }
13476
-
13477
- function nameOf(f) {
13478
- if (f.name) { return f.name; }
13479
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
13480
- if (m) { return m[1]; }
13481
- return null;
13482
- }
13483
-
13484
- function indexOf(xs, x) {
13485
- if (xs.indexOf) { return xs.indexOf(x); }
13486
- for (var i = 0, l = xs.length; i < l; i++) {
13487
- if (xs[i] === x) { return i; }
13488
- }
13489
- return -1;
13490
- }
13491
-
13492
- function isMap(x) {
13493
- if (!mapSize || !x || typeof x !== 'object') {
13494
- return false;
13495
- }
13496
- try {
13497
- mapSize.call(x);
13498
- try {
13499
- setSize.call(x);
13500
- } catch (s) {
13501
- return true;
13502
- }
13503
- return x instanceof Map; // core-js workaround, pre-v2.5.0
13504
- } catch (e) {}
13505
- return false;
13506
- }
13507
-
13508
- function isWeakMap(x) {
13509
- if (!weakMapHas || !x || typeof x !== 'object') {
13510
- return false;
13511
- }
13512
- try {
13513
- weakMapHas.call(x, weakMapHas);
13514
- try {
13515
- weakSetHas.call(x, weakSetHas);
13516
- } catch (s) {
13517
- return true;
13518
- }
13519
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
13520
- } catch (e) {}
13521
- return false;
13522
- }
13523
-
13524
- function isWeakRef(x) {
13525
- if (!weakRefDeref || !x || typeof x !== 'object') {
13526
- return false;
13527
- }
13528
- try {
13529
- weakRefDeref.call(x);
13530
- return true;
13531
- } catch (e) {}
13532
- return false;
13533
- }
13534
-
13535
- function isSet(x) {
13536
- if (!setSize || !x || typeof x !== 'object') {
13537
- return false;
13538
- }
13539
- try {
13540
- setSize.call(x);
13541
- try {
13542
- mapSize.call(x);
13543
- } catch (m) {
13544
- return true;
13545
- }
13546
- return x instanceof Set; // core-js workaround, pre-v2.5.0
13547
- } catch (e) {}
13548
- return false;
13549
- }
13550
-
13551
- function isWeakSet(x) {
13552
- if (!weakSetHas || !x || typeof x !== 'object') {
13553
- return false;
13554
- }
13555
- try {
13556
- weakSetHas.call(x, weakSetHas);
13557
- try {
13558
- weakMapHas.call(x, weakMapHas);
13559
- } catch (s) {
13560
- return true;
13561
- }
13562
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
13563
- } catch (e) {}
13564
- return false;
13565
- }
13566
-
13567
- function isElement(x) {
13568
- if (!x || typeof x !== 'object') { return false; }
13569
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
13570
- return true;
13571
- }
13572
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
13573
- }
13574
-
13575
- function inspectString(str, opts) {
13576
- if (str.length > opts.maxStringLength) {
13577
- var remaining = str.length - opts.maxStringLength;
13578
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
13579
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
13580
- }
13581
- // eslint-disable-next-line no-control-regex
13582
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
13583
- return wrapQuotes(s, 'single', opts);
13584
- }
13585
-
13586
- function lowbyte(c) {
13587
- var n = c.charCodeAt(0);
13588
- var x = {
13589
- 8: 'b',
13590
- 9: 't',
13591
- 10: 'n',
13592
- 12: 'f',
13593
- 13: 'r'
13594
- }[n];
13595
- if (x) { return '\\' + x; }
13596
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
13597
- }
13598
-
13599
- function markBoxed(str) {
13600
- return 'Object(' + str + ')';
13601
- }
13602
-
13603
- function weakCollectionOf(type) {
13604
- return type + ' { ? }';
13605
- }
13606
-
13607
- function collectionOf(type, size, entries, indent) {
13608
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
13609
- return type + ' (' + size + ') {' + joinedEntries + '}';
13610
- }
13611
-
13612
- function singleLineValues(xs) {
13613
- for (var i = 0; i < xs.length; i++) {
13614
- if (indexOf(xs[i], '\n') >= 0) {
13615
- return false;
13616
- }
13617
- }
13618
- return true;
13619
- }
13620
-
13621
- function getIndent(opts, depth) {
13622
- var baseIndent;
13623
- if (opts.indent === '\t') {
13624
- baseIndent = '\t';
13625
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
13626
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
13627
- } else {
13628
- return null;
13629
- }
13630
- return {
13631
- base: baseIndent,
13632
- prev: $join.call(Array(depth + 1), baseIndent)
13633
- };
13634
- }
13635
-
13636
- function indentedJoin(xs, indent) {
13637
- if (xs.length === 0) { return ''; }
13638
- var lineJoiner = '\n' + indent.prev + indent.base;
13639
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
13640
- }
13641
-
13642
- function arrObjKeys(obj, inspect) {
13643
- var isArr = isArray(obj);
13644
- var xs = [];
13645
- if (isArr) {
13646
- xs.length = obj.length;
13647
- for (var i = 0; i < obj.length; i++) {
13648
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
13649
- }
13650
- }
13651
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
13652
- var symMap;
13653
- if (hasShammedSymbols) {
13654
- symMap = {};
13655
- for (var k = 0; k < syms.length; k++) {
13656
- symMap['$' + syms[k]] = syms[k];
13657
- }
13658
- }
13659
-
13660
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
13661
- if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
13662
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
13663
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
13664
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
13665
- continue; // eslint-disable-line no-restricted-syntax, no-continue
13666
- } else if ($test.call(/[^\w$]/, key)) {
13667
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
13668
- } else {
13669
- xs.push(key + ': ' + inspect(obj[key], obj));
13670
- }
13671
- }
13672
- if (typeof gOPS === 'function') {
13673
- for (var j = 0; j < syms.length; j++) {
13674
- if (isEnumerable.call(obj, syms[j])) {
13675
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
13676
- }
13677
- }
13678
- }
13679
- return xs;
13680
- }
13681
-
13682
-
13683
12289
  /***/ }),
13684
12290
 
13685
12291
  /***/ 65606:
@@ -13871,1042 +12477,6 @@ process.chdir = function (dir) {
13871
12477
  process.umask = function() { return 0; };
13872
12478
 
13873
12479
 
13874
- /***/ }),
13875
-
13876
- /***/ 74765:
13877
- /***/ ((module) => {
13878
-
13879
- "use strict";
13880
-
13881
-
13882
- var replace = String.prototype.replace;
13883
- var percentTwenties = /%20/g;
13884
-
13885
- var Format = {
13886
- RFC1738: 'RFC1738',
13887
- RFC3986: 'RFC3986'
13888
- };
13889
-
13890
- module.exports = {
13891
- 'default': Format.RFC3986,
13892
- formatters: {
13893
- RFC1738: function (value) {
13894
- return replace.call(value, percentTwenties, '+');
13895
- },
13896
- RFC3986: function (value) {
13897
- return String(value);
13898
- }
13899
- },
13900
- RFC1738: Format.RFC1738,
13901
- RFC3986: Format.RFC3986
13902
- };
13903
-
13904
-
13905
- /***/ }),
13906
-
13907
- /***/ 55373:
13908
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
13909
-
13910
- "use strict";
13911
-
13912
-
13913
- var stringify = __webpack_require__(98636);
13914
- var parse = __webpack_require__(62642);
13915
- var formats = __webpack_require__(74765);
13916
-
13917
- module.exports = {
13918
- formats: formats,
13919
- parse: parse,
13920
- stringify: stringify
13921
- };
13922
-
13923
-
13924
- /***/ }),
13925
-
13926
- /***/ 62642:
13927
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
13928
-
13929
- "use strict";
13930
-
13931
-
13932
- var utils = __webpack_require__(37720);
13933
-
13934
- var has = Object.prototype.hasOwnProperty;
13935
- var isArray = Array.isArray;
13936
-
13937
- var defaults = {
13938
- allowDots: false,
13939
- allowEmptyArrays: false,
13940
- allowPrototypes: false,
13941
- allowSparse: false,
13942
- arrayLimit: 20,
13943
- charset: 'utf-8',
13944
- charsetSentinel: false,
13945
- comma: false,
13946
- decodeDotInKeys: false,
13947
- decoder: utils.decode,
13948
- delimiter: '&',
13949
- depth: 5,
13950
- duplicates: 'combine',
13951
- ignoreQueryPrefix: false,
13952
- interpretNumericEntities: false,
13953
- parameterLimit: 1000,
13954
- parseArrays: true,
13955
- plainObjects: false,
13956
- strictDepth: false,
13957
- strictNullHandling: false
13958
- };
13959
-
13960
- var interpretNumericEntities = function (str) {
13961
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
13962
- return String.fromCharCode(parseInt(numberStr, 10));
13963
- });
13964
- };
13965
-
13966
- var parseArrayValue = function (val, options) {
13967
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
13968
- return val.split(',');
13969
- }
13970
-
13971
- return val;
13972
- };
13973
-
13974
- // This is what browsers will submit when the ✓ character occurs in an
13975
- // application/x-www-form-urlencoded body and the encoding of the page containing
13976
- // the form is iso-8859-1, or when the submitted form has an accept-charset
13977
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
13978
- // the ✓ character, such as us-ascii.
13979
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
13980
-
13981
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
13982
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
13983
-
13984
- var parseValues = function parseQueryStringValues(str, options) {
13985
- var obj = { __proto__: null };
13986
-
13987
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
13988
- cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
13989
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
13990
- var parts = cleanStr.split(options.delimiter, limit);
13991
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
13992
- var i;
13993
-
13994
- var charset = options.charset;
13995
- if (options.charsetSentinel) {
13996
- for (i = 0; i < parts.length; ++i) {
13997
- if (parts[i].indexOf('utf8=') === 0) {
13998
- if (parts[i] === charsetSentinel) {
13999
- charset = 'utf-8';
14000
- } else if (parts[i] === isoSentinel) {
14001
- charset = 'iso-8859-1';
14002
- }
14003
- skipIndex = i;
14004
- i = parts.length; // The eslint settings do not allow break;
14005
- }
14006
- }
14007
- }
14008
-
14009
- for (i = 0; i < parts.length; ++i) {
14010
- if (i === skipIndex) {
14011
- continue;
14012
- }
14013
- var part = parts[i];
14014
-
14015
- var bracketEqualsPos = part.indexOf(']=');
14016
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
14017
-
14018
- var key, val;
14019
- if (pos === -1) {
14020
- key = options.decoder(part, defaults.decoder, charset, 'key');
14021
- val = options.strictNullHandling ? null : '';
14022
- } else {
14023
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
14024
- val = utils.maybeMap(
14025
- parseArrayValue(part.slice(pos + 1), options),
14026
- function (encodedVal) {
14027
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
14028
- }
14029
- );
14030
- }
14031
-
14032
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
14033
- val = interpretNumericEntities(val);
14034
- }
14035
-
14036
- if (part.indexOf('[]=') > -1) {
14037
- val = isArray(val) ? [val] : val;
14038
- }
14039
-
14040
- var existing = has.call(obj, key);
14041
- if (existing && options.duplicates === 'combine') {
14042
- obj[key] = utils.combine(obj[key], val);
14043
- } else if (!existing || options.duplicates === 'last') {
14044
- obj[key] = val;
14045
- }
14046
- }
14047
-
14048
- return obj;
14049
- };
14050
-
14051
- var parseObject = function (chain, val, options, valuesParsed) {
14052
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
14053
-
14054
- for (var i = chain.length - 1; i >= 0; --i) {
14055
- var obj;
14056
- var root = chain[i];
14057
-
14058
- if (root === '[]' && options.parseArrays) {
14059
- obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
14060
- ? []
14061
- : [].concat(leaf);
14062
- } else {
14063
- obj = options.plainObjects ? Object.create(null) : {};
14064
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
14065
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
14066
- var index = parseInt(decodedRoot, 10);
14067
- if (!options.parseArrays && decodedRoot === '') {
14068
- obj = { 0: leaf };
14069
- } else if (
14070
- !isNaN(index)
14071
- && root !== decodedRoot
14072
- && String(index) === decodedRoot
14073
- && index >= 0
14074
- && (options.parseArrays && index <= options.arrayLimit)
14075
- ) {
14076
- obj = [];
14077
- obj[index] = leaf;
14078
- } else if (decodedRoot !== '__proto__') {
14079
- obj[decodedRoot] = leaf;
14080
- }
14081
- }
14082
-
14083
- leaf = obj;
14084
- }
14085
-
14086
- return leaf;
14087
- };
14088
-
14089
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
14090
- if (!givenKey) {
14091
- return;
14092
- }
14093
-
14094
- // Transform dot notation to bracket notation
14095
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
14096
-
14097
- // The regex chunks
14098
-
14099
- var brackets = /(\[[^[\]]*])/;
14100
- var child = /(\[[^[\]]*])/g;
14101
-
14102
- // Get the parent
14103
-
14104
- var segment = options.depth > 0 && brackets.exec(key);
14105
- var parent = segment ? key.slice(0, segment.index) : key;
14106
-
14107
- // Stash the parent if it exists
14108
-
14109
- var keys = [];
14110
- if (parent) {
14111
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
14112
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
14113
- if (!options.allowPrototypes) {
14114
- return;
14115
- }
14116
- }
14117
-
14118
- keys.push(parent);
14119
- }
14120
-
14121
- // Loop through children appending to the array until we hit depth
14122
-
14123
- var i = 0;
14124
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
14125
- i += 1;
14126
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
14127
- if (!options.allowPrototypes) {
14128
- return;
14129
- }
14130
- }
14131
- keys.push(segment[1]);
14132
- }
14133
-
14134
- // If there's a remainder, check strictDepth option for throw, else just add whatever is left
14135
-
14136
- if (segment) {
14137
- if (options.strictDepth === true) {
14138
- throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
14139
- }
14140
- keys.push('[' + key.slice(segment.index) + ']');
14141
- }
14142
-
14143
- return parseObject(keys, val, options, valuesParsed);
14144
- };
14145
-
14146
- var normalizeParseOptions = function normalizeParseOptions(opts) {
14147
- if (!opts) {
14148
- return defaults;
14149
- }
14150
-
14151
- if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
14152
- throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
14153
- }
14154
-
14155
- if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
14156
- throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
14157
- }
14158
-
14159
- if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
14160
- throw new TypeError('Decoder has to be a function.');
14161
- }
14162
-
14163
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
14164
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
14165
- }
14166
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
14167
-
14168
- var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
14169
-
14170
- if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
14171
- throw new TypeError('The duplicates option must be either combine, first, or last');
14172
- }
14173
-
14174
- var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
14175
-
14176
- return {
14177
- allowDots: allowDots,
14178
- allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
14179
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
14180
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
14181
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
14182
- charset: charset,
14183
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
14184
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
14185
- decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
14186
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
14187
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
14188
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
14189
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
14190
- duplicates: duplicates,
14191
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
14192
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
14193
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
14194
- parseArrays: opts.parseArrays !== false,
14195
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
14196
- strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
14197
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
14198
- };
14199
- };
14200
-
14201
- module.exports = function (str, opts) {
14202
- var options = normalizeParseOptions(opts);
14203
-
14204
- if (str === '' || str === null || typeof str === 'undefined') {
14205
- return options.plainObjects ? Object.create(null) : {};
14206
- }
14207
-
14208
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
14209
- var obj = options.plainObjects ? Object.create(null) : {};
14210
-
14211
- // Iterate over the keys and setup the new object
14212
-
14213
- var keys = Object.keys(tempObj);
14214
- for (var i = 0; i < keys.length; ++i) {
14215
- var key = keys[i];
14216
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
14217
- obj = utils.merge(obj, newObj, options);
14218
- }
14219
-
14220
- if (options.allowSparse === true) {
14221
- return obj;
14222
- }
14223
-
14224
- return utils.compact(obj);
14225
- };
14226
-
14227
-
14228
- /***/ }),
14229
-
14230
- /***/ 98636:
14231
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
14232
-
14233
- "use strict";
14234
-
14235
-
14236
- var getSideChannel = __webpack_require__(920);
14237
- var utils = __webpack_require__(37720);
14238
- var formats = __webpack_require__(74765);
14239
- var has = Object.prototype.hasOwnProperty;
14240
-
14241
- var arrayPrefixGenerators = {
14242
- brackets: function brackets(prefix) {
14243
- return prefix + '[]';
14244
- },
14245
- comma: 'comma',
14246
- indices: function indices(prefix, key) {
14247
- return prefix + '[' + key + ']';
14248
- },
14249
- repeat: function repeat(prefix) {
14250
- return prefix;
14251
- }
14252
- };
14253
-
14254
- var isArray = Array.isArray;
14255
- var push = Array.prototype.push;
14256
- var pushToArray = function (arr, valueOrArray) {
14257
- push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
14258
- };
14259
-
14260
- var toISO = Date.prototype.toISOString;
14261
-
14262
- var defaultFormat = formats['default'];
14263
- var defaults = {
14264
- addQueryPrefix: false,
14265
- allowDots: false,
14266
- allowEmptyArrays: false,
14267
- arrayFormat: 'indices',
14268
- charset: 'utf-8',
14269
- charsetSentinel: false,
14270
- delimiter: '&',
14271
- encode: true,
14272
- encodeDotInKeys: false,
14273
- encoder: utils.encode,
14274
- encodeValuesOnly: false,
14275
- format: defaultFormat,
14276
- formatter: formats.formatters[defaultFormat],
14277
- // deprecated
14278
- indices: false,
14279
- serializeDate: function serializeDate(date) {
14280
- return toISO.call(date);
14281
- },
14282
- skipNulls: false,
14283
- strictNullHandling: false
14284
- };
14285
-
14286
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
14287
- return typeof v === 'string'
14288
- || typeof v === 'number'
14289
- || typeof v === 'boolean'
14290
- || typeof v === 'symbol'
14291
- || typeof v === 'bigint';
14292
- };
14293
-
14294
- var sentinel = {};
14295
-
14296
- var stringify = function stringify(
14297
- object,
14298
- prefix,
14299
- generateArrayPrefix,
14300
- commaRoundTrip,
14301
- allowEmptyArrays,
14302
- strictNullHandling,
14303
- skipNulls,
14304
- encodeDotInKeys,
14305
- encoder,
14306
- filter,
14307
- sort,
14308
- allowDots,
14309
- serializeDate,
14310
- format,
14311
- formatter,
14312
- encodeValuesOnly,
14313
- charset,
14314
- sideChannel
14315
- ) {
14316
- var obj = object;
14317
-
14318
- var tmpSc = sideChannel;
14319
- var step = 0;
14320
- var findFlag = false;
14321
- while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
14322
- // Where object last appeared in the ref tree
14323
- var pos = tmpSc.get(object);
14324
- step += 1;
14325
- if (typeof pos !== 'undefined') {
14326
- if (pos === step) {
14327
- throw new RangeError('Cyclic object value');
14328
- } else {
14329
- findFlag = true; // Break while
14330
- }
14331
- }
14332
- if (typeof tmpSc.get(sentinel) === 'undefined') {
14333
- step = 0;
14334
- }
14335
- }
14336
-
14337
- if (typeof filter === 'function') {
14338
- obj = filter(prefix, obj);
14339
- } else if (obj instanceof Date) {
14340
- obj = serializeDate(obj);
14341
- } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
14342
- obj = utils.maybeMap(obj, function (value) {
14343
- if (value instanceof Date) {
14344
- return serializeDate(value);
14345
- }
14346
- return value;
14347
- });
14348
- }
14349
-
14350
- if (obj === null) {
14351
- if (strictNullHandling) {
14352
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
14353
- }
14354
-
14355
- obj = '';
14356
- }
14357
-
14358
- if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
14359
- if (encoder) {
14360
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
14361
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
14362
- }
14363
- return [formatter(prefix) + '=' + formatter(String(obj))];
14364
- }
14365
-
14366
- var values = [];
14367
-
14368
- if (typeof obj === 'undefined') {
14369
- return values;
14370
- }
14371
-
14372
- var objKeys;
14373
- if (generateArrayPrefix === 'comma' && isArray(obj)) {
14374
- // we need to join elements in
14375
- if (encodeValuesOnly && encoder) {
14376
- obj = utils.maybeMap(obj, encoder);
14377
- }
14378
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
14379
- } else if (isArray(filter)) {
14380
- objKeys = filter;
14381
- } else {
14382
- var keys = Object.keys(obj);
14383
- objKeys = sort ? keys.sort(sort) : keys;
14384
- }
14385
-
14386
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
14387
-
14388
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
14389
-
14390
- if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
14391
- return adjustedPrefix + '[]';
14392
- }
14393
-
14394
- for (var j = 0; j < objKeys.length; ++j) {
14395
- var key = objKeys[j];
14396
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
14397
-
14398
- if (skipNulls && value === null) {
14399
- continue;
14400
- }
14401
-
14402
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
14403
- var keyPrefix = isArray(obj)
14404
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
14405
- : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
14406
-
14407
- sideChannel.set(object, step);
14408
- var valueSideChannel = getSideChannel();
14409
- valueSideChannel.set(sentinel, sideChannel);
14410
- pushToArray(values, stringify(
14411
- value,
14412
- keyPrefix,
14413
- generateArrayPrefix,
14414
- commaRoundTrip,
14415
- allowEmptyArrays,
14416
- strictNullHandling,
14417
- skipNulls,
14418
- encodeDotInKeys,
14419
- generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
14420
- filter,
14421
- sort,
14422
- allowDots,
14423
- serializeDate,
14424
- format,
14425
- formatter,
14426
- encodeValuesOnly,
14427
- charset,
14428
- valueSideChannel
14429
- ));
14430
- }
14431
-
14432
- return values;
14433
- };
14434
-
14435
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
14436
- if (!opts) {
14437
- return defaults;
14438
- }
14439
-
14440
- if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
14441
- throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
14442
- }
14443
-
14444
- if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
14445
- throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
14446
- }
14447
-
14448
- if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
14449
- throw new TypeError('Encoder has to be a function.');
14450
- }
14451
-
14452
- var charset = opts.charset || defaults.charset;
14453
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
14454
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
14455
- }
14456
-
14457
- var format = formats['default'];
14458
- if (typeof opts.format !== 'undefined') {
14459
- if (!has.call(formats.formatters, opts.format)) {
14460
- throw new TypeError('Unknown format option provided.');
14461
- }
14462
- format = opts.format;
14463
- }
14464
- var formatter = formats.formatters[format];
14465
-
14466
- var filter = defaults.filter;
14467
- if (typeof opts.filter === 'function' || isArray(opts.filter)) {
14468
- filter = opts.filter;
14469
- }
14470
-
14471
- var arrayFormat;
14472
- if (opts.arrayFormat in arrayPrefixGenerators) {
14473
- arrayFormat = opts.arrayFormat;
14474
- } else if ('indices' in opts) {
14475
- arrayFormat = opts.indices ? 'indices' : 'repeat';
14476
- } else {
14477
- arrayFormat = defaults.arrayFormat;
14478
- }
14479
-
14480
- if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
14481
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
14482
- }
14483
-
14484
- var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
14485
-
14486
- return {
14487
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
14488
- allowDots: allowDots,
14489
- allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
14490
- arrayFormat: arrayFormat,
14491
- charset: charset,
14492
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
14493
- commaRoundTrip: opts.commaRoundTrip,
14494
- delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
14495
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
14496
- encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
14497
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
14498
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
14499
- filter: filter,
14500
- format: format,
14501
- formatter: formatter,
14502
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
14503
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
14504
- sort: typeof opts.sort === 'function' ? opts.sort : null,
14505
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
14506
- };
14507
- };
14508
-
14509
- module.exports = function (object, opts) {
14510
- var obj = object;
14511
- var options = normalizeStringifyOptions(opts);
14512
-
14513
- var objKeys;
14514
- var filter;
14515
-
14516
- if (typeof options.filter === 'function') {
14517
- filter = options.filter;
14518
- obj = filter('', obj);
14519
- } else if (isArray(options.filter)) {
14520
- filter = options.filter;
14521
- objKeys = filter;
14522
- }
14523
-
14524
- var keys = [];
14525
-
14526
- if (typeof obj !== 'object' || obj === null) {
14527
- return '';
14528
- }
14529
-
14530
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
14531
- var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
14532
-
14533
- if (!objKeys) {
14534
- objKeys = Object.keys(obj);
14535
- }
14536
-
14537
- if (options.sort) {
14538
- objKeys.sort(options.sort);
14539
- }
14540
-
14541
- var sideChannel = getSideChannel();
14542
- for (var i = 0; i < objKeys.length; ++i) {
14543
- var key = objKeys[i];
14544
-
14545
- if (options.skipNulls && obj[key] === null) {
14546
- continue;
14547
- }
14548
- pushToArray(keys, stringify(
14549
- obj[key],
14550
- key,
14551
- generateArrayPrefix,
14552
- commaRoundTrip,
14553
- options.allowEmptyArrays,
14554
- options.strictNullHandling,
14555
- options.skipNulls,
14556
- options.encodeDotInKeys,
14557
- options.encode ? options.encoder : null,
14558
- options.filter,
14559
- options.sort,
14560
- options.allowDots,
14561
- options.serializeDate,
14562
- options.format,
14563
- options.formatter,
14564
- options.encodeValuesOnly,
14565
- options.charset,
14566
- sideChannel
14567
- ));
14568
- }
14569
-
14570
- var joined = keys.join(options.delimiter);
14571
- var prefix = options.addQueryPrefix === true ? '?' : '';
14572
-
14573
- if (options.charsetSentinel) {
14574
- if (options.charset === 'iso-8859-1') {
14575
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
14576
- prefix += 'utf8=%26%2310003%3B&';
14577
- } else {
14578
- // encodeURIComponent('✓')
14579
- prefix += 'utf8=%E2%9C%93&';
14580
- }
14581
- }
14582
-
14583
- return joined.length > 0 ? prefix + joined : '';
14584
- };
14585
-
14586
-
14587
- /***/ }),
14588
-
14589
- /***/ 37720:
14590
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
14591
-
14592
- "use strict";
14593
-
14594
-
14595
- var formats = __webpack_require__(74765);
14596
-
14597
- var has = Object.prototype.hasOwnProperty;
14598
- var isArray = Array.isArray;
14599
-
14600
- var hexTable = (function () {
14601
- var array = [];
14602
- for (var i = 0; i < 256; ++i) {
14603
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
14604
- }
14605
-
14606
- return array;
14607
- }());
14608
-
14609
- var compactQueue = function compactQueue(queue) {
14610
- while (queue.length > 1) {
14611
- var item = queue.pop();
14612
- var obj = item.obj[item.prop];
14613
-
14614
- if (isArray(obj)) {
14615
- var compacted = [];
14616
-
14617
- for (var j = 0; j < obj.length; ++j) {
14618
- if (typeof obj[j] !== 'undefined') {
14619
- compacted.push(obj[j]);
14620
- }
14621
- }
14622
-
14623
- item.obj[item.prop] = compacted;
14624
- }
14625
- }
14626
- };
14627
-
14628
- var arrayToObject = function arrayToObject(source, options) {
14629
- var obj = options && options.plainObjects ? Object.create(null) : {};
14630
- for (var i = 0; i < source.length; ++i) {
14631
- if (typeof source[i] !== 'undefined') {
14632
- obj[i] = source[i];
14633
- }
14634
- }
14635
-
14636
- return obj;
14637
- };
14638
-
14639
- var merge = function merge(target, source, options) {
14640
- /* eslint no-param-reassign: 0 */
14641
- if (!source) {
14642
- return target;
14643
- }
14644
-
14645
- if (typeof source !== 'object') {
14646
- if (isArray(target)) {
14647
- target.push(source);
14648
- } else if (target && typeof target === 'object') {
14649
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
14650
- target[source] = true;
14651
- }
14652
- } else {
14653
- return [target, source];
14654
- }
14655
-
14656
- return target;
14657
- }
14658
-
14659
- if (!target || typeof target !== 'object') {
14660
- return [target].concat(source);
14661
- }
14662
-
14663
- var mergeTarget = target;
14664
- if (isArray(target) && !isArray(source)) {
14665
- mergeTarget = arrayToObject(target, options);
14666
- }
14667
-
14668
- if (isArray(target) && isArray(source)) {
14669
- source.forEach(function (item, i) {
14670
- if (has.call(target, i)) {
14671
- var targetItem = target[i];
14672
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
14673
- target[i] = merge(targetItem, item, options);
14674
- } else {
14675
- target.push(item);
14676
- }
14677
- } else {
14678
- target[i] = item;
14679
- }
14680
- });
14681
- return target;
14682
- }
14683
-
14684
- return Object.keys(source).reduce(function (acc, key) {
14685
- var value = source[key];
14686
-
14687
- if (has.call(acc, key)) {
14688
- acc[key] = merge(acc[key], value, options);
14689
- } else {
14690
- acc[key] = value;
14691
- }
14692
- return acc;
14693
- }, mergeTarget);
14694
- };
14695
-
14696
- var assign = function assignSingleSource(target, source) {
14697
- return Object.keys(source).reduce(function (acc, key) {
14698
- acc[key] = source[key];
14699
- return acc;
14700
- }, target);
14701
- };
14702
-
14703
- var decode = function (str, decoder, charset) {
14704
- var strWithoutPlus = str.replace(/\+/g, ' ');
14705
- if (charset === 'iso-8859-1') {
14706
- // unescape never throws, no try...catch needed:
14707
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
14708
- }
14709
- // utf-8
14710
- try {
14711
- return decodeURIComponent(strWithoutPlus);
14712
- } catch (e) {
14713
- return strWithoutPlus;
14714
- }
14715
- };
14716
-
14717
- var limit = 1024;
14718
-
14719
- /* eslint operator-linebreak: [2, "before"] */
14720
-
14721
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
14722
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
14723
- // It has been adapted here for stricter adherence to RFC 3986
14724
- if (str.length === 0) {
14725
- return str;
14726
- }
14727
-
14728
- var string = str;
14729
- if (typeof str === 'symbol') {
14730
- string = Symbol.prototype.toString.call(str);
14731
- } else if (typeof str !== 'string') {
14732
- string = String(str);
14733
- }
14734
-
14735
- if (charset === 'iso-8859-1') {
14736
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
14737
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
14738
- });
14739
- }
14740
-
14741
- var out = '';
14742
- for (var j = 0; j < string.length; j += limit) {
14743
- var segment = string.length >= limit ? string.slice(j, j + limit) : string;
14744
- var arr = [];
14745
-
14746
- for (var i = 0; i < segment.length; ++i) {
14747
- var c = segment.charCodeAt(i);
14748
- if (
14749
- c === 0x2D // -
14750
- || c === 0x2E // .
14751
- || c === 0x5F // _
14752
- || c === 0x7E // ~
14753
- || (c >= 0x30 && c <= 0x39) // 0-9
14754
- || (c >= 0x41 && c <= 0x5A) // a-z
14755
- || (c >= 0x61 && c <= 0x7A) // A-Z
14756
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
14757
- ) {
14758
- arr[arr.length] = segment.charAt(i);
14759
- continue;
14760
- }
14761
-
14762
- if (c < 0x80) {
14763
- arr[arr.length] = hexTable[c];
14764
- continue;
14765
- }
14766
-
14767
- if (c < 0x800) {
14768
- arr[arr.length] = hexTable[0xC0 | (c >> 6)]
14769
- + hexTable[0x80 | (c & 0x3F)];
14770
- continue;
14771
- }
14772
-
14773
- if (c < 0xD800 || c >= 0xE000) {
14774
- arr[arr.length] = hexTable[0xE0 | (c >> 12)]
14775
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
14776
- + hexTable[0x80 | (c & 0x3F)];
14777
- continue;
14778
- }
14779
-
14780
- i += 1;
14781
- c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
14782
-
14783
- arr[arr.length] = hexTable[0xF0 | (c >> 18)]
14784
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
14785
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
14786
- + hexTable[0x80 | (c & 0x3F)];
14787
- }
14788
-
14789
- out += arr.join('');
14790
- }
14791
-
14792
- return out;
14793
- };
14794
-
14795
- var compact = function compact(value) {
14796
- var queue = [{ obj: { o: value }, prop: 'o' }];
14797
- var refs = [];
14798
-
14799
- for (var i = 0; i < queue.length; ++i) {
14800
- var item = queue[i];
14801
- var obj = item.obj[item.prop];
14802
-
14803
- var keys = Object.keys(obj);
14804
- for (var j = 0; j < keys.length; ++j) {
14805
- var key = keys[j];
14806
- var val = obj[key];
14807
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
14808
- queue.push({ obj: obj, prop: key });
14809
- refs.push(val);
14810
- }
14811
- }
14812
- }
14813
-
14814
- compactQueue(queue);
14815
-
14816
- return value;
14817
- };
14818
-
14819
- var isRegExp = function isRegExp(obj) {
14820
- return Object.prototype.toString.call(obj) === '[object RegExp]';
14821
- };
14822
-
14823
- var isBuffer = function isBuffer(obj) {
14824
- if (!obj || typeof obj !== 'object') {
14825
- return false;
14826
- }
14827
-
14828
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
14829
- };
14830
-
14831
- var combine = function combine(a, b) {
14832
- return [].concat(a, b);
14833
- };
14834
-
14835
- var maybeMap = function maybeMap(val, fn) {
14836
- if (isArray(val)) {
14837
- var mapped = [];
14838
- for (var i = 0; i < val.length; i += 1) {
14839
- mapped.push(fn(val[i]));
14840
- }
14841
- return mapped;
14842
- }
14843
- return fn(val);
14844
- };
14845
-
14846
- module.exports = {
14847
- arrayToObject: arrayToObject,
14848
- assign: assign,
14849
- combine: combine,
14850
- compact: compact,
14851
- decode: decode,
14852
- encode: encode,
14853
- isBuffer: isBuffer,
14854
- isRegExp: isRegExp,
14855
- maybeMap: maybeMap,
14856
- merge: merge
14857
- };
14858
-
14859
-
14860
- /***/ }),
14861
-
14862
- /***/ 96897:
14863
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
14864
-
14865
- "use strict";
14866
-
14867
-
14868
- var GetIntrinsic = __webpack_require__(70453);
14869
- var define = __webpack_require__(30041);
14870
- var hasDescriptors = __webpack_require__(30592)();
14871
- var gOPD = __webpack_require__(75795);
14872
-
14873
- var $TypeError = __webpack_require__(69675);
14874
- var $floor = GetIntrinsic('%Math.floor%');
14875
-
14876
- /** @type {import('.')} */
14877
- module.exports = function setFunctionLength(fn, length) {
14878
- if (typeof fn !== 'function') {
14879
- throw new $TypeError('`fn` is not a function');
14880
- }
14881
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
14882
- throw new $TypeError('`length` must be a positive 32-bit integer');
14883
- }
14884
-
14885
- var loose = arguments.length > 2 && !!arguments[2];
14886
-
14887
- var functionLengthIsConfigurable = true;
14888
- var functionLengthIsWritable = true;
14889
- if ('length' in fn && gOPD) {
14890
- var desc = gOPD(fn, 'length');
14891
- if (desc && !desc.configurable) {
14892
- functionLengthIsConfigurable = false;
14893
- }
14894
- if (desc && !desc.writable) {
14895
- functionLengthIsWritable = false;
14896
- }
14897
- }
14898
-
14899
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
14900
- if (hasDescriptors) {
14901
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
14902
- } else {
14903
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
14904
- }
14905
- }
14906
- return fn;
14907
- };
14908
-
14909
-
14910
12480
  /***/ }),
14911
12481
 
14912
12482
  /***/ 8068:
@@ -15391,481 +12961,6 @@ var ShortUniqueId = (() => {
15391
12961
  //# sourceMappingURL=short-unique-id.js.map
15392
12962
  true&&(module.exports=ShortUniqueId.default),'undefined'!=typeof window&&(ShortUniqueId=ShortUniqueId.default);
15393
12963
 
15394
- /***/ }),
15395
-
15396
- /***/ 920:
15397
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
15398
-
15399
- "use strict";
15400
-
15401
-
15402
- var GetIntrinsic = __webpack_require__(70453);
15403
- var callBound = __webpack_require__(38075);
15404
- var inspect = __webpack_require__(58859);
15405
-
15406
- var $TypeError = __webpack_require__(69675);
15407
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
15408
- var $Map = GetIntrinsic('%Map%', true);
15409
-
15410
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
15411
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
15412
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
15413
- var $mapGet = callBound('Map.prototype.get', true);
15414
- var $mapSet = callBound('Map.prototype.set', true);
15415
- var $mapHas = callBound('Map.prototype.has', true);
15416
-
15417
- /*
15418
- * This function traverses the list returning the node corresponding to the given key.
15419
- *
15420
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
15421
- */
15422
- /** @type {import('.').listGetNode} */
15423
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
15424
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
15425
- var prev = list;
15426
- /** @type {(typeof list)['next']} */
15427
- var curr;
15428
- for (; (curr = prev.next) !== null; prev = curr) {
15429
- if (curr.key === key) {
15430
- prev.next = curr.next;
15431
- // eslint-disable-next-line no-extra-parens
15432
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
15433
- list.next = curr; // eslint-disable-line no-param-reassign
15434
- return curr;
15435
- }
15436
- }
15437
- };
15438
-
15439
- /** @type {import('.').listGet} */
15440
- var listGet = function (objects, key) {
15441
- var node = listGetNode(objects, key);
15442
- return node && node.value;
15443
- };
15444
- /** @type {import('.').listSet} */
15445
- var listSet = function (objects, key, value) {
15446
- var node = listGetNode(objects, key);
15447
- if (node) {
15448
- node.value = value;
15449
- } else {
15450
- // Prepend the new node to the beginning of the list
15451
- objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
15452
- key: key,
15453
- next: objects.next,
15454
- value: value
15455
- });
15456
- }
15457
- };
15458
- /** @type {import('.').listHas} */
15459
- var listHas = function (objects, key) {
15460
- return !!listGetNode(objects, key);
15461
- };
15462
-
15463
- /** @type {import('.')} */
15464
- module.exports = function getSideChannel() {
15465
- /** @type {WeakMap<object, unknown>} */ var $wm;
15466
- /** @type {Map<object, unknown>} */ var $m;
15467
- /** @type {import('.').RootNode<unknown>} */ var $o;
15468
-
15469
- /** @type {import('.').Channel} */
15470
- var channel = {
15471
- assert: function (key) {
15472
- if (!channel.has(key)) {
15473
- throw new $TypeError('Side channel does not contain ' + inspect(key));
15474
- }
15475
- },
15476
- get: function (key) { // eslint-disable-line consistent-return
15477
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
15478
- if ($wm) {
15479
- return $weakMapGet($wm, key);
15480
- }
15481
- } else if ($Map) {
15482
- if ($m) {
15483
- return $mapGet($m, key);
15484
- }
15485
- } else {
15486
- if ($o) { // eslint-disable-line no-lonely-if
15487
- return listGet($o, key);
15488
- }
15489
- }
15490
- },
15491
- has: function (key) {
15492
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
15493
- if ($wm) {
15494
- return $weakMapHas($wm, key);
15495
- }
15496
- } else if ($Map) {
15497
- if ($m) {
15498
- return $mapHas($m, key);
15499
- }
15500
- } else {
15501
- if ($o) { // eslint-disable-line no-lonely-if
15502
- return listHas($o, key);
15503
- }
15504
- }
15505
- return false;
15506
- },
15507
- set: function (key, value) {
15508
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
15509
- if (!$wm) {
15510
- $wm = new $WeakMap();
15511
- }
15512
- $weakMapSet($wm, key, value);
15513
- } else if ($Map) {
15514
- if (!$m) {
15515
- $m = new $Map();
15516
- }
15517
- $mapSet($m, key, value);
15518
- } else {
15519
- if (!$o) {
15520
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
15521
- $o = { key: {}, next: null };
15522
- }
15523
- listSet($o, key, value);
15524
- }
15525
- }
15526
- };
15527
- return channel;
15528
- };
15529
-
15530
-
15531
- /***/ }),
15532
-
15533
- /***/ 36623:
15534
- /***/ ((module) => {
15535
-
15536
- "use strict";
15537
-
15538
-
15539
- // TODO: use call-bind, is-date, is-regex, is-string, is-boolean-object, is-number-object
15540
- function toS(obj) { return Object.prototype.toString.call(obj); }
15541
- function isDate(obj) { return toS(obj) === '[object Date]'; }
15542
- function isRegExp(obj) { return toS(obj) === '[object RegExp]'; }
15543
- function isError(obj) { return toS(obj) === '[object Error]'; }
15544
- function isBoolean(obj) { return toS(obj) === '[object Boolean]'; }
15545
- function isNumber(obj) { return toS(obj) === '[object Number]'; }
15546
- function isString(obj) { return toS(obj) === '[object String]'; }
15547
-
15548
- // TODO: use isarray
15549
- var isArray = Array.isArray || function isArray(xs) {
15550
- return Object.prototype.toString.call(xs) === '[object Array]';
15551
- };
15552
-
15553
- // TODO: use for-each?
15554
- function forEach(xs, fn) {
15555
- if (xs.forEach) { return xs.forEach(fn); }
15556
- for (var i = 0; i < xs.length; i++) {
15557
- fn(xs[i], i, xs);
15558
- }
15559
- return void undefined;
15560
- }
15561
-
15562
- // TODO: use object-keys
15563
- var objectKeys = Object.keys || function keys(obj) {
15564
- var res = [];
15565
- for (var key in obj) { res.push(key); } // eslint-disable-line no-restricted-syntax
15566
- return res;
15567
- };
15568
-
15569
- var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
15570
- var getOwnPropertySymbols = Object.getOwnPropertySymbols; // eslint-disable-line id-length
15571
-
15572
- // TODO: use reflect.ownkeys and filter out non-enumerables
15573
- function ownEnumerableKeys(obj) {
15574
- var res = objectKeys(obj);
15575
-
15576
- // Include enumerable symbol properties.
15577
- if (getOwnPropertySymbols) {
15578
- var symbols = getOwnPropertySymbols(obj);
15579
- for (var i = 0; i < symbols.length; i++) {
15580
- if (propertyIsEnumerable.call(obj, symbols[i])) {
15581
- res.push(symbols[i]);
15582
- }
15583
- }
15584
- }
15585
- return res;
15586
- }
15587
-
15588
- // TODO: use object.hasown
15589
- var hasOwnProperty = Object.prototype.hasOwnProperty || function (obj, key) {
15590
- return key in obj;
15591
- };
15592
-
15593
- function copy(src) {
15594
- if (typeof src === 'object' && src !== null) {
15595
- var dst;
15596
-
15597
- if (isArray(src)) {
15598
- dst = [];
15599
- } else if (isDate(src)) {
15600
- dst = new Date(src.getTime ? src.getTime() : src);
15601
- } else if (isRegExp(src)) {
15602
- dst = new RegExp(src);
15603
- } else if (isError(src)) {
15604
- dst = { message: src.message };
15605
- } else if (isBoolean(src) || isNumber(src) || isString(src)) {
15606
- dst = Object(src);
15607
- } else if (Object.create && Object.getPrototypeOf) {
15608
- dst = Object.create(Object.getPrototypeOf(src));
15609
- } else if (src.constructor === Object) {
15610
- dst = {};
15611
- } else {
15612
- var proto = (src.constructor && src.constructor.prototype)
15613
- || src.__proto__
15614
- || {};
15615
- var T = function T() {}; // eslint-disable-line func-style, func-name-matching
15616
- T.prototype = proto;
15617
- dst = new T();
15618
- }
15619
-
15620
- forEach(ownEnumerableKeys(src), function (key) {
15621
- dst[key] = src[key];
15622
- });
15623
- return dst;
15624
- }
15625
- return src;
15626
- }
15627
-
15628
- function walk(root, cb, immutable) {
15629
- var path = [];
15630
- var parents = [];
15631
- var alive = true;
15632
-
15633
- return (function walker(node_) {
15634
- var node = immutable ? copy(node_) : node_;
15635
- var modifiers = {};
15636
-
15637
- var keepGoing = true;
15638
-
15639
- var state = {
15640
- node: node,
15641
- node_: node_,
15642
- path: [].concat(path),
15643
- parent: parents[parents.length - 1],
15644
- parents: parents,
15645
- key: path[path.length - 1],
15646
- isRoot: path.length === 0,
15647
- level: path.length,
15648
- circular: null,
15649
- update: function (x, stopHere) {
15650
- if (!state.isRoot) {
15651
- state.parent.node[state.key] = x;
15652
- }
15653
- state.node = x;
15654
- if (stopHere) { keepGoing = false; }
15655
- },
15656
- delete: function (stopHere) {
15657
- delete state.parent.node[state.key];
15658
- if (stopHere) { keepGoing = false; }
15659
- },
15660
- remove: function (stopHere) {
15661
- if (isArray(state.parent.node)) {
15662
- state.parent.node.splice(state.key, 1);
15663
- } else {
15664
- delete state.parent.node[state.key];
15665
- }
15666
- if (stopHere) { keepGoing = false; }
15667
- },
15668
- keys: null,
15669
- before: function (f) { modifiers.before = f; },
15670
- after: function (f) { modifiers.after = f; },
15671
- pre: function (f) { modifiers.pre = f; },
15672
- post: function (f) { modifiers.post = f; },
15673
- stop: function () { alive = false; },
15674
- block: function () { keepGoing = false; },
15675
- };
15676
-
15677
- if (!alive) { return state; }
15678
-
15679
- function updateState() {
15680
- if (typeof state.node === 'object' && state.node !== null) {
15681
- if (!state.keys || state.node_ !== state.node) {
15682
- state.keys = ownEnumerableKeys(state.node);
15683
- }
15684
-
15685
- state.isLeaf = state.keys.length === 0;
15686
-
15687
- for (var i = 0; i < parents.length; i++) {
15688
- if (parents[i].node_ === node_) {
15689
- state.circular = parents[i];
15690
- break; // eslint-disable-line no-restricted-syntax
15691
- }
15692
- }
15693
- } else {
15694
- state.isLeaf = true;
15695
- state.keys = null;
15696
- }
15697
-
15698
- state.notLeaf = !state.isLeaf;
15699
- state.notRoot = !state.isRoot;
15700
- }
15701
-
15702
- updateState();
15703
-
15704
- // use return values to update if defined
15705
- var ret = cb.call(state, state.node);
15706
- if (ret !== undefined && state.update) { state.update(ret); }
15707
-
15708
- if (modifiers.before) { modifiers.before.call(state, state.node); }
15709
-
15710
- if (!keepGoing) { return state; }
15711
-
15712
- if (
15713
- typeof state.node === 'object'
15714
- && state.node !== null
15715
- && !state.circular
15716
- ) {
15717
- parents.push(state);
15718
-
15719
- updateState();
15720
-
15721
- forEach(state.keys, function (key, i) {
15722
- path.push(key);
15723
-
15724
- if (modifiers.pre) { modifiers.pre.call(state, state.node[key], key); }
15725
-
15726
- var child = walker(state.node[key]);
15727
- if (immutable && hasOwnProperty.call(state.node, key)) {
15728
- state.node[key] = child.node;
15729
- }
15730
-
15731
- child.isLast = i === state.keys.length - 1;
15732
- child.isFirst = i === 0;
15733
-
15734
- if (modifiers.post) { modifiers.post.call(state, child); }
15735
-
15736
- path.pop();
15737
- });
15738
- parents.pop();
15739
- }
15740
-
15741
- if (modifiers.after) { modifiers.after.call(state, state.node); }
15742
-
15743
- return state;
15744
- }(root)).node;
15745
- }
15746
-
15747
- function Traverse(obj) {
15748
- this.value = obj;
15749
- }
15750
-
15751
- Traverse.prototype.get = function (ps) {
15752
- var node = this.value;
15753
- for (var i = 0; i < ps.length; i++) {
15754
- var key = ps[i];
15755
- if (!node || !hasOwnProperty.call(node, key)) {
15756
- return void undefined;
15757
- }
15758
- node = node[key];
15759
- }
15760
- return node;
15761
- };
15762
-
15763
- Traverse.prototype.has = function (ps) {
15764
- var node = this.value;
15765
- for (var i = 0; i < ps.length; i++) {
15766
- var key = ps[i];
15767
- if (!node || !hasOwnProperty.call(node, key)) {
15768
- return false;
15769
- }
15770
- node = node[key];
15771
- }
15772
- return true;
15773
- };
15774
-
15775
- Traverse.prototype.set = function (ps, value) {
15776
- var node = this.value;
15777
- for (var i = 0; i < ps.length - 1; i++) {
15778
- var key = ps[i];
15779
- if (!hasOwnProperty.call(node, key)) { node[key] = {}; }
15780
- node = node[key];
15781
- }
15782
- node[ps[i]] = value;
15783
- return value;
15784
- };
15785
-
15786
- Traverse.prototype.map = function (cb) {
15787
- return walk(this.value, cb, true);
15788
- };
15789
-
15790
- Traverse.prototype.forEach = function (cb) {
15791
- this.value = walk(this.value, cb, false);
15792
- return this.value;
15793
- };
15794
-
15795
- Traverse.prototype.reduce = function (cb, init) {
15796
- var skip = arguments.length === 1;
15797
- var acc = skip ? this.value : init;
15798
- this.forEach(function (x) {
15799
- if (!this.isRoot || !skip) {
15800
- acc = cb.call(this, acc, x);
15801
- }
15802
- });
15803
- return acc;
15804
- };
15805
-
15806
- Traverse.prototype.paths = function () {
15807
- var acc = [];
15808
- this.forEach(function () {
15809
- acc.push(this.path);
15810
- });
15811
- return acc;
15812
- };
15813
-
15814
- Traverse.prototype.nodes = function () {
15815
- var acc = [];
15816
- this.forEach(function () {
15817
- acc.push(this.node);
15818
- });
15819
- return acc;
15820
- };
15821
-
15822
- Traverse.prototype.clone = function () {
15823
- var parents = [];
15824
- var nodes = [];
15825
-
15826
- return (function clone(src) {
15827
- for (var i = 0; i < parents.length; i++) {
15828
- if (parents[i] === src) {
15829
- return nodes[i];
15830
- }
15831
- }
15832
-
15833
- if (typeof src === 'object' && src !== null) {
15834
- var dst = copy(src);
15835
-
15836
- parents.push(src);
15837
- nodes.push(dst);
15838
-
15839
- forEach(ownEnumerableKeys(src), function (key) {
15840
- dst[key] = clone(src[key]);
15841
- });
15842
-
15843
- parents.pop();
15844
- nodes.pop();
15845
- return dst;
15846
- }
15847
-
15848
- return src;
15849
-
15850
- }(this.value));
15851
- };
15852
-
15853
- function traverse(obj) {
15854
- return new Traverse(obj);
15855
- }
15856
-
15857
- // TODO: replace with object.assign?
15858
- forEach(ownEnumerableKeys(Traverse.prototype), function (key) {
15859
- traverse[key] = function (obj) {
15860
- var args = [].slice.call(arguments, 1);
15861
- var t = new Traverse(obj);
15862
- return t[key].apply(t, args);
15863
- };
15864
- });
15865
-
15866
- module.exports = traverse;
15867
-
15868
-
15869
12964
  /***/ }),
15870
12965
 
15871
12966
  /***/ 6993:
@@ -16248,13 +13343,6 @@ const mix = (...ingredients) => decoratedClass => {
16248
13343
 
16249
13344
 
16250
13345
 
16251
- /***/ }),
16252
-
16253
- /***/ 42634:
16254
- /***/ (() => {
16255
-
16256
- /* (ignored) */
16257
-
16258
13346
  /***/ }),
16259
13347
 
16260
13348
  /***/ 48675:
@@ -45037,6 +42125,567 @@ var jsYaml = {
45037
42125
 
45038
42126
 
45039
42127
 
42128
+ /***/ }),
42129
+
42130
+ /***/ 70909:
42131
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
42132
+
42133
+ "use strict";
42134
+ __webpack_require__.r(__webpack_exports__);
42135
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42136
+ /* harmony export */ "default": () => (/* binding */ src_default)
42137
+ /* harmony export */ });
42138
+ function _array_like_to_array(arr, len) {
42139
+ if (len == null || len > arr.length) len = arr.length;
42140
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
42141
+ return arr2;
42142
+ }
42143
+ function _array_with_holes(arr) {
42144
+ if (Array.isArray(arr)) return arr;
42145
+ }
42146
+ function _class_call_check(instance, Constructor) {
42147
+ if (!(instance instanceof Constructor)) {
42148
+ throw new TypeError("Cannot call a class as a function");
42149
+ }
42150
+ }
42151
+ function _defineProperties(target, props) {
42152
+ for(var i = 0; i < props.length; i++){
42153
+ var descriptor = props[i];
42154
+ descriptor.enumerable = descriptor.enumerable || false;
42155
+ descriptor.configurable = true;
42156
+ if ("value" in descriptor) descriptor.writable = true;
42157
+ Object.defineProperty(target, descriptor.key, descriptor);
42158
+ }
42159
+ }
42160
+ function _create_class(Constructor, protoProps, staticProps) {
42161
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
42162
+ if (staticProps) _defineProperties(Constructor, staticProps);
42163
+ return Constructor;
42164
+ }
42165
+ function _instanceof(left, right) {
42166
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
42167
+ return !!right[Symbol.hasInstance](left);
42168
+ } else {
42169
+ return left instanceof right;
42170
+ }
42171
+ }
42172
+ function _iterable_to_array_limit(arr, i) {
42173
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
42174
+ if (_i == null) return;
42175
+ var _arr = [];
42176
+ var _n = true;
42177
+ var _d = false;
42178
+ var _s, _e;
42179
+ try {
42180
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
42181
+ _arr.push(_s.value);
42182
+ if (i && _arr.length === i) break;
42183
+ }
42184
+ } catch (err) {
42185
+ _d = true;
42186
+ _e = err;
42187
+ } finally{
42188
+ try {
42189
+ if (!_n && _i["return"] != null) _i["return"]();
42190
+ } finally{
42191
+ if (_d) throw _e;
42192
+ }
42193
+ }
42194
+ return _arr;
42195
+ }
42196
+ function _non_iterable_rest() {
42197
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
42198
+ }
42199
+ function _sliced_to_array(arr, i) {
42200
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
42201
+ }
42202
+ function _type_of(obj) {
42203
+ "@swc/helpers - typeof";
42204
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42205
+ }
42206
+ function _unsupported_iterable_to_array(o, minLen) {
42207
+ if (!o) return;
42208
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
42209
+ var n = Object.prototype.toString.call(o).slice(8, -1);
42210
+ if (n === "Object" && o.constructor) n = o.constructor.name;
42211
+ if (n === "Map" || n === "Set") return Array.from(n);
42212
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
42213
+ }
42214
+ var __typeError = function(msg) {
42215
+ throw TypeError(msg);
42216
+ };
42217
+ var __accessCheck = function(obj, member, msg) {
42218
+ return member.has(obj) || __typeError("Cannot " + msg);
42219
+ };
42220
+ var __privateGet = function(obj, member, getter) {
42221
+ return __accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj);
42222
+ };
42223
+ var __privateAdd = function(obj, member, value) {
42224
+ return member.has(obj) ? __typeError("Cannot add the same private member more than once") : _instanceof(member, WeakSet) ? member.add(obj) : member.set(obj, value);
42225
+ };
42226
+ var __privateSet = function(obj, member, value, setter) {
42227
+ return __accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value;
42228
+ };
42229
+ // src/index.ts
42230
+ var to_string = function(obj) {
42231
+ return Object.prototype.toString.call(obj);
42232
+ };
42233
+ var is_typed_array = function(value) {
42234
+ return ArrayBuffer.isView(value) && !_instanceof(value, DataView);
42235
+ };
42236
+ var is_date = function(obj) {
42237
+ return to_string(obj) === "[object Date]";
42238
+ };
42239
+ var is_regexp = function(obj) {
42240
+ return to_string(obj) === "[object RegExp]";
42241
+ };
42242
+ var is_error = function(obj) {
42243
+ return to_string(obj) === "[object Error]";
42244
+ };
42245
+ var is_boolean = function(obj) {
42246
+ return to_string(obj) === "[object Boolean]";
42247
+ };
42248
+ var is_number = function(obj) {
42249
+ return to_string(obj) === "[object Number]";
42250
+ };
42251
+ var is_string = function(obj) {
42252
+ return to_string(obj) === "[object String]";
42253
+ };
42254
+ var is_array = Array.isArray;
42255
+ var gopd = Object.getOwnPropertyDescriptor;
42256
+ var is_property_enumerable = Object.prototype.propertyIsEnumerable;
42257
+ var get_own_property_symbols = Object.getOwnPropertySymbols;
42258
+ var has_own_property = Object.prototype.hasOwnProperty;
42259
+ function own_enumerable_keys(obj) {
42260
+ var res = Object.keys(obj);
42261
+ var symbols = get_own_property_symbols(obj);
42262
+ for(var i = 0; i < symbols.length; i++){
42263
+ if (is_property_enumerable.call(obj, symbols[i])) {
42264
+ res.push(symbols[i]);
42265
+ }
42266
+ }
42267
+ return res;
42268
+ }
42269
+ function is_writable(object, key) {
42270
+ var _gopd;
42271
+ return !((_gopd = gopd(object, key)) === null || _gopd === void 0 ? void 0 : _gopd.writable);
42272
+ }
42273
+ function copy(src, options) {
42274
+ if ((typeof src === "undefined" ? "undefined" : _type_of(src)) === "object" && src !== null) {
42275
+ var dst;
42276
+ if (is_array(src)) {
42277
+ dst = [];
42278
+ } else if (is_date(src)) {
42279
+ dst = new Date(src.getTime ? src.getTime() : src);
42280
+ } else if (is_regexp(src)) {
42281
+ dst = new RegExp(src);
42282
+ } else if (is_error(src)) {
42283
+ dst = {
42284
+ message: src.message
42285
+ };
42286
+ } else if (is_boolean(src) || is_number(src) || is_string(src)) {
42287
+ dst = Object(src);
42288
+ } else if (is_typed_array(src)) {
42289
+ return src.slice();
42290
+ } else {
42291
+ dst = Object.create(Object.getPrototypeOf(src));
42292
+ }
42293
+ var iterator_function = options.includeSymbols ? own_enumerable_keys : Object.keys;
42294
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
42295
+ try {
42296
+ for(var _iterator = iterator_function(src)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
42297
+ var key = _step.value;
42298
+ dst[key] = src[key];
42299
+ }
42300
+ } catch (err) {
42301
+ _didIteratorError = true;
42302
+ _iteratorError = err;
42303
+ } finally{
42304
+ try {
42305
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
42306
+ _iterator.return();
42307
+ }
42308
+ } finally{
42309
+ if (_didIteratorError) {
42310
+ throw _iteratorError;
42311
+ }
42312
+ }
42313
+ }
42314
+ return dst;
42315
+ }
42316
+ return src;
42317
+ }
42318
+ var empty_null = {
42319
+ includeSymbols: false,
42320
+ immutable: false
42321
+ };
42322
+ function walk(root, cb) {
42323
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : empty_null;
42324
+ var path = [];
42325
+ var parents = [];
42326
+ var alive = true;
42327
+ var iterator_function = options.includeSymbols ? own_enumerable_keys : Object.keys;
42328
+ var immutable = !!options.immutable;
42329
+ return function walker(node_) {
42330
+ var node = immutable ? copy(node_, options) : node_;
42331
+ var modifiers = {};
42332
+ var keep_going = true;
42333
+ var state = {
42334
+ node: node,
42335
+ node_: node_,
42336
+ path: [].concat(path),
42337
+ parent: parents[parents.length - 1],
42338
+ parents: parents,
42339
+ key: path[path.length - 1],
42340
+ isRoot: path.length === 0,
42341
+ level: path.length,
42342
+ circular: void 0,
42343
+ isLeaf: false,
42344
+ notLeaf: true,
42345
+ notRoot: true,
42346
+ isFirst: false,
42347
+ isLast: false,
42348
+ update: function update(x) {
42349
+ var stopHere = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
42350
+ if (!state.isRoot) {
42351
+ state.parent.node[state.key] = x;
42352
+ }
42353
+ state.node = x;
42354
+ if (stopHere) {
42355
+ keep_going = false;
42356
+ }
42357
+ },
42358
+ delete: function _delete(stopHere) {
42359
+ delete state.parent.node[state.key];
42360
+ if (stopHere) {
42361
+ keep_going = false;
42362
+ }
42363
+ },
42364
+ remove: function remove(stopHere) {
42365
+ if (is_array(state.parent.node)) {
42366
+ state.parent.node.splice(state.key, 1);
42367
+ } else {
42368
+ delete state.parent.node[state.key];
42369
+ }
42370
+ if (stopHere) {
42371
+ keep_going = false;
42372
+ }
42373
+ },
42374
+ keys: null,
42375
+ before: function before(f) {
42376
+ modifiers.before = f;
42377
+ },
42378
+ after: function after(f) {
42379
+ modifiers.after = f;
42380
+ },
42381
+ pre: function pre(f) {
42382
+ modifiers.pre = f;
42383
+ },
42384
+ post: function post(f) {
42385
+ modifiers.post = f;
42386
+ },
42387
+ stop: function stop() {
42388
+ alive = false;
42389
+ },
42390
+ block: function block() {
42391
+ keep_going = false;
42392
+ }
42393
+ };
42394
+ if (!alive) {
42395
+ return state;
42396
+ }
42397
+ function update_state() {
42398
+ if (_type_of(state.node) === "object" && state.node !== null) {
42399
+ if (!state.keys || state.node_ !== state.node) {
42400
+ state.keys = iterator_function(state.node);
42401
+ }
42402
+ state.isLeaf = state.keys.length === 0;
42403
+ for(var i = 0; i < parents.length; i++){
42404
+ if (parents[i].node_ === node_) {
42405
+ state.circular = parents[i];
42406
+ break;
42407
+ }
42408
+ }
42409
+ } else {
42410
+ state.isLeaf = true;
42411
+ state.keys = null;
42412
+ }
42413
+ state.notLeaf = !state.isLeaf;
42414
+ state.notRoot = !state.isRoot;
42415
+ }
42416
+ update_state();
42417
+ var ret = cb.call(state, state.node);
42418
+ if (ret !== void 0 && state.update) {
42419
+ state.update(ret);
42420
+ }
42421
+ if (modifiers.before) {
42422
+ modifiers.before.call(state, state.node);
42423
+ }
42424
+ if (!keep_going) {
42425
+ return state;
42426
+ }
42427
+ if (_type_of(state.node) === "object" && state.node !== null && !state.circular) {
42428
+ parents.push(state);
42429
+ update_state();
42430
+ var _state_keys;
42431
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
42432
+ try {
42433
+ for(var _iterator = Object.entries((_state_keys = state.keys) !== null && _state_keys !== void 0 ? _state_keys : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
42434
+ var _step_value = _sliced_to_array(_step.value, 2), index = _step_value[0], key = _step_value[1];
42435
+ var _state_keys1;
42436
+ path.push(key);
42437
+ if (modifiers.pre) {
42438
+ modifiers.pre.call(state, state.node[key], key);
42439
+ }
42440
+ var child = walker(state.node[key]);
42441
+ if (immutable && has_own_property.call(state.node, key) && !is_writable(state.node, key)) {
42442
+ state.node[key] = child.node;
42443
+ }
42444
+ child.isLast = ((_state_keys1 = state.keys) === null || _state_keys1 === void 0 ? void 0 : _state_keys1.length) ? +index === state.keys.length - 1 : false;
42445
+ child.isFirst = +index === 0;
42446
+ if (modifiers.post) {
42447
+ modifiers.post.call(state, child);
42448
+ }
42449
+ path.pop();
42450
+ }
42451
+ } catch (err) {
42452
+ _didIteratorError = true;
42453
+ _iteratorError = err;
42454
+ } finally{
42455
+ try {
42456
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
42457
+ _iterator.return();
42458
+ }
42459
+ } finally{
42460
+ if (_didIteratorError) {
42461
+ throw _iteratorError;
42462
+ }
42463
+ }
42464
+ }
42465
+ parents.pop();
42466
+ }
42467
+ if (modifiers.after) {
42468
+ modifiers.after.call(state, state.node);
42469
+ }
42470
+ return state;
42471
+ }(root).node;
42472
+ }
42473
+ var _value, _options;
42474
+ var Traverse = /*#__PURE__*/ function() {
42475
+ "use strict";
42476
+ function Traverse(obj) {
42477
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : empty_null;
42478
+ _class_call_check(this, Traverse);
42479
+ // ! Have to keep these public as legacy mode requires them
42480
+ __privateAdd(this, _value);
42481
+ __privateAdd(this, _options);
42482
+ __privateSet(this, _value, obj);
42483
+ __privateSet(this, _options, options);
42484
+ }
42485
+ _create_class(Traverse, [
42486
+ {
42487
+ /**
42488
+ * Get the element at the array `path`.
42489
+ */ key: "get",
42490
+ value: function get(paths) {
42491
+ var node = __privateGet(this, _value);
42492
+ for(var i = 0; node && i < paths.length; i++){
42493
+ var key = paths[i];
42494
+ if (!has_own_property.call(node, key) || !__privateGet(this, _options).includeSymbols && (typeof key === "undefined" ? "undefined" : _type_of(key)) === "symbol") {
42495
+ return void 0;
42496
+ }
42497
+ node = node[key];
42498
+ }
42499
+ return node;
42500
+ }
42501
+ },
42502
+ {
42503
+ /**
42504
+ * Return whether the element at the array `path` exists.
42505
+ */ key: "has",
42506
+ value: function has(paths) {
42507
+ var node = __privateGet(this, _value);
42508
+ for(var i = 0; node && i < paths.length; i++){
42509
+ var key = paths[i];
42510
+ if (!has_own_property.call(node, key) || !__privateGet(this, _options).includeSymbols && (typeof key === "undefined" ? "undefined" : _type_of(key)) === "symbol") {
42511
+ return false;
42512
+ }
42513
+ node = node[key];
42514
+ }
42515
+ return true;
42516
+ }
42517
+ },
42518
+ {
42519
+ /**
42520
+ * Set the element at the array `path` to `value`.
42521
+ */ key: "set",
42522
+ value: function set(path, value) {
42523
+ var node = __privateGet(this, _value);
42524
+ var i = 0;
42525
+ for(i = 0; i < path.length - 1; i++){
42526
+ var key = path[i];
42527
+ if (!has_own_property.call(node, key)) {
42528
+ node[key] = {};
42529
+ }
42530
+ node = node[key];
42531
+ }
42532
+ node[path[i]] = value;
42533
+ return value;
42534
+ }
42535
+ },
42536
+ {
42537
+ /**
42538
+ * Execute `fn` for each node in the object and return a new object with the results of the walk. To update nodes in the result use `this.update(value)`.
42539
+ */ key: "map",
42540
+ value: function map(cb) {
42541
+ return walk(__privateGet(this, _value), cb, {
42542
+ immutable: true,
42543
+ includeSymbols: !!__privateGet(this, _options).includeSymbols
42544
+ });
42545
+ }
42546
+ },
42547
+ {
42548
+ /**
42549
+ * Execute `fn` for each node in the object but unlike `.map()`, when `this.update()` is called it updates the object in-place.
42550
+ */ key: "forEach",
42551
+ value: function forEach(cb) {
42552
+ __privateSet(this, _value, walk(__privateGet(this, _value), cb, __privateGet(this, _options)));
42553
+ return __privateGet(this, _value);
42554
+ }
42555
+ },
42556
+ {
42557
+ /**
42558
+ * For each node in the object, perform a [left-fold](http://en.wikipedia.org/wiki/Fold_(higher-order_function)) with the return value of `fn(acc, node)`.
42559
+ *
42560
+ * If `init` isn't specified, `init` is set to the root object for the first step and the root element is skipped.
42561
+ */ key: "reduce",
42562
+ value: function reduce(cb, init) {
42563
+ var skip = arguments.length === 1;
42564
+ var acc = skip ? __privateGet(this, _value) : init;
42565
+ this.forEach(function(x) {
42566
+ if (!this.isRoot || !skip) {
42567
+ acc = cb.call(this, acc, x);
42568
+ }
42569
+ });
42570
+ return acc;
42571
+ }
42572
+ },
42573
+ {
42574
+ /**
42575
+ * Return an `Array` of every possible non-cyclic path in the object.
42576
+ * Paths are `Array`s of string keys.
42577
+ */ key: "paths",
42578
+ value: function paths() {
42579
+ var acc = [];
42580
+ this.forEach(function() {
42581
+ acc.push(this.path);
42582
+ });
42583
+ return acc;
42584
+ }
42585
+ },
42586
+ {
42587
+ /**
42588
+ * Return an `Array` of every node in the object.
42589
+ */ key: "nodes",
42590
+ value: function nodes() {
42591
+ var acc = [];
42592
+ this.forEach(function() {
42593
+ acc.push(this.node);
42594
+ });
42595
+ return acc;
42596
+ }
42597
+ },
42598
+ {
42599
+ /**
42600
+ * Create a deep clone of the object.
42601
+ */ key: "clone",
42602
+ value: function clone() {
42603
+ var parents = [];
42604
+ var nodes = [];
42605
+ var options = __privateGet(this, _options);
42606
+ if (is_typed_array(__privateGet(this, _value))) {
42607
+ return __privateGet(this, _value).slice();
42608
+ }
42609
+ return function clone(src) {
42610
+ for(var i = 0; i < parents.length; i++){
42611
+ if (parents[i] === src) {
42612
+ return nodes[i];
42613
+ }
42614
+ }
42615
+ if ((typeof src === "undefined" ? "undefined" : _type_of(src)) === "object" && src !== null) {
42616
+ var dst = copy(src, options);
42617
+ parents.push(src);
42618
+ nodes.push(dst);
42619
+ var iteratorFunction = options.includeSymbols ? own_enumerable_keys : Object.keys;
42620
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
42621
+ try {
42622
+ for(var _iterator = iteratorFunction(src)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
42623
+ var key = _step.value;
42624
+ dst[key] = clone(src[key]);
42625
+ }
42626
+ } catch (err) {
42627
+ _didIteratorError = true;
42628
+ _iteratorError = err;
42629
+ } finally{
42630
+ try {
42631
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
42632
+ _iterator.return();
42633
+ }
42634
+ } finally{
42635
+ if (_didIteratorError) {
42636
+ throw _iteratorError;
42637
+ }
42638
+ }
42639
+ }
42640
+ parents.pop();
42641
+ nodes.pop();
42642
+ return dst;
42643
+ }
42644
+ return src;
42645
+ }(__privateGet(this, _value));
42646
+ }
42647
+ }
42648
+ ]);
42649
+ return Traverse;
42650
+ }();
42651
+ _value = new WeakMap();
42652
+ _options = new WeakMap();
42653
+ var traverse = function(obj, options) {
42654
+ return new Traverse(obj, options);
42655
+ };
42656
+ traverse.get = function(obj, paths, options) {
42657
+ return new Traverse(obj, options).get(paths);
42658
+ };
42659
+ traverse.set = function(obj, path, value, options) {
42660
+ return new Traverse(obj, options).set(path, value);
42661
+ };
42662
+ traverse.has = function(obj, paths, options) {
42663
+ return new Traverse(obj, options).has(paths);
42664
+ };
42665
+ traverse.map = function(obj, cb, options) {
42666
+ return new Traverse(obj, options).map(cb);
42667
+ };
42668
+ traverse.forEach = function(obj, cb, options) {
42669
+ return new Traverse(obj, options).forEach(cb);
42670
+ };
42671
+ traverse.reduce = function(obj, cb, init, options) {
42672
+ return new Traverse(obj, options).reduce(cb, init);
42673
+ };
42674
+ traverse.paths = function(obj, options) {
42675
+ return new Traverse(obj, options).paths();
42676
+ };
42677
+ traverse.nodes = function(obj, options) {
42678
+ return new Traverse(obj, options).nodes();
42679
+ };
42680
+ traverse.clone = function(obj, options) {
42681
+ return new Traverse(obj, options).clone();
42682
+ };
42683
+ var src_default = traverse;
42684
+ // src/legacy.cts
42685
+
42686
+
42687
+
42688
+
45040
42689
  /***/ }),
45041
42690
 
45042
42691
  /***/ 61546: