strapi-plugin-comments 3.0.0-beta.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +81 -122
  2. package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
  3. package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
  4. package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
  5. package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
  6. package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
  7. package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
  8. package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
  9. package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +30 -50
  13. package/dist/admin/src/api/schemas.d.ts +432 -756
  14. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +30 -50
  16. package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
  17. package/dist/admin/src/hooks/useReports.d.ts +6 -10
  18. package/dist/server/index.js +198 -144
  19. package/dist/server/index.mjs +198 -144
  20. package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
  21. package/dist/server/src/bootstrap.d.ts +1 -1
  22. package/dist/server/src/config/index.d.ts +30 -0
  23. package/dist/server/src/content-types/index.d.ts +1 -1
  24. package/dist/server/src/controllers/admin.controller.d.ts +108 -29
  25. package/dist/server/src/controllers/client.controller.d.ts +117 -23
  26. package/dist/server/src/controllers/index.d.ts +297 -88
  27. package/dist/server/src/controllers/settings.controller.d.ts +33 -1
  28. package/dist/server/src/graphql/index.d.ts +1 -1
  29. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
  30. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
  31. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
  32. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
  33. package/dist/server/src/graphql/mutations/index.d.ts +2 -2
  34. package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
  35. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
  36. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
  37. package/dist/server/src/graphql/queries/index.d.ts +2 -2
  38. package/dist/server/src/graphql/types/getComment.d.ts +1 -1
  39. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
  40. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
  41. package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
  42. package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
  43. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
  44. package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
  45. package/dist/server/src/graphql/types/getId.d.ts +1 -1
  46. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
  47. package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
  48. package/dist/server/src/graphql/types/getReport.d.ts +1 -1
  49. package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
  50. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
  51. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
  52. package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
  53. package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
  54. package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
  55. package/dist/server/src/graphql/types/index.d.ts +1 -1
  56. package/dist/server/src/index.d.ts +921 -314
  57. package/dist/server/src/register/custom-fields/index.d.ts +1 -1
  58. package/dist/server/src/register/index.d.ts +1 -1
  59. package/dist/server/src/repositories/comment.repository.d.ts +10 -1
  60. package/dist/server/src/repositories/index.d.ts +0 -2
  61. package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
  62. package/dist/server/src/repositories/store.repository.d.ts +159 -3
  63. package/dist/server/src/repositories/utils.d.ts +1 -3
  64. package/dist/server/src/routes/admin.routes.d.ts +1 -1
  65. package/dist/server/src/routes/client.routes.d.ts +1 -1
  66. package/dist/server/src/routes/index.d.ts +2 -2
  67. package/dist/server/src/services/admin/admin.service.d.ts +232 -78
  68. package/dist/server/src/services/admin/utils.d.ts +1 -1
  69. package/dist/server/src/services/client.service.d.ts +177 -66
  70. package/dist/server/src/services/common.service.d.ts +60 -19
  71. package/dist/server/src/services/gql.service.d.ts +1 -1
  72. package/dist/server/src/services/index.d.ts +608 -222
  73. package/dist/server/src/services/settings.service.d.ts +25 -1
  74. package/dist/server/src/services/utils/functions.d.ts +1 -3
  75. package/dist/server/src/test/utils.d.ts +1 -0
  76. package/dist/server/src/utils/constants.d.ts +1 -1
  77. package/dist/server/src/utils/getConfig.d.ts +2 -2
  78. package/dist/server/src/utils/getPluginService.d.ts +2 -2
  79. package/dist/server/src/utils/throwError.d.ts +1 -1
  80. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +10 -9
  81. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
  82. package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
  83. package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
  84. package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
  85. package/dist/server/src/validators/utils.d.ts +1 -1
  86. package/package.json +18 -12
  87. /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
  88. /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
  89. /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
  90. /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
- const index = require("./index-CY_AVWS-.js");
3
+ const index = require("./index-B-ygLKrb.js");
4
4
  const reactQuery = require("@tanstack/react-query");
5
5
  const React = require("react");
6
6
  const admin = require("@strapi/strapi/admin");
@@ -1176,7 +1176,7 @@ lodash.exports;
1176
1176
  function baseAt(object, paths) {
1177
1177
  var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
1178
1178
  while (++index2 < length) {
1179
- result2[index2] = skip ? undefined$12 : get(object, paths[index2]);
1179
+ result2[index2] = skip ? undefined$12 : get2(object, paths[index2]);
1180
1180
  }
1181
1181
  return result2;
1182
1182
  }
@@ -1621,7 +1621,7 @@ lodash.exports;
1621
1621
  return matchesStrictComparable(toKey(path), srcValue);
1622
1622
  }
1623
1623
  return function(object) {
1624
- var objValue = get(object, path);
1624
+ var objValue = get2(object, path);
1625
1625
  return objValue === undefined$12 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1626
1626
  };
1627
1627
  }
@@ -1948,7 +1948,7 @@ lodash.exports;
1948
1948
  return symbolToString ? symbolToString.call(value) : "";
1949
1949
  }
1950
1950
  var result2 = value + "";
1951
- return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
1951
+ return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
1952
1952
  }
1953
1953
  function baseUniq(array, iteratee2, comparator) {
1954
1954
  var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
@@ -2500,7 +2500,7 @@ lodash.exports;
2500
2500
  bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
2501
2501
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
2502
2502
  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
2503
- bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
2503
+ bitmask &= -4;
2504
2504
  }
2505
2505
  var newData = [
2506
2506
  func,
@@ -2556,7 +2556,7 @@ lodash.exports;
2556
2556
  }
2557
2557
  var length = partials ? partials.length : 0;
2558
2558
  if (!length) {
2559
- bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
2559
+ bitmask &= -97;
2560
2560
  partials = holders = undefined$12;
2561
2561
  }
2562
2562
  ary2 = ary2 === undefined$12 ? ary2 : nativeMax(toInteger(ary2), 0);
@@ -2589,7 +2589,7 @@ lodash.exports;
2589
2589
  holders = newData[4];
2590
2590
  arity = newData[9] = newData[9] === undefined$12 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
2591
2591
  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
2592
- bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
2592
+ bitmask &= -25;
2593
2593
  }
2594
2594
  if (!bitmask || bitmask == WRAP_BIND_FLAG) {
2595
2595
  var result2 = createBind(func, bitmask, thisArg);
@@ -3155,7 +3155,7 @@ lodash.exports;
3155
3155
  return value;
3156
3156
  }
3157
3157
  var result2 = value + "";
3158
- return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
3158
+ return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
3159
3159
  }
3160
3160
  function toSource(func) {
3161
3161
  if (func != null) {
@@ -3849,10 +3849,10 @@ lodash.exports;
3849
3849
  return result2;
3850
3850
  };
3851
3851
  }
3852
- var bind3 = baseRest(function(func, thisArg, partials) {
3852
+ var bind2 = baseRest(function(func, thisArg, partials) {
3853
3853
  var bitmask = WRAP_BIND_FLAG;
3854
3854
  if (partials.length) {
3855
- var holders = replaceHolders(partials, getHolder(bind3));
3855
+ var holders = replaceHolders(partials, getHolder(bind2));
3856
3856
  bitmask |= WRAP_PARTIAL_FLAG;
3857
3857
  }
3858
3858
  return createWrap(func, bitmask, thisArg, partials, holders);
@@ -4188,7 +4188,7 @@ lodash.exports;
4188
4188
  customizer = typeof customizer == "function" ? customizer : undefined$12;
4189
4189
  return baseIsMatch(object, source, getMatchData(source), customizer);
4190
4190
  }
4191
- function isNaN2(value) {
4191
+ function isNaN3(value) {
4192
4192
  return isNumber2(value) && value != +value;
4193
4193
  }
4194
4194
  function isNative(value) {
@@ -4219,7 +4219,7 @@ lodash.exports;
4219
4219
  }
4220
4220
  var isRegExp3 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
4221
4221
  function isSafeInteger(value) {
4222
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
4222
+ return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
4223
4223
  }
4224
4224
  var isSet2 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
4225
4225
  function isString2(value) {
@@ -4260,9 +4260,9 @@ lodash.exports;
4260
4260
  return value === 0 ? value : 0;
4261
4261
  }
4262
4262
  value = toNumber(value);
4263
- if (value === INFINITY || value === -INFINITY) {
4264
- var sign = value < 0 ? -1 : 1;
4265
- return sign * MAX_INTEGER;
4263
+ if (value === INFINITY || value === -Infinity) {
4264
+ var sign3 = value < 0 ? -1 : 1;
4265
+ return sign3 * MAX_INTEGER;
4266
4266
  }
4267
4267
  return value === value ? value : 0;
4268
4268
  }
@@ -4295,7 +4295,7 @@ lodash.exports;
4295
4295
  return copyObject(value, keysIn(value));
4296
4296
  }
4297
4297
  function toSafeInteger(value) {
4298
- return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
4298
+ return value ? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
4299
4299
  }
4300
4300
  function toString(value) {
4301
4301
  return value == null ? "" : baseToString(value);
@@ -4376,7 +4376,7 @@ lodash.exports;
4376
4376
  function functionsIn(object) {
4377
4377
  return object == null ? [] : baseFunctions(object, keysIn(object));
4378
4378
  }
4379
- function get(object, path, defaultValue) {
4379
+ function get2(object, path, defaultValue) {
4380
4380
  var result2 = object == null ? undefined$12 : baseGet(object, path);
4381
4381
  return result2 === undefined$12 ? defaultValue : result2;
4382
4382
  }
@@ -4859,7 +4859,7 @@ lodash.exports;
4859
4859
  var bindAll = flatRest(function(object, methodNames) {
4860
4860
  arrayEach(methodNames, function(key) {
4861
4861
  key = toKey(key);
4862
- baseAssignValue(object, key, bind3(object[key], object));
4862
+ baseAssignValue(object, key, bind2(object[key], object));
4863
4863
  });
4864
4864
  return object;
4865
4865
  });
@@ -5016,7 +5016,7 @@ lodash.exports;
5016
5016
  var divide = createMathOperation(function(dividend, divisor) {
5017
5017
  return dividend / divisor;
5018
5018
  }, 1);
5019
- var floor = createRound("floor");
5019
+ var floor2 = createRound("floor");
5020
5020
  function max2(array) {
5021
5021
  return array && array.length ? baseExtremum(array, identity, baseGt) : undefined$12;
5022
5022
  }
@@ -5029,7 +5029,7 @@ lodash.exports;
5029
5029
  function meanBy(array, iteratee2) {
5030
5030
  return baseMean(array, getIteratee(iteratee2, 2));
5031
5031
  }
5032
- function min(array) {
5032
+ function min2(array) {
5033
5033
  return array && array.length ? baseExtremum(array, identity, baseLt) : undefined$12;
5034
5034
  }
5035
5035
  function minBy(array, iteratee2) {
@@ -5038,7 +5038,7 @@ lodash.exports;
5038
5038
  var multiply = createMathOperation(function(multiplier, multiplicand) {
5039
5039
  return multiplier * multiplicand;
5040
5040
  }, 1);
5041
- var round = createRound("round");
5041
+ var round2 = createRound("round");
5042
5042
  var subtract = createMathOperation(function(minuend, subtrahend) {
5043
5043
  return minuend - subtrahend;
5044
5044
  }, 0);
@@ -5056,7 +5056,7 @@ lodash.exports;
5056
5056
  lodash2.assignWith = assignWith;
5057
5057
  lodash2.at = at;
5058
5058
  lodash2.before = before;
5059
- lodash2.bind = bind3;
5059
+ lodash2.bind = bind2;
5060
5060
  lodash2.bindAll = bindAll;
5061
5061
  lodash2.bindKey = bindKey;
5062
5062
  lodash2.castArray = castArray;
@@ -5227,14 +5227,14 @@ lodash.exports;
5227
5227
  lodash2.findLast = findLast;
5228
5228
  lodash2.findLastIndex = findLastIndex;
5229
5229
  lodash2.findLastKey = findLastKey;
5230
- lodash2.floor = floor;
5230
+ lodash2.floor = floor2;
5231
5231
  lodash2.forEach = forEach;
5232
5232
  lodash2.forEachRight = forEachRight;
5233
5233
  lodash2.forIn = forIn;
5234
5234
  lodash2.forInRight = forInRight;
5235
5235
  lodash2.forOwn = forOwn;
5236
5236
  lodash2.forOwnRight = forOwnRight;
5237
- lodash2.get = get;
5237
+ lodash2.get = get2;
5238
5238
  lodash2.gt = gt;
5239
5239
  lodash2.gte = gte;
5240
5240
  lodash2.has = has2;
@@ -5265,7 +5265,7 @@ lodash.exports;
5265
5265
  lodash2.isMap = isMap2;
5266
5266
  lodash2.isMatch = isMatch;
5267
5267
  lodash2.isMatchWith = isMatchWith;
5268
- lodash2.isNaN = isNaN2;
5268
+ lodash2.isNaN = isNaN3;
5269
5269
  lodash2.isNative = isNative;
5270
5270
  lodash2.isNil = isNil;
5271
5271
  lodash2.isNull = isNull;
@@ -5294,7 +5294,7 @@ lodash.exports;
5294
5294
  lodash2.maxBy = maxBy;
5295
5295
  lodash2.mean = mean;
5296
5296
  lodash2.meanBy = meanBy;
5297
- lodash2.min = min;
5297
+ lodash2.min = min2;
5298
5298
  lodash2.minBy = minBy;
5299
5299
  lodash2.stubArray = stubArray;
5300
5300
  lodash2.stubFalse = stubFalse;
@@ -5316,7 +5316,7 @@ lodash.exports;
5316
5316
  lodash2.repeat = repeat2;
5317
5317
  lodash2.replace = replace2;
5318
5318
  lodash2.result = result;
5319
- lodash2.round = round;
5319
+ lodash2.round = round2;
5320
5320
  lodash2.runInContext = runInContext2;
5321
5321
  lodash2.sample = sample;
5322
5322
  lodash2.size = size;
@@ -5533,1267 +5533,1417 @@ lodash.exports;
5533
5533
  }).call(commonjsGlobal);
5534
5534
  })(lodash, lodash.exports);
5535
5535
  var lodashExports = lodash.exports;
5536
- var esErrors = Error;
5537
- var _eval = EvalError;
5538
- var range = RangeError;
5539
- var ref = ReferenceError;
5540
- var syntax = SyntaxError;
5541
5536
  var type = TypeError;
5542
- var uri = URIError;
5543
- var shams = function hasSymbols() {
5544
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
5545
- return false;
5537
+ const __viteBrowserExternal = {};
5538
+ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5539
+ __proto__: null,
5540
+ default: __viteBrowserExternal
5541
+ }, Symbol.toStringTag, { value: "Module" }));
5542
+ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
5543
+ var hasMap = typeof Map === "function" && Map.prototype;
5544
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
5545
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
5546
+ var mapForEach = hasMap && Map.prototype.forEach;
5547
+ var hasSet = typeof Set === "function" && Set.prototype;
5548
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
5549
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
5550
+ var setForEach = hasSet && Set.prototype.forEach;
5551
+ var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
5552
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
5553
+ var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
5554
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
5555
+ var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
5556
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
5557
+ var booleanValueOf = Boolean.prototype.valueOf;
5558
+ var objectToString = Object.prototype.toString;
5559
+ var functionToString = Function.prototype.toString;
5560
+ var $match = String.prototype.match;
5561
+ var $slice = String.prototype.slice;
5562
+ var $replace$1 = String.prototype.replace;
5563
+ var $toUpperCase = String.prototype.toUpperCase;
5564
+ var $toLowerCase = String.prototype.toLowerCase;
5565
+ var $test = RegExp.prototype.test;
5566
+ var $concat$1 = Array.prototype.concat;
5567
+ var $join = Array.prototype.join;
5568
+ var $arrSlice = Array.prototype.slice;
5569
+ var $floor = Math.floor;
5570
+ var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
5571
+ var gOPS = Object.getOwnPropertySymbols;
5572
+ var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
5573
+ var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
5574
+ var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
5575
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
5576
+ var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
5577
+ return O.__proto__;
5578
+ } : null);
5579
+ function addNumericSeparator(num, str) {
5580
+ if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
5581
+ return str;
5546
5582
  }
