@mx-space/api-client 1.16.0 → 1.17.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 (38) hide show
  1. package/controllers/ai.ts +11 -1
  2. package/controllers/index.ts +3 -3
  3. package/dist/adaptors/axios.global.js +1119 -239
  4. package/dist/adaptors/umi-request.global.js +1513 -1267
  5. package/dist/index.cjs +17 -10
  6. package/dist/index.d.cts +53 -1
  7. package/dist/index.d.ts +53 -1
  8. package/dist/index.global.js +13 -6
  9. package/dist/index.js +14 -7
  10. package/esm/packages/api-client/adaptors/axios.js +1 -1
  11. package/esm/packages/api-client/adaptors/ky.js +1 -1
  12. package/esm/packages/api-client/adaptors/umi-request.js +1 -1
  13. package/esm/packages/api-client/controllers/index.d.ts +1 -1
  14. package/esm/packages/api-client/controllers/index.js +3 -3
  15. package/esm/packages/api-client/controllers/recently.js +4 -4
  16. package/esm/packages/api-client/core/attach-request.js +1 -1
  17. package/esm/packages/api-client/core/client.js +11 -11
  18. package/esm/packages/api-client/index.js +1 -1
  19. package/esm/packages/api-client/models/aggregate.js +2 -2
  20. package/esm/packages/api-client/models/category.js +2 -2
  21. package/esm/packages/api-client/models/comment.js +6 -6
  22. package/esm/packages/api-client/models/link.js +7 -7
  23. package/esm/packages/api-client/models/page.js +3 -3
  24. package/esm/packages/api-client/models/recently.js +3 -3
  25. package/esm/packages/api-client/models/snippet.js +4 -4
  26. package/esm/packages/api-client/tsup.config.js +2 -2
  27. package/esm/packages/api-client/utils/camelcase-keys.js +1 -1
  28. package/esm/packages/api-client/vitest.config.js +1 -1
  29. package/index.ts +0 -1
  30. package/mod-dts.mjs +3 -3
  31. package/models/aggregate.ts +0 -2
  32. package/models/ai.ts +9 -0
  33. package/models/comment.ts +1 -0
  34. package/models/setting.ts +5 -0
  35. package/package.json +23 -23
  36. package/readme.md +3 -3
  37. package/tsconfig.json +11 -11
  38. package/vitest.config.ts +0 -1
@@ -32,46 +32,6 @@
32
32
  mod
33
33
  ));
34
34
 
35
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
36
- var require_es_errors = __commonJS({
37
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
38
- "use strict";
39
- module.exports = Error;
40
- }
41
- });
42
-
43
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
44
- var require_eval = __commonJS({
45
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
46
- "use strict";
47
- module.exports = EvalError;
48
- }
49
- });
50
-
51
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
52
- var require_range = __commonJS({
53
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
54
- "use strict";
55
- module.exports = RangeError;
56
- }
57
- });
58
-
59
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
60
- var require_ref = __commonJS({
61
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
62
- "use strict";
63
- module.exports = ReferenceError;
64
- }
65
- });
66
-
67
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
68
- var require_syntax = __commonJS({
69
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
70
- "use strict";
71
- module.exports = SyntaxError;
72
- }
73
- });
74
-
75
35
  // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
76
36
  var require_type = __commonJS({
77
37
  "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
@@ -80,1356 +40,1615 @@
80
40
  }
81
41
  });
82
42
 