5547
- if (typeof Symbol.iterator === "symbol") {
5548
- return true;
5583
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
5584
+ if (typeof num === "number") {
5585
+ var int = num < 0 ? -$floor(-num) : $floor(num);
5586
+ if (int !== num) {
5587
+ var intStr = String(int);
5588
+ var dec = $slice.call(str, intStr.length + 1);
5589
+ return $replace$1.call(intStr, sepRegex, "$&_") + "." + $replace$1.call($replace$1.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
5590
+ }
5549
5591
  }
5550
- var obj = {};
5551
- var sym = Symbol("test");
5552
- var symObj = Object(sym);
5553
- if (typeof sym === "string") {
5554
- return false;
5592
+ return $replace$1.call(str, sepRegex, "$&_");
5593
+ }
5594
+ var utilInspect = require$$0;
5595
+ var inspectCustom = utilInspect.custom;
5596
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
5597
+ var quotes = {
5598
+ __proto__: null,
5599
+ "double": '"',
5600
+ single: "'"
5601
+ };
5602
+ var quoteREs = {
5603
+ __proto__: null,
5604
+ "double": /(["\\])/g,
5605
+ single: /(['\\])/g
5606
+ };
5607
+ var objectInspect = function inspect_(obj, options, depth, seen) {
5608
+ var opts = options || {};
5609
+ if (has$3(opts, "quoteStyle") && !has$3(quotes, opts.quoteStyle)) {
5610
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
5555
5611
  }
5556
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
5557
- return false;
5612
+ if (has$3(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
5613
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
5558
5614
  }
5559
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
5560
- return false;
5615
+ var customInspect = has$3(opts, "customInspect") ? opts.customInspect : true;
5616
+ if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
5617
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
5561
5618
  }
5562
- var symVal = 42;
5563
- obj[sym] = symVal;
5564
- for (sym in obj) {
5565
- return false;
5619
+ if (has$3(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
5620
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
5566
5621
  }
5567
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
5568
- return false;
5622
+ if (has$3(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
5623
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
5569
5624
  }
5570
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
5571
- return false;
5625
+ var numericSeparator = opts.numericSeparator;
5626
+ if (typeof obj === "undefined") {
5627
+ return "undefined";
5572
5628
  }
5573
- var syms = Object.getOwnPropertySymbols(obj);
5574
- if (syms.length !== 1 || syms[0] !== sym) {
5575
- return false;
5629
+ if (obj === null) {
5630
+ return "null";
5576
5631
  }
5577
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
5578
- return false;
5632
+ if (typeof obj === "boolean") {
5633
+ return obj ? "true" : "false";
5579
5634
  }
5580
- if (typeof Object.getOwnPropertyDescriptor === "function") {
5581
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
5582
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
5583
- return false;
5635
+ if (typeof obj === "string") {
5636
+ return inspectString(obj, opts);
5637
+ }
5638
+ if (typeof obj === "number") {
5639
+ if (obj === 0) {
5640
+ return Infinity / obj > 0 ? "0" : "-0";
5584
5641
  }
5642
+ var str = String(obj);
5643
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
5585
5644
  }
5586
- return true;
5587
- };
5588
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
5589
- var hasSymbolSham = shams;
5590
- var hasSymbols$1 = function hasNativeSymbols() {
5591
- if (typeof origSymbol !== "function") {
5592
- return false;
5645
+ if (typeof obj === "bigint") {
5646
+ var bigIntStr = String(obj) + "n";
5647
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
5593
5648
  }
5594
- if (typeof Symbol !== "function") {
5595
- return false;
5649
+ var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
5650
+ if (typeof depth === "undefined") {
5651
+ depth = 0;
5596
5652
  }
5597
- if (typeof origSymbol("foo") !== "symbol") {
5598
- return false;
5653
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
5654
+ return isArray$3(obj) ? "[Array]" : "[Object]";
5599
5655
  }
5600
- if (typeof Symbol("bar") !== "symbol") {
5601
- return false;
5656
+ var indent = getIndent(opts, depth);
5657
+ if (typeof seen === "undefined") {
5658
+ seen = [];
5659
+ } else if (indexOf(seen, obj) >= 0) {
5660
+ return "[Circular]";
5602
5661
  }
5603
- return hasSymbolSham();
5604
- };
5605
- var test = {
5606
- __proto__: null,
5607
- foo: {}
5608
- };
5609
- var $Object = Object;
5610
- var hasProto$1 = function hasProto() {
5611
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
5612
- };
5613
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
5614
- var toStr$1 = Object.prototype.toString;
5615
- var max = Math.max;
5616
- var funcType = "[object Function]";
5617
- var concatty = function concatty2(a, b) {
5618
- var arr = [];
5619
- for (var i = 0; i < a.length; i += 1) {
5620
- arr[i] = a[i];
5621
- }
5622
- for (var j = 0; j < b.length; j += 1) {
5623
- arr[j + a.length] = b[j];
5624
- }
5625
- return arr;
5626
- };
5627
- var slicy = function slicy2(arrLike, offset) {
5628
- var arr = [];
5629
- for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
5630
- arr[j] = arrLike[i];
5662
+ function inspect2(value, from, noIndent) {
5663
+ if (from) {
5664
+ seen = $arrSlice.call(seen);
5665
+ seen.push(from);
5666
+ }
5667
+ if (noIndent) {
5668
+ var newOpts = {
5669
+ depth: opts.depth
5670
+ };
5671
+ if (has$3(opts, "quoteStyle")) {
5672
+ newOpts.quoteStyle = opts.quoteStyle;
5673
+ }
5674
+ return inspect_(value, newOpts, depth + 1, seen);
5675
+ }
5676
+ return inspect_(value, opts, depth + 1, seen);
5631
5677
  }
5632
- return arr;
5633
- };
5634
- var joiny = function(arr, joiner) {
5635
- var str = "";
5636
- for (var i = 0; i < arr.length; i += 1) {
5637
- str += arr[i];
5638
- if (i + 1 < arr.length) {
5639
- str += joiner;
5678
+ if (typeof obj === "function" && !isRegExp$1(obj)) {
5679
+ var name = nameOf(obj);
5680
+ var keys = arrObjKeys(obj, inspect2);
5681
+ return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
5682
+ }
5683
+ if (isSymbol(obj)) {
5684
+ var symString = hasShammedSymbols ? $replace$1.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
5685
+ return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
5686
+ }
5687
+ if (isElement(obj)) {
5688
+ var s = "<" + $toLowerCase.call(String(obj.nodeName));
5689
+ var attrs = obj.attributes || [];
5690
+ for (var i = 0; i < attrs.length; i++) {
5691
+ s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
5692
+ }
5693
+ s += ">";
5694
+ if (obj.childNodes && obj.childNodes.length) {
5695
+ s += "...";
5640
5696
  }
5697
+ s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
5698
+ return s;
5641
5699
  }
5642
- return str;
5643
- };
5644
- var implementation$1 = function bind(that) {
5645
- var target = this;
5646
- if (typeof target !== "function" || toStr$1.apply(target) !== funcType) {
5647
- throw new TypeError(ERROR_MESSAGE + target);
5648
- }
5649
- var args = slicy(arguments, 1);
5650
- var bound;
5651
- var binder = function() {
5652
- if (this instanceof bound) {
5653
- var result = target.apply(
5654
- this,
5655
- concatty(args, arguments)
5656
- );
5657
- if (Object(result) === result) {
5658
- return result;
5659
- }
5660
- return this;
5700
+ if (isArray$3(obj)) {
5701
+ if (obj.length === 0) {
5702
+ return "[]";
5661
5703
  }
5662
- return target.apply(
5663
- that,
5664
- concatty(args, arguments)
5665
- );
5666
- };
5667
- var boundLength = max(0, target.length - args.length);
5668
- var boundArgs = [];
5669
- for (var i = 0; i < boundLength; i++) {
5670
- boundArgs[i] = "$" + i;
5671
- }
5672
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
5673
- if (target.prototype) {
5674
- var Empty = function Empty2() {
5675
- };
5676
- Empty.prototype = target.prototype;
5677
- bound.prototype = new Empty();
5678
- Empty.prototype = null;
5704
+ var xs = arrObjKeys(obj, inspect2);
5705
+ if (indent && !singleLineValues(xs)) {
5706
+ return "[" + indentedJoin(xs, indent) + "]";
5707
+ }
5708
+ return "[ " + $join.call(xs, ", ") + " ]";
5679
5709
  }
5680
- return bound;
5681
- };
5682
- var implementation = implementation$1;
5683
- var functionBind = Function.prototype.bind || implementation;
5684
- var call = Function.prototype.call;
5685
- var $hasOwn = Object.prototype.hasOwnProperty;
5686
- var bind$1 = functionBind;
5687
- var hasown = bind$1.call(call, $hasOwn);
5688
- var undefined$1;
5689
- var $Error = esErrors;
5690
- var $EvalError = _eval;
5691
- var $RangeError = range;
5692
- var $ReferenceError = ref;
5693
- var $SyntaxError$1 = syntax;
5694
- var $TypeError$3 = type;
5695
- var $URIError = uri;
5696
- var $Function = Function;
5697
- var getEvalledConstructor = function(expressionSyntax) {
5698
- try {
5699
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
5700
- } catch (e) {
5710
+ if (isError(obj)) {
5711
+ var parts = arrObjKeys(obj, inspect2);
5712
+ if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
5713
+ return "{ [" + String(obj) + "] " + $join.call($concat$1.call("[cause]: " + inspect2(obj.cause), parts), ", ") + " }";
5714
+ }
5715
+ if (parts.length === 0) {
5716
+ return "[" + String(obj) + "]";
5717
+ }
5718
+ return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
5701
5719
  }
5702
- };
5703
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
5704
- if ($gOPD$1) {
5705
- try {
5706
- $gOPD$1({}, "");
5707
- } catch (e) {
5708
- $gOPD$1 = null;
5720
+ if (typeof obj === "object" && customInspect) {
5721
+ if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
5722
+ return utilInspect(obj, { depth: maxDepth - depth });
5723
+ } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
5724
+ return obj.inspect();
5725
+ }
5709
5726
  }
5710
- }
5711
- var throwTypeError = function() {
5712
- throw new $TypeError$3();
5713
- };
5714
- var ThrowTypeError = $gOPD$1 ? function() {
5715
- try {
5716
- arguments.callee;
5717
- return throwTypeError;
5718
- } catch (calleeThrows) {
5719
- try {
5720
- return $gOPD$1(arguments, "callee").get;
5721
- } catch (gOPDthrows) {
5722
- return throwTypeError;
5727
+ if (isMap(obj)) {
5728
+ var mapParts = [];
5729
+ if (mapForEach) {
5730
+ mapForEach.call(obj, function(value, key) {
5731
+ mapParts.push(inspect2(key, obj, true) + " => " + inspect2(value, obj));
5732
+ });
5723
5733
  }
5734
+ return collectionOf("Map", mapSize.call(obj), mapParts, indent);
5724
5735
  }
5725
- }() : throwTypeError;
5726
- var hasSymbols2 = hasSymbols$1();
5727
- var hasProto2 = hasProto$1();
5728
- var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
5729
- return x.__proto__;
5730
- } : null);
5731
- var needsEval = {};
5732
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
5733
- var INTRINSICS = {
5734
- __proto__: null,
5735
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
5736
- "%Array%": Array,
5737
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
5738
- "%ArrayIteratorPrototype%": hasSymbols2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
5739
- "%AsyncFromSyncIteratorPrototype%": undefined$1,
5740
- "%AsyncFunction%": needsEval,
5741
- "%AsyncGenerator%": needsEval,
5742
- "%AsyncGeneratorFunction%": needsEval,
5743
- "%AsyncIteratorPrototype%": needsEval,
5744
- "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
5745
- "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
5746
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
5747
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
5748
- "%Boolean%": Boolean,
5749
- "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
5750
- "%Date%": Date,
5751
- "%decodeURI%": decodeURI,
5752
- "%decodeURIComponent%": decodeURIComponent,
5753
- "%encodeURI%": encodeURI,
5754
- "%encodeURIComponent%": encodeURIComponent,
5755
- "%Error%": $Error,
5756
- "%eval%": eval,
5757
- // eslint-disable-line no-eval
5758
- "%EvalError%": $EvalError,
5759
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
5760
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
5761
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
5762
- "%Function%": $Function,
5763
- "%GeneratorFunction%": needsEval,
5764
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
5765
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
5766
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
5767
- "%isFinite%": isFinite,
5768
- "%isNaN%": isNaN,
5769
- "%IteratorPrototype%": hasSymbols2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
5770
- "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
5771
- "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
5772
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5773
- "%Math%": Math,
5774
- "%Number%": Number,
5775
- "%Object%": Object,
5776
- "%parseFloat%": parseFloat,
5777
- "%parseInt%": parseInt,
5778
- "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
5779
- "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
5780
- "%RangeError%": $RangeError,
5781
- "%ReferenceError%": $ReferenceError,
5782
- "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
5783
- "%RegExp%": RegExp,
5784
- "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
5785
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5786
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
5787
- "%String%": String,
5788
- "%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
5789
- "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
5790
- "%SyntaxError%": $SyntaxError$1,
5791
- "%ThrowTypeError%": ThrowTypeError,
5792
- "%TypedArray%": TypedArray,
5793
- "%TypeError%": $TypeError$3,
5794
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
5795
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
5796
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
5797
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
5798
- "%URIError%": $URIError,
5799
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
5800
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
5801
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
5802
- };
5803
- if (getProto) {
5804
- try {
5805
- null.error;
5806
- } catch (e) {
5807
- var errorProto = getProto(getProto(e));
5808
- INTRINSICS["%Error.prototype%"] = errorProto;
5809
- }
5810
- }
5811
- var doEval = function doEval2(name) {
5812
- var value;
5813
- if (name === "%AsyncFunction%") {
5814
- value = getEvalledConstructor("async function () {}");
5815
- } else if (name === "%GeneratorFunction%") {
5816
- value = getEvalledConstructor("function* () {}");
5817
- } else if (name === "%AsyncGeneratorFunction%") {
5818
- value = getEvalledConstructor("async function* () {}");
5819
- } else if (name === "%AsyncGenerator%") {
5820
- var fn = doEval2("%AsyncGeneratorFunction%");
5821
- if (fn) {
5822
- value = fn.prototype;
5823
- }
5824
- } else if (name === "%AsyncIteratorPrototype%") {
5825
- var gen = doEval2("%AsyncGenerator%");
5826
- if (gen && getProto) {
5827
- value = getProto(gen.prototype);
5736
+ if (isSet(obj)) {
5737
+ var setParts = [];
5738
+ if (setForEach) {
5739
+ setForEach.call(obj, function(value) {
5740
+ setParts.push(inspect2(value, obj));
5741
+ });
5828
5742
  }
5743
+ return collectionOf("Set", setSize.call(obj), setParts, indent);
5829
5744
  }
5830
- INTRINSICS[name] = value;
5831
- return value;
5832
- };
5833
- var LEGACY_ALIASES = {
5834
- __proto__: null,
5835
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
5836
- "%ArrayPrototype%": ["Array", "prototype"],
5837
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
5838
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
5839
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
5840
- "%ArrayProto_values%": ["Array", "prototype", "values"],
5841
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
5842
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
5843
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
5844
- "%BooleanPrototype%": ["Boolean", "prototype"],
5845
- "%DataViewPrototype%": ["DataView", "prototype"],
5846
- "%DatePrototype%": ["Date", "prototype"],
5847
- "%ErrorPrototype%": ["Error", "prototype"],
5848
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
5849
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
5850
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
5851
- "%FunctionPrototype%": ["Function", "prototype"],
5852
- "%Generator%": ["GeneratorFunction", "prototype"],
5853
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
5854
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
5855
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
5856
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
5857
- "%JSONParse%": ["JSON", "parse"],
5858
- "%JSONStringify%": ["JSON", "stringify"],
5859
- "%MapPrototype%": ["Map", "prototype"],
5860
- "%NumberPrototype%": ["Number", "prototype"],
5861
- "%ObjectPrototype%": ["Object", "prototype"],
5862
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
5863
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
5864
- "%PromisePrototype%": ["Promise", "prototype"],
5865
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
5866
- "%Promise_all%": ["Promise", "all"],
5867
- "%Promise_reject%": ["Promise", "reject"],
5868
- "%Promise_resolve%": ["Promise", "resolve"],
5869
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
5870
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
5871
- "%RegExpPrototype%": ["RegExp", "prototype"],
5872
- "%SetPrototype%": ["Set", "prototype"],
5873
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
5874
- "%StringPrototype%": ["String", "prototype"],
5875
- "%SymbolPrototype%": ["Symbol", "prototype"],
5876
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
5877
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
5878
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
5879
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
5880
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
5881
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
5882
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
5883
- "%URIErrorPrototype%": ["URIError", "prototype"],
5884
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
5885
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
5886
- };
5887
- var bind2 = functionBind;
5888
- var hasOwn$1 = hasown;
5889
- var $concat$1 = bind2.call(Function.call, Array.prototype.concat);
5890
- var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
5891
- var $replace$1 = bind2.call(Function.call, String.prototype.replace);
5892
- var $strSlice = bind2.call(Function.call, String.prototype.slice);
5893
- var $exec = bind2.call(Function.call, RegExp.prototype.exec);
5894
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
5895
- var reEscapeChar = /\\(\\)?/g;
5896
- var stringToPath = function stringToPath2(string) {
5897
- var first = $strSlice(string, 0, 1);
5898
- var last = $strSlice(string, -1);
5899
- if (first === "%" && last !== "%") {
5900
- throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
5901
- } else if (last === "%" && first !== "%") {
5902
- throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
5745
+ if (isWeakMap(obj)) {
5746
+ return weakCollectionOf("WeakMap");
5903
5747
  }
5904
- var result = [];
5905
- $replace$1(string, rePropName, function(match, number, quote2, subString) {
5906
- result[result.length] = quote2 ? $replace$1(subString, reEscapeChar, "$1") : number || match;
5907
- });
5908
- return result;
5909
- };
5910
- var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
5911
- var intrinsicName = name;
5912
- var alias;
5913
- if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
5914
- alias = LEGACY_ALIASES[intrinsicName];
5915
- intrinsicName = "%" + alias[0] + "%";
5748
+ if (isWeakSet(obj)) {
5749
+ return weakCollectionOf("WeakSet");
5916
5750
  }
5917
- if (hasOwn$1(INTRINSICS, intrinsicName)) {
5918
- var value = INTRINSICS[intrinsicName];
5919
- if (value === needsEval) {
5920
- value = doEval(intrinsicName);
5921
- }
5922
- if (typeof value === "undefined" && !allowMissing) {
5923
- throw new $TypeError$3("intrinsic " + name + " exists, but is not available. Please file an issue!");
5924
- }
5925
- return {
5926
- alias,
5927
- name: intrinsicName,
5928
- value
5929
- };
5751
+ if (isWeakRef(obj)) {
5752
+ return weakCollectionOf("WeakRef");
5930
5753
  }
5931
- throw new $SyntaxError$1("intrinsic " + name + " does not exist!");
5932
- };
5933
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
5934
- if (typeof name !== "string" || name.length === 0) {
5935
- throw new $TypeError$3("intrinsic name must be a non-empty string");
5754
+ if (isNumber(obj)) {
5755
+ return markBoxed(inspect2(Number(obj)));
5936
5756
  }
5937
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
5938
- throw new $TypeError$3('"allowMissing" argument must be a boolean');
5757
+ if (isBigInt(obj)) {
5758
+ return markBoxed(inspect2(bigIntValueOf.call(obj)));
5939
5759
  }
5940
- if ($exec(/^%?[^%]*%?$/, name) === null) {
5941
- throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
5760
+ if (isBoolean(obj)) {
5761
+ return markBoxed(booleanValueOf.call(obj));
5942
5762
  }
5943
- var parts = stringToPath(name);
5944
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
5945
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
5946
- var intrinsicRealName = intrinsic.name;
5947
- var value = intrinsic.value;
5948
- var skipFurtherCaching = false;
5949
- var alias = intrinsic.alias;
5950
- if (alias) {
5951
- intrinsicBaseName = alias[0];
5952
- $spliceApply(parts, $concat$1([0, 1], alias));
5763
+ if (isString(obj)) {
5764
+ return markBoxed(inspect2(String(obj)));
5953
5765
  }
5954
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
5955
- var part = parts[i];
5956
- var first = $strSlice(part, 0, 1);
5957
- var last = $strSlice(part, -1);
5958
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
5959
- throw new $SyntaxError$1("property names with quotes must have matching quotes");
5960
- }
5961
- if (part === "constructor" || !isOwn) {
5962
- skipFurtherCaching = true;
5766
+ if (typeof window !== "undefined" && obj === window) {
5767
+ return "{ [object Window] }";
5768
+ }
5769
+ if (typeof globalThis !== "undefined" && obj === globalThis || typeof commonjsGlobal !== "undefined" && obj === commonjsGlobal) {
5770
+ return "{ [object globalThis] }";
5771
+ }
5772
+ if (!isDate(obj) && !isRegExp$1(obj)) {
5773
+ var ys = arrObjKeys(obj, inspect2);
5774
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
5775
+ var protoTag = obj instanceof Object ? "" : "null prototype";
5776
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
5777
+ var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
5778
+ var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
5779
+ if (ys.length === 0) {
5780
+ return tag + "{}";
5963
5781
  }
5964
- intrinsicBaseName += "." + part;
5965
- intrinsicRealName = "%" + intrinsicBaseName + "%";
5966
- if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
5967
- value = INTRINSICS[intrinsicRealName];
5968
- } else if (value != null) {
5969
- if (!(part in value)) {
5970
- if (!allowMissing) {
5971
- throw new $TypeError$3("base intrinsic for " + name + " exists, but the property is not available.");
5972
- }
5973
- return void 0;
5974
- }
5975
- if ($gOPD$1 && i + 1 >= parts.length) {
5976
- var desc = $gOPD$1(value, part);
5977
- isOwn = !!desc;
5978
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
5979
- value = desc.get;
5980
- } else {
5981
- value = value[part];
5982
- }
5983
- } else {
5984
- isOwn = hasOwn$1(value, part);
5985
- value = value[part];
5986
- }
5987
- if (isOwn && !skipFurtherCaching) {
5988
- INTRINSICS[intrinsicRealName] = value;
5989
- }
5782
+ if (indent) {
5783
+ return tag + "{" + indentedJoin(ys, indent) + "}";
5990
5784
  }
5785
+ return tag + "{ " + $join.call(ys, ", ") + " }";
5991
5786
  }
5992
- return value;
5787
+ return String(obj);
5993
5788
  };
5994
- var callBind$1 = { exports: {} };
5995
- var esDefineProperty;
5996
- var hasRequiredEsDefineProperty;
5997
- function requireEsDefineProperty() {
5998
- if (hasRequiredEsDefineProperty) return esDefineProperty;
5999
- hasRequiredEsDefineProperty = 1;
6000
- var GetIntrinsic3 = getIntrinsic;
6001
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
6002
- if ($defineProperty2) {
6003
- try {
6004
- $defineProperty2({}, "a", { value: 1 });
6005
- } catch (e) {
6006
- $defineProperty2 = false;
6007
- }
6008
- }
6009
- esDefineProperty = $defineProperty2;
6010
- return esDefineProperty;
5789
+ function wrapQuotes(s, defaultStyle, opts) {
5790
+ var style = opts.quoteStyle || defaultStyle;
5791
+ var quoteChar = quotes[style];
5792
+ return quoteChar + s + quoteChar;
6011
5793
  }
6012
- var GetIntrinsic$3 = getIntrinsic;
6013
- var $gOPD = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
6014
- if ($gOPD) {
6015
- try {
6016
- $gOPD([], "length");
6017
- } catch (e) {
6018
- $gOPD = null;
6019
- }
5794
+ function quote(s) {
5795
+ return $replace$1.call(String(s), /"/g, "&quot;");
6020
5796
  }
6021
- var gopd$1 = $gOPD;
6022
- var $defineProperty$1 = requireEsDefineProperty();
6023
- var $SyntaxError = syntax;
6024
- var $TypeError$2 = type;
6025
- var gopd = gopd$1;
6026
- var defineDataProperty = function defineDataProperty2(obj, property, value) {
6027
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
6028
- throw new $TypeError$2("`obj` must be an object or a function`");
6029
- }
6030
- if (typeof property !== "string" && typeof property !== "symbol") {
6031
- throw new $TypeError$2("`property` must be a string or a symbol`");
6032
- }
6033
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
6034
- throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");
6035
- }
6036
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
6037
- throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");
6038
- }
6039
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
6040
- throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");
6041
- }
6042
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
6043
- throw new $TypeError$2("`loose`, if provided, must be a boolean");
6044
- }
6045
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
6046
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
6047
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
6048
- var loose = arguments.length > 6 ? arguments[6] : false;
6049
- var desc = !!gopd && gopd(obj, property);
6050
- if ($defineProperty$1) {
6051
- $defineProperty$1(obj, property, {
6052
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
6053
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
6054
- value,
6055
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
6056
- });
6057
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
6058
- obj[property] = value;
6059
- } else {
6060
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
5797
+ function isArray$3(obj) {
5798
+ return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5799
+ }
5800
+ function isDate(obj) {
5801
+ return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5802
+ }
5803
+ function isRegExp$1(obj) {
5804
+ return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5805
+ }
5806
+ function isError(obj) {
5807
+ return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5808
+ }
5809
+ function isString(obj) {
5810
+ return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5811
+ }
5812
+ function isNumber(obj) {
5813
+ return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5814
+ }
5815
+ function isBoolean(obj) {
5816
+ return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
5817
+ }
5818
+ function isSymbol(obj) {
5819
+ if (hasShammedSymbols) {
5820
+ return obj && typeof obj === "object" && obj instanceof Symbol;
6061
5821
  }
6062
- };
6063
- var $defineProperty = requireEsDefineProperty();
6064
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
6065
- return !!$defineProperty;
6066
- };
6067
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
6068
- if (!$defineProperty) {
6069
- return null;
5822
+ if (typeof obj === "symbol") {
5823
+ return true;
5824
+ }
5825
+ if (!obj || typeof obj !== "object" || !symToString) {
5826
+ return false;
6070
5827
  }
6071
5828
  try {
6072
- return $defineProperty([], "length", { value: 1 }).length !== 1;
6073
- } catch (e) {
5829
+ symToString.call(obj);
6074
5830
  return true;
5831
+ } catch (e) {
6075
5832
  }
6076
- };
6077
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
6078
- var GetIntrinsic$2 = getIntrinsic;
6079
- var define = defineDataProperty;
6080
- var hasDescriptors = hasPropertyDescriptors_1();
6081
- var gOPD = gopd$1;
6082
- var $TypeError$1 = type;
6083
- var $floor$1 = GetIntrinsic$2("%Math.floor%");
6084
- var setFunctionLength = function setFunctionLength2(fn, length) {
6085
- if (typeof fn !== "function") {
6086
- throw new $TypeError$1("`fn` is not a function");
6087
- }
6088
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor$1(length) !== length) {
6089
- throw new $TypeError$1("`length` must be a positive 32-bit integer");
6090
- }
6091
- var loose = arguments.length > 2 && !!arguments[2];
6092
- var functionLengthIsConfigurable = true;
6093
- var functionLengthIsWritable = true;
6094
- if ("length" in fn && gOPD) {
6095
- var desc = gOPD(fn, "length");
6096
- if (desc && !desc.configurable) {
6097
- functionLengthIsConfigurable = false;
6098
- }
6099
- if (desc && !desc.writable) {
6100
- functionLengthIsWritable = false;
6101
- }
6102
- }
6103
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
6104
- if (hasDescriptors) {
6105
- define(
6106
- /** @type {Parameters<define>[0]} */
6107
- fn,
6108
- "length",
6109
- length,
6110
- true,
6111
- true
6112
- );
6113
- } else {
6114
- define(
6115
- /** @type {Parameters<define>[0]} */
6116
- fn,
6117
- "length",
6118
- length
6119
- );
6120
- }
6121
- }
6122
- return fn;
6123
- };
6124
- (function(module2) {
6125
- var bind3 = functionBind;
6126
- var GetIntrinsic3 = getIntrinsic;
6127
- var setFunctionLength$1 = setFunctionLength;
6128
- var $TypeError2 = type;
6129
- var $apply = GetIntrinsic3("%Function.prototype.apply%");
6130
- var $call = GetIntrinsic3("%Function.prototype.call%");
6131
- var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
6132
- var $defineProperty2 = requireEsDefineProperty();
6133
- var $max = GetIntrinsic3("%Math.max%");
6134
- module2.exports = function callBind2(originalFunction) {
6135
- if (typeof originalFunction !== "function") {
6136
- throw new $TypeError2("a function is required");
6137
- }
6138
- var func = $reflectApply(bind3, $call, arguments);
6139
- return setFunctionLength$1(
6140
- func,
6141
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
6142
- true
6143
- );
6144
- };
6145
- var applyBind = function applyBind2() {
6146
- return $reflectApply(bind3, $apply, arguments);
6147
- };
6148
- if ($defineProperty2) {
6149
- $defineProperty2(module2.exports, "apply", { value: applyBind });
6150
- } else {
6151
- module2.exports.apply = applyBind;
5833
+ return false;
5834
+ }
5835
+ function isBigInt(obj) {
5836
+ if (!obj || typeof obj !== "object" || !bigIntValueOf) {
5837
+ return false;
6152
5838
  }
6153
- })(callBind$1);
6154
- var callBindExports = callBind$1.exports;
6155
- var GetIntrinsic$1 = getIntrinsic;
6156
- var callBind = callBindExports;
6157
- var $indexOf = callBind(GetIntrinsic$1("String.prototype.indexOf"));
6158
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
6159
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
6160
- if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
6161
- return callBind(intrinsic);
5839
+ try {
5840
+ bigIntValueOf.call(obj);
5841
+ return true;
5842
+ } catch (e) {
6162
5843
  }
6163
- return intrinsic;
6164
- };
6165
- const __viteBrowserExternal = {};
6166
- const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6167
- __proto__: null,
6168
- default: __viteBrowserExternal
6169
- }, Symbol.toStringTag, { value: "Module" }));
6170
- const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
6171
- var hasMap = typeof Map === "function" && Map.prototype;
6172
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
6173
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
6174
- var mapForEach = hasMap && Map.prototype.forEach;
6175
- var hasSet = typeof Set === "function" && Set.prototype;
6176
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
6177
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
6178
- var setForEach = hasSet && Set.prototype.forEach;
6179
- var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
6180
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
6181
- var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
6182
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
6183
- var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
6184
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
6185
- var booleanValueOf = Boolean.prototype.valueOf;
6186
- var objectToString = Object.prototype.toString;
6187
- var functionToString = Function.prototype.toString;
6188
- var $match = String.prototype.match;
6189
- var $slice = String.prototype.slice;
6190
- var $replace = String.prototype.replace;
6191
- var $toUpperCase = String.prototype.toUpperCase;
6192
- var $toLowerCase = String.prototype.toLowerCase;
6193
- var $test = RegExp.prototype.test;
6194
- var $concat = Array.prototype.concat;
6195
- var $join = Array.prototype.join;
6196
- var $arrSlice = Array.prototype.slice;
6197
- var $floor = Math.floor;
6198
- var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
6199
- var gOPS = Object.getOwnPropertySymbols;
6200
- var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
6201
- var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
6202
- var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
6203
- var isEnumerable = Object.prototype.propertyIsEnumerable;
6204
- var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
6205
- return O.__proto__;
6206
- } : null);
6207
- function addNumericSeparator(num, str) {
6208
- if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
6209
- return str;
5844
+ return false;
5845
+ }
5846
+ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
5847
+ return key in this;
5848
+ };
5849
+ function has$3(obj, key) {
5850
+ return hasOwn$1.call(obj, key);
5851
+ }
5852
+ function toStr(obj) {
5853
+ return objectToString.call(obj);
5854
+ }
5855
+ function nameOf(f) {
5856
+ if (f.name) {
5857
+ return f.name;
6210
5858
  }
6211
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
6212
- if (typeof num === "number") {
6213
- var int = num < 0 ? -$floor(-num) : $floor(num);
6214
- if (int !== num) {
6215
- var intStr = String(int);
6216
- var dec = $slice.call(str, intStr.length + 1);
6217
- return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
5859
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
5860
+ if (m) {
5861
+ return m[1];
5862
+ }
5863
+ return null;
5864
+ }
5865
+ function indexOf(xs, x) {
5866
+ if (xs.indexOf) {
5867
+ return xs.indexOf(x);
5868
+ }
5869
+ for (var i = 0, l = xs.length; i < l; i++) {
5870
+ if (xs[i] === x) {
5871
+ return i;
6218
5872
  }
6219
5873
  }
6220
- return $replace.call(str, sepRegex, "$&_");
5874
+ return -1;
6221
5875
  }
6222
- var utilInspect = require$$0;
6223
- var inspectCustom = utilInspect.custom;
6224
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
6225
- var quotes = {
6226
- __proto__: null,
6227
- "double": '"',
6228
- single: "'"
6229
- };
6230
- var quoteREs = {
6231
- __proto__: null,
6232
- "double": /(["\\])/g,
6233
- single: /(['\\])/g
6234
- };
6235
- var objectInspect = function inspect_(obj, options, depth, seen) {
6236
- var opts = options || {};
6237
- if (has$3(opts, "quoteStyle") && !has$3(quotes, opts.quoteStyle)) {
6238
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
5876
+ function isMap(x) {
5877
+ if (!mapSize || !x || typeof x !== "object") {
5878
+ return false;
6239
5879
  }
6240
- if (has$3(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
6241
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
5880
+ try {
5881
+ mapSize.call(x);
5882
+ try {
5883
+ setSize.call(x);
5884
+ } catch (s) {
5885
+ return true;
5886
+ }
5887
+ return x instanceof Map;
5888
+ } catch (e) {
6242
5889
  }
6243
- var customInspect = has$3(opts, "customInspect") ? opts.customInspect : true;
6244
- if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
6245
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
5890
+ return false;
5891
+ }
5892
+ function isWeakMap(x) {
5893
+ if (!weakMapHas || !x || typeof x !== "object") {
5894
+ return false;
6246
5895
  }
6247
- if (has$3(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
6248
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
5896
+ try {
5897
+ weakMapHas.call(x, weakMapHas);
5898
+ try {
5899
+ weakSetHas.call(x, weakSetHas);
5900
+ } catch (s) {
5901
+ return true;
5902
+ }
5903
+ return x instanceof WeakMap;
5904
+ } catch (e) {
6249
5905
  }
6250
- if (has$3(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
6251
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
5906
+ return false;
5907
+ }
5908
+ function isWeakRef(x) {
5909
+ if (!weakRefDeref || !x || typeof x !== "object") {
5910
+ return false;
6252
5911
  }
6253
- var numericSeparator = opts.numericSeparator;
6254
- if (typeof obj === "undefined") {
6255
- return "undefined";
5912
+ try {
5913
+ weakRefDeref.call(x);
5914
+ return true;
5915
+ } catch (e) {
6256
5916
  }
6257
- if (obj === null) {
6258
- return "null";
5917
+ return false;
5918
+ }
5919
+ function isSet(x) {
5920
+ if (!setSize || !x || typeof x !== "object") {
5921
+ return false;
6259
5922
  }
6260
- if (typeof obj === "boolean") {
6261
- return obj ? "true" : "false";
5923
+ try {
5924
+ setSize.call(x);
5925
+ try {
5926
+ mapSize.call(x);
5927
+ } catch (m) {
5928
+ return true;
5929
+ }
5930
+ return x instanceof Set;
5931
+ } catch (e) {
6262
5932
  }
6263
- if (typeof obj === "string") {
6264
- return inspectString(obj, opts);
5933
+ return false;
5934
+ }
5935
+ function isWeakSet(x) {
5936
+ if (!weakSetHas || !x || typeof x !== "object") {
5937
+ return false;
6265
5938
  }
6266
- if (typeof obj === "number") {
6267
- if (obj === 0) {
6268
- return Infinity / obj > 0 ? "0" : "-0";
5939
+ try {
5940
+ weakSetHas.call(x, weakSetHas);
5941
+ try {
5942
+ weakMapHas.call(x, weakMapHas);
5943
+ } catch (s) {
5944
+ return true;
6269
5945
  }
6270
- var str = String(obj);
6271
- return numericSeparator ? addNumericSeparator(obj, str) : str;
5946
+ return x instanceof WeakSet;
5947
+ } catch (e) {
6272
5948
  }
6273
- if (typeof obj === "bigint") {
6274
- var bigIntStr = String(obj) + "n";
6275
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
5949
+ return false;
5950
+ }
5951
+ function isElement(x) {
5952
+ if (!x || typeof x !== "object") {
5953
+ return false;
6276
5954
  }
6277
- var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
6278
- if (typeof depth === "undefined") {
6279
- depth = 0;
5955
+ if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
5956
+ return true;
6280
5957
  }
6281
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
6282
- return isArray$3(obj) ? "[Array]" : "[Object]";
5958
+ return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
5959
+ }
5960
+ function inspectString(str, opts) {
5961
+ if (str.length > opts.maxStringLength) {
5962
+ var remaining = str.length - opts.maxStringLength;
5963
+ var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
5964
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
6283
5965
  }
6284
- var indent = getIndent(opts, depth);
6285
- if (typeof seen === "undefined") {
6286
- seen = [];
6287
- } else if (indexOf(seen, obj) >= 0) {
6288
- return "[Circular]";
5966
+ var quoteRE = quoteREs[opts.quoteStyle || "single"];
5967
+ quoteRE.lastIndex = 0;
5968
+ var s = $replace$1.call($replace$1.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
5969
+ return wrapQuotes(s, "single", opts);
5970
+ }
5971
+ function lowbyte(c) {
5972
+ var n = c.charCodeAt(0);
5973
+ var x = {
5974
+ 8: "b",
5975
+ 9: "t",
5976
+ 10: "n",
5977
+ 12: "f",
5978
+ 13: "r"
5979
+ }[n];
5980
+ if (x) {
5981
+ return "\\" + x;
6289
5982
  }
6290
- function inspect2(value, from, noIndent) {
6291
- if (from) {
6292
- seen = $arrSlice.call(seen);
6293
- seen.push(from);
6294
- }
6295
- if (noIndent) {
6296
- var newOpts = {
6297
- depth: opts.depth
6298
- };
6299
- if (has$3(opts, "quoteStyle")) {
6300
- newOpts.quoteStyle = opts.quoteStyle;
6301
- }
6302
- return inspect_(value, newOpts, depth + 1, seen);
5983
+ return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
5984
+ }
5985
+ function markBoxed(str) {
5986
+ return "Object(" + str + ")";
5987
+ }
5988
+ function weakCollectionOf(type2) {
5989
+ return type2 + " { ? }";
5990
+ }
5991
+ function collectionOf(type2, size, entries, indent) {
5992
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
5993
+ return type2 + " (" + size + ") {" + joinedEntries + "}";
5994
+ }
5995
+ function singleLineValues(xs) {
5996
+ for (var i = 0; i < xs.length; i++) {
5997
+ if (indexOf(xs[i], "\n") >= 0) {
5998
+ return false;
6303
5999
  }
6304
- return inspect_(value, opts, depth + 1, seen);
6305
6000
  }
6306
- if (typeof obj === "function" && !isRegExp$1(obj)) {
6307
- var name = nameOf(obj);
6308
- var keys = arrObjKeys(obj, inspect2);
6309
- return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
6001
+ return true;
6002
+ }
6003
+ function getIndent(opts, depth) {
6004
+ var baseIndent;
6005
+ if (opts.indent === " ") {
6006
+ baseIndent = " ";
6007
+ } else if (typeof opts.indent === "number" && opts.indent > 0) {
6008
+ baseIndent = $join.call(Array(opts.indent + 1), " ");
6009
+ } else {
6010
+ return null;
6310
6011
  }
6311
- if (isSymbol(obj)) {
6312
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
6313
- return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
6012
+ return {
6013
+ base: baseIndent,
6014
+ prev: $join.call(Array(depth + 1), baseIndent)
6015
+ };
6016
+ }
6017
+ function indentedJoin(xs, indent) {
6018
+ if (xs.length === 0) {
6019
+ return "";
6314
6020
  }
6315
- if (isElement(obj)) {
6316
- var s = "<" + $toLowerCase.call(String(obj.nodeName));
6317
- var attrs = obj.attributes || [];
6318
- for (var i = 0; i < attrs.length; i++) {
6319
- s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
6320
- }
6321
- s += ">";
6322
- if (obj.childNodes && obj.childNodes.length) {
6323
- s += "...";
6021
+ var lineJoiner = "\n" + indent.prev + indent.base;
6022
+ return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
6023
+ }
6024
+ function arrObjKeys(obj, inspect2) {
6025
+ var isArr = isArray$3(obj);
6026
+ var xs = [];
6027
+ if (isArr) {
6028
+ xs.length = obj.length;
6029
+ for (var i = 0; i < obj.length; i++) {
6030
+ xs[i] = has$3(obj, i) ? inspect2(obj[i], obj) : "";
6324
6031
  }
6325
- s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
6326
- return s;
6327
6032
  }
6328
- if (isArray$3(obj)) {
6329
- if (obj.length === 0) {
6330
- return "[]";
6331
- }
6332
- var xs = arrObjKeys(obj, inspect2);
6333
- if (indent && !singleLineValues(xs)) {
6334
- return "[" + indentedJoin(xs, indent) + "]";
6033
+ var syms = typeof gOPS === "function" ? gOPS(obj) : [];
6034
+ var symMap;
6035
+ if (hasShammedSymbols) {
6036
+ symMap = {};
6037
+ for (var k = 0; k < syms.length; k++) {
6038
+ symMap["$" + syms[k]] = syms[k];
6335
6039
  }
6336
- return "[ " + $join.call(xs, ", ") + " ]";
6337
6040
  }
6338
- if (isError(obj)) {
6339
- var parts = arrObjKeys(obj, inspect2);
6340
- if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
6341
- return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect2(obj.cause), parts), ", ") + " }";
6041
+ for (var key in obj) {
6042
+ if (!has$3(obj, key)) {
6043
+ continue;
6342
6044
  }
6343
- if (parts.length === 0) {
6344
- return "[" + String(obj) + "]";
6045
+ if (isArr && String(Number(key)) === key && key < obj.length) {
6046
+ continue;
6345
6047
  }
6346
- return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
6347
- }
6348
- if (typeof obj === "object" && customInspect) {
6349
- if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
6350
- return utilInspect(obj, { depth: maxDepth - depth });
6351
- } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
6352
- return obj.inspect();
6048
+ if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
6049
+ continue;
6050
+ } else if ($test.call(/[^\w$]/, key)) {
6051
+ xs.push(inspect2(key, obj) + ": " + inspect2(obj[key], obj));
6052
+ } else {
6053
+ xs.push(key + ": " + inspect2(obj[key], obj));
6353
6054
  }
6354
6055
  }
6355
- if (isMap(obj)) {
6356
- var mapParts = [];
6357
- if (mapForEach) {
6358
- mapForEach.call(obj, function(value, key) {
6359
- mapParts.push(inspect2(key, obj, true) + " => " + inspect2(value, obj));
6360
- });
6056
+ if (typeof gOPS === "function") {
6057
+ for (var j = 0; j < syms.length; j++) {
6058
+ if (isEnumerable.call(obj, syms[j])) {
6059
+ xs.push("[" + inspect2(syms[j]) + "]: " + inspect2(obj[syms[j]], obj));
6060
+ }
6361
6061
  }
6362
- return collectionOf("Map", mapSize.call(obj), mapParts, indent);
6363
6062
  }
6364
- if (isSet(obj)) {
6365
- var setParts = [];
6366
- if (setForEach) {
6367
- setForEach.call(obj, function(value) {
6368
- setParts.push(inspect2(value, obj));
6369
- });
6063
+ return xs;
6064
+ }
6065
+ var inspect$3 = objectInspect;
6066
+ var $TypeError$5 = type;
6067
+ var listGetNode = function(list, key, isDelete) {
6068
+ var prev = list;
6069
+ var curr;
6070
+ for (; (curr = prev.next) != null; prev = curr) {
6071
+ if (curr.key === key) {
6072
+ prev.next = curr.next;
6073
+ if (!isDelete) {
6074
+ curr.next = /** @type {NonNullable<typeof list.next>} */
6075
+ list.next;
6076
+ list.next = curr;
6077
+ }
6078
+ return curr;
6370
6079
  }
6371
- return collectionOf("Set", setSize.call(obj), setParts, indent);
6372
- }
6373
- if (isWeakMap(obj)) {
6374
- return weakCollectionOf("WeakMap");
6375
- }
6376
- if (isWeakSet(obj)) {
6377
- return weakCollectionOf("WeakSet");
6378
- }
6379
- if (isWeakRef(obj)) {
6380
- return weakCollectionOf("WeakRef");
6381
- }
6382
- if (isNumber(obj)) {
6383
- return markBoxed(inspect2(Number(obj)));
6384
- }
6385
- if (isBigInt(obj)) {
6386
- return markBoxed(inspect2(bigIntValueOf.call(obj)));
6387
6080
  }
6388
- if (isBoolean(obj)) {
6389
- return markBoxed(booleanValueOf.call(obj));
6081
+ };
6082
+ var listGet = function(objects, key) {
6083
+ if (!objects) {
6084
+ return void 0;
6390
6085
  }
6391
- if (isString(obj)) {
6392
- return markBoxed(inspect2(String(obj)));
6086
+ var node = listGetNode(objects, key);
6087
+ return node && node.value;
6088
+ };
6089
+ var listSet = function(objects, key, value) {
6090
+ var node = listGetNode(objects, key);
6091
+ if (node) {
6092
+ node.value = value;
6093
+ } else {
6094
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
6095
+ {
6096
+ // eslint-disable-line no-param-reassign, no-extra-parens
6097
+ key,
6098
+ next: objects.next,
6099
+ value
6100
+ };
6393
6101
  }
6394
- if (typeof window !== "undefined" && obj === window) {
6395
- return "{ [object Window] }";
6102
+ };
6103
+ var listHas = function(objects, key) {
6104
+ if (!objects) {
6105
+ return false;
6396
6106
  }
6397
- if (typeof globalThis !== "undefined" && obj === globalThis || typeof commonjsGlobal !== "undefined" && obj === commonjsGlobal) {
6398
- return "{ [object globalThis] }";
6107
+ return !!listGetNode(objects, key);
6108
+ };
6109
+ var listDelete = function(objects, key) {
6110
+ if (objects) {
6111
+ return listGetNode(objects, key, true);
6399
6112
  }
6400
- if (!isDate(obj) && !isRegExp$1(obj)) {
6401
- var ys = arrObjKeys(obj, inspect2);
6402
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
6403
- var protoTag = obj instanceof Object ? "" : "null prototype";
6404
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
6405
- var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
6406
- var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
6407
- if (ys.length === 0) {
6408
- return tag + "{}";
6409
- }
6410
- if (indent) {
6411
- return tag + "{" + indentedJoin(ys, indent) + "}";
6113
+ };
6114
+ var sideChannelList = function getSideChannelList() {
6115
+ var $o;
6116
+ var channel = {
6117
+ assert: function(key) {
6118
+ if (!channel.has(key)) {
6119
+ throw new $TypeError$5("Side channel does not contain " + inspect$3(key));
6120
+ }
6121
+ },
6122
+ "delete": function(key) {
6123
+ var root = $o && $o.next;
6124
+ var deletedNode = listDelete($o, key);
6125
+ if (deletedNode && root && root === deletedNode) {
6126
+ $o = void 0;
6127
+ }
6128
+ return !!deletedNode;
6129
+ },
6130
+ get: function(key) {
6131
+ return listGet($o, key);
6132
+ },
6133
+ has: function(key) {
6134
+ return listHas($o, key);
6135
+ },
6136
+ set: function(key, value) {
6137
+ if (!$o) {
6138
+ $o = {
6139
+ next: void 0
6140
+ };
6141
+ }
6142
+ listSet(
6143
+ /** @type {NonNullable<typeof $o>} */
6144
+ $o,
6145
+ key,
6146
+ value
6147
+ );
6412
6148
  }
6413
- return tag + "{ " + $join.call(ys, ", ") + " }";
6414
- }
6415
- return String(obj);
6149
+ };
6150
+ return channel;
6416
6151
  };
6417
- function wrapQuotes(s, defaultStyle, opts) {
6418
- var style = opts.quoteStyle || defaultStyle;
6419
- var quoteChar = quotes[style];
6420
- return quoteChar + s + quoteChar;
6421
- }
6422
- function quote(s) {
6423
- return $replace.call(String(s), /"/g, "&quot;");
6424
- }
6425
- function isArray$3(obj) {
6426
- return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6427
- }
6428
- function isDate(obj) {
6429
- return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6430
- }
6431
- function isRegExp$1(obj) {
6432
- return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6433
- }
6434
- function isError(obj) {
6435
- return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6436
- }
6437
- function isString(obj) {
6438
- return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6439
- }
6440
- function isNumber(obj) {
6441
- return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6442
- }
6443
- function isBoolean(obj) {
6444
- return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
6445
- }
6446
- function isSymbol(obj) {
6447
- if (hasShammedSymbols) {
6448
- return obj && typeof obj === "object" && obj instanceof Symbol;
6449
- }
6450
- if (typeof obj === "symbol") {
6451
- return true;
6452
- }
6453
- if (!obj || typeof obj !== "object" || !symToString) {
6454
- return false;
6152
+ var esObjectAtoms = Object;
6153
+ var esErrors = Error;
6154
+ var _eval = EvalError;
6155
+ var range = RangeError;
6156
+ var ref = ReferenceError;
6157
+ var syntax = SyntaxError;
6158
+ var uri = URIError;
6159
+ var abs$1 = Math.abs;
6160
+ var floor$1 = Math.floor;
6161
+ var max$1 = Math.max;
6162
+ var min$1 = Math.min;
6163
+ var pow$1 = Math.pow;
6164
+ var round$1 = Math.round;
6165
+ var _isNaN = Number.isNaN || function isNaN2(a) {
6166
+ return a !== a;
6167
+ };
6168
+ var $isNaN = _isNaN;
6169
+ var sign$1 = function sign(number) {
6170
+ if ($isNaN(number) || number === 0) {
6171
+ return number;
6455
6172
  }
6173
+ return number < 0 ? -1 : 1;
6174
+ };
6175
+ var gOPD = Object.getOwnPropertyDescriptor;
6176
+ var $gOPD$1 = gOPD;
6177
+ if ($gOPD$1) {
6456
6178
  try {
6457
- symToString.call(obj);
6458
- return true;
6179
+ $gOPD$1([], "length");
6459
6180
  } catch (e) {
6181
+ $gOPD$1 = null;
6460
6182
  }
6461
- return false;
6462
6183
  }
6463
- function isBigInt(obj) {
6464
- if (!obj || typeof obj !== "object" || !bigIntValueOf) {
6465
- return false;
6466
- }
6184
+ var gopd = $gOPD$1;
6185
+ var $defineProperty$1 = Object.defineProperty || false;
6186
+ if ($defineProperty$1) {
6467
6187
  try {
6468
- bigIntValueOf.call(obj);
6469
- return true;
6188
+ $defineProperty$1({}, "a", { value: 1 });
6470
6189
  } catch (e) {
6190
+ $defineProperty$1 = false;
6471
6191
  }
6472
- return false;
6473
6192
  }
6474
- var hasOwn = Object.prototype.hasOwnProperty || function(key) {
6475
- return key in this;
6476
- };
6477
- function has$3(obj, key) {
6478
- return hasOwn.call(obj, key);
6193
+ var esDefineProperty = $defineProperty$1;
6194
+ var shams;
6195
+ var hasRequiredShams;
6196
+ function requireShams() {
6197
+ if (hasRequiredShams) return shams;
6198
+ hasRequiredShams = 1;
6199
+ shams = function hasSymbols2() {
6200
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
6201
+ return false;
6202
+ }
6203
+ if (typeof Symbol.iterator === "symbol") {
6204
+ return true;
6205
+ }
6206
+ var obj = {};
6207
+ var sym = Symbol("test");
6208
+ var symObj = Object(sym);
6209
+ if (typeof sym === "string") {
6210
+ return false;
6211
+ }
6212
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
6213
+ return false;
6214
+ }
6215
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
6216
+ return false;
6217
+ }
6218
+ var symVal = 42;
6219
+ obj[sym] = symVal;
6220
+ for (var _ in obj) {
6221
+ return false;
6222
+ }
6223
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
6224
+ return false;
6225
+ }
6226
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
6227
+ return false;
6228
+ }
6229
+ var syms = Object.getOwnPropertySymbols(obj);
6230
+ if (syms.length !== 1 || syms[0] !== sym) {
6231
+ return false;
6232
+ }
6233
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
6234
+ return false;
6235
+ }
6236
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
6237
+ var descriptor = (
6238
+ /** @type {PropertyDescriptor} */
6239
+ Object.getOwnPropertyDescriptor(obj, sym)
6240
+ );
6241
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
6242
+ return false;
6243
+ }
6244
+ }
6245
+ return true;
6246
+ };
6247
+ return shams;
6479
6248
  }
6480
- function toStr(obj) {
6481
- return objectToString.call(obj);
6249
+ var hasSymbols$1;
6250
+ var hasRequiredHasSymbols;
6251
+ function requireHasSymbols() {
6252
+ if (hasRequiredHasSymbols) return hasSymbols$1;
6253
+ hasRequiredHasSymbols = 1;
6254
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
6255
+ var hasSymbolSham = requireShams();
6256
+ hasSymbols$1 = function hasNativeSymbols() {
6257
+ if (typeof origSymbol !== "function") {
6258
+ return false;
6259
+ }
6260
+ if (typeof Symbol !== "function") {
6261
+ return false;
6262
+ }
6263
+ if (typeof origSymbol("foo") !== "symbol") {
6264
+ return false;
6265
+ }
6266
+ if (typeof Symbol("bar") !== "symbol") {
6267
+ return false;
6268
+ }
6269
+ return hasSymbolSham();
6270
+ };
6271
+ return hasSymbols$1;
6482
6272
  }
6483
- function nameOf(f) {
6484
- if (f.name) {
6485
- return f.name;
6486
- }
6487
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
6488
- if (m) {
6489
- return m[1];
6490
- }
6491
- return null;
6273
+ var Reflect_getPrototypeOf;
6274
+ var hasRequiredReflect_getPrototypeOf;
6275
+ function requireReflect_getPrototypeOf() {
6276
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
6277
+ hasRequiredReflect_getPrototypeOf = 1;
6278
+ Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
6279
+ return Reflect_getPrototypeOf;
6492
6280
  }
6493
- function indexOf(xs, x) {
6494
- if (xs.indexOf) {
6495
- return xs.indexOf(x);
6496
- }
6497
- for (var i = 0, l = xs.length; i < l; i++) {
6498
- if (xs[i] === x) {
6499
- return i;
6281
+ var Object_getPrototypeOf;
6282
+ var hasRequiredObject_getPrototypeOf;
6283
+ function requireObject_getPrototypeOf() {
6284
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
6285
+ hasRequiredObject_getPrototypeOf = 1;
6286
+ var $Object2 = esObjectAtoms;
6287
+ Object_getPrototypeOf = $Object2.getPrototypeOf || null;
6288
+ return Object_getPrototypeOf;
6289
+ }
6290
+ var implementation;
6291
+ var hasRequiredImplementation;
6292
+ function requireImplementation() {
6293
+ if (hasRequiredImplementation) return implementation;
6294
+ hasRequiredImplementation = 1;
6295
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
6296
+ var toStr2 = Object.prototype.toString;
6297
+ var max2 = Math.max;
6298
+ var funcType = "[object Function]";
6299
+ var concatty = function concatty2(a, b) {
6300
+ var arr = [];
6301
+ for (var i = 0; i < a.length; i += 1) {
6302
+ arr[i] = a[i];
6303
+ }
6304
+ for (var j = 0; j < b.length; j += 1) {
6305
+ arr[j + a.length] = b[j];
6306
+ }
6307
+ return arr;
6308
+ };
6309
+ var slicy = function slicy2(arrLike, offset) {
6310
+ var arr = [];
6311
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
6312
+ arr[j] = arrLike[i];
6313
+ }
6314
+ return arr;
6315
+ };
6316
+ var joiny = function(arr, joiner) {
6317
+ var str = "";
6318
+ for (var i = 0; i < arr.length; i += 1) {
6319
+ str += arr[i];
6320
+ if (i + 1 < arr.length) {
6321
+ str += joiner;
6322
+ }
6323
+ }
6324
+ return str;
6325
+ };
6326
+ implementation = function bind2(that) {
6327
+ var target = this;
6328
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
6329
+ throw new TypeError(ERROR_MESSAGE + target);
6330
+ }
6331
+ var args = slicy(arguments, 1);
6332
+ var bound;
6333
+ var binder = function() {
6334
+ if (this instanceof bound) {
6335
+ var result = target.apply(
6336
+ this,
6337
+ concatty(args, arguments)
6338
+ );
6339
+ if (Object(result) === result) {
6340
+ return result;
6341
+ }
6342
+ return this;
6343
+ }
6344
+ return target.apply(
6345
+ that,
6346
+ concatty(args, arguments)
6347
+ );
6348
+ };
6349
+ var boundLength = max2(0, target.length - args.length);
6350
+ var boundArgs = [];
6351
+ for (var i = 0; i < boundLength; i++) {
6352
+ boundArgs[i] = "$" + i;
6353
+ }
6354
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
6355
+ if (target.prototype) {
6356
+ var Empty = function Empty2() {
6357
+ };
6358
+ Empty.prototype = target.prototype;
6359
+ bound.prototype = new Empty();
6360
+ Empty.prototype = null;
6500
6361
  }
6501
- }
6502
- return -1;
6362
+ return bound;
6363
+ };
6364
+ return implementation;
6503
6365
  }
6504
- function isMap(x) {
6505
- if (!mapSize || !x || typeof x !== "object") {
6506
- return false;
6507
- }
6508
- try {
6509
- mapSize.call(x);
6510
- try {
6511
- setSize.call(x);
6512
- } catch (s) {
6513
- return true;
6514
- }
6515
- return x instanceof Map;
6516
- } catch (e) {
6517
- }
6518
- return false;
6366
+ var functionBind;
6367
+ var hasRequiredFunctionBind;
6368
+ function requireFunctionBind() {
6369
+ if (hasRequiredFunctionBind) return functionBind;
6370
+ hasRequiredFunctionBind = 1;
6371
+ var implementation2 = requireImplementation();
6372
+ functionBind = Function.prototype.bind || implementation2;
6373
+ return functionBind;
6519
6374
  }
6520
- function isWeakMap(x) {
6521
- if (!weakMapHas || !x || typeof x !== "object") {
6522
- return false;
6523
- }
6375
+ var functionCall;
6376
+ var hasRequiredFunctionCall;
6377
+ function requireFunctionCall() {
6378
+ if (hasRequiredFunctionCall) return functionCall;
6379
+ hasRequiredFunctionCall = 1;
6380
+ functionCall = Function.prototype.call;
6381
+ return functionCall;
6382
+ }
6383
+ var functionApply;
6384
+ var hasRequiredFunctionApply;
6385
+ function requireFunctionApply() {
6386
+ if (hasRequiredFunctionApply) return functionApply;
6387
+ hasRequiredFunctionApply = 1;
6388
+ functionApply = Function.prototype.apply;
6389
+ return functionApply;
6390
+ }
6391
+ var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
6392
+ var bind$2 = requireFunctionBind();
6393
+ var $apply$1 = requireFunctionApply();
6394
+ var $call$2 = requireFunctionCall();
6395
+ var $reflectApply = reflectApply;
6396
+ var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
6397
+ var bind$1 = requireFunctionBind();
6398
+ var $TypeError$4 = type;
6399
+ var $call$1 = requireFunctionCall();
6400
+ var $actualApply = actualApply;
6401
+ var callBindApplyHelpers = function callBindBasic(args) {
6402
+ if (args.length < 1 || typeof args[0] !== "function") {
6403
+ throw new $TypeError$4("a function is required");
6404
+ }
6405
+ return $actualApply(bind$1, $call$1, args);
6406
+ };
6407
+ var get;
6408
+ var hasRequiredGet;
6409
+ function requireGet() {
6410
+ if (hasRequiredGet) return get;
6411
+ hasRequiredGet = 1;
6412
+ var callBind = callBindApplyHelpers;
6413
+ var gOPD2 = gopd;
6414
+ var hasProtoAccessor;
6524
6415
  try {
6525
- weakMapHas.call(x, weakMapHas);
6526
- try {
6527
- weakSetHas.call(x, weakSetHas);
6528
- } catch (s) {
6529
- return true;
6530
- }
6531
- return x instanceof WeakMap;
6416
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
6417
+ [].__proto__ === Array.prototype;
6532
6418
  } catch (e) {
6419
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
6420
+ throw e;
6421
+ }
6533
6422
  }
6534
- return false;
6423
+ var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
6424
+ Object.prototype,
6425
+ /** @type {keyof typeof Object.prototype} */
6426
+ "__proto__"
6427
+ );
6428
+ var $Object2 = Object;
6429
+ var $getPrototypeOf = $Object2.getPrototypeOf;
6430
+ get = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
6431
+ /** @type {import('./get')} */
6432
+ function getDunder(value) {
6433
+ return $getPrototypeOf(value == null ? value : $Object2(value));
6434
+ }
6435
+ ) : false;
6436
+ return get;
6535
6437
  }
6536
- function isWeakRef(x) {
6537
- if (!weakRefDeref || !x || typeof x !== "object") {
6538
- return false;
6539
- }
6438
+ var getProto$1;
6439
+ var hasRequiredGetProto;
6440
+ function requireGetProto() {
6441
+ if (hasRequiredGetProto) return getProto$1;
6442
+ hasRequiredGetProto = 1;
6443
+ var reflectGetProto = requireReflect_getPrototypeOf();
6444
+ var originalGetProto = requireObject_getPrototypeOf();
6445
+ var getDunderProto = requireGet();
6446
+ getProto$1 = reflectGetProto ? function getProto2(O) {
6447
+ return reflectGetProto(O);
6448
+ } : originalGetProto ? function getProto2(O) {
6449
+ if (!O || typeof O !== "object" && typeof O !== "function") {
6450
+ throw new TypeError("getProto: not an object");
6451
+ }
6452
+ return originalGetProto(O);
6453
+ } : getDunderProto ? function getProto2(O) {
6454
+ return getDunderProto(O);
6455
+ } : null;
6456
+ return getProto$1;
6457
+ }
6458
+ var hasown;
6459
+ var hasRequiredHasown;
6460
+ function requireHasown() {
6461
+ if (hasRequiredHasown) return hasown;
6462
+ hasRequiredHasown = 1;
6463
+ var call = Function.prototype.call;
6464
+ var $hasOwn = Object.prototype.hasOwnProperty;
6465
+ var bind2 = requireFunctionBind();
6466
+ hasown = bind2.call(call, $hasOwn);
6467
+ return hasown;
6468
+ }
6469
+ var undefined$1;
6470
+ var $Object = esObjectAtoms;
6471
+ var $Error = esErrors;
6472
+ var $EvalError = _eval;
6473
+ var $RangeError = range;
6474
+ var $ReferenceError = ref;
6475
+ var $SyntaxError = syntax;
6476
+ var $TypeError$3 = type;
6477
+ var $URIError = uri;
6478
+ var abs = abs$1;
6479
+ var floor = floor$1;
6480
+ var max = max$1;
6481
+ var min = min$1;
6482
+ var pow = pow$1;
6483
+ var round = round$1;
6484
+ var sign2 = sign$1;
6485
+ var $Function = Function;
6486
+ var getEvalledConstructor = function(expressionSyntax) {
6540
6487
  try {
6541
- weakRefDeref.call(x);
6542
- return true;
6488
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
6543
6489
  } catch (e) {
6544
6490
  }
6545
- return false;
6546
- }
6547
- function isSet(x) {
6548
- if (!setSize || !x || typeof x !== "object") {
6549
- return false;
6550
- }
6491
+ };
6492
+ var $gOPD = gopd;
6493
+ var $defineProperty = esDefineProperty;
6494
+ var throwTypeError = function() {
6495
+ throw new $TypeError$3();
6496
+ };
6497
+ var ThrowTypeError = $gOPD ? function() {
6551
6498
  try {
6552
- setSize.call(x);
6499
+ arguments.callee;
6500
+ return throwTypeError;
6501
+ } catch (calleeThrows) {
6553
6502
  try {
6554
- mapSize.call(x);
6555
- } catch (m) {
6556
- return true;
6503
+ return $gOPD(arguments, "callee").get;
6504
+ } catch (gOPDthrows) {
6505
+ return throwTypeError;
6557
6506
  }
6558
- return x instanceof Set;
6559
- } catch (e) {
6560
- }
6561
- return false;
6562
- }
6563
- function isWeakSet(x) {
6564
- if (!weakSetHas || !x || typeof x !== "object") {
6565
- return false;
6566
6507
  }
6508
+ }() : throwTypeError;
6509
+ var hasSymbols = requireHasSymbols()();
6510
+ var getProto = requireGetProto();
6511
+ var $ObjectGPO = requireObject_getPrototypeOf();
6512
+ var $ReflectGPO = requireReflect_getPrototypeOf();
6513
+ var $apply = requireFunctionApply();
6514
+ var $call = requireFunctionCall();
6515
+ var needsEval = {};
6516
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
6517
+ var INTRINSICS = {
6518
+ __proto__: null,
6519
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
6520
+ "%Array%": Array,
6521
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
6522
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
6523
+ "%AsyncFromSyncIteratorPrototype%": undefined$1,
6524
+ "%AsyncFunction%": needsEval,
6525
+ "%AsyncGenerator%": needsEval,
6526
+ "%AsyncGeneratorFunction%": needsEval,
6527
+ "%AsyncIteratorPrototype%": needsEval,
6528
+ "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
6529
+ "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
6530
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
6531
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
6532
+ "%Boolean%": Boolean,
6533
+ "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
6534
+ "%Date%": Date,
6535
+ "%decodeURI%": decodeURI,
6536
+ "%decodeURIComponent%": decodeURIComponent,
6537
+ "%encodeURI%": encodeURI,
6538
+ "%encodeURIComponent%": encodeURIComponent,
6539
+ "%Error%": $Error,
6540
+ "%eval%": eval,
6541
+ // eslint-disable-line no-eval
6542
+ "%EvalError%": $EvalError,
6543
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
6544
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
6545
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
6546
+ "%Function%": $Function,
6547
+ "%GeneratorFunction%": needsEval,
6548
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
6549
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
6550
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
6551
+ "%isFinite%": isFinite,
6552
+ "%isNaN%": isNaN,
6553
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
6554
+ "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
6555
+ "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
6556
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
6557
+ "%Math%": Math,
6558
+ "%Number%": Number,
6559
+ "%Object%": $Object,
6560
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
6561
+ "%parseFloat%": parseFloat,
6562
+ "%parseInt%": parseInt,
6563
+ "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
6564
+ "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
6565
+ "%RangeError%": $RangeError,
6566
+ "%ReferenceError%": $ReferenceError,
6567
+ "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
6568
+ "%RegExp%": RegExp,
6569
+ "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
6570
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
6571
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
6572
+ "%String%": String,
6573
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
6574
+ "%Symbol%": hasSymbols ? Symbol : undefined$1,
6575
+ "%SyntaxError%": $SyntaxError,
6576
+ "%ThrowTypeError%": ThrowTypeError,
6577
+ "%TypedArray%": TypedArray,
6578
+ "%TypeError%": $TypeError$3,
6579
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
6580
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
6581
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
6582
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
6583
+ "%URIError%": $URIError,
6584
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
6585
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
6586
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet,
6587
+ "%Function.prototype.call%": $call,
6588
+ "%Function.prototype.apply%": $apply,
6589
+ "%Object.defineProperty%": $defineProperty,
6590
+ "%Object.getPrototypeOf%": $ObjectGPO,
6591
+ "%Math.abs%": abs,
6592
+ "%Math.floor%": floor,
6593
+ "%Math.max%": max,
6594
+ "%Math.min%": min,
6595
+ "%Math.pow%": pow,
6596
+ "%Math.round%": round,
6597
+ "%Math.sign%": sign2,
6598
+ "%Reflect.getPrototypeOf%": $ReflectGPO
6599
+ };
6600
+ if (getProto) {
6567
6601
  try {
6568
- weakSetHas.call(x, weakSetHas);
6569
- try {
6570
- weakMapHas.call(x, weakMapHas);
6571
- } catch (s) {
6572
- return true;
6573
- }
6574
- return x instanceof WeakSet;
6602
+ null.error;
6575
6603
  } catch (e) {
6604
+ var errorProto = getProto(getProto(e));
6605
+ INTRINSICS["%Error.prototype%"] = errorProto;
6576
6606
  }
6577
- return false;
6578
6607
  }
6579
- function isElement(x) {
6580
- if (!x || typeof x !== "object") {
6581
- return false;
6582
- }
6583
- if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
6584
- return true;
6608
+ var doEval = function doEval2(name) {
6609
+ var value;
6610
+ if (name === "%AsyncFunction%") {
6611
+ value = getEvalledConstructor("async function () {}");
6612
+ } else if (name === "%GeneratorFunction%") {
6613
+ value = getEvalledConstructor("function* () {}");
6614
+ } else if (name === "%AsyncGeneratorFunction%") {
6615
+ value = getEvalledConstructor("async function* () {}");
6616
+ } else if (name === "%AsyncGenerator%") {
6617
+ var fn = doEval2("%AsyncGeneratorFunction%");
6618
+ if (fn) {
6619
+ value = fn.prototype;
6620
+ }
6621
+ } else if (name === "%AsyncIteratorPrototype%") {
6622
+ var gen = doEval2("%AsyncGenerator%");
6623
+ if (gen && getProto) {
6624
+ value = getProto(gen.prototype);
6625
+ }
6585
6626
  }
6586
- return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
6587
- }
6588
- function inspectString(str, opts) {
6589
- if (str.length > opts.maxStringLength) {
6590
- var remaining = str.length - opts.maxStringLength;
6591
- var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
6592
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
6627
+ INTRINSICS[name] = value;
6628
+ return value;
6629
+ };
6630
+ var LEGACY_ALIASES = {
6631
+ __proto__: null,
6632
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
6633
+ "%ArrayPrototype%": ["Array", "prototype"],
6634
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
6635
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
6636
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
6637
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
6638
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
6639
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
6640
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
6641
+ "%BooleanPrototype%": ["Boolean", "prototype"],
6642
+ "%DataViewPrototype%": ["DataView", "prototype"],
6643
+ "%DatePrototype%": ["Date", "prototype"],
6644
+ "%ErrorPrototype%": ["Error", "prototype"],
6645
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
6646
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
6647
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
6648
+ "%FunctionPrototype%": ["Function", "prototype"],
6649
+ "%Generator%": ["GeneratorFunction", "prototype"],
6650
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
6651
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
6652
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
6653
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
6654
+ "%JSONParse%": ["JSON", "parse"],
6655
+ "%JSONStringify%": ["JSON", "stringify"],
6656
+ "%MapPrototype%": ["Map", "prototype"],
6657
+ "%NumberPrototype%": ["Number", "prototype"],
6658
+ "%ObjectPrototype%": ["Object", "prototype"],
6659
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
6660
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
6661
+ "%PromisePrototype%": ["Promise", "prototype"],
6662
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
6663
+ "%Promise_all%": ["Promise", "all"],
6664
+ "%Promise_reject%": ["Promise", "reject"],
6665
+ "%Promise_resolve%": ["Promise", "resolve"],
6666
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
6667
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
6668
+ "%RegExpPrototype%": ["RegExp", "prototype"],
6669
+ "%SetPrototype%": ["Set", "prototype"],
6670
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
6671
+ "%StringPrototype%": ["String", "prototype"],
6672
+ "%SymbolPrototype%": ["Symbol", "prototype"],
6673
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
6674
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
6675
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
6676
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
6677
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
6678
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
6679
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
6680
+ "%URIErrorPrototype%": ["URIError", "prototype"],
6681
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
6682
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
6683
+ };
6684
+ var bind = requireFunctionBind();
6685
+ var hasOwn = requireHasown();
6686
+ var $concat = bind.call($call, Array.prototype.concat);
6687
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
6688
+ var $replace = bind.call($call, String.prototype.replace);
6689
+ var $strSlice = bind.call($call, String.prototype.slice);
6690
+ var $exec = bind.call($call, RegExp.prototype.exec);
6691
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
6692
+ var reEscapeChar = /\\(\\)?/g;
6693
+ var stringToPath = function stringToPath2(string) {
6694
+ var first = $strSlice(string, 0, 1);
6695
+ var last = $strSlice(string, -1);
6696
+ if (first === "%" && last !== "%") {
6697
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
6698
+ } else if (last === "%" && first !== "%") {
6699
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
6593
6700
  }
6594
- var quoteRE = quoteREs[opts.quoteStyle || "single"];
6595
- quoteRE.lastIndex = 0;
6596
- var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
6597
- return wrapQuotes(s, "single", opts);
6598
- }
6599
- function lowbyte(c) {
6600
- var n = c.charCodeAt(0);
6601
- var x = {
6602
- 8: "b",
6603
- 9: "t",
6604
- 10: "n",
6605
- 12: "f",
6606
- 13: "r"
6607
- }[n];
6608
- if (x) {
6609
- return "\\" + x;
6701
+ var result = [];
6702
+ $replace(string, rePropName, function(match, number, quote2, subString) {
6703
+ result[result.length] = quote2 ? $replace(subString, reEscapeChar, "$1") : number || match;
6704
+ });
6705
+ return result;
6706
+ };
6707
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
6708
+ var intrinsicName = name;
6709
+ var alias;
6710
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
6711
+ alias = LEGACY_ALIASES[intrinsicName];
6712
+ intrinsicName = "%" + alias[0] + "%";
6610
6713
  }
6611
- return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
6612
- }
6613
- function markBoxed(str) {
6614
- return "Object(" + str + ")";
6615
- }
6616
- function weakCollectionOf(type2) {
6617
- return type2 + " { ? }";
6618
- }
6619
- function collectionOf(type2, size, entries, indent) {
6620
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
6621
- return type2 + " (" + size + ") {" + joinedEntries + "}";
6622
- }
6623
- function singleLineValues(xs) {
6624
- for (var i = 0; i < xs.length; i++) {
6625
- if (indexOf(xs[i], "\n") >= 0) {
6626
- return false;
6714
+ if (hasOwn(INTRINSICS, intrinsicName)) {
6715
+ var value = INTRINSICS[intrinsicName];
6716
+ if (value === needsEval) {
6717
+ value = doEval(intrinsicName);
6718
+ }
6719
+ if (typeof value === "undefined" && !allowMissing) {
6720
+ throw new $TypeError$3("intrinsic " + name + " exists, but is not available. Please file an issue!");
6627
6721
  }
6722
+ return {
6723
+ alias,
6724
+ name: intrinsicName,
6725
+ value
6726
+ };
6628
6727
  }
6629
- return true;
6630
- }
6631
- function getIndent(opts, depth) {
6632
- var baseIndent;
6633
- if (opts.indent === " ") {
6634
- baseIndent = " ";
6635
- } else if (typeof opts.indent === "number" && opts.indent > 0) {
6636
- baseIndent = $join.call(Array(opts.indent + 1), " ");
6637
- } else {
6638
- return null;
6728
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
6729
+ };
6730
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
6731
+ if (typeof name !== "string" || name.length === 0) {
6732
+ throw new $TypeError$3("intrinsic name must be a non-empty string");
6639
6733
  }
6640
- return {
6641
- base: baseIndent,
6642
- prev: $join.call(Array(depth + 1), baseIndent)
6643
- };
6644
- }
6645
- function indentedJoin(xs, indent) {
6646
- if (xs.length === 0) {
6647
- return "";
6734
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
6735
+ throw new $TypeError$3('"allowMissing" argument must be a boolean');
6648
6736
  }
6649
- var lineJoiner = "\n" + indent.prev + indent.base;
6650
- return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
6651
- }
6652
- function arrObjKeys(obj, inspect2) {
6653
- var isArr = isArray$3(obj);
6654
- var xs = [];
6655
- if (isArr) {
6656
- xs.length = obj.length;
6657
- for (var i = 0; i < obj.length; i++) {
6658
- xs[i] = has$3(obj, i) ? inspect2(obj[i], obj) : "";
6659
- }
6737
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
6738
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
6660
6739
  }
6661
- var syms = typeof gOPS === "function" ? gOPS(obj) : [];
6662
- var symMap;
6663
- if (hasShammedSymbols) {
6664
- symMap = {};
6665
- for (var k = 0; k < syms.length; k++) {
6666
- symMap["$" + syms[k]] = syms[k];
6667
- }
6740
+ var parts = stringToPath(name);
6741
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
6742
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
6743
+ var intrinsicRealName = intrinsic.name;
6744
+ var value = intrinsic.value;
6745
+ var skipFurtherCaching = false;
6746
+ var alias = intrinsic.alias;
6747
+ if (alias) {
6748
+ intrinsicBaseName = alias[0];
6749
+ $spliceApply(parts, $concat([0, 1], alias));
6668
6750
  }
6669
- for (var key in obj) {
6670
- if (!has$3(obj, key)) {
6671
- continue;
6672
- }
6673
- if (isArr && String(Number(key)) === key && key < obj.length) {
6674
- continue;
6751
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
6752
+ var part = parts[i];
6753
+ var first = $strSlice(part, 0, 1);
6754
+ var last = $strSlice(part, -1);
6755
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
6756
+ throw new $SyntaxError("property names with quotes must have matching quotes");
6675
6757
  }
6676
- if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
6677
- continue;
6678
- } else if ($test.call(/[^\w$]/, key)) {
6679
- xs.push(inspect2(key, obj) + ": " + inspect2(obj[key], obj));
6680
- } else {
6681
- xs.push(key + ": " + inspect2(obj[key], obj));
6758
+ if (part === "constructor" || !isOwn) {
6759
+ skipFurtherCaching = true;
6682
6760
  }
6683
- }
6684
- if (typeof gOPS === "function") {
6685
- for (var j = 0; j < syms.length; j++) {
6686
- if (isEnumerable.call(obj, syms[j])) {
6687
- xs.push("[" + inspect2(syms[j]) + "]: " + inspect2(obj[syms[j]], obj));
6761
+ intrinsicBaseName += "." + part;
6762
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
6763
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
6764
+ value = INTRINSICS[intrinsicRealName];
6765
+ } else if (value != null) {
6766
+ if (!(part in value)) {
6767
+ if (!allowMissing) {
6768
+ throw new $TypeError$3("base intrinsic for " + name + " exists, but the property is not available.");
6769
+ }
6770
+ return void 0;
6771
+ }
6772
+ if ($gOPD && i + 1 >= parts.length) {
6773
+ var desc = $gOPD(value, part);
6774
+ isOwn = !!desc;
6775
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
6776
+ value = desc.get;
6777
+ } else {
6778
+ value = value[part];
6779
+ }
6780
+ } else {
6781
+ isOwn = hasOwn(value, part);
6782
+ value = value[part];
6783
+ }
6784
+ if (isOwn && !skipFurtherCaching) {
6785
+ INTRINSICS[intrinsicRealName] = value;
6688
6786
  }
6689
6787
  }
6690
6788
  }
6691
- return xs;
6692
- }
6693
- var GetIntrinsic2 = getIntrinsic;
6694
- var callBound = callBound$1;
6695
- var inspect = objectInspect;
6696
- var $TypeError = type;
6697
- var $WeakMap = GetIntrinsic2("%WeakMap%", true);
6698
- var $Map = GetIntrinsic2("%Map%", true);
6699
- var $weakMapGet = callBound("WeakMap.prototype.get", true);
6700
- var $weakMapSet = callBound("WeakMap.prototype.set", true);
6701
- var $weakMapHas = callBound("WeakMap.prototype.has", true);
6702
- var $mapGet = callBound("Map.prototype.get", true);
6703
- var $mapSet = callBound("Map.prototype.set", true);
6704
- var $mapHas = callBound("Map.prototype.has", true);
6705
- var listGetNode = function(list, key) {
6706
- var prev = list;
6707
- var curr;
6708
- for (; (curr = prev.next) !== null; prev = curr) {
6709
- if (curr.key === key) {
6710
- prev.next = curr.next;
6711
- curr.next = /** @type {NonNullable<typeof list.next>} */
6712
- list.next;
6713
- list.next = curr;
6714
- return curr;
6715
- }
6716
- }
6717
- };
6718
- var listGet = function(objects, key) {
6719
- var node = listGetNode(objects, key);
6720
- return node && node.value;
6789
+ return value;
6721
6790
  };
6722
- var listSet = function(objects, key, value) {
6723
- var node = listGetNode(objects, key);
6724
- if (node) {
6725
- node.value = value;
6726
- } else {
6727
- objects.next = /** @type {import('.').ListNode<typeof value>} */
6728
- {
6729
- // eslint-disable-line no-param-reassign, no-extra-parens
6730
- key,
6731
- next: objects.next,
6732
- value
6733
- };
6791
+ var GetIntrinsic$2 = getIntrinsic;
6792
+ var callBindBasic2 = callBindApplyHelpers;
6793
+ var $indexOf = callBindBasic2([GetIntrinsic$2("%String.prototype.indexOf%")]);
6794
+ var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
6795
+ var intrinsic = (
6796
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
6797
+ GetIntrinsic$2(name, !!allowMissing)
6798
+ );
6799
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
6800
+ return callBindBasic2([intrinsic]);
6734
6801
  }
6802
+ return intrinsic;
6735
6803
  };
6736
- var listHas = function(objects, key) {
6737
- return !!listGetNode(objects, key);
6738
- };
6739
- var sideChannel = function getSideChannel() {
6740
- var $wm;
6804
+ var GetIntrinsic$1 = getIntrinsic;
6805
+ var callBound$1 = callBound$2;
6806
+ var inspect$2 = objectInspect;
6807
+ var $TypeError$2 = type;
6808
+ var $Map = GetIntrinsic$1("%Map%", true);
6809
+ var $mapGet = callBound$1("Map.prototype.get", true);
6810
+ var $mapSet = callBound$1("Map.prototype.set", true);
6811
+ var $mapHas = callBound$1("Map.prototype.has", true);
6812
+ var $mapDelete = callBound$1("Map.prototype.delete", true);
6813
+ var $mapSize = callBound$1("Map.prototype.size", true);
6814
+ var sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */
6815
+ function getSideChannelMap() {
6741
6816
  var $m;
6742
- var $o;
6743
6817
  var channel = {
6744
6818
  assert: function(key) {
6745
6819
  if (!channel.has(key)) {
6746
- throw new $TypeError("Side channel does not contain " + inspect(key));
6820
+ throw new $TypeError$2("Side channel does not contain " + inspect$2(key));
6747
6821
  }
6748
6822
  },
6749
- get: function(key) {
6750
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6751
- if ($wm) {
6752
- return $weakMapGet($wm, key);
6753
- }
6754
- } else if ($Map) {
6755
- if ($m) {
6756
- return $mapGet($m, key);
6757
- }
6758
- } else {
6759
- if ($o) {
6760
- return listGet($o, key);
6823
+ "delete": function(key) {
6824
+ if ($m) {
6825
+ var result = $mapDelete($m, key);
6826
+ if ($mapSize($m) === 0) {
6827
+ $m = void 0;
6761
6828
  }
6829
+ return result;
6830
+ }
6831
+ return false;
6832
+ },
6833
+ get: function(key) {
6834
+ if ($m) {
6835
+ return $mapGet($m, key);
6762
6836
  }
6763
6837
  },
6764
6838
  has: function(key) {
6765
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6766
- if ($wm) {
6767
- return $weakMapHas($wm, key);
6768
- }
6769
- } else if ($Map) {
6770
- if ($m) {
6771
- return $mapHas($m, key);
6772
- }
6773
- } else {
6774
- if ($o) {
6775
- return listHas($o, key);
6776
- }
6839
+ if ($m) {
6840
+ return $mapHas($m, key);
6777
6841
  }
6778
6842
  return false;
6779
6843
  },
6780
6844
  set: function(key, value) {
6781
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6782
- if (!$wm) {
6783
- $wm = new $WeakMap();
6845
+ if (!$m) {
6846
+ $m = new $Map();
6847
+ }
6848
+ $mapSet($m, key, value);
6849
+ }
6850
+ };
6851
+ return channel;
6852
+ };
6853
+ var GetIntrinsic2 = getIntrinsic;
6854
+ var callBound = callBound$2;
6855
+ var inspect$1 = objectInspect;
6856
+ var getSideChannelMap$1 = sideChannelMap;
6857
+ var $TypeError$1 = type;
6858
+ var $WeakMap = GetIntrinsic2("%WeakMap%", true);
6859
+ var $weakMapGet = callBound("WeakMap.prototype.get", true);
6860
+ var $weakMapSet = callBound("WeakMap.prototype.set", true);
6861
+ var $weakMapHas = callBound("WeakMap.prototype.has", true);
6862
+ var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
6863
+ var sideChannelWeakmap = $WeakMap ? (
6864
+ /** @type {Exclude<import('.'), false>} */
6865
+ function getSideChannelWeakMap() {
6866
+ var $wm;
6867
+ var $m;
6868
+ var channel = {
6869
+ assert: function(key) {
6870
+ if (!channel.has(key)) {
6871
+ throw new $TypeError$1("Side channel does not contain " + inspect$1(key));
6784
6872
  }
6785
- $weakMapSet($wm, key, value);
6786
- } else if ($Map) {
6787
- if (!$m) {
6788
- $m = new $Map();
6873
+ },
6874
+ "delete": function(key) {
6875
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6876
+ if ($wm) {
6877
+ return $weakMapDelete($wm, key);
6878
+ }
6879
+ } else if (getSideChannelMap$1) {
6880
+ if ($m) {
6881
+ return $m["delete"](key);
6882
+ }
6789
6883
  }
6790
- $mapSet($m, key, value);
6791
- } else {
6792
- if (!$o) {
6793
- $o = { key: {}, next: null };
6884
+ return false;
6885
+ },
6886
+ get: function(key) {
6887
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6888
+ if ($wm) {
6889
+ return $weakMapGet($wm, key);
6890
+ }
6891
+ }
6892
+ return $m && $m.get(key);
6893
+ },
6894
+ has: function(key) {
6895
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6896
+ if ($wm) {
6897
+ return $weakMapHas($wm, key);
6898
+ }
6899
+ }
6900
+ return !!$m && $m.has(key);
6901
+ },
6902
+ set: function(key, value) {
6903
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
6904
+ if (!$wm) {
6905
+ $wm = new $WeakMap();
6906
+ }
6907
+ $weakMapSet($wm, key, value);
6908
+ } else if (getSideChannelMap$1) {
6909
+ if (!$m) {
6910
+ $m = getSideChannelMap$1();
6911
+ }
6912
+ $m.set(key, value);
6794
6913
  }
6795
- listSet($o, key, value);
6796
6914
  }
6915
+ };
6916
+ return channel;
6917
+ }
6918
+ ) : getSideChannelMap$1;
6919
+ var $TypeError = type;
6920
+ var inspect = objectInspect;
6921
+ var getSideChannelList2 = sideChannelList;
6922
+ var getSideChannelMap2 = sideChannelMap;
6923
+ var getSideChannelWeakMap2 = sideChannelWeakmap;
6924
+ var makeChannel = getSideChannelWeakMap2 || getSideChannelMap2 || getSideChannelList2;
6925
+ var sideChannel = function getSideChannel() {
6926
+ var $channelData;
6927
+ var channel = {
6928
+ assert: function(key) {
6929
+ if (!channel.has(key)) {
6930
+ throw new $TypeError("Side channel does not contain " + inspect(key));
6931
+ }
6932
+ },
6933
+ "delete": function(key) {
6934
+ return !!$channelData && $channelData["delete"](key);
6935
+ },
6936
+ get: function(key) {
6937
+ return $channelData && $channelData.get(key);
6938
+ },
6939
+ has: function(key) {
6940
+ return !!$channelData && $channelData.has(key);
6941
+ },
6942
+ set: function(key, value) {
6943
+ if (!$channelData) {
6944
+ $channelData = makeChannel();
6945
+ }
6946
+ $channelData.set(key, value);
6797
6947
  }
6798
6948
  };
6799
6949
  return channel;
@@ -7528,25 +7678,21 @@ const relatedSchema = zod.z.intersection(
7528
7678
  );
7529
7679
  const authorSchema = zod.z.object({
7530
7680
  id: zod.z.union([zod.z.number(), zod.z.string()]),
7531
- name: zod.z.string(),
7681
+ name: zod.z.string().optional(),
7532
7682
  email: zod.z.string(),
7533
7683
  avatar: zod.z.union([
7534
7684
  zod.z.object({
7535
- url: zod.z.string().nullable(),
7685
+ url: zod.z.string()
7686
+ }),
7687
+ zod.z.object({
7688
+ url: zod.z.string(),
7536
7689
  formats: zod.z.object({
7537
7690
  thumbnail: zod.z.object({
7538
7691
  url: zod.z.string()
7539
7692
  }).nullable()
7540
7693
  })
7541
- }),
7542
- zod.z.object({
7543
- id: zod.z.string(),
7544
- name: zod.z.string(),
7545
- email: zod.z.string(),
7546
- url: zod.z.string().nullable(),
7547
- avatar: zod.z.string().nullable()
7548
7694
  })
7549
- ]).nullable()
7695
+ ]).nullable().optional()
7550
7696
  });
7551
7697
  const approvalStatusSchema = zod.z.union([
7552
7698
  zod.z.literal(COMMENT_STATUS.PENDING),