83
- // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
84
- var require_uri = __commonJS({
85
- "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
43
+ // ../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js
44
+ var require_util_inspect = __commonJS({
45
+ "../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js"(exports, module) {
86
46
  "use strict";
87
- module.exports = URIError;
47
+ module.exports = __require("util").inspect;
88
48
  }
89
49
  });
90
50
 
91
- // ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js
92
- var require_shams = __commonJS({
93
- "../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports, module) {
51
+ // ../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/index.js
52
+ var require_object_inspect = __commonJS({
53
+ "../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/index.js"(exports, module) {
94
54
  "use strict";
95
- module.exports = function hasSymbols() {
96
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
97
- return false;
55
+ var hasMap = typeof Map === "function" && Map.prototype;
56
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
57
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
58
+ var mapForEach = hasMap && Map.prototype.forEach;
59
+ var hasSet = typeof Set === "function" && Set.prototype;
60
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
61
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
62
+ var setForEach = hasSet && Set.prototype.forEach;
63
+ var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
64
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
65
+ var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
66
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
67
+ var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
68
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
69
+ var booleanValueOf = Boolean.prototype.valueOf;
70
+ var objectToString = Object.prototype.toString;
71
+ var functionToString = Function.prototype.toString;
72
+ var $match = String.prototype.match;
73
+ var $slice = String.prototype.slice;
74
+ var $replace = String.prototype.replace;
75
+ var $toUpperCase = String.prototype.toUpperCase;
76
+ var $toLowerCase = String.prototype.toLowerCase;
77
+ var $test = RegExp.prototype.test;
78
+ var $concat = Array.prototype.concat;
79
+ var $join = Array.prototype.join;
80
+ var $arrSlice = Array.prototype.slice;
81
+ var $floor = Math.floor;
82
+ var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
83
+ var gOPS = Object.getOwnPropertySymbols;
84
+ var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
85
+ var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
86
+ var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
87
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
88
+ var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
89
+ return O.__proto__;
90
+ } : null);
91
+ function addNumericSeparator(num, str) {
92
+ if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
93
+ return str;
98
94
  }
99
- if (typeof Symbol.iterator === "symbol") {
100
- return true;
95
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
96
+ if (typeof num === "number") {
97
+ var int = num < 0 ? -$floor(-num) : $floor(num);
98
+ if (int !== num) {
99
+ var intStr = String(int);
100
+ var dec = $slice.call(str, intStr.length + 1);
101
+ return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
102
+ }
101
103
  }
102
- var obj = {};
103
- var sym = Symbol("test");
104
- var symObj = Object(sym);
105
- if (typeof sym === "string") {
106
- return false;
104
+ return $replace.call(str, sepRegex, "$&_");
105
+ }
106
+ var utilInspect = require_util_inspect();
107
+ var inspectCustom = utilInspect.custom;
108
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
109
+ var quotes = {
110
+ __proto__: null,
111
+ "double": '"',
112
+ single: "'"
113
+ };
114
+ var quoteREs = {
115
+ __proto__: null,
116
+ "double": /(["\\])/g,
117
+ single: /(['\\])/g
118
+ };
119
+ module.exports = function inspect_(obj, options, depth, seen) {
120
+ var opts = options || {};
121
+ if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
122
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
107
123
  }
108
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
109
- return false;
124
+ if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
125
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
110
126
  }
111
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
112
- return false;
127
+ var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
128
+ if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
129
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
113
130
  }
114
- var symVal = 42;
115
- obj[sym] = symVal;
116
- for (sym in obj) {
117
- return false;
131
+ if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
132
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
118
133
  }
119
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
120
- return false;
134
+ if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
135
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
121
136
  }
122
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
123
- return false;
137
+ var numericSeparator = opts.numericSeparator;
138
+ if (typeof obj === "undefined") {
139
+ return "undefined";
124
140
  }
125
- var syms = Object.getOwnPropertySymbols(obj);
126
- if (syms.length !== 1 || syms[0] !== sym) {
127
- return false;
141
+ if (obj === null) {
142
+ return "null";
128
143
  }
129
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
130
- return false;
144
+ if (typeof obj === "boolean") {
145
+ return obj ? "true" : "false";
131
146
  }
132
- if (typeof Object.getOwnPropertyDescriptor === "function") {
133
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
134
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
135
- return false;
136
- }
147
+ if (typeof obj === "string") {
148
+ return inspectString(obj, opts);
137
149
  }
138
- return true;
139
- };
140
- }
141
- });
142
-
143
- // ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js
144
- var require_has_symbols = __commonJS({
145
- "../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js"(exports, module) {
146
- "use strict";
147
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
148
- var hasSymbolSham = require_shams();
149
- module.exports = function hasNativeSymbols() {
150
- if (typeof origSymbol !== "function") {
151
- return false;
150
+ if (typeof obj === "number") {
151
+ if (obj === 0) {
152
+ return Infinity / obj > 0 ? "0" : "-0";
153
+ }
154
+ var str = String(obj);
155
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
152
156
  }
153
- if (typeof Symbol !== "function") {
154
- return false;
157
+ if (typeof obj === "bigint") {
158
+ var bigIntStr = String(obj) + "n";
159
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
155
160
  }
156
- if (typeof origSymbol("foo") !== "symbol") {
157
- return false;
161
+ var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
162
+ if (typeof depth === "undefined") {
163
+ depth = 0;
158
164
  }
159
- if (typeof Symbol("bar") !== "symbol") {
160
- return false;
165
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
166
+ return isArray2(obj) ? "[Array]" : "[Object]";
161
167
  }
162
- return hasSymbolSham();
163
- };
164
- }
165
- });
166
-
167
- // ../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js
168
- var require_has_proto = __commonJS({
169
- "../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports, module) {
170
- "use strict";
171
- var test = {
172
- __proto__: null,
173
- foo: {}
174
- };
175
- var $Object = Object;
176
- module.exports = function hasProto() {
177
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
178
- };
179
- }
180
- });
181
-
182
- // ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
183
- var require_implementation = __commonJS({
184
- "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
185
- "use strict";
186
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
187
- var toStr = Object.prototype.toString;
188
- var max = Math.max;
189
- var funcType = "[object Function]";
190
- var concatty = function concatty2(a, b) {
191
- var arr = [];
192
- for (var i = 0; i < a.length; i += 1) {
193
- arr[i] = a[i];
168
+ var indent = getIndent(opts, depth);
169
+ if (typeof seen === "undefined") {
170
+ seen = [];
171
+ } else if (indexOf(seen, obj) >= 0) {
172
+ return "[Circular]";
194
173
  }
195
- for (var j = 0; j < b.length; j += 1) {
196
- arr[j + a.length] = b[j];
174
+ function inspect(value, from, noIndent) {
175
+ if (from) {
176
+ seen = $arrSlice.call(seen);
177
+ seen.push(from);
178
+ }
179
+ if (noIndent) {
180
+ var newOpts = {
181
+ depth: opts.depth
182
+ };
183
+ if (has(opts, "quoteStyle")) {
184
+ newOpts.quoteStyle = opts.quoteStyle;
185
+ }
186
+ return inspect_(value, newOpts, depth + 1, seen);
187
+ }
188
+ return inspect_(value, opts, depth + 1, seen);
197
189
  }
198
- return arr;
199
- };
200
- var slicy = function slicy2(arrLike, offset) {
201
- var arr = [];
202
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
203
- arr[j] = arrLike[i];
190
+ if (typeof obj === "function" && !isRegExp(obj)) {
191
+ var name = nameOf(obj);
192
+ var keys = arrObjKeys(obj, inspect);
193
+ return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
204
194
  }
205
- return arr;
206
- };
207
- var joiny = function(arr, joiner) {
208
- var str = "";
209
- for (var i = 0; i < arr.length; i += 1) {
210
- str += arr[i];
211
- if (i + 1 < arr.length) {
212
- str += joiner;
213
- }
195
+ if (isSymbol(obj)) {
196
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
197
+ return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
214
198
  }
215
- return str;
216
- };
217
- module.exports = function bind(that) {
218
- var target = this;
219
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
220
- throw new TypeError(ERROR_MESSAGE + target);
199
+ if (isElement(obj)) {
200
+ var s = "<" + $toLowerCase.call(String(obj.nodeName));
201
+ var attrs = obj.attributes || [];
202
+ for (var i = 0; i < attrs.length; i++) {
203
+ s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
204
+ }
205
+ s += ">";
206
+ if (obj.childNodes && obj.childNodes.length) {
207
+ s += "...";
208
+ }
209
+ s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
210
+ return s;
221
211
  }
222
- var args = slicy(arguments, 1);
223
- var bound;
224
- var binder = function() {
225
- if (this instanceof bound) {
226
- var result = target.apply(
227
- this,
228
- concatty(args, arguments)
229
- );
230
- if (Object(result) === result) {
231
- return result;
232
- }
233
- return this;
212
+ if (isArray2(obj)) {
213
+ if (obj.length === 0) {
214
+ return "[]";
234
215
  }
235
- return target.apply(
236
- that,
237
- concatty(args, arguments)
238
- );
239
- };
240
- var boundLength = max(0, target.length - args.length);
241
- var boundArgs = [];
242
- for (var i = 0; i < boundLength; i++) {
243
- boundArgs[i] = "$" + i;
216
+ var xs = arrObjKeys(obj, inspect);
217
+ if (indent && !singleLineValues(xs)) {
218
+ return "[" + indentedJoin(xs, indent) + "]";
219
+ }
220
+ return "[ " + $join.call(xs, ", ") + " ]";
244
221
  }
245
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
246
- if (target.prototype) {
247
- var Empty = function Empty2() {
248
- };
249
- Empty.prototype = target.prototype;
250
- bound.prototype = new Empty();
251
- Empty.prototype = null;
222
+ if (isError(obj)) {
223
+ var parts = arrObjKeys(obj, inspect);
224
+ if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
225
+ return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
226
+ }
227
+ if (parts.length === 0) {
228
+ return "[" + String(obj) + "]";
229
+ }
230
+ return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
252
231
  }
253
- return bound;
232
+ if (typeof obj === "object" && customInspect) {
233
+ if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
234
+ return utilInspect(obj, { depth: maxDepth - depth });
235
+ } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
236
+ return obj.inspect();
237
+ }
238
+ }
239
+ if (isMap(obj)) {
240
+ var mapParts = [];
241
+ if (mapForEach) {
242
+ mapForEach.call(obj, function(value, key) {
243
+ mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
244
+ });
245
+ }
246
+ return collectionOf("Map", mapSize.call(obj), mapParts, indent);
247
+ }
248
+ if (isSet(obj)) {
249
+ var setParts = [];
250
+ if (setForEach) {
251
+ setForEach.call(obj, function(value) {
252
+ setParts.push(inspect(value, obj));
253
+ });
254
+ }
255
+ return collectionOf("Set", setSize.call(obj), setParts, indent);
256
+ }
257
+ if (isWeakMap(obj)) {
258
+ return weakCollectionOf("WeakMap");
259
+ }
260
+ if (isWeakSet(obj)) {
261
+ return weakCollectionOf("WeakSet");
262
+ }
263
+ if (isWeakRef(obj)) {
264
+ return weakCollectionOf("WeakRef");
265
+ }
266
+ if (isNumber(obj)) {
267
+ return markBoxed(inspect(Number(obj)));
268
+ }
269
+ if (isBigInt(obj)) {
270
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
271
+ }
272
+ if (isBoolean(obj)) {
273
+ return markBoxed(booleanValueOf.call(obj));
274
+ }
275
+ if (isString(obj)) {
276
+ return markBoxed(inspect(String(obj)));
277
+ }
278
+ if (typeof window !== "undefined" && obj === window) {
279
+ return "{ [object Window] }";
280
+ }
281
+ if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) {
282
+ return "{ [object globalThis] }";
283
+ }
284
+ if (!isDate2(obj) && !isRegExp(obj)) {
285
+ var ys = arrObjKeys(obj, inspect);
286
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
287
+ var protoTag = obj instanceof Object ? "" : "null prototype";
288
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
289
+ var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
290
+ var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
291
+ if (ys.length === 0) {
292
+ return tag + "{}";
293
+ }
294
+ if (indent) {
295
+ return tag + "{" + indentedJoin(ys, indent) + "}";
296
+ }
297
+ return tag + "{ " + $join.call(ys, ", ") + " }";
298
+ }
299
+ return String(obj);
254
300
  };
255
- }
256
- });
257
-
258
- // ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
259
- var require_function_bind = __commonJS({
260
- "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
261
- "use strict";
262
- var implementation = require_implementation();
263
- module.exports = Function.prototype.bind || implementation;
264
- }
265
- });
266
-
267
- // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
268
- var require_hasown = __commonJS({
269
- "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
270
- "use strict";
271
- var call = Function.prototype.call;
272
- var $hasOwn = Object.prototype.hasOwnProperty;
273
- var bind = require_function_bind();
274
- module.exports = bind.call(call, $hasOwn);
275
- }
276
- });
277
-
278
- // ../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js
279
- var require_get_intrinsic = __commonJS({
280
- "../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports, module) {
281
- "use strict";
282
- var undefined2;
283
- var $Error = require_es_errors();
284
- var $EvalError = require_eval();
285
- var $RangeError = require_range();
286
- var $ReferenceError = require_ref();
287
- var $SyntaxError = require_syntax();
288
- var $TypeError = require_type();
289
- var $URIError = require_uri();
290
- var $Function = Function;
291
- var getEvalledConstructor = function(expressionSyntax) {
301
+ function wrapQuotes(s, defaultStyle, opts) {
302
+ var style = opts.quoteStyle || defaultStyle;
303
+ var quoteChar = quotes[style];
304
+ return quoteChar + s + quoteChar;
305
+ }
306
+ function quote(s) {
307
+ return $replace.call(String(s), /"/g, "&quot;");
308
+ }
309
+ function canTrustToString(obj) {
310
+ return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
311
+ }
312
+ function isArray2(obj) {
313
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
314
+ }
315
+ function isDate2(obj) {
316
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
317
+ }
318
+ function isRegExp(obj) {
319
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
320
+ }
321
+ function isError(obj) {
322
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
323
+ }
324
+ function isString(obj) {
325
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
326
+ }
327
+ function isNumber(obj) {
328
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
329
+ }
330
+ function isBoolean(obj) {
331
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
332
+ }
333
+ function isSymbol(obj) {
334
+ if (hasShammedSymbols) {
335
+ return obj && typeof obj === "object" && obj instanceof Symbol;
336
+ }
337
+ if (typeof obj === "symbol") {
338
+ return true;
339
+ }
340
+ if (!obj || typeof obj !== "object" || !symToString) {
341
+ return false;
342
+ }
292
343
  try {
293
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
344
+ symToString.call(obj);
345
+ return true;
294
346
  } catch (e) {
295
347
  }
296
- };
297
- var $gOPD = Object.getOwnPropertyDescriptor;
298
- if ($gOPD) {
348
+ return false;
349
+ }
350
+ function isBigInt(obj) {
351
+ if (!obj || typeof obj !== "object" || !bigIntValueOf) {
352
+ return false;
353
+ }
299
354
  try {
300
- $gOPD({}, "");
355
+ bigIntValueOf.call(obj);
356
+ return true;
301
357
  } catch (e) {
302
- $gOPD = null;
303
358
  }
359
+ return false;
304
360
  }
305
- var throwTypeError = function() {
306
- throw new $TypeError();
361
+ var hasOwn = Object.prototype.hasOwnProperty || function(key) {
362
+ return key in this;
307
363
  };
308
- var ThrowTypeError = $gOPD ? function() {
309
- try {
310
- arguments.callee;
311
- return throwTypeError;
312
- } catch (calleeThrows) {
313
- try {
314
- return $gOPD(arguments, "callee").get;
315
- } catch (gOPDthrows) {
316
- return throwTypeError;
364
+ function has(obj, key) {
365
+ return hasOwn.call(obj, key);
366
+ }
367
+ function toStr(obj) {
368
+ return objectToString.call(obj);
369
+ }
370
+ function nameOf(f) {
371
+ if (f.name) {
372
+ return f.name;
373
+ }
374
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
375
+ if (m) {
376
+ return m[1];
377
+ }
378
+ return null;
379
+ }
380
+ function indexOf(xs, x) {
381
+ if (xs.indexOf) {
382
+ return xs.indexOf(x);
383
+ }
384
+ for (var i = 0, l = xs.length; i < l; i++) {
385
+ if (xs[i] === x) {
386
+ return i;
317
387
  }
318
388
  }
319
- }() : throwTypeError;
320
- var hasSymbols = require_has_symbols()();
321
- var hasProto = require_has_proto()();
322
- var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
323
- return x.__proto__;
324
- } : null);
325
- var needsEval = {};
326
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
327
- var INTRINSICS = {
328
- __proto__: null,
329
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
330
- "%Array%": Array,
331
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
332
- "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
333
- "%AsyncFromSyncIteratorPrototype%": undefined2,
334
- "%AsyncFunction%": needsEval,
335
- "%AsyncGenerator%": needsEval,
336
- "%AsyncGeneratorFunction%": needsEval,
337
- "%AsyncIteratorPrototype%": needsEval,
338
- "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
339
- "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
340
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
341
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
342
- "%Boolean%": Boolean,
343
- "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
344
- "%Date%": Date,
345
- "%decodeURI%": decodeURI,
346
- "%decodeURIComponent%": decodeURIComponent,
347
- "%encodeURI%": encodeURI,
348
- "%encodeURIComponent%": encodeURIComponent,
349
- "%Error%": $Error,
350
- "%eval%": eval,
351
- // eslint-disable-line no-eval
352
- "%EvalError%": $EvalError,
353
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
354
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
355
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
356
- "%Function%": $Function,
357
- "%GeneratorFunction%": needsEval,
358
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
359
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
360
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
361
- "%isFinite%": isFinite,
362
- "%isNaN%": isNaN,
363
- "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
364
- "%JSON%": typeof JSON === "object" ? JSON : undefined2,
365
- "%Map%": typeof Map === "undefined" ? undefined2 : Map,
366
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
367
- "%Math%": Math,
368
- "%Number%": Number,
369
- "%Object%": Object,
370
- "%parseFloat%": parseFloat,
371
- "%parseInt%": parseInt,
372
- "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
373
- "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
374
- "%RangeError%": $RangeError,
375
- "%ReferenceError%": $ReferenceError,
376
- "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
377
- "%RegExp%": RegExp,
378
- "%Set%": typeof Set === "undefined" ? undefined2 : Set,
379
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
380
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
381
- "%String%": String,
382
- "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
383
- "%Symbol%": hasSymbols ? Symbol : undefined2,
384
- "%SyntaxError%": $SyntaxError,
385
- "%ThrowTypeError%": ThrowTypeError,
386
- "%TypedArray%": TypedArray,
387
- "%TypeError%": $TypeError,
388
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
389
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
390
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
391
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
392
- "%URIError%": $URIError,
393
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
394
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
395
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
396
- };
397
- if (getProto) {
398
- try {
399
- null.error;
400
- } catch (e) {
401
- errorProto = getProto(getProto(e));
402
- INTRINSICS["%Error.prototype%"] = errorProto;
403
- }
404
- }
405
- var errorProto;
406
- var doEval = function doEval2(name) {
407
- var value;
408
- if (name === "%AsyncFunction%") {
409
- value = getEvalledConstructor("async function () {}");
410
- } else if (name === "%GeneratorFunction%") {
411
- value = getEvalledConstructor("function* () {}");
412
- } else if (name === "%AsyncGeneratorFunction%") {
413
- value = getEvalledConstructor("async function* () {}");
414
- } else if (name === "%AsyncGenerator%") {
415
- var fn = doEval2("%AsyncGeneratorFunction%");
416
- if (fn) {
417
- value = fn.prototype;
418
- }
419
- } else if (name === "%AsyncIteratorPrototype%") {
420
- var gen = doEval2("%AsyncGenerator%");
421
- if (gen && getProto) {
422
- value = getProto(gen.prototype);
423
- }
424
- }
425
- INTRINSICS[name] = value;
426
- return value;
427
- };
428
- var LEGACY_ALIASES = {
429
- __proto__: null,
430
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
431
- "%ArrayPrototype%": ["Array", "prototype"],
432
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
433
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
434
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
435
- "%ArrayProto_values%": ["Array", "prototype", "values"],
436
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
437
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
438
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
439
- "%BooleanPrototype%": ["Boolean", "prototype"],
440
- "%DataViewPrototype%": ["DataView", "prototype"],
441
- "%DatePrototype%": ["Date", "prototype"],
442
- "%ErrorPrototype%": ["Error", "prototype"],
443
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
444
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
445
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
446
- "%FunctionPrototype%": ["Function", "prototype"],
447
- "%Generator%": ["GeneratorFunction", "prototype"],
448
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
449
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
450
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
451
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
452
- "%JSONParse%": ["JSON", "parse"],
453
- "%JSONStringify%": ["JSON", "stringify"],
454
- "%MapPrototype%": ["Map", "prototype"],
455
- "%NumberPrototype%": ["Number", "prototype"],
456
- "%ObjectPrototype%": ["Object", "prototype"],
457
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
458
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
459
- "%PromisePrototype%": ["Promise", "prototype"],
460
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
461
- "%Promise_all%": ["Promise", "all"],
462
- "%Promise_reject%": ["Promise", "reject"],
463
- "%Promise_resolve%": ["Promise", "resolve"],
464
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
465
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
466
- "%RegExpPrototype%": ["RegExp", "prototype"],
467
- "%SetPrototype%": ["Set", "prototype"],
468
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
469
- "%StringPrototype%": ["String", "prototype"],
470
- "%SymbolPrototype%": ["Symbol", "prototype"],
471
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
472
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
473
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
474
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
475
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
476
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
477
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
478
- "%URIErrorPrototype%": ["URIError", "prototype"],
479
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
480
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
481
- };
482
- var bind = require_function_bind();
483
- var hasOwn = require_hasown();
484
- var $concat = bind.call(Function.call, Array.prototype.concat);
485
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
486
- var $replace = bind.call(Function.call, String.prototype.replace);
487
- var $strSlice = bind.call(Function.call, String.prototype.slice);
488
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
489
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
490
- var reEscapeChar = /\\(\\)?/g;
491
- var stringToPath = function stringToPath2(string) {
492
- var first = $strSlice(string, 0, 1);
493
- var last = $strSlice(string, -1);
494
- if (first === "%" && last !== "%") {
495
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
496
- } else if (last === "%" && first !== "%") {
497
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
498
- }
499
- var result = [];
500
- $replace(string, rePropName, function(match, number, quote, subString) {
501
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
502
- });
503
- return result;
504
- };
505
- var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
506
- var intrinsicName = name;
507
- var alias;
508
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
509
- alias = LEGACY_ALIASES[intrinsicName];
510
- intrinsicName = "%" + alias[0] + "%";
511
- }
512
- if (hasOwn(INTRINSICS, intrinsicName)) {
513
- var value = INTRINSICS[intrinsicName];
514
- if (value === needsEval) {
515
- value = doEval(intrinsicName);
516
- }
517
- if (typeof value === "undefined" && !allowMissing) {
518
- throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
519
- }
520
- return {
521
- alias,
522
- name: intrinsicName,
523
- value
524
- };
525
- }
526
- throw new $SyntaxError("intrinsic " + name + " does not exist!");
527
- };
528
- module.exports = function GetIntrinsic(name, allowMissing) {
529
- if (typeof name !== "string" || name.length === 0) {
530
- throw new $TypeError("intrinsic name must be a non-empty string");
531
- }
532
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
533
- throw new $TypeError('"allowMissing" argument must be a boolean');
534
- }
535
- if ($exec(/^%?[^%]*%?$/, name) === null) {
536
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
537
- }
538
- var parts = stringToPath(name);
539
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
540
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
541
- var intrinsicRealName = intrinsic.name;
542
- var value = intrinsic.value;
543
- var skipFurtherCaching = false;
544
- var alias = intrinsic.alias;
545
- if (alias) {
546
- intrinsicBaseName = alias[0];
547
- $spliceApply(parts, $concat([0, 1], alias));
548
- }
549
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
550
- var part = parts[i];
551
- var first = $strSlice(part, 0, 1);
552
- var last = $strSlice(part, -1);
553
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
554
- throw new $SyntaxError("property names with quotes must have matching quotes");
555
- }
556
- if (part === "constructor" || !isOwn) {
557
- skipFurtherCaching = true;
558
- }
559
- intrinsicBaseName += "." + part;
560
- intrinsicRealName = "%" + intrinsicBaseName + "%";
561
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
562
- value = INTRINSICS[intrinsicRealName];
563
- } else if (value != null) {
564
- if (!(part in value)) {
565
- if (!allowMissing) {
566
- throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
567
- }
568
- return void 0;
569
- }
570
- if ($gOPD && i + 1 >= parts.length) {
571
- var desc = $gOPD(value, part);
572
- isOwn = !!desc;
573
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
574
- value = desc.get;
575
- } else {
576
- value = value[part];
577
- }
578
- } else {
579
- isOwn = hasOwn(value, part);
580
- value = value[part];
581
- }
582
- if (isOwn && !skipFurtherCaching) {
583
- INTRINSICS[intrinsicRealName] = value;
584
- }
585
- }
586
- }
587
- return value;
588
- };
589
- }
590
- });
591
-
592
- // ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
593
- var require_es_define_property = __commonJS({
594
- "../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module) {
595
- "use strict";
596
- var GetIntrinsic = require_get_intrinsic();
597
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
598
- if ($defineProperty) {
599
- try {
600
- $defineProperty({}, "a", { value: 1 });
601
- } catch (e) {
602
- $defineProperty = false;
603
- }
604
- }
605
- module.exports = $defineProperty;
606
- }
607
- });
608
-
609
- // ../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
610
- var require_gopd = __commonJS({
611
- "../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports, module) {
612
- "use strict";
613
- var GetIntrinsic = require_get_intrinsic();
614
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
615
- if ($gOPD) {
616
- try {
617
- $gOPD([], "length");
618
- } catch (e) {
619
- $gOPD = null;
620
- }
621
- }
622
- module.exports = $gOPD;
623
- }
624
- });
625
-
626
- // ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
627
- var require_define_data_property = __commonJS({
628
- "../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports, module) {
629
- "use strict";
630
- var $defineProperty = require_es_define_property();
631
- var $SyntaxError = require_syntax();
632
- var $TypeError = require_type();
633
- var gopd = require_gopd();
634
- module.exports = function defineDataProperty(obj, property, value) {
635
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
636
- throw new $TypeError("`obj` must be an object or a function`");
637
- }
638
- if (typeof property !== "string" && typeof property !== "symbol") {
639
- throw new $TypeError("`property` must be a string or a symbol`");
640
- }
641
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
642
- throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
643
- }
644
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
645
- throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
646
- }
647
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
648
- throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
649
- }
650
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
651
- throw new $TypeError("`loose`, if provided, must be a boolean");
652
- }
653
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
654
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
655
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
656
- var loose = arguments.length > 6 ? arguments[6] : false;
657
- var desc = !!gopd && gopd(obj, property);
658
- if ($defineProperty) {
659
- $defineProperty(obj, property, {
660
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
661
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
662
- value,
663
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
664
- });
665
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
666
- obj[property] = value;
667
- } else {
668
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
669
- }
670
- };
671
- }
672
- });
673
-
674
- // ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
675
- var require_has_property_descriptors = __commonJS({
676
- "../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports, module) {
677
- "use strict";
678
- var $defineProperty = require_es_define_property();
679
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
680
- return !!$defineProperty;
681
- };
682
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
683
- if (!$defineProperty) {
684
- return null;
685
- }
686
- try {
687
- return $defineProperty([], "length", { value: 1 }).length !== 1;
688
- } catch (e) {
689
- return true;
690
- }
691
- };
692
- module.exports = hasPropertyDescriptors;
693
- }
694
- });
695
-
696
- // ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
697
- var require_set_function_length = __commonJS({
698
- "../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports, module) {
699
- "use strict";
700
- var GetIntrinsic = require_get_intrinsic();
701
- var define = require_define_data_property();
702
- var hasDescriptors = require_has_property_descriptors()();
703
- var gOPD = require_gopd();
704
- var $TypeError = require_type();
705
- var $floor = GetIntrinsic("%Math.floor%");
706
- module.exports = function setFunctionLength(fn, length) {
707
- if (typeof fn !== "function") {
708
- throw new $TypeError("`fn` is not a function");
709
- }
710
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
711
- throw new $TypeError("`length` must be a positive 32-bit integer");
712
- }
713
- var loose = arguments.length > 2 && !!arguments[2];
714
- var functionLengthIsConfigurable = true;
715
- var functionLengthIsWritable = true;
716
- if ("length" in fn && gOPD) {
717
- var desc = gOPD(fn, "length");
718
- if (desc && !desc.configurable) {
719
- functionLengthIsConfigurable = false;
720
- }
721
- if (desc && !desc.writable) {
722
- functionLengthIsWritable = false;
723
- }
724
- }
725
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
726
- if (hasDescriptors) {
727
- define(
728
- /** @type {Parameters<define>[0]} */
729
- fn,
730
- "length",
731
- length,
732
- true,
733
- true
734
- );
735
- } else {
736
- define(
737
- /** @type {Parameters<define>[0]} */
738
- fn,
739
- "length",
740
- length
741
- );
742
- }
743
- }
744
- return fn;
745
- };
746
- }
747
- });
748
-
749
- // ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
750
- var require_call_bind = __commonJS({
751
- "../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports, module) {
752
- "use strict";
753
- var bind = require_function_bind();
754
- var GetIntrinsic = require_get_intrinsic();
755
- var setFunctionLength = require_set_function_length();
756
- var $TypeError = require_type();
757
- var $apply = GetIntrinsic("%Function.prototype.apply%");
758
- var $call = GetIntrinsic("%Function.prototype.call%");
759
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
760
- var $defineProperty = require_es_define_property();
761
- var $max = GetIntrinsic("%Math.max%");
762
- module.exports = function callBind(originalFunction) {
763
- if (typeof originalFunction !== "function") {
764
- throw new $TypeError("a function is required");
765
- }
766
- var func = $reflectApply(bind, $call, arguments);
767
- return setFunctionLength(
768
- func,
769
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
770
- true
771
- );
772
- };
773
- var applyBind = function applyBind2() {
774
- return $reflectApply(bind, $apply, arguments);
775
- };
776
- if ($defineProperty) {
777
- $defineProperty(module.exports, "apply", { value: applyBind });
778
- } else {
779
- module.exports.apply = applyBind;
780
- }
781
- }
782
- });
783
-
784
- // ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js
785
- var require_callBound = __commonJS({
786
- "../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports, module) {
787
- "use strict";
788
- var GetIntrinsic = require_get_intrinsic();
789
- var callBind = require_call_bind();
790
- var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
791
- module.exports = function callBoundIntrinsic(name, allowMissing) {
792
- var intrinsic = GetIntrinsic(name, !!allowMissing);
793
- if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
794
- return callBind(intrinsic);
795
- }
796
- return intrinsic;
797
- };
798
- }
799
- });
800
-
801
- // ../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect.js
802
- var require_util_inspect = __commonJS({
803
- "../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect.js"(exports, module) {
804
- "use strict";
805
- module.exports = __require("util").inspect;
806
- }
807
- });
808
-
809
- // ../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js
810
- var require_object_inspect = __commonJS({
811
- "../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js"(exports, module) {
812
- "use strict";
813
- var hasMap = typeof Map === "function" && Map.prototype;
814
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
815
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
816
- var mapForEach = hasMap && Map.prototype.forEach;
817
- var hasSet = typeof Set === "function" && Set.prototype;
818
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
819
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
820
- var setForEach = hasSet && Set.prototype.forEach;
821
- var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
822
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
823
- var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
824
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
825
- var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
826
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
827
- var booleanValueOf = Boolean.prototype.valueOf;
828
- var objectToString = Object.prototype.toString;
829
- var functionToString = Function.prototype.toString;
830
- var $match = String.prototype.match;
831
- var $slice = String.prototype.slice;
832
- var $replace = String.prototype.replace;
833
- var $toUpperCase = String.prototype.toUpperCase;
834
- var $toLowerCase = String.prototype.toLowerCase;
835
- var $test = RegExp.prototype.test;
836
- var $concat = Array.prototype.concat;
837
- var $join = Array.prototype.join;
838
- var $arrSlice = Array.prototype.slice;
839
- var $floor = Math.floor;
840
- var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
841
- var gOPS = Object.getOwnPropertySymbols;
842
- var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
843
- var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
844
- var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
845
- var isEnumerable = Object.prototype.propertyIsEnumerable;
846
- var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
847
- return O.__proto__;
848
- } : null);
849
- function addNumericSeparator(num, str) {
850
- if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
851
- return str;
389
+ return -1;
390
+ }
391
+ function isMap(x) {
392
+ if (!mapSize || !x || typeof x !== "object") {
393
+ return false;
852
394
  }
853
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
854
- if (typeof num === "number") {
855
- var int = num < 0 ? -$floor(-num) : $floor(num);
856
- if (int !== num) {
857
- var intStr = String(int);
858
- var dec = $slice.call(str, intStr.length + 1);
859
- return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
395
+ try {
396
+ mapSize.call(x);
397
+ try {
398
+ setSize.call(x);
399
+ } catch (s) {
400
+ return true;
860
401
  }
402
+ return x instanceof Map;
403
+ } catch (e) {
861
404
  }
862
- return $replace.call(str, sepRegex, "$&_");
405
+ return false;
863
406
  }
864
- var utilInspect = require_util_inspect();
865
- var inspectCustom = utilInspect.custom;
866
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
867
- module.exports = function inspect_(obj, options, depth, seen) {
868
- var opts = options || {};
869
- if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
870
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
871
- }
872
- if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
873
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
874
- }
875
- var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
876
- if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
877
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
878
- }
879
- if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
880
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
881
- }
882
- if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
883
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
407
+ function isWeakMap(x) {
408
+ if (!weakMapHas || !x || typeof x !== "object") {
409
+ return false;
884
410
  }
885
- var numericSeparator = opts.numericSeparator;
886
- if (typeof obj === "undefined") {
887
- return "undefined";
411
+ try {
412
+ weakMapHas.call(x, weakMapHas);
413
+ try {
414
+ weakSetHas.call(x, weakSetHas);
415
+ } catch (s) {
416
+ return true;
417
+ }
418
+ return x instanceof WeakMap;
419
+ } catch (e) {
888
420
  }
889
- if (obj === null) {
890
- return "null";
421
+ return false;
422
+ }
423
+ function isWeakRef(x) {
424
+ if (!weakRefDeref || !x || typeof x !== "object") {
425
+ return false;
891
426
  }
892
- if (typeof obj === "boolean") {
893
- return obj ? "true" : "false";
427
+ try {
428
+ weakRefDeref.call(x);
429
+ return true;
430
+ } catch (e) {
894
431
  }
895
- if (typeof obj === "string") {
896
- return inspectString(obj, opts);
432
+ return false;
433
+ }
434
+ function isSet(x) {
435
+ if (!setSize || !x || typeof x !== "object") {
436
+ return false;
897
437
  }
898
- if (typeof obj === "number") {
899
- if (obj === 0) {
900
- return Infinity / obj > 0 ? "0" : "-0";
438
+ try {
439
+ setSize.call(x);
440
+ try {
441
+ mapSize.call(x);
442
+ } catch (m) {
443
+ return true;
901
444
  }
902
- var str = String(obj);
903
- return numericSeparator ? addNumericSeparator(obj, str) : str;
904
- }
905
- if (typeof obj === "bigint") {
906
- var bigIntStr = String(obj) + "n";
907
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
908
- }
909
- var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
910
- if (typeof depth === "undefined") {
911
- depth = 0;
912
- }
913
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
914
- return isArray2(obj) ? "[Array]" : "[Object]";
445
+ return x instanceof Set;
446
+ } catch (e) {
915
447
  }
916
- var indent = getIndent(opts, depth);
917
- if (typeof seen === "undefined") {
918
- seen = [];
919
- } else if (indexOf(seen, obj) >= 0) {
920
- return "[Circular]";
448
+ return false;
449
+ }
450
+ function isWeakSet(x) {
451
+ if (!weakSetHas || !x || typeof x !== "object") {
452
+ return false;
921
453
  }
922
- function inspect(value, from, noIndent) {
923
- if (from) {
924
- seen = $arrSlice.call(seen);
925
- seen.push(from);
926
- }
927
- if (noIndent) {
928
- var newOpts = {
929
- depth: opts.depth
930
- };
931
- if (has(opts, "quoteStyle")) {
932
- newOpts.quoteStyle = opts.quoteStyle;
933
- }
934
- return inspect_(value, newOpts, depth + 1, seen);
454
+ try {
455
+ weakSetHas.call(x, weakSetHas);
456
+ try {
457
+ weakMapHas.call(x, weakMapHas);
458
+ } catch (s) {
459
+ return true;
935
460
  }
936
- return inspect_(value, opts, depth + 1, seen);
461
+ return x instanceof WeakSet;
462
+ } catch (e) {
937
463
  }
938
- if (typeof obj === "function" && !isRegExp(obj)) {
939
- var name = nameOf(obj);
940
- var keys = arrObjKeys(obj, inspect);
941
- return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
464
+ return false;
465
+ }
466
+ function isElement(x) {
467
+ if (!x || typeof x !== "object") {
468
+ return false;
942
469
  }
943
- if (isSymbol(obj)) {
944
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
945
- return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
470
+ if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
471
+ return true;
946
472
  }
947
- if (isElement(obj)) {
948
- var s = "<" + $toLowerCase.call(String(obj.nodeName));
949
- var attrs = obj.attributes || [];
950
- for (var i = 0; i < attrs.length; i++) {
951
- s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
952
- }
953
- s += ">";
954
- if (obj.childNodes && obj.childNodes.length) {
955
- s += "...";
956
- }
957
- s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
958
- return s;
473
+ return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
474
+ }
475
+ function inspectString(str, opts) {
476
+ if (str.length > opts.maxStringLength) {
477
+ var remaining = str.length - opts.maxStringLength;
478
+ var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
479
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
959
480
  }
960
- if (isArray2(obj)) {
961
- if (obj.length === 0) {
962
- return "[]";
963
- }
964
- var xs = arrObjKeys(obj, inspect);
965
- if (indent && !singleLineValues(xs)) {
966
- return "[" + indentedJoin(xs, indent) + "]";
967
- }
968
- return "[ " + $join.call(xs, ", ") + " ]";
481
+ var quoteRE = quoteREs[opts.quoteStyle || "single"];
482
+ quoteRE.lastIndex = 0;
483
+ var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
484
+ return wrapQuotes(s, "single", opts);
485
+ }
486
+ function lowbyte(c) {
487
+ var n = c.charCodeAt(0);
488
+ var x = {
489
+ 8: "b",
490
+ 9: "t",
491
+ 10: "n",
492
+ 12: "f",
493
+ 13: "r"
494
+ }[n];
495
+ if (x) {
496
+ return "\\" + x;
969
497
  }
970
- if (isError(obj)) {
971
- var parts = arrObjKeys(obj, inspect);
972
- if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
973
- return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
974
- }
975
- if (parts.length === 0) {
976
- return "[" + String(obj) + "]";
498
+ return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
499
+ }
500
+ function markBoxed(str) {
501
+ return "Object(" + str + ")";
502
+ }
503
+ function weakCollectionOf(type) {
504
+ return type + " { ? }";
505
+ }
506
+ function collectionOf(type, size, entries, indent) {
507
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
508
+ return type + " (" + size + ") {" + joinedEntries + "}";
509
+ }
510
+ function singleLineValues(xs) {
511
+ for (var i = 0; i < xs.length; i++) {
512
+ if (indexOf(xs[i], "\n") >= 0) {
513
+ return false;
977
514
  }
978
- return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
979
515
  }
980
- if (typeof obj === "object" && customInspect) {
981
- if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
982
- return utilInspect(obj, { depth: maxDepth - depth });
983
- } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
984
- return obj.inspect();
985
- }
516
+ return true;
517
+ }
518
+ function getIndent(opts, depth) {
519
+ var baseIndent;
520
+ if (opts.indent === " ") {
521
+ baseIndent = " ";
522
+ } else if (typeof opts.indent === "number" && opts.indent > 0) {
523
+ baseIndent = $join.call(Array(opts.indent + 1), " ");
524
+ } else {
525
+ return null;
986
526
  }
987
- if (isMap(obj)) {
988
- var mapParts = [];
989
- if (mapForEach) {
990
- mapForEach.call(obj, function(value, key) {
991
- mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
992
- });
993
- }
994
- return collectionOf("Map", mapSize.call(obj), mapParts, indent);
527
+ return {
528
+ base: baseIndent,
529
+ prev: $join.call(Array(depth + 1), baseIndent)
530
+ };
531
+ }
532
+ function indentedJoin(xs, indent) {
533
+ if (xs.length === 0) {
534
+ return "";
995
535
  }
996
- if (isSet(obj)) {
997
- var setParts = [];
998
- if (setForEach) {
999
- setForEach.call(obj, function(value) {
1000
- setParts.push(inspect(value, obj));
1001
- });
536
+ var lineJoiner = "\n" + indent.prev + indent.base;
537
+ return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
538
+ }
539
+ function arrObjKeys(obj, inspect) {
540
+ var isArr = isArray2(obj);
541
+ var xs = [];
542
+ if (isArr) {
543
+ xs.length = obj.length;
544
+ for (var i = 0; i < obj.length; i++) {
545
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
1002
546
  }
1003
- return collectionOf("Set", setSize.call(obj), setParts, indent);
1004
- }
1005
- if (isWeakMap(obj)) {
1006
- return weakCollectionOf("WeakMap");
1007
547
  }
1008
- if (isWeakSet(obj)) {
1009
- return weakCollectionOf("WeakSet");
548
+ var syms = typeof gOPS === "function" ? gOPS(obj) : [];
549
+ var symMap;
550
+ if (hasShammedSymbols) {
551
+ symMap = {};
552
+ for (var k = 0; k < syms.length; k++) {
553
+ symMap["$" + syms[k]] = syms[k];
554
+ }
1010
555
  }
1011
- if (isWeakRef(obj)) {
1012
- return weakCollectionOf("WeakRef");
556
+ for (var key in obj) {
557
+ if (!has(obj, key)) {
558
+ continue;
559
+ }
560
+ if (isArr && String(Number(key)) === key && key < obj.length) {
561
+ continue;
562
+ }
563
+ if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
564
+ continue;
565
+ } else if ($test.call(/[^\w$]/, key)) {
566
+ xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
567
+ } else {
568
+ xs.push(key + ": " + inspect(obj[key], obj));
569
+ }
1013
570
  }
1014
- if (isNumber(obj)) {
1015
- return markBoxed(inspect(Number(obj)));
571
+ if (typeof gOPS === "function") {
572
+ for (var j = 0; j < syms.length; j++) {
573
+ if (isEnumerable.call(obj, syms[j])) {
574
+ xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
575
+ }
576
+ }
1016
577
  }
1017
- if (isBigInt(obj)) {
1018
- return markBoxed(inspect(bigIntValueOf.call(obj)));
578
+ return xs;
579
+ }
580
+ }
581
+ });
582
+
583
+ // ../../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js
584
+ var require_side_channel_list = __commonJS({
585
+ "../../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js"(exports, module) {
586
+ "use strict";
587
+ var inspect = require_object_inspect();
588
+ var $TypeError = require_type();
589
+ var listGetNode = function(list, key, isDelete) {
590
+ var prev = list;
591
+ var curr;
592
+ for (; (curr = prev.next) != null; prev = curr) {
593
+ if (curr.key === key) {
594
+ prev.next = curr.next;
595
+ if (!isDelete) {
596
+ curr.next = /** @type {NonNullable<typeof list.next>} */
597
+ list.next;
598
+ list.next = curr;
599
+ }
600
+ return curr;
601
+ }
1019
602
  }
1020
- if (isBoolean(obj)) {
1021
- return markBoxed(booleanValueOf.call(obj));
603
+ };
604
+ var listGet = function(objects, key) {
605
+ if (!objects) {
606
+ return void 0;
1022
607
  }
1023
- if (isString(obj)) {
1024
- return markBoxed(inspect(String(obj)));
608
+ var node = listGetNode(objects, key);
609
+ return node && node.value;
610
+ };
611
+ var listSet = function(objects, key, value) {
612
+ var node = listGetNode(objects, key);
613
+ if (node) {
614
+ node.value = value;
615
+ } else {
616
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
617
+ {
618
+ // eslint-disable-line no-param-reassign, no-extra-parens
619
+ key,
620
+ next: objects.next,
621
+ value
622
+ };
1025
623
  }
1026
- if (typeof window !== "undefined" && obj === window) {
1027
- return "{ [object Window] }";
624
+ };
625
+ var listHas = function(objects, key) {
626
+ if (!objects) {
627
+ return false;
1028
628
  }
1029
- if (obj === global) {
1030
- return "{ [object globalThis] }";
629
+ return !!listGetNode(objects, key);
630
+ };
631
+ var listDelete = function(objects, key) {
632
+ if (objects) {
633
+ return listGetNode(objects, key, true);
1031
634
  }
1032
- if (!isDate2(obj) && !isRegExp(obj)) {
1033
- var ys = arrObjKeys(obj, inspect);
1034
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1035
- var protoTag = obj instanceof Object ? "" : "null prototype";
1036
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
1037
- var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
1038
- var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1039
- if (ys.length === 0) {
1040
- return tag + "{}";
1041
- }
1042
- if (indent) {
1043
- return tag + "{" + indentedJoin(ys, indent) + "}";
635
+ };
636
+ module.exports = function getSideChannelList() {
637
+ var $o;
638
+ var channel = {
639
+ assert: function(key) {
640
+ if (!channel.has(key)) {
641
+ throw new $TypeError("Side channel does not contain " + inspect(key));
642
+ }
643
+ },
644
+ "delete": function(key) {
645
+ var root = $o && $o.next;
646
+ var deletedNode = listDelete($o, key);
647
+ if (deletedNode && root && root === deletedNode) {
648
+ $o = void 0;
649
+ }
650
+ return !!deletedNode;
651
+ },
652
+ get: function(key) {
653
+ return listGet($o, key);
654
+ },
655
+ has: function(key) {
656
+ return listHas($o, key);
657
+ },
658
+ set: function(key, value) {
659
+ if (!$o) {
660
+ $o = {
661
+ next: void 0
662
+ };
663
+ }
664
+ listSet(
665
+ /** @type {NonNullable<typeof $o>} */
666
+ $o,
667
+ key,
668
+ value
669
+ );
1044
670
  }
1045
- return tag + "{ " + $join.call(ys, ", ") + " }";
671
+ };
672
+ return channel;
673
+ };
674
+ }
675
+ });
676
+
677
+ // ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
678
+ var require_es_object_atoms = __commonJS({
679
+ "../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
680
+ "use strict";
681
+ module.exports = Object;
682
+ }
683
+ });
684
+
685
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
686
+ var require_es_errors = __commonJS({
687
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
688
+ "use strict";
689
+ module.exports = Error;
690
+ }
691
+ });
692
+
693
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
694
+ var require_eval = __commonJS({
695
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
696
+ "use strict";
697
+ module.exports = EvalError;
698
+ }
699
+ });
700
+
701
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
702
+ var require_range = __commonJS({
703
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
704
+ "use strict";
705
+ module.exports = RangeError;
706
+ }
707
+ });
708
+
709
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
710
+ var require_ref = __commonJS({
711
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
712
+ "use strict";
713
+ module.exports = ReferenceError;
714
+ }
715
+ });
716
+
717
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
718
+ var require_syntax = __commonJS({
719
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
720
+ "use strict";
721
+ module.exports = SyntaxError;
722
+ }
723
+ });
724
+
725
+ // ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
726
+ var require_uri = __commonJS({
727
+ "../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
728
+ "use strict";
729
+ module.exports = URIError;
730
+ }
731
+ });
732
+
733
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
734
+ var require_abs = __commonJS({
735
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
736
+ "use strict";
737
+ module.exports = Math.abs;
738
+ }
739
+ });
740
+
741
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
742
+ var require_floor = __commonJS({
743
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
744
+ "use strict";
745
+ module.exports = Math.floor;
746
+ }
747
+ });
748
+
749
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
750
+ var require_max = __commonJS({
751
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
752
+ "use strict";
753
+ module.exports = Math.max;
754
+ }
755
+ });
756
+
757
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
758
+ var require_min = __commonJS({
759
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
760
+ "use strict";
761
+ module.exports = Math.min;
762
+ }
763
+ });
764
+
765
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
766
+ var require_pow = __commonJS({
767
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
768
+ "use strict";
769
+ module.exports = Math.pow;
770
+ }
771
+ });
772
+
773
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
774
+ var require_round = __commonJS({
775
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
776
+ "use strict";
777
+ module.exports = Math.round;
778
+ }
779
+ });
780
+
781
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
782
+ var require_isNaN = __commonJS({
783
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
784
+ "use strict";
785
+ module.exports = Number.isNaN || function isNaN2(a) {
786
+ return a !== a;
787
+ };
788
+ }
789
+ });
790
+
791
+ // ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
792
+ var require_sign = __commonJS({
793
+ "../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
794
+ "use strict";
795
+ var $isNaN = require_isNaN();
796
+ module.exports = function sign(number) {
797
+ if ($isNaN(number) || number === 0) {
798
+ return number;
1046
799
  }
1047
- return String(obj);
800
+ return number < 0 ? -1 : 1;
1048
801
  };
1049
- function wrapQuotes(s, defaultStyle, opts) {
1050
- var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
1051
- return quoteChar + s + quoteChar;
1052
- }
1053
- function quote(s) {
1054
- return $replace.call(String(s), /"/g, "&quot;");
1055
- }
1056
- function isArray2(obj) {
1057
- return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1058
- }
1059
- function isDate2(obj) {
1060
- return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1061
- }
1062
- function isRegExp(obj) {
1063
- return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1064
- }
1065
- function isError(obj) {
1066
- return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1067
- }
1068
- function isString(obj) {
1069
- return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1070
- }
1071
- function isNumber(obj) {
1072
- return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
802
+ }
803
+ });
804
+
805
+ // ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
806
+ var require_gOPD = __commonJS({
807
+ "../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
808
+ "use strict";
809
+ module.exports = Object.getOwnPropertyDescriptor;
810
+ }
811
+ });
812
+
813
+ // ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
814
+ var require_gopd = __commonJS({
815
+ "../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
816
+ "use strict";
817
+ var $gOPD = require_gOPD();
818
+ if ($gOPD) {
819
+ try {
820
+ $gOPD([], "length");
821
+ } catch (e) {
822
+ $gOPD = null;
823
+ }
1073
824
  }
1074
- function isBoolean(obj) {
1075
- return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
825
+ module.exports = $gOPD;
826
+ }
827
+ });
828
+
829
+ // ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
830
+ var require_es_define_property = __commonJS({
831
+ "../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
832
+ "use strict";
833
+ var $defineProperty = Object.defineProperty || false;
834
+ if ($defineProperty) {
835
+ try {
836
+ $defineProperty({}, "a", { value: 1 });
837
+ } catch (e) {
838
+ $defineProperty = false;
839
+ }
1076
840
  }
1077
- function isSymbol(obj) {
1078
- if (hasShammedSymbols) {
1079
- return obj && typeof obj === "object" && obj instanceof Symbol;
841
+ module.exports = $defineProperty;
842
+ }
843
+ });
844
+
845
+ // ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
846
+ var require_shams = __commonJS({
847
+ "../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
848
+ "use strict";
849
+ module.exports = function hasSymbols() {
850
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
851
+ return false;
1080
852
  }
1081
- if (typeof obj === "symbol") {
853
+ if (typeof Symbol.iterator === "symbol") {
1082
854
  return true;
1083
855
  }
1084
- if (!obj || typeof obj !== "object" || !symToString) {
856
+ var obj = {};
857
+ var sym = Symbol("test");
858
+ var symObj = Object(sym);
859
+ if (typeof sym === "string") {
1085
860
  return false;
1086
861
  }
1087
- try {
1088
- symToString.call(obj);
1089
- return true;
1090
- } catch (e) {
862
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
863
+ return false;
1091
864
  }
1092
- return false;
1093
- }
1094
- function isBigInt(obj) {
1095
- if (!obj || typeof obj !== "object" || !bigIntValueOf) {
865
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
1096
866
  return false;
1097
867
  }
1098
- try {
1099
- bigIntValueOf.call(obj);
1100
- return true;
1101
- } catch (e) {
868
+ var symVal = 42;
869
+ obj[sym] = symVal;
870
+ for (var _ in obj) {
871
+ return false;
1102
872
  }
1103
- return false;
1104
- }
1105
- var hasOwn = Object.prototype.hasOwnProperty || function(key) {
1106
- return key in this;
1107
- };
1108
- function has(obj, key) {
1109
- return hasOwn.call(obj, key);
1110
- }
1111
- function toStr(obj) {
1112
- return objectToString.call(obj);
1113
- }
1114
- function nameOf(f) {
1115
- if (f.name) {
1116
- return f.name;
873
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
874
+ return false;
1117
875
  }
1118
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1119
- if (m) {
1120
- return m[1];
876
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
877
+ return false;
1121
878
  }
1122
- return null;
1123
- }
1124
- function indexOf(xs, x) {
1125
- if (xs.indexOf) {
1126
- return xs.indexOf(x);
879
+ var syms = Object.getOwnPropertySymbols(obj);
880
+ if (syms.length !== 1 || syms[0] !== sym) {
881
+ return false;
1127
882
  }
1128
- for (var i = 0, l = xs.length; i < l; i++) {
1129
- if (xs[i] === x) {
1130
- return i;
883
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
884
+ return false;
885
+ }
886
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
887
+ var descriptor = (
888
+ /** @type {PropertyDescriptor} */
889
+ Object.getOwnPropertyDescriptor(obj, sym)
890
+ );
891
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
892
+ return false;
1131
893
  }
1132
894
  }
1133
- return -1;
1134
- }
1135
- function isMap(x) {
1136
- if (!mapSize || !x || typeof x !== "object") {
895
+ return true;
896
+ };
897
+ }
898
+ });
899
+
900
+ // ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
901
+ var require_has_symbols = __commonJS({
902
+ "../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
903
+ "use strict";
904
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
905
+ var hasSymbolSham = require_shams();
906
+ module.exports = function hasNativeSymbols() {
907
+ if (typeof origSymbol !== "function") {
1137
908
  return false;
1138
909
  }
1139
- try {
1140
- mapSize.call(x);
1141
- try {
1142
- setSize.call(x);
1143
- } catch (s) {
1144
- return true;
1145
- }
1146
- return x instanceof Map;
1147
- } catch (e) {
910
+ if (typeof Symbol !== "function") {
911
+ return false;
1148
912
  }
1149
- return false;
1150
- }
1151
- function isWeakMap(x) {
1152
- if (!weakMapHas || !x || typeof x !== "object") {
913
+ if (typeof origSymbol("foo") !== "symbol") {
1153
914
  return false;
1154
915
  }
1155
- try {
1156
- weakMapHas.call(x, weakMapHas);
1157
- try {
1158
- weakSetHas.call(x, weakSetHas);
1159
- } catch (s) {
1160
- return true;
916
+ if (typeof Symbol("bar") !== "symbol") {
917
+ return false;
918
+ }
919
+ return hasSymbolSham();
920
+ };
921
+ }
922
+ });
923
+
924
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
925
+ var require_Reflect_getPrototypeOf = __commonJS({
926
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
927
+ "use strict";
928
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
929
+ }
930
+ });
931
+
932
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
933
+ var require_Object_getPrototypeOf = __commonJS({
934
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
935
+ "use strict";
936
+ var $Object = require_es_object_atoms();
937
+ module.exports = $Object.getPrototypeOf || null;
938
+ }
939
+ });
940
+
941
+ // ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
942
+ var require_implementation = __commonJS({
943
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
944
+ "use strict";
945
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
946
+ var toStr = Object.prototype.toString;
947
+ var max = Math.max;
948
+ var funcType = "[object Function]";
949
+ var concatty = function concatty2(a, b) {
950
+ var arr = [];
951
+ for (var i = 0; i < a.length; i += 1) {
952
+ arr[i] = a[i];
953
+ }
954
+ for (var j = 0; j < b.length; j += 1) {
955
+ arr[j + a.length] = b[j];
956
+ }
957
+ return arr;
958
+ };
959
+ var slicy = function slicy2(arrLike, offset) {
960
+ var arr = [];
961
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
962
+ arr[j] = arrLike[i];
963
+ }
964
+ return arr;
965
+ };
966
+ var joiny = function(arr, joiner) {
967
+ var str = "";
968
+ for (var i = 0; i < arr.length; i += 1) {
969
+ str += arr[i];
970
+ if (i + 1 < arr.length) {
971
+ str += joiner;
1161
972
  }
1162
- return x instanceof WeakMap;
1163
- } catch (e) {
1164
973
  }
1165
- return false;
974
+ return str;
975
+ };
976
+ module.exports = function bind(that) {
977
+ var target = this;
978
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
979
+ throw new TypeError(ERROR_MESSAGE + target);
980
+ }
981
+ var args = slicy(arguments, 1);
982
+ var bound;
983
+ var binder = function() {
984
+ if (this instanceof bound) {
985
+ var result = target.apply(
986
+ this,
987
+ concatty(args, arguments)
988
+ );
989
+ if (Object(result) === result) {
990
+ return result;
991
+ }
992
+ return this;
993
+ }
994
+ return target.apply(
995
+ that,
996
+ concatty(args, arguments)
997
+ );
998
+ };
999
+ var boundLength = max(0, target.length - args.length);
1000
+ var boundArgs = [];
1001
+ for (var i = 0; i < boundLength; i++) {
1002
+ boundArgs[i] = "$" + i;
1003
+ }
1004
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1005
+ if (target.prototype) {
1006
+ var Empty = function Empty2() {
1007
+ };
1008
+ Empty.prototype = target.prototype;
1009
+ bound.prototype = new Empty();
1010
+ Empty.prototype = null;
1011
+ }
1012
+ return bound;
1013
+ };
1014
+ }
1015
+ });
1016
+
1017
+ // ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
1018
+ var require_function_bind = __commonJS({
1019
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
1020
+ "use strict";
1021
+ var implementation = require_implementation();
1022
+ module.exports = Function.prototype.bind || implementation;
1023
+ }
1024
+ });
1025
+
1026
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.js
1027
+ var require_functionCall = __commonJS({
1028
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
1029
+ "use strict";
1030
+ module.exports = Function.prototype.call;
1031
+ }
1032
+ });
1033
+
1034
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.js
1035
+ var require_functionApply = __commonJS({
1036
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
1037
+ "use strict";
1038
+ module.exports = Function.prototype.apply;
1039
+ }
1040
+ });
1041
+
1042
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/reflectApply.js
1043
+ var require_reflectApply = __commonJS({
1044
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
1045
+ "use strict";
1046
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1047
+ }
1048
+ });
1049
+
1050
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.js
1051
+ var require_actualApply = __commonJS({
1052
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
1053
+ "use strict";
1054
+ var bind = require_function_bind();
1055
+ var $apply = require_functionApply();
1056
+ var $call = require_functionCall();
1057
+ var $reflectApply = require_reflectApply();
1058
+ module.exports = $reflectApply || bind.call($call, $apply);
1059
+ }
1060
+ });
1061
+
1062
+ // ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.js
1063
+ var require_call_bind_apply_helpers = __commonJS({
1064
+ "../../node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
1065
+ "use strict";
1066
+ var bind = require_function_bind();
1067
+ var $TypeError = require_type();
1068
+ var $call = require_functionCall();
1069
+ var $actualApply = require_actualApply();
1070
+ module.exports = function callBindBasic(args) {
1071
+ if (args.length < 1 || typeof args[0] !== "function") {
1072
+ throw new $TypeError("a function is required");
1073
+ }
1074
+ return $actualApply(bind, $call, args);
1075
+ };
1076
+ }
1077
+ });
1078
+
1079
+ // ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
1080
+ var require_get = __commonJS({
1081
+ "../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
1082
+ "use strict";
1083
+ var callBind = require_call_bind_apply_helpers();
1084
+ var gOPD = require_gopd();
1085
+ var hasProtoAccessor;
1086
+ try {
1087
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
1088
+ [].__proto__ === Array.prototype;
1089
+ } catch (e) {
1090
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
1091
+ throw e;
1092
+ }
1166
1093
  }
1167
- function isWeakRef(x) {
1168
- if (!weakRefDeref || !x || typeof x !== "object") {
1169
- return false;
1094
+ var desc = !!hasProtoAccessor && gOPD && gOPD(
1095
+ Object.prototype,
1096
+ /** @type {keyof typeof Object.prototype} */
1097
+ "__proto__"
1098
+ );
1099
+ var $Object = Object;
1100
+ var $getPrototypeOf = $Object.getPrototypeOf;
1101
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
1102
+ /** @type {import('./get')} */
1103
+ function getDunder(value) {
1104
+ return $getPrototypeOf(value == null ? value : $Object(value));
1170
1105
  }
1106
+ ) : false;
1107
+ }
1108
+ });
1109
+
1110
+ // ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
1111
+ var require_get_proto = __commonJS({
1112
+ "../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
1113
+ "use strict";
1114
+ var reflectGetProto = require_Reflect_getPrototypeOf();
1115
+ var originalGetProto = require_Object_getPrototypeOf();
1116
+ var getDunderProto = require_get();
1117
+ module.exports = reflectGetProto ? function getProto(O) {
1118
+ return reflectGetProto(O);
1119
+ } : originalGetProto ? function getProto(O) {
1120
+ if (!O || typeof O !== "object" && typeof O !== "function") {
1121
+ throw new TypeError("getProto: not an object");
1122
+ }
1123
+ return originalGetProto(O);
1124
+ } : getDunderProto ? function getProto(O) {
1125
+ return getDunderProto(O);
1126
+ } : null;
1127
+ }
1128
+ });
1129
+
1130
+ // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
1131
+ var require_hasown = __commonJS({
1132
+ "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
1133
+ "use strict";
1134
+ var call = Function.prototype.call;
1135
+ var $hasOwn = Object.prototype.hasOwnProperty;
1136
+ var bind = require_function_bind();
1137
+ module.exports = bind.call(call, $hasOwn);
1138
+ }
1139
+ });
1140
+
1141
+ // ../../node_modules/.pnpm/get-intrinsic@1.2.7/node_modules/get-intrinsic/index.js
1142
+ var require_get_intrinsic = __commonJS({
1143
+ "../../node_modules/.pnpm/get-intrinsic@1.2.7/node_modules/get-intrinsic/index.js"(exports, module) {
1144
+ "use strict";
1145
+ var undefined2;
1146
+ var $Object = require_es_object_atoms();
1147
+ var $Error = require_es_errors();
1148
+ var $EvalError = require_eval();
1149
+ var $RangeError = require_range();
1150
+ var $ReferenceError = require_ref();
1151
+ var $SyntaxError = require_syntax();
1152
+ var $TypeError = require_type();
1153
+ var $URIError = require_uri();
1154
+ var abs = require_abs();
1155
+ var floor = require_floor();
1156
+ var max = require_max();
1157
+ var min = require_min();
1158
+ var pow = require_pow();
1159
+ var round = require_round();
1160
+ var sign = require_sign();
1161
+ var $Function = Function;
1162
+ var getEvalledConstructor = function(expressionSyntax) {
1171
1163
  try {
1172
- weakRefDeref.call(x);
1173
- return true;
1164
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
1174
1165
  } catch (e) {
1175
1166
  }
1176
- return false;
1177
- }
1178
- function isSet(x) {
1179
- if (!setSize || !x || typeof x !== "object") {
1180
- return false;
1181
- }
1167
+ };
1168
+ var $gOPD = require_gopd();
1169
+ var $defineProperty = require_es_define_property();
1170
+ var throwTypeError = function() {
1171
+ throw new $TypeError();
1172
+ };
1173
+ var ThrowTypeError = $gOPD ? function() {
1182
1174
  try {
1183
- setSize.call(x);
1175
+ arguments.callee;
1176
+ return throwTypeError;
1177
+ } catch (calleeThrows) {
1184
1178
  try {
1185
- mapSize.call(x);
1186
- } catch (m) {
1187
- return true;
1179
+ return $gOPD(arguments, "callee").get;
1180
+ } catch (gOPDthrows) {
1181
+ return throwTypeError;
1188
1182
  }
1189
- return x instanceof Set;
1190
- } catch (e) {
1191
- }
1192
- return false;
1193
- }
1194
- function isWeakSet(x) {
1195
- if (!weakSetHas || !x || typeof x !== "object") {
1196
- return false;
1197
1183
  }
1184
+ }() : throwTypeError;
1185
+ var hasSymbols = require_has_symbols()();
1186
+ var getProto = require_get_proto();
1187
+ var $ObjectGPO = require_Object_getPrototypeOf();
1188
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
1189
+ var $apply = require_functionApply();
1190
+ var $call = require_functionCall();
1191
+ var needsEval = {};
1192
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
1193
+ var INTRINSICS = {
1194
+ __proto__: null,
1195
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
1196
+ "%Array%": Array,
1197
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
1198
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
1199
+ "%AsyncFromSyncIteratorPrototype%": undefined2,
1200
+ "%AsyncFunction%": needsEval,
1201
+ "%AsyncGenerator%": needsEval,
1202
+ "%AsyncGeneratorFunction%": needsEval,
1203
+ "%AsyncIteratorPrototype%": needsEval,
1204
+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
1205
+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
1206
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
1207
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
1208
+ "%Boolean%": Boolean,
1209
+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
1210
+ "%Date%": Date,
1211
+ "%decodeURI%": decodeURI,
1212
+ "%decodeURIComponent%": decodeURIComponent,
1213
+ "%encodeURI%": encodeURI,
1214
+ "%encodeURIComponent%": encodeURIComponent,
1215
+ "%Error%": $Error,
1216
+ "%eval%": eval,
1217
+ // eslint-disable-line no-eval
1218
+ "%EvalError%": $EvalError,
1219
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
1220
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
1221
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
1222
+ "%Function%": $Function,
1223
+ "%GeneratorFunction%": needsEval,
1224
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
1225
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
1226
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
1227
+ "%isFinite%": isFinite,
1228
+ "%isNaN%": isNaN,
1229
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
1230
+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,
1231
+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,
1232
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1233
+ "%Math%": Math,
1234
+ "%Number%": Number,
1235
+ "%Object%": $Object,
1236
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
1237
+ "%parseFloat%": parseFloat,
1238
+ "%parseInt%": parseInt,
1239
+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
1240
+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
1241
+ "%RangeError%": $RangeError,
1242
+ "%ReferenceError%": $ReferenceError,
1243
+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
1244
+ "%RegExp%": RegExp,
1245
+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,
1246
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1247
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
1248
+ "%String%": String,
1249
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
1250
+ "%Symbol%": hasSymbols ? Symbol : undefined2,
1251
+ "%SyntaxError%": $SyntaxError,
1252
+ "%ThrowTypeError%": ThrowTypeError,
1253
+ "%TypedArray%": TypedArray,
1254
+ "%TypeError%": $TypeError,
1255
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
1256
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
1257
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
1258
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
1259
+ "%URIError%": $URIError,
1260
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
1261
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
1262
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
1263
+ "%Function.prototype.call%": $call,
1264
+ "%Function.prototype.apply%": $apply,
1265
+ "%Object.defineProperty%": $defineProperty,
1266
+ "%Object.getPrototypeOf%": $ObjectGPO,
1267
+ "%Math.abs%": abs,
1268
+ "%Math.floor%": floor,
1269
+ "%Math.max%": max,
1270
+ "%Math.min%": min,
1271
+ "%Math.pow%": pow,
1272
+ "%Math.round%": round,
1273
+ "%Math.sign%": sign,
1274
+ "%Reflect.getPrototypeOf%": $ReflectGPO
1275
+ };
1276
+ if (getProto) {
1198
1277
  try {
1199
- weakSetHas.call(x, weakSetHas);
1200
- try {
1201
- weakMapHas.call(x, weakMapHas);
1202
- } catch (s) {
1203
- return true;
1204
- }
1205
- return x instanceof WeakSet;
1278
+ null.error;
1206
1279
  } catch (e) {
1280
+ errorProto = getProto(getProto(e));
1281
+ INTRINSICS["%Error.prototype%"] = errorProto;
1207
1282
  }
1208
- return false;
1209
1283
  }
1210
- function isElement(x) {
1211
- if (!x || typeof x !== "object") {
1212
- return false;
1213
- }
1214
- if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
1215
- return true;
1284
+ var errorProto;
1285
+ var doEval = function doEval2(name) {
1286
+ var value;
1287
+ if (name === "%AsyncFunction%") {
1288
+ value = getEvalledConstructor("async function () {}");
1289
+ } else if (name === "%GeneratorFunction%") {
1290
+ value = getEvalledConstructor("function* () {}");
1291
+ } else if (name === "%AsyncGeneratorFunction%") {
1292
+ value = getEvalledConstructor("async function* () {}");
1293
+ } else if (name === "%AsyncGenerator%") {
1294
+ var fn = doEval2("%AsyncGeneratorFunction%");
1295
+ if (fn) {
1296
+ value = fn.prototype;
1297
+ }
1298
+ } else if (name === "%AsyncIteratorPrototype%") {
1299
+ var gen = doEval2("%AsyncGenerator%");
1300
+ if (gen && getProto) {
1301
+ value = getProto(gen.prototype);
1302
+ }
1216
1303
  }
1217
- return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
1218
- }
1219
- function inspectString(str, opts) {
1220
- if (str.length > opts.maxStringLength) {
1221
- var remaining = str.length - opts.maxStringLength;
1222
- var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
1223
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1304
+ INTRINSICS[name] = value;
1305
+ return value;
1306
+ };
1307
+ var LEGACY_ALIASES = {
1308
+ __proto__: null,
1309
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1310
+ "%ArrayPrototype%": ["Array", "prototype"],
1311
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1312
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1313
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1314
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1315
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1316
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1317
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1318
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1319
+ "%DataViewPrototype%": ["DataView", "prototype"],
1320
+ "%DatePrototype%": ["Date", "prototype"],
1321
+ "%ErrorPrototype%": ["Error", "prototype"],
1322
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1323
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1324
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1325
+ "%FunctionPrototype%": ["Function", "prototype"],
1326
+ "%Generator%": ["GeneratorFunction", "prototype"],
1327
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1328
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1329
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1330
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1331
+ "%JSONParse%": ["JSON", "parse"],
1332
+ "%JSONStringify%": ["JSON", "stringify"],
1333
+ "%MapPrototype%": ["Map", "prototype"],
1334
+ "%NumberPrototype%": ["Number", "prototype"],
1335
+ "%ObjectPrototype%": ["Object", "prototype"],
1336
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1337
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1338
+ "%PromisePrototype%": ["Promise", "prototype"],
1339
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1340
+ "%Promise_all%": ["Promise", "all"],
1341
+ "%Promise_reject%": ["Promise", "reject"],
1342
+ "%Promise_resolve%": ["Promise", "resolve"],
1343
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1344
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1345
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1346
+ "%SetPrototype%": ["Set", "prototype"],
1347
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1348
+ "%StringPrototype%": ["String", "prototype"],
1349
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1350
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1351
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1352
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1353
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1354
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1355
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1356
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1357
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1358
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1359
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1360
+ };
1361
+ var bind = require_function_bind();
1362
+ var hasOwn = require_hasown();
1363
+ var $concat = bind.call($call, Array.prototype.concat);
1364
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
1365
+ var $replace = bind.call($call, String.prototype.replace);
1366
+ var $strSlice = bind.call($call, String.prototype.slice);
1367
+ var $exec = bind.call($call, RegExp.prototype.exec);
1368
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1369
+ var reEscapeChar = /\\(\\)?/g;
1370
+ var stringToPath = function stringToPath2(string) {
1371
+ var first = $strSlice(string, 0, 1);
1372
+ var last = $strSlice(string, -1);
1373
+ if (first === "%" && last !== "%") {
1374
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
1375
+ } else if (last === "%" && first !== "%") {
1376
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
1224
1377
  }
1225
- var s = $replace.call($replace.call(str, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
1226
- return wrapQuotes(s, "single", opts);
1227
- }
1228
- function lowbyte(c) {
1229
- var n = c.charCodeAt(0);
1230
- var x = {
1231
- 8: "b",
1232
- 9: "t",
1233
- 10: "n",
1234
- 12: "f",
1235
- 13: "r"
1236
- }[n];
1237
- if (x) {
1238
- return "\\" + x;
1378
+ var result = [];
1379
+ $replace(string, rePropName, function(match, number, quote, subString) {
1380
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
1381
+ });
1382
+ return result;
1383
+ };
1384
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
1385
+ var intrinsicName = name;
1386
+ var alias;
1387
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
1388
+ alias = LEGACY_ALIASES[intrinsicName];
1389
+ intrinsicName = "%" + alias[0] + "%";
1239
1390
  }
1240
- return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
1241
- }
1242
- function markBoxed(str) {
1243
- return "Object(" + str + ")";
1244
- }
1245
- function weakCollectionOf(type) {
1246
- return type + " { ? }";
1247
- }
1248
- function collectionOf(type, size, entries, indent) {
1249
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
1250
- return type + " (" + size + ") {" + joinedEntries + "}";
1251
- }
1252
- function singleLineValues(xs) {
1253
- for (var i = 0; i < xs.length; i++) {
1254
- if (indexOf(xs[i], "\n") >= 0) {
1255
- return false;
1391
+ if (hasOwn(INTRINSICS, intrinsicName)) {
1392
+ var value = INTRINSICS[intrinsicName];
1393
+ if (value === needsEval) {
1394
+ value = doEval(intrinsicName);
1395
+ }
1396
+ if (typeof value === "undefined" && !allowMissing) {
1397
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
1256
1398
  }
1399
+ return {
1400
+ alias,
1401
+ name: intrinsicName,
1402
+ value
1403
+ };
1257
1404
  }
1258
- return true;
1259
- }
1260
- function getIndent(opts, depth) {
1261
- var baseIndent;
1262
- if (opts.indent === " ") {
1263
- baseIndent = " ";
1264
- } else if (typeof opts.indent === "number" && opts.indent > 0) {
1265
- baseIndent = $join.call(Array(opts.indent + 1), " ");
1266
- } else {
1267
- return null;
1405
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
1406
+ };
1407
+ module.exports = function GetIntrinsic(name, allowMissing) {
1408
+ if (typeof name !== "string" || name.length === 0) {
1409
+ throw new $TypeError("intrinsic name must be a non-empty string");
1268
1410
  }
1269
- return {
1270
- base: baseIndent,
1271
- prev: $join.call(Array(depth + 1), baseIndent)
1272
- };
1273
- }
1274
- function indentedJoin(xs, indent) {
1275
- if (xs.length === 0) {
1276
- return "";
1411
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
1412
+ throw new $TypeError('"allowMissing" argument must be a boolean');
1277
1413
  }
1278
- var lineJoiner = "\n" + indent.prev + indent.base;
1279
- return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
1280
- }
1281
- function arrObjKeys(obj, inspect) {
1282
- var isArr = isArray2(obj);
1283
- var xs = [];
1284
- if (isArr) {
1285
- xs.length = obj.length;
1286
- for (var i = 0; i < obj.length; i++) {
1287
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
1288
- }
1414
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1415
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1289
1416
  }
1290
- var syms = typeof gOPS === "function" ? gOPS(obj) : [];
1291
- var symMap;
1292
- if (hasShammedSymbols) {
1293
- symMap = {};
1294
- for (var k = 0; k < syms.length; k++) {
1295
- symMap["$" + syms[k]] = syms[k];
1296
- }
1417
+ var parts = stringToPath(name);
1418
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
1419
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
1420
+ var intrinsicRealName = intrinsic.name;
1421
+ var value = intrinsic.value;
1422
+ var skipFurtherCaching = false;
1423
+ var alias = intrinsic.alias;
1424
+ if (alias) {
1425
+ intrinsicBaseName = alias[0];
1426
+ $spliceApply(parts, $concat([0, 1], alias));
1297
1427
  }
1298
- for (var key in obj) {
1299
- if (!has(obj, key)) {
1300
- continue;
1301
- }
1302
- if (isArr && String(Number(key)) === key && key < obj.length) {
1303
- continue;
1428
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1429
+ var part = parts[i];
1430
+ var first = $strSlice(part, 0, 1);
1431
+ var last = $strSlice(part, -1);
1432
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
1433
+ throw new $SyntaxError("property names with quotes must have matching quotes");
1304
1434
  }
1305
- if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
1306
- continue;
1307
- } else if ($test.call(/[^\w$]/, key)) {
1308
- xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
1309
- } else {
1310
- xs.push(key + ": " + inspect(obj[key], obj));
1435
+ if (part === "constructor" || !isOwn) {
1436
+ skipFurtherCaching = true;
1311
1437
  }
1312
- }
1313
- if (typeof gOPS === "function") {
1314
- for (var j = 0; j < syms.length; j++) {
1315
- if (isEnumerable.call(obj, syms[j])) {
1316
- xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
1438
+ intrinsicBaseName += "." + part;
1439
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
1440
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
1441
+ value = INTRINSICS[intrinsicRealName];
1442
+ } else if (value != null) {
1443
+ if (!(part in value)) {
1444
+ if (!allowMissing) {
1445
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
1446
+ }
1447
+ return void undefined2;
1448
+ }
1449
+ if ($gOPD && i + 1 >= parts.length) {
1450
+ var desc = $gOPD(value, part);
1451
+ isOwn = !!desc;
1452
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
1453
+ value = desc.get;
1454
+ } else {
1455
+ value = value[part];
1456
+ }
1457
+ } else {
1458
+ isOwn = hasOwn(value, part);
1459
+ value = value[part];
1460
+ }
1461
+ if (isOwn && !skipFurtherCaching) {
1462
+ INTRINSICS[intrinsicRealName] = value;
1317
1463
  }
1318
1464
  }
1319
1465
  }
1320
- return xs;
1321
- }
1466
+ return value;
1467
+ };
1322
1468
  }
1323
1469
  });
1324
1470
 
1325
- // ../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js
1326
- var require_side_channel = __commonJS({
1327
- "../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js"(exports, module) {
1471
+ // ../../node_modules/.pnpm/call-bound@1.0.3/node_modules/call-bound/index.js
1472
+ var require_call_bound = __commonJS({
1473
+ "../../node_modules/.pnpm/call-bound@1.0.3/node_modules/call-bound/index.js"(exports, module) {
1474
+ "use strict";
1475
+ var GetIntrinsic = require_get_intrinsic();
1476
+ var callBindBasic = require_call_bind_apply_helpers();
1477
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
1478
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
1479
+ var intrinsic = (
1480
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
1481
+ GetIntrinsic(name, !!allowMissing)
1482
+ );
1483
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1484
+ return callBindBasic([intrinsic]);
1485
+ }
1486
+ return intrinsic;
1487
+ };
1488
+ }
1489
+ });
1490
+
1491
+ // ../../node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.js
1492
+ var require_side_channel_map = __commonJS({
1493
+ "../../node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.js"(exports, module) {
1328
1494
  "use strict";
1329
1495
  var GetIntrinsic = require_get_intrinsic();
1330
- var callBound = require_callBound();
1496
+ var callBound = require_call_bound();
1331
1497
  var inspect = require_object_inspect();
1332
1498
  var $TypeError = require_type();
1333
- var $WeakMap = GetIntrinsic("%WeakMap%", true);
1334
1499
  var $Map = GetIntrinsic("%Map%", true);
1335
- var $weakMapGet = callBound("WeakMap.prototype.get", true);
1336
- var $weakMapSet = callBound("WeakMap.prototype.set", true);
1337
- var $weakMapHas = callBound("WeakMap.prototype.has", true);
1338
1500
  var $mapGet = callBound("Map.prototype.get", true);
1339
1501
  var $mapSet = callBound("Map.prototype.set", true);
1340
1502
  var $mapHas = callBound("Map.prototype.has", true);
1341
- var listGetNode = function(list, key) {
1342
- var prev = list;
1343
- var curr;
1344
- for (; (curr = prev.next) !== null; prev = curr) {
1345
- if (curr.key === key) {
1346
- prev.next = curr.next;
1347
- curr.next = /** @type {NonNullable<typeof list.next>} */
1348
- list.next;
1349
- list.next = curr;
1350
- return curr;
1351
- }
1352
- }
1353
- };
1354
- var listGet = function(objects, key) {
1355
- var node = listGetNode(objects, key);
1356
- return node && node.value;
1357
- };
1358
- var listSet = function(objects, key, value) {
1359
- var node = listGetNode(objects, key);
1360
- if (node) {
1361
- node.value = value;
1362
- } else {
1363
- objects.next = /** @type {import('.').ListNode<typeof value>} */
1364
- {
1365
- // eslint-disable-line no-param-reassign, no-extra-parens
1366
- key,
1367
- next: objects.next,
1368
- value
1369
- };
1370
- }
1371
- };
1372
- var listHas = function(objects, key) {
1373
- return !!listGetNode(objects, key);
1374
- };
1375
- module.exports = function getSideChannel() {
1376
- var $wm;
1503
+ var $mapDelete = callBound("Map.prototype.delete", true);
1504
+ var $mapSize = callBound("Map.prototype.size", true);
1505
+ module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */
1506
+ function getSideChannelMap() {
1377
1507
  var $m;
1378
- var $o;
1379
1508
  var channel = {
1380
1509
  assert: function(key) {
1381
1510
  if (!channel.has(key)) {
1382
1511
  throw new $TypeError("Side channel does not contain " + inspect(key));
1383
1512
  }
1384
1513
  },
1385
- get: function(key) {
1386
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1387
- if ($wm) {
1388
- return $weakMapGet($wm, key);
1389
- }
1390
- } else if ($Map) {
1391
- if ($m) {
1392
- return $mapGet($m, key);
1393
- }
1394
- } else {
1395
- if ($o) {
1396
- return listGet($o, key);
1514
+ "delete": function(key) {
1515
+ if ($m) {
1516
+ var result = $mapDelete($m, key);
1517
+ if ($mapSize($m) === 0) {
1518
+ $m = void 0;
1397
1519
  }
1520
+ return result;
1521
+ }
1522
+ return false;
1523
+ },
1524
+ get: function(key) {
1525
+ if ($m) {
1526
+ return $mapGet($m, key);
1398
1527
  }
1399
1528
  },
1400
1529
  has: function(key) {
1401
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1402
- if ($wm) {
1403
- return $weakMapHas($wm, key);
1404
- }
1405
- } else if ($Map) {
1406
- if ($m) {
1407
- return $mapHas($m, key);
1408
- }
1409
- } else {
1410
- if ($o) {
1411
- return listHas($o, key);
1412
- }
1530
+ if ($m) {
1531
+ return $mapHas($m, key);
1413
1532
  }
1414
1533
  return false;
1415
1534
  },
1416
1535
  set: function(key, value) {
1417
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1418
- if (!$wm) {
1419
- $wm = new $WeakMap();
1536
+ if (!$m) {
1537
+ $m = new $Map();
1538
+ }
1539
+ $mapSet($m, key, value);
1540
+ }
1541
+ };
1542
+ return channel;
1543
+ };
1544
+ }
1545
+ });
1546
+
1547
+ // ../../node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.js
1548
+ var require_side_channel_weakmap = __commonJS({
1549
+ "../../node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.js"(exports, module) {
1550
+ "use strict";
1551
+ var GetIntrinsic = require_get_intrinsic();
1552
+ var callBound = require_call_bound();
1553
+ var inspect = require_object_inspect();
1554
+ var getSideChannelMap = require_side_channel_map();
1555
+ var $TypeError = require_type();
1556
+ var $WeakMap = GetIntrinsic("%WeakMap%", true);
1557
+ var $weakMapGet = callBound("WeakMap.prototype.get", true);
1558
+ var $weakMapSet = callBound("WeakMap.prototype.set", true);
1559
+ var $weakMapHas = callBound("WeakMap.prototype.has", true);
1560
+ var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
1561
+ module.exports = $WeakMap ? (
1562
+ /** @type {Exclude<import('.'), false>} */
1563
+ function getSideChannelWeakMap() {
1564
+ var $wm;
1565
+ var $m;
1566
+ var channel = {
1567
+ assert: function(key) {
1568
+ if (!channel.has(key)) {
1569
+ throw new $TypeError("Side channel does not contain " + inspect(key));
1420
1570
  }
1421
- $weakMapSet($wm, key, value);
1422
- } else if ($Map) {
1423
- if (!$m) {
1424
- $m = new $Map();
1571
+ },
1572
+ "delete": function(key) {
1573
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1574
+ if ($wm) {
1575
+ return $weakMapDelete($wm, key);
1576
+ }
1577
+ } else if (getSideChannelMap) {
1578
+ if ($m) {
1579
+ return $m["delete"](key);
1580
+ }
1425
1581
  }
1426
- $mapSet($m, key, value);
1427
- } else {
1428
- if (!$o) {
1429
- $o = { key: {}, next: null };
1582
+ return false;
1583
+ },
1584
+ get: function(key) {
1585
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1586
+ if ($wm) {
1587
+ return $weakMapGet($wm, key);
1588
+ }
1589
+ }
1590
+ return $m && $m.get(key);
1591
+ },
1592
+ has: function(key) {
1593
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1594
+ if ($wm) {
1595
+ return $weakMapHas($wm, key);
1596
+ }
1597
+ }
1598
+ return !!$m && $m.has(key);
1599
+ },
1600
+ set: function(key, value) {
1601
+ if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
1602
+ if (!$wm) {
1603
+ $wm = new $WeakMap();
1604
+ }
1605
+ $weakMapSet($wm, key, value);
1606
+ } else if (getSideChannelMap) {
1607
+ if (!$m) {
1608
+ $m = getSideChannelMap();
1609
+ }
1610
+ $m.set(key, value);
1430
1611
  }
1431
- listSet($o, key, value);
1432
1612
  }
1613
+ };
1614
+ return channel;
1615
+ }
1616
+ ) : getSideChannelMap;
1617
+ }
1618
+ });
1619
+
1620
+ // ../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js
1621
+ var require_side_channel = __commonJS({
1622
+ "../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"(exports, module) {
1623
+ "use strict";
1624
+ var $TypeError = require_type();
1625
+ var inspect = require_object_inspect();
1626
+ var getSideChannelList = require_side_channel_list();
1627
+ var getSideChannelMap = require_side_channel_map();
1628
+ var getSideChannelWeakMap = require_side_channel_weakmap();
1629
+ var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
1630
+ module.exports = function getSideChannel() {
1631
+ var $channelData;
1632
+ var channel = {
1633
+ assert: function(key) {
1634
+ if (!channel.has(key)) {
1635
+ throw new $TypeError("Side channel does not contain " + inspect(key));
1636
+ }
1637
+ },
1638
+ "delete": function(key) {
1639
+ return !!$channelData && $channelData["delete"](key);
1640
+ },
1641
+ get: function(key) {
1642
+ return $channelData && $channelData.get(key);
1643
+ },
1644
+ has: function(key) {
1645
+ return !!$channelData && $channelData.has(key);
1646
+ },
1647
+ set: function(key, value) {
1648
+ if (!$channelData) {
1649
+ $channelData = makeChannel();
1650
+ }
1651
+ $channelData.set(key, value);
1433
1652
  }
1434
1653
  };
1435
1654
  return channel;
@@ -1437,9 +1656,9 @@
1437
1656
  }
1438
1657
  });
1439
1658
 
1440
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/formats.js
1659
+ // ../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js
1441
1660
  var require_formats = __commonJS({
1442
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/formats.js"(exports, module) {
1661
+ "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/formats.js"(exports, module) {
1443
1662
  "use strict";
1444
1663
  var replace = String.prototype.replace;
1445
1664
  var percentTwenties = /%20/g;
@@ -1463,9 +1682,9 @@
1463
1682
  }
1464
1683
  });
1465
1684
 
1466
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js
1685
+ // ../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/utils.js
1467
1686
  var require_utils = __commonJS({
1468
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js"(exports, module) {
1687
+ "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/utils.js"(exports, module) {
1469
1688
  "use strict";
1470
1689
  var formats = require_formats();
1471
1690
  var has = Object.prototype.hasOwnProperty;
@@ -1493,7 +1712,7 @@
1493
1712
  }
1494
1713
  };
1495
1714
  var arrayToObject = function arrayToObject2(source2, options) {
1496
- var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1715
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
1497
1716
  for (var i = 0; i < source2.length; ++i) {
1498
1717
  if (typeof source2[i] !== "undefined") {
1499
1718
  obj[i] = source2[i];
@@ -1505,7 +1724,7 @@
1505
1724
  if (!source2) {
1506
1725
  return target;
1507
1726
  }
1508
- if (typeof source2 !== "object") {
1727
+ if (typeof source2 !== "object" && typeof source2 !== "function") {
1509
1728
  if (isArray2(target)) {
1510
1729
  target.push(source2);
1511
1730
  } else if (target && typeof target === "object") {
@@ -1555,7 +1774,7 @@
1555
1774
  return acc;
1556
1775
  }, target);
1557
1776
  };
1558
- var decode = function(str, decoder, charset) {
1777
+ var decode = function(str, defaultDecoder, charset) {
1559
1778
  var strWithoutPlus = str.replace(/\+/g, " ");
1560
1779
  if (charset === "iso-8859-1") {
1561
1780
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1668,9 +1887,9 @@
1668
1887
  }
1669
1888
  });
1670
1889
 
1671
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/stringify.js
1890
+ // ../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/stringify.js
1672
1891
  var require_stringify = __commonJS({
1673
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/stringify.js"(exports, module) {
1892
+ "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/stringify.js"(exports, module) {
1674
1893
  "use strict";
1675
1894
  var getSideChannel = require_side_channel();
1676
1895
  var utils = require_utils();
@@ -1702,11 +1921,13 @@
1702
1921
  arrayFormat: "indices",
1703
1922
  charset: "utf-8",
1704
1923
  charsetSentinel: false,
1924
+ commaRoundTrip: false,
1705
1925
  delimiter: "&",
1706
1926
  encode: true,
1707
1927
  encodeDotInKeys: false,
1708
1928
  encoder: utils.encode,
1709
1929
  encodeValuesOnly: false,
1930
+ filter: void 0,
1710
1931
  format: defaultFormat,
1711
1932
  formatter: formats.formatters[defaultFormat],
1712
1933
  // deprecated
@@ -1781,18 +2002,18 @@
1781
2002
  var keys = Object.keys(obj);
1782
2003
  objKeys = sort ? keys.sort(sort) : keys;
1783
2004
  }
1784
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
2005
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
1785
2006
  var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
1786
2007
  if (allowEmptyArrays && isArray2(obj) && obj.length === 0) {
1787
2008
  return adjustedPrefix + "[]";
1788
2009
  }
1789
2010
  for (var j = 0; j < objKeys.length; ++j) {
1790
2011
  var key = objKeys[j];
1791
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
2012
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
1792
2013
  if (skipNulls && value === null) {
1793
2014
  continue;
1794
2015
  }
1795
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
2016
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
1796
2017
  var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
1797
2018
  sideChannel.set(object, step);
1798
2019
  var valueSideChannel = getSideChannel();
@@ -1868,7 +2089,7 @@
1868
2089
  arrayFormat,
1869
2090
  charset,
1870
2091
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
1871
- commaRoundTrip: opts.commaRoundTrip,
2092
+ commaRoundTrip: !!opts.commaRoundTrip,
1872
2093
  delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
1873
2094
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
1874
2095
  encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -1910,11 +2131,12 @@
1910
2131
  var sideChannel = getSideChannel();
1911
2132
  for (var i = 0; i < objKeys.length; ++i) {
1912
2133
  var key = objKeys[i];
1913
- if (options.skipNulls && obj[key] === null) {
2134
+ var value = obj[key];
2135
+ if (options.skipNulls && value === null) {
1914
2136
  continue;
1915
2137
  }
1916
2138
  pushToArray(keys, stringify2(
1917
- obj[key],
2139
+ value,
1918
2140
  key,
1919
2141
  generateArrayPrefix,
1920
2142
  commaRoundTrip,
@@ -1948,9 +2170,9 @@
1948
2170
  }
1949
2171
  });
1950
2172
 
1951
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js
2173
+ // ../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/parse.js
1952
2174
  var require_parse = __commonJS({
1953
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js"(exports, module) {
2175
+ "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/parse.js"(exports, module) {
1954
2176
  "use strict";
1955
2177
  var utils = require_utils();
1956
2178
  var has = Object.prototype.hasOwnProperty;
@@ -1975,17 +2197,21 @@
1975
2197
  parseArrays: true,
1976
2198
  plainObjects: false,
1977
2199
  strictDepth: false,
1978
- strictNullHandling: false
2200
+ strictNullHandling: false,
2201
+ throwOnLimitExceeded: false
1979
2202
  };
1980
2203
  var interpretNumericEntities = function(str) {
1981
2204
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
1982
2205
  return String.fromCharCode(parseInt(numberStr, 10));
1983
2206
  });
1984
2207
  };
1985
- var parseArrayValue = function(val, options) {
2208
+ var parseArrayValue = function(val, options, currentArrayLength) {
1986
2209
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
1987
2210
  return val.split(",");
1988
2211
  }
2212
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
2213
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2214
+ }
1989
2215
  return val;
1990
2216
  };
1991
2217
  var isoSentinel = "utf8=%26%2310003%3B";
@@ -1995,7 +2221,13 @@
1995
2221
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
1996
2222
  cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1997
2223
  var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
1998
- var parts = cleanStr.split(options.delimiter, limit);
2224
+ var parts = cleanStr.split(
2225
+ options.delimiter,
2226
+ options.throwOnLimitExceeded ? limit + 1 : limit
2227
+ );
2228
+ if (options.throwOnLimitExceeded && parts.length > limit) {
2229
+ throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
2230
+ }
1999
2231
  var skipIndex = -1;
2000
2232
  var i;
2001
2233
  var charset = options.charset;
@@ -2019,21 +2251,26 @@
2019
2251
  var part = parts[i];
2020
2252
  var bracketEqualsPos = part.indexOf("]=");
2021
2253
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
2022
- var key, val;
2254
+ var key;
2255
+ var val;
2023
2256
  if (pos === -1) {
2024
2257
  key = options.decoder(part, defaults.decoder, charset, "key");
2025
2258
  val = options.strictNullHandling ? null : "";
2026
2259
  } else {
2027
2260
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
2028
2261
  val = utils.maybeMap(
2029
- parseArrayValue(part.slice(pos + 1), options),
2262
+ parseArrayValue(
2263
+ part.slice(pos + 1),
2264
+ options,
2265
+ isArray2(obj[key]) ? obj[key].length : 0
2266
+ ),
2030
2267
  function(encodedVal) {
2031
2268
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
2032
2269
  }
2033
2270
  );
2034
2271
  }
2035
2272
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
2036
- val = interpretNumericEntities(val);
2273
+ val = interpretNumericEntities(String(val));
2037
2274
  }
2038
2275
  if (part.indexOf("[]=") > -1) {
2039
2276
  val = isArray2(val) ? [val] : val;
@@ -2048,14 +2285,19 @@
2048
2285
  return obj;
2049
2286
  };
2050
2287
  var parseObject = function(chain, val, options, valuesParsed) {
2051
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2288
+ var currentArrayLength = 0;
2289
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
2290
+ var parentKey = chain.slice(0, -1).join("");
2291
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
2292
+ }
2293
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2052
2294
  for (var i = chain.length - 1; i >= 0; --i) {
2053
2295
  var obj;
2054
2296
  var root = chain[i];
2055
2297
  if (root === "[]" && options.parseArrays) {
2056
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
2298
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
2057
2299
  } else {
2058
- obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2300
+ obj = options.plainObjects ? { __proto__: null } : {};
2059
2301
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
2060
2302
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
2061
2303
  var index = parseInt(decodedRoot, 10);
@@ -2124,6 +2366,9 @@
2124
2366
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
2125
2367
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2126
2368
  }
2369
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
2370
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
2371
+ }
2127
2372
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
2128
2373
  var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
2129
2374
  if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
@@ -2151,16 +2396,17 @@
2151
2396
  parseArrays: opts.parseArrays !== false,
2152
2397
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
2153
2398
  strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
2154
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
2399
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
2400
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
2155
2401
  };
2156
2402
  };
2157
2403
  module.exports = function(str, opts) {
2158
2404
  var options = normalizeParseOptions(opts);
2159
2405
  if (str === "" || str === null || typeof str === "undefined") {
2160
- return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2406
+ return options.plainObjects ? { __proto__: null } : {};
2161
2407
  }
2162
2408
  var tempObj = typeof str === "string" ? parseValues(str, options) : str;
2163
- var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2409
+ var obj = options.plainObjects ? { __proto__: null } : {};
2164
2410
  var keys = Object.keys(tempObj);
2165
2411
  for (var i = 0; i < keys.length; ++i) {
2166
2412
  var key = keys[i];
@@ -2175,9 +2421,9 @@
2175
2421
  }
2176
2422
  });
2177
2423
 
2178
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/index.js
2424
+ // ../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/index.js
2179
2425
  var require_lib = __commonJS({
2180
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/index.js"(exports, module) {
2426
+ "../../node_modules/.pnpm/qs@6.14.0/node_modules/qs/lib/index.js"(exports, module) {
2181
2427
  "use strict";
2182
2428
  var stringify2 = require_stringify();
2183
2429
  var parse2 = require_parse();