@sourcegraph/cody-web 0.13.0 → 0.14.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.
@@ -18,7 +18,7 @@ var __privateWrapper = (obj, member, setter2, getter) => ({
18
18
  }
19
19
  });
20
20
  var _a2, _b, _constructing, _max, _maxSize, _dispose, _disposeAfter, _fetchMethod, _size, _calculatedSize, _keyMap, _keyList, _valList, _next, _prev, _head, _tail, _free, _disposed, _sizes, _starts, _ttls, _hasDispose, _hasFetchMethod, _hasDisposeAfter, _LRUCache_instances, initializeTTLTracking_fn, _updateItemAge, _statusTTL, _setItemTTL, _isStale, initializeSizeTracking_fn, _removeItemSize, _addItemSize, _requireSize, indexes_fn, rindexes_fn, isValidIndex_fn, evict_fn, backgroundFetch_fn, isBackgroundFetch_fn, connect_fn, moveToTail_fn, _c, _d, _e, _f, _constructing2, _g, _h, _max2, _maxSize2, _dispose2, _disposeAfter2, _fetchMethod2, _size2, _calculatedSize2, _keyMap2, _keyList2, _valList2, _next2, _prev2, _head2, _tail2, _free2, _disposed2, _sizes2, _starts2, _ttls2, _hasDispose2, _hasFetchMethod2, _hasDisposeAfter2, _LRUCache_instances2, initializeTTLTracking_fn2, _updateItemAge2, _statusTTL2, _setItemTTL2, _isStale2, initializeSizeTracking_fn2, _removeItemSize2, _addItemSize2, _requireSize2, indexes_fn2, rindexes_fn2, isValidIndex_fn2, evict_fn2, backgroundFetch_fn2, isBackgroundFetch_fn2, connect_fn2, moveToTail_fn2, _root2, _hasMagic, _uflag, _parts, _parent2, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
21
- import { aR as Observable, bK as unsubscribe, bL as AsyncSerialScheduler, bM as authStatus, bN as debounceTime, bO as switchMapReplayOperation, bP as interval, bQ as map$1, bR as filter$3, bS as startWith$1, bT as switchMap$1, bU as promiseFactoryToObservable, bc as isError$3, bV as distinctUntilChanged$1, by as firstValueFrom$1, bz as skipPendingOperation, bW as logDebug$1, bX as graphqlClient, bY as isAbortError, bZ as logError$2, b_ as semver, b$ as pick, c0 as pendingOperation, bi as ModelTag, c1 as getModelInfo, bE as CHAT_INPUT_TOKEN_BUDGET, c2 as CHAT_OUTPUT_TOKEN_BUDGET, c3 as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, c4 as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, c5 as createSubscriber, c6 as fromVSCodeEvent, aY as isEqual, c7 as cenv, bF as isDotCom, c8 as currentAuthStatus, c9 as isFileURI, w as wrapInActiveSpan, ca as INCLUDE_EVERYTHING_CONTEXT_FILTERS, cb as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, cc as onAbort, cd as addCodyClientIdentificationHeaders, ce as addTraceparent, cf as fetch$2, cg as verifyResponseCode, b5 as FeatureFlag, ch as combineLatest$1, ci as take$2, cj as clientCapabilities, ck as shareReplay$1, cl as tap$2, cm as featureFlagProvider, cn as getEnterpriseContextWindow, co as ANSWER_TOKENS, cp as storeLastValue, cq as resolvedConfig, bv as firstResultFromOperation, cr as userProductSubscription, cs as isEnterpriseUser, b4 as isCodyProUser, p as ps, ct as currentResolvedConfig, bI as PromptString, cu as isCustomModel, cv as recordErrorToSpan, cw as addClientInfoParams, cx as dependentAbortController, al as FILE_CONTEXT_MENTION_PROVIDER, am as SYMBOL_CONTEXT_MENTION_PROVIDER, an as REMOTE_REPOSITORY_PROVIDER_URI, ao as REMOTE_FILE_PROVIDER_URI, ap as REMOTE_DIRECTORY_PROVIDER_URI, aq as WEB_PROVIDER_URI, t as telemetryRecorder, C as ContextItemSource, bw as lodashExports, cy as truncatePromptString, cz as isS2, cA as GIT_OPENCTX_PROVIDER_URI, bb as cryptoJsExports, b8 as CodyIDE, cB as openCtx, aJ as URI, cC as MulticastSubject, cD as AsyncSerialScheduler_1, g as getDefaultExportFromCjs, cE as Utils$1, cF as toString_1, cG as upperFirst_1, cH as _, cI as extensionForLanguage, cJ as setClientNameVersion, cK as _getNative, cL as eq_1, cM as _root, cN as _Uint8Array, cO as isObject_1, cP as _overArg, cQ as _isPrototype, cR as isArrayLike_1, cS as isObjectLike_1, cT as _baseGetTag, cU as _arrayLikeKeys, cV as isArguments_1, cW as isArray_1, cX as isBufferExports, cY as isFunction_1, cZ as isTypedArray_1, c_ as _Stack, c$ as _isIndex, d0 as isSourcegraphToken, d1 as base64Js, b9 as commonjsGlobal, d2 as setExtensionVersion, d3 as withLatestFrom, d4 as NEVER, d5 as abortableOperation, d6 as disposableSubscription, d7 as setAuthStatusObservable, d8 as normalizeServerEndpointURL, d9 as SourcegraphGraphQLAPIClient, da as isNetworkLikeError, db as DOTCOM_URL, dc as SUPPORTED_URI_SCHEMAS, dd as _baseIsEqual, de as keys_1, df as isSymbol_1, dg as _MapCache, dh as isLength_1, di as toNumber_1, dj as _baseFindIndex, dk as require$$1$4, dl as NetworkError, dm as isRateLimitError, dn as isAuthError, d as dedent$1, dp as TokenCounterUtils, dq as toRangeData, dr as DefaultChatCommands, bf as isDefined, ds as pathFunctionsForURI, dt as uriParseNameAndExtension, du as uriDirname, dv as uriExtname, dw as uriBasename, dx as DefaultEditCommands, dy as subscriptionDisposable, dz as NoOpTelemetryRecorderProvider, dA as TimestampTelemetryProcessor_1, dB as updateGlobalTelemetryInstances, dC as TelemetryRecorderProvider, dD as telemetryRecorderProvider, dE as createGitDiff, dF as convertGitCloneURLToCodebaseName, dG as pluck, dH as catchError$1, dI as _getSymbols, dJ as _arrayPush, dK as stubArray_1, dL as _baseGetAllKeys, dM as _Symbol, dN as _getTag, dO as _nodeUtilExports, dP as _baseUnary, dQ as _getAllKeys, dR as _baseSlice, dS as _arrayMap, dT as displayPathWithoutWorkspaceFolderPrefix, dU as getEditorInsertSpaces, dV as escapeRegExp$1, dW as isNetworkError, bp as isCodyProModel, dX as http, ba as CodyTaskState, aS as createExtensionAPI, aT as createMessageAPIForWebview, dY as currentAuthStatusOrNotReadyYet, dZ as getAugmentedNamespace, d_ as main$1, d$ as TESTING_TELEMETRY_EXPORTER, e0 as dist, e1 as currentAuthStatusAuthed, e2 as waitUntilComplete, bu as isMacOS, bn as CustomCommandType, bJ as setDisplayPathEnvInfo, e3 as isWindows, e4 as currentUserProductSubscription, br as ACCOUNT_USAGE_URL, aU as debounce$1, ar as displayPath, e5 as structuredPatch, e6 as isDotComAuthed, e7 as dedupeWith$1, e8 as AbortError, e9 as TimeoutError, ea as createDisposables, eb as getEditorTabSize$1, ec as debounce_1, bH as isErrorLike, ed as mentionProvidersMetadata, ee as editorStateFromPromptString, au as displayPathBasename, ef as assertFileURI, eg as setOpenCtx, eh as truncateTextNearestLine, ei as MAX_BYTES_PER_FILE, ej as expandToLineRange, as as displayLineRange, aO as parseMentionQuery, ek as TokenCounter, el as PromptMode, em as skip$1, en as tracer, eo as getTokenCounterUtils, bB as inputTextWithoutContextChipsFromPromptEditorState, bh as isAbortErrorOrSocketHangUp, ep as isContextWindowLimitError, b2 as forceHydration, bg as reformatBotMessageForChat, b3 as hydrateAfterPostMessage, eq as addMessageListenersForExtensionAPI, er as createMessageAPIForExtension, bo as View, es as CODY_BLOG_URL_o1_WAITLIST, et as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, bm as pluralize, bs as ACCOUNT_UPGRADE_URL, aZ as scanForMentionTriggerInUserTextInput, aw as LARGE_FILE_WARNING_LABEL, eu as GENERAL_HELP_LABEL, ev as diffLines, ew as psDedent, ex as languageFromFilename, ey as ProgrammingLanguage, ez as truncatePromptStringStart, eA as MAX_CURRENT_FILE_TOKENS, eB as posixFilePaths, eC as SURROUNDING_LINES, eD as CODY_SUPPORT_URL, eE as CODY_DOC_URL, be as CODY_FEEDBACK_URL, eF as DISCORD_URL, bt as getRelativeChatPeriod, eG as globalAgentRef, eH as VSCODE_CHANGELOG_URL, eI as SG_CHANGELOG_URL, eJ as ACCOUNT_LIMITS_INFO_URL, eK as assertUnreachable, eL as promise, eM as setLogger, eN as setClientCapabilities, eO as setResolvedConfigurationObservable, eP as CODY_OLLAMA_DOCS_URL, bG as browser$3 } from "./browser-C59ckcSt.mjs";
21
+ import { aR as Observable, bK as unsubscribe, bL as AsyncSerialScheduler, bM as authStatus, bN as debounceTime, bO as switchMapReplayOperation, bP as interval, bQ as map$1, bR as filter$3, bS as startWith$1, bT as switchMap$1, bU as promiseFactoryToObservable, bc as isError$3, bV as distinctUntilChanged$1, by as firstValueFrom$1, bz as skipPendingOperation, bW as logDebug$1, bX as graphqlClient, bY as isAbortError, bZ as logError$2, b_ as semver, b$ as pick, c0 as pendingOperation, bi as ModelTag, c1 as getModelInfo, bE as CHAT_INPUT_TOKEN_BUDGET, c2 as CHAT_OUTPUT_TOKEN_BUDGET, c3 as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, c4 as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, c5 as createSubscriber, c6 as fromVSCodeEvent, aY as isEqual, c7 as cenv, bF as isDotCom, c8 as currentAuthStatus, c9 as isFileURI, w as wrapInActiveSpan, ca as INCLUDE_EVERYTHING_CONTEXT_FILTERS, cb as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, cc as onAbort, cd as addCodyClientIdentificationHeaders, ce as addTraceparent, cf as fetch$2, cg as verifyResponseCode, b5 as FeatureFlag, ch as combineLatest$1, ci as take$2, cj as clientCapabilities, ck as shareReplay$1, cl as tap$2, cm as featureFlagProvider, cn as getEnterpriseContextWindow, co as ANSWER_TOKENS, cp as storeLastValue, cq as resolvedConfig, bv as firstResultFromOperation, cr as userProductSubscription, cs as isEnterpriseUser, b4 as isCodyProUser, p as ps, ct as currentResolvedConfig, bI as PromptString, cu as isCustomModel, cv as recordErrorToSpan, cw as addClientInfoParams, cx as dependentAbortController, al as FILE_CONTEXT_MENTION_PROVIDER, am as SYMBOL_CONTEXT_MENTION_PROVIDER, an as REMOTE_REPOSITORY_PROVIDER_URI, ao as REMOTE_FILE_PROVIDER_URI, ap as REMOTE_DIRECTORY_PROVIDER_URI, aq as WEB_PROVIDER_URI, t as telemetryRecorder, C as ContextItemSource, bw as lodashExports, cy as truncatePromptString, cz as isS2, cA as GIT_OPENCTX_PROVIDER_URI, bb as cryptoJsExports, b8 as CodyIDE, cB as openCtx, aJ as URI, cC as MulticastSubject, cD as AsyncSerialScheduler_1, g as getDefaultExportFromCjs, cE as Utils$1, cF as toString_1, cG as upperFirst_1, cH as _, cI as extensionForLanguage, cJ as setClientNameVersion, cK as _getNative, cL as eq_1, cM as _root, cN as _Uint8Array, cO as isObject_1, cP as _overArg, cQ as _isPrototype, cR as isArrayLike_1, cS as isObjectLike_1, cT as _baseGetTag, cU as _arrayLikeKeys, cV as isArguments_1, cW as isArray_1, cX as isBufferExports, cY as isFunction_1, cZ as isTypedArray_1, c_ as _Stack, c$ as _isIndex, d0 as isSourcegraphToken, d1 as requireBase64Js, b9 as commonjsGlobal, d2 as setExtensionVersion, d3 as withLatestFrom, d4 as NEVER, d5 as abortableOperation, d6 as disposableSubscription, d7 as setAuthStatusObservable, d8 as normalizeServerEndpointURL, d9 as SourcegraphGraphQLAPIClient, da as isNetworkLikeError, db as DOTCOM_URL, dc as SUPPORTED_URI_SCHEMAS, dd as _baseIsEqual, de as keys_1, df as isSymbol_1, dg as _MapCache, dh as isLength_1, di as toNumber_1, dj as _baseFindIndex, dk as require$$1$4, dl as NetworkError, dm as isRateLimitError, dn as isAuthError, d as dedent$1, dp as TokenCounterUtils, dq as toRangeData, dr as DefaultChatCommands, bf as isDefined, ds as pathFunctionsForURI, dt as uriParseNameAndExtension, du as uriDirname, dv as uriExtname, dw as uriBasename, dx as DefaultEditCommands, dy as subscriptionDisposable, dz as NoOpTelemetryRecorderProvider, dA as TimestampTelemetryProcessor_1, dB as updateGlobalTelemetryInstances, dC as TelemetryRecorderProvider, dD as telemetryRecorderProvider, dE as createGitDiff, dF as convertGitCloneURLToCodebaseName, dG as pluck, dH as catchError$1, dI as _getSymbols, dJ as _arrayPush, dK as stubArray_1, dL as _baseGetAllKeys, dM as _Symbol, dN as _getTag, dO as _nodeUtilExports, dP as _baseUnary, dQ as _getAllKeys, dR as _baseSlice, dS as _arrayMap, dT as displayPathWithoutWorkspaceFolderPrefix, dU as getEditorInsertSpaces, dV as escapeRegExp$1, dW as isNetworkError, bp as isCodyProModel, dX as http, ba as CodyTaskState, aS as createExtensionAPI, aT as createMessageAPIForWebview, dY as currentAuthStatusOrNotReadyYet, dZ as getAugmentedNamespace, d_ as main$1, d$ as TESTING_TELEMETRY_EXPORTER, e0 as dist, e1 as currentAuthStatusAuthed, e2 as waitUntilComplete, bu as isMacOS, bn as CustomCommandType, bJ as setDisplayPathEnvInfo, e3 as isWindows, e4 as currentUserProductSubscription, br as ACCOUNT_USAGE_URL, aU as debounce$1, ar as displayPath, e5 as structuredPatch, e6 as isDotComAuthed, e7 as dedupeWith$1, e8 as AbortError, e9 as TimeoutError, ea as createDisposables, eb as getEditorTabSize$1, ec as debounce_1, bH as isErrorLike, ed as mentionProvidersMetadata, ee as editorStateFromPromptString, au as displayPathBasename, ef as assertFileURI, eg as setOpenCtx, eh as truncateTextNearestLine, ei as MAX_BYTES_PER_FILE, ej as expandToLineRange, as as displayLineRange, aO as parseMentionQuery, ek as TokenCounter, el as PromptMode, em as skip$1, en as tracer, eo as getTokenCounterUtils, bB as inputTextWithoutContextChipsFromPromptEditorState, bh as isAbortErrorOrSocketHangUp, ep as isContextWindowLimitError, b2 as forceHydration, bg as reformatBotMessageForChat, b3 as hydrateAfterPostMessage, eq as addMessageListenersForExtensionAPI, er as createMessageAPIForExtension, bo as View, es as CODY_BLOG_URL_o1_WAITLIST, et as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, bm as pluralize, bs as ACCOUNT_UPGRADE_URL, aZ as scanForMentionTriggerInUserTextInput, aw as LARGE_FILE_WARNING_LABEL, eu as GENERAL_HELP_LABEL, ev as diffLines, ew as psDedent, ex as languageFromFilename, ey as ProgrammingLanguage, ez as truncatePromptStringStart, eA as MAX_CURRENT_FILE_TOKENS, eB as posixFilePaths, eC as SURROUNDING_LINES, eD as CODY_SUPPORT_URL, eE as CODY_DOC_URL, be as CODY_FEEDBACK_URL, eF as DISCORD_URL, bt as getRelativeChatPeriod, eG as globalAgentRef, eH as VSCODE_CHANGELOG_URL, eI as SG_CHANGELOG_URL, eJ as ACCOUNT_LIMITS_INFO_URL, eK as assertUnreachable, eL as promise, eM as setLogger, eN as setClientCapabilities, eO as setResolvedConfigurationObservable, eP as CODY_OLLAMA_DOCS_URL, bG as browser$3 } from "./browser-BISWjcA3.mjs";
22
22
  function _mergeNamespaces(n, m) {
23
23
  for (var i = 0; i < m.length; i++) {
24
24
  const e = m[i];
@@ -46,7 +46,7 @@ function die$1(error, ...args2) {
46
46
  `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`
47
47
  );
48
48
  }
49
- var getPrototypeOf$1 = Object.getPrototypeOf;
49
+ var getPrototypeOf = Object.getPrototypeOf;
50
50
  function isDraft(value) {
51
51
  return !!value && !!value[DRAFT_STATE];
52
52
  }
@@ -60,7 +60,7 @@ var objectCtorString$1 = Object.prototype.constructor.toString();
60
60
  function isPlainObject$5(value) {
61
61
  if (!value || typeof value !== "object")
62
62
  return false;
63
- const proto = getPrototypeOf$1(value);
63
+ const proto = getPrototypeOf(value);
64
64
  if (proto === null) {
65
65
  return true;
66
66
  }
@@ -140,9 +140,9 @@ function shallowCopy(base2, strict) {
140
140
  value: base2[key]
141
141
  };
142
142
  }
143
- return Object.create(getPrototypeOf$1(base2), descriptors);
143
+ return Object.create(getPrototypeOf(base2), descriptors);
144
144
  } else {
145
- const proto = getPrototypeOf$1(base2);
145
+ const proto = getPrototypeOf(base2);
146
146
  if (proto !== null && isPlain) {
147
147
  return { ...base2 };
148
148
  }
@@ -438,7 +438,7 @@ var objectTraps = {
438
438
  die$1(11);
439
439
  },
440
440
  getPrototypeOf(state2) {
441
- return getPrototypeOf$1(state2.base_);
441
+ return getPrototypeOf(state2.base_);
442
442
  },
443
443
  setPrototypeOf() {
444
444
  die$1(12);
@@ -474,12 +474,12 @@ function readPropFromProto(state2, source, prop2) {
474
474
  function getDescriptorFromProto(source, prop2) {
475
475
  if (!(prop2 in source))
476
476
  return void 0;
477
- let proto = getPrototypeOf$1(source);
477
+ let proto = getPrototypeOf(source);
478
478
  while (proto) {
479
479
  const desc = Object.getOwnPropertyDescriptor(proto, prop2);
480
480
  if (desc)
481
481
  return desc;
482
- proto = getPrototypeOf$1(proto);
482
+ proto = getPrototypeOf(proto);
483
483
  }
484
484
  return void 0;
485
485
  }
@@ -692,7 +692,7 @@ var __awaiter = function(thisArg, _arguments, P, generator) {
692
692
  step6((generator = generator.apply(thisArg, _arguments || [])).next());
693
693
  });
694
694
  };
695
- function filter$2(test2) {
695
+ function filter$2(test) {
696
696
  return (observable) => {
697
697
  return new Observable((observer) => {
698
698
  const scheduler = new AsyncSerialScheduler(observer);
@@ -705,7 +705,7 @@ function filter$2(test2) {
705
705
  },
706
706
  next(input) {
707
707
  scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {
708
- if (yield test2(input)) {
708
+ if (yield test(input)) {
709
709
  next(input);
710
710
  }
711
711
  }));
@@ -1352,7 +1352,7 @@ if (typeof AC$1 === "undefined") {
1352
1352
  }
1353
1353
  const shouldWarn$1 = (code) => !warned$1.has(code);
1354
1354
  const isPosInt$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
1355
- const getUintArray$1 = (max2) => !isPosInt$1(max2) ? null : max2 <= Math.pow(2, 8) ? Uint8Array : max2 <= Math.pow(2, 16) ? Uint16Array : max2 <= Math.pow(2, 32) ? Uint32Array : max2 <= Number.MAX_SAFE_INTEGER ? ZeroArray$1 : null;
1355
+ const getUintArray$1 = (max) => !isPosInt$1(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray$1 : null;
1356
1356
  let ZeroArray$1 = class ZeroArray2 extends Array {
1357
1357
  constructor(size) {
1358
1358
  super(size);
@@ -1360,21 +1360,21 @@ let ZeroArray$1 = class ZeroArray2 extends Array {
1360
1360
  }
1361
1361
  };
1362
1362
  let Stack$4 = (_b = class {
1363
- constructor(max2, HeapCls) {
1363
+ constructor(max, HeapCls) {
1364
1364
  __publicField2(this, "heap");
1365
1365
  __publicField2(this, "length");
1366
1366
  if (!__privateGet(_b, _constructing)) {
1367
1367
  throw new TypeError("instantiate Stack using Stack.create(n)");
1368
1368
  }
1369
- this.heap = new HeapCls(max2);
1369
+ this.heap = new HeapCls(max);
1370
1370
  this.length = 0;
1371
1371
  }
1372
- static create(max2) {
1373
- const HeapCls = getUintArray$1(max2);
1372
+ static create(max) {
1373
+ const HeapCls = getUintArray$1(max);
1374
1374
  if (!HeapCls)
1375
1375
  return [];
1376
1376
  __privateSet(_b, _constructing, true);
1377
- const s = new _b(max2, HeapCls);
1377
+ const s = new _b(max, HeapCls);
1378
1378
  __privateSet(_b, _constructing, false);
1379
1379
  return s;
1380
1380
  }
@@ -1494,15 +1494,15 @@ let LRUCache$1 = (_c = class {
1494
1494
  }
1495
1495
  return 0;
1496
1496
  });
1497
- const { max: max2 = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
1498
- if (max2 !== 0 && !isPosInt$1(max2)) {
1497
+ const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
1498
+ if (max !== 0 && !isPosInt$1(max)) {
1499
1499
  throw new TypeError("max option must be a nonnegative integer");
1500
1500
  }
1501
- const UintArray = max2 ? getUintArray$1(max2) : Array;
1501
+ const UintArray = max ? getUintArray$1(max) : Array;
1502
1502
  if (!UintArray) {
1503
- throw new Error("invalid max value: " + max2);
1503
+ throw new Error("invalid max value: " + max);
1504
1504
  }
1505
- __privateSet(this, _max, max2);
1505
+ __privateSet(this, _max, max);
1506
1506
  __privateSet(this, _maxSize, maxSize);
1507
1507
  this.maxEntrySize = maxEntrySize || __privateGet(this, _maxSize);
1508
1508
  this.sizeCalculation = sizeCalculation;
@@ -1520,13 +1520,13 @@ let LRUCache$1 = (_c = class {
1520
1520
  __privateSet(this, _fetchMethod, fetchMethod);
1521
1521
  __privateSet(this, _hasFetchMethod, !!fetchMethod);
1522
1522
  __privateSet(this, _keyMap, /* @__PURE__ */ new Map());
1523
- __privateSet(this, _keyList, new Array(max2).fill(void 0));
1524
- __privateSet(this, _valList, new Array(max2).fill(void 0));
1525
- __privateSet(this, _next, new UintArray(max2));
1526
- __privateSet(this, _prev, new UintArray(max2));
1523
+ __privateSet(this, _keyList, new Array(max).fill(void 0));
1524
+ __privateSet(this, _valList, new Array(max).fill(void 0));
1525
+ __privateSet(this, _next, new UintArray(max));
1526
+ __privateSet(this, _prev, new UintArray(max));
1527
1527
  __privateSet(this, _head, 0);
1528
1528
  __privateSet(this, _tail, 0);
1529
- __privateSet(this, _free, Stack$4.create(max2));
1529
+ __privateSet(this, _free, Stack$4.create(max));
1530
1530
  __privateSet(this, _size, 0);
1531
1531
  __privateSet(this, _calculatedSize, 0);
1532
1532
  if (typeof dispose === "function") {
@@ -3783,12 +3783,12 @@ class Matcher {
3783
3783
  * @returns {string}
3784
3784
  * @private
3785
3785
  */
3786
- replace(replacement, all2 = true, perlMode = false) {
3786
+ replace(replacement, all = true, perlMode = false) {
3787
3787
  let res = "";
3788
3788
  this.reset();
3789
3789
  while (this.find()) {
3790
3790
  res += this.appendReplacement(replacement, perlMode);
3791
- if (!all2) {
3791
+ if (!all) {
3792
3792
  break;
3793
3793
  }
3794
3794
  }
@@ -5157,12 +5157,12 @@ class CharClass {
5157
5157
  }
5158
5158
  // appendGroup() appends CharGroup |g| to this CharClass, folding iff
5159
5159
  // |foldCase|. Does not mutate |g|.
5160
- appendGroup(g2, foldCase) {
5161
- let cls = g2.cls;
5160
+ appendGroup(g, foldCase) {
5161
+ let cls = g.cls;
5162
5162
  if (foldCase) {
5163
5163
  cls = new CharClass().appendFoldedClass(cls).cleanClass().toArray();
5164
5164
  }
5165
- return this.appendClassWithSign(cls, g2.sign);
5165
+ return this.appendClassWithSign(cls, g.sign);
5166
5166
  }
5167
5167
  toString() {
5168
5168
  return CharClass.charClassToString(this.r, this.len);
@@ -5321,17 +5321,17 @@ let Parser$1 = (_d = class {
5321
5321
  if (!t.more()) {
5322
5322
  return -1;
5323
5323
  }
5324
- let max2;
5324
+ let max;
5325
5325
  if (!t.lookingAt(",")) {
5326
- max2 = min;
5326
+ max = min;
5327
5327
  } else {
5328
5328
  t.skip(1);
5329
5329
  if (!t.more()) {
5330
5330
  return -1;
5331
5331
  }
5332
5332
  if (t.lookingAt("}")) {
5333
- max2 = -1;
5334
- } else if ((max2 = _d.parseInt(t)) === -1) {
5333
+ max = -1;
5334
+ } else if ((max = _d.parseInt(t)) === -1) {
5335
5335
  return -1;
5336
5336
  }
5337
5337
  }
@@ -5339,10 +5339,10 @@ let Parser$1 = (_d = class {
5339
5339
  return -1;
5340
5340
  }
5341
5341
  t.skip(1);
5342
- if (min < 0 || min > 1e3 || max2 === -2 || max2 > 1e3 || max2 >= 0 && min > max2) {
5342
+ if (min < 0 || min > 1e3 || max === -2 || max > 1e3 || max >= 0 && min > max) {
5343
5343
  throw new RE2JSSyntaxException(_d.ERR_INVALID_REPEAT_SIZE, t.from(start2));
5344
5344
  }
5345
- return min << 16 | max2 & Unicode.MAX_BMP;
5345
+ return min << 16 | max & Unicode.MAX_BMP;
5346
5346
  }
5347
5347
  // isValidCaptureName reports whether name
5348
5348
  // is a valid capture name: [A-Za-z0-9_]+.
@@ -5658,7 +5658,7 @@ let Parser$1 = (_d = class {
5658
5658
  // Pre: t is positioned after the initial repetition operator.
5659
5659
  // Post: t advances past an optional perl-mode '?', or stays put.
5660
5660
  // Or, it fails with RE2JSSyntaxException.
5661
- repeat(op, min, max2, beforePos, t, lastRepeatPos) {
5661
+ repeat(op, min, max, beforePos, t, lastRepeatPos) {
5662
5662
  let flags2 = this.flags;
5663
5663
  if ((flags2 & RE2Flags.PERL_X) !== 0) {
5664
5664
  if (t.more() && t.lookingAt("?")) {
@@ -5679,7 +5679,7 @@ let Parser$1 = (_d = class {
5679
5679
  }
5680
5680
  const re = this.newRegexp(op);
5681
5681
  re.min = min;
5682
- re.max = max2;
5682
+ re.max = max;
5683
5683
  re.flags = flags2;
5684
5684
  re.subs = [sub2];
5685
5685
  this.stack[n - 1] = re;
@@ -5863,17 +5863,17 @@ let Parser$1 = (_d = class {
5863
5863
  else if (i === start2 + 1) {
5864
5864
  array[lenout++] = array[s + start2];
5865
5865
  } else {
5866
- let max2 = start2;
5866
+ let max = start2;
5867
5867
  for (let j = start2 + 1; j < i; j++) {
5868
- const subMax = array[s + max2];
5868
+ const subMax = array[s + max];
5869
5869
  const subJ = array[s + j];
5870
5870
  if (subMax.op < subJ.op || subMax.op === subJ.op && (subMax.runes !== null ? subMax.runes.length : 0) < (subJ.runes !== null ? subJ.runes.length : 0)) {
5871
- max2 = j;
5871
+ max = j;
5872
5872
  }
5873
5873
  }
5874
5874
  const tmp = array[s + start2];
5875
- array[s + start2] = array[s + max2];
5876
- array[s + max2] = tmp;
5875
+ array[s + start2] = array[s + max];
5876
+ array[s + max] = tmp;
5877
5877
  for (let j = start2 + 1; j < i; j++) {
5878
5878
  _d.mergeCharClass(array[s + start2], array[s + j]);
5879
5879
  this.reuse(array[s + j]);
@@ -5971,7 +5971,7 @@ let Parser$1 = (_d = class {
5971
5971
  }
5972
5972
  let lastRepeatPos = -1;
5973
5973
  let min = -1;
5974
- let max2 = -1;
5974
+ let max = -1;
5975
5975
  const t = new StringIterator(this.wholeRegexp);
5976
5976
  while (t.more()) {
5977
5977
  {
@@ -6036,7 +6036,7 @@ let Parser$1 = (_d = class {
6036
6036
  op = Regexp.Op.QUEST;
6037
6037
  break;
6038
6038
  }
6039
- this.repeat(op, min, max2, repeatPos, t, lastRepeatPos);
6039
+ this.repeat(op, min, max, repeatPos, t, lastRepeatPos);
6040
6040
  break;
6041
6041
  }
6042
6042
  case Codepoint.CODES.get("{"): {
@@ -6048,8 +6048,8 @@ let Parser$1 = (_d = class {
6048
6048
  break;
6049
6049
  }
6050
6050
  min = minMax >> 16;
6051
- max2 = (minMax & Unicode.MAX_BMP) << 16 >> 16;
6052
- this.repeat(Regexp.Op.REPEAT, min, max2, repeatPos, t, lastRepeatPos);
6051
+ max = (minMax & Unicode.MAX_BMP) << 16 >> 16;
6052
+ this.repeat(Regexp.Op.REPEAT, min, max, repeatPos, t, lastRepeatPos);
6053
6053
  break;
6054
6054
  }
6055
6055
  case Codepoint.CODES.get("\\"): {
@@ -6289,11 +6289,11 @@ let Parser$1 = (_d = class {
6289
6289
  }
6290
6290
  t.pop();
6291
6291
  const p = t.from(beforePos);
6292
- const g2 = PERL_GROUPS.has(p) ? PERL_GROUPS.get(p) : null;
6293
- if (g2 === null) {
6292
+ const g = PERL_GROUPS.has(p) ? PERL_GROUPS.get(p) : null;
6293
+ if (g === null) {
6294
6294
  return false;
6295
6295
  }
6296
- cc.appendGroup(g2, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6296
+ cc.appendGroup(g, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6297
6297
  return true;
6298
6298
  }
6299
6299
  // parseNamedClass parses a leading POSIX named character class like
@@ -6310,11 +6310,11 @@ let Parser$1 = (_d = class {
6310
6310
  }
6311
6311
  const name2 = cls.substring(0, i + 2);
6312
6312
  t.skipString(name2);
6313
- const g2 = POSIX_GROUPS.has(name2) ? POSIX_GROUPS.get(name2) : null;
6314
- if (g2 === null) {
6313
+ const g = POSIX_GROUPS.has(name2) ? POSIX_GROUPS.get(name2) : null;
6314
+ if (g === null) {
6315
6315
  throw new RE2JSSyntaxException(_d.ERR_INVALID_CHAR_RANGE, name2);
6316
6316
  }
6317
- cc.appendGroup(g2, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6317
+ cc.appendGroup(g, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6318
6318
  return true;
6319
6319
  }
6320
6320
  // parseUnicodeClass() parses a leading Unicode character class like \p{Han}
@@ -10498,12 +10498,12 @@ function isEmptyObj(obj) {
10498
10498
  return false;
10499
10499
  return true;
10500
10500
  }
10501
- function hasOwn$1(obj, key) {
10501
+ function hasOwn(obj, key) {
10502
10502
  return Object.prototype.hasOwnProperty.call(obj, key);
10503
10503
  }
10504
10504
  function applyHeadersMut(targetHeaders, newHeaders) {
10505
10505
  for (const k in newHeaders) {
10506
- if (!hasOwn$1(newHeaders, k))
10506
+ if (!hasOwn(newHeaders, k))
10507
10507
  continue;
10508
10508
  const lowerKey = k.toLowerCase();
10509
10509
  if (!lowerKey)
@@ -12701,7 +12701,7 @@ if (typeof AC === "undefined") {
12701
12701
  }
12702
12702
  const shouldWarn = (code) => !warned.has(code);
12703
12703
  const isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
12704
- const getUintArray = (max2) => !isPosInt(max2) ? null : max2 <= Math.pow(2, 8) ? Uint8Array : max2 <= Math.pow(2, 16) ? Uint16Array : max2 <= Math.pow(2, 32) ? Uint32Array : max2 <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
12704
+ const getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
12705
12705
  class ZeroArray extends Array {
12706
12706
  constructor(size) {
12707
12707
  super(size);
@@ -12709,21 +12709,21 @@ class ZeroArray extends Array {
12709
12709
  }
12710
12710
  }
12711
12711
  let Stack$3 = (_f = class {
12712
- constructor(max2, HeapCls) {
12712
+ constructor(max, HeapCls) {
12713
12713
  __publicField2(this, "heap");
12714
12714
  __publicField2(this, "length");
12715
12715
  if (!__privateGet(_f, _constructing2)) {
12716
12716
  throw new TypeError("instantiate Stack using Stack.create(n)");
12717
12717
  }
12718
- this.heap = new HeapCls(max2);
12718
+ this.heap = new HeapCls(max);
12719
12719
  this.length = 0;
12720
12720
  }
12721
- static create(max2) {
12722
- const HeapCls = getUintArray(max2);
12721
+ static create(max) {
12722
+ const HeapCls = getUintArray(max);
12723
12723
  if (!HeapCls)
12724
12724
  return [];
12725
12725
  __privateSet(_f, _constructing2, true);
12726
- const s = new _f(max2, HeapCls);
12726
+ const s = new _f(max, HeapCls);
12727
12727
  __privateSet(_f, _constructing2, false);
12728
12728
  return s;
12729
12729
  }
@@ -12848,15 +12848,15 @@ const _LRUCache = class _LRUCache {
12848
12848
  * Called by the built-in method Object.prototype.toString.
12849
12849
  */
12850
12850
  __publicField2(this, _g, "LRUCache");
12851
- const { max: max2 = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
12852
- if (max2 !== 0 && !isPosInt(max2)) {
12851
+ const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
12852
+ if (max !== 0 && !isPosInt(max)) {
12853
12853
  throw new TypeError("max option must be a nonnegative integer");
12854
12854
  }
12855
- const UintArray = max2 ? getUintArray(max2) : Array;
12855
+ const UintArray = max ? getUintArray(max) : Array;
12856
12856
  if (!UintArray) {
12857
- throw new Error("invalid max value: " + max2);
12857
+ throw new Error("invalid max value: " + max);
12858
12858
  }
12859
- __privateSet(this, _max2, max2);
12859
+ __privateSet(this, _max2, max);
12860
12860
  __privateSet(this, _maxSize2, maxSize);
12861
12861
  this.maxEntrySize = maxEntrySize || __privateGet(this, _maxSize2);
12862
12862
  this.sizeCalculation = sizeCalculation;
@@ -12874,13 +12874,13 @@ const _LRUCache = class _LRUCache {
12874
12874
  __privateSet(this, _fetchMethod2, fetchMethod);
12875
12875
  __privateSet(this, _hasFetchMethod2, !!fetchMethod);
12876
12876
  __privateSet(this, _keyMap2, /* @__PURE__ */ new Map());
12877
- __privateSet(this, _keyList2, new Array(max2).fill(void 0));
12878
- __privateSet(this, _valList2, new Array(max2).fill(void 0));
12879
- __privateSet(this, _next2, new UintArray(max2));
12880
- __privateSet(this, _prev2, new UintArray(max2));
12877
+ __privateSet(this, _keyList2, new Array(max).fill(void 0));
12878
+ __privateSet(this, _valList2, new Array(max).fill(void 0));
12879
+ __privateSet(this, _next2, new UintArray(max));
12880
+ __privateSet(this, _prev2, new UintArray(max));
12881
12881
  __privateSet(this, _head2, 0);
12882
12882
  __privateSet(this, _tail2, 0);
12883
- __privateSet(this, _free2, Stack$3.create(max2));
12883
+ __privateSet(this, _free2, Stack$3.create(max));
12884
12884
  __privateSet(this, _size2, 0);
12885
12885
  __privateSet(this, _calculatedSize2, 0);
12886
12886
  if (typeof dispose === "function") {
@@ -14611,10 +14611,10 @@ const parse$1 = (input, options) => {
14611
14611
  }
14612
14612
  input = REPLACEMENTS[input] || input;
14613
14613
  const opts = { ...options };
14614
- const max2 = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
14614
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
14615
14615
  let len = input.length;
14616
- if (len > max2) {
14617
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max2}`);
14616
+ if (len > max) {
14617
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
14618
14618
  }
14619
14619
  const bos = { type: "bos", value: "", output: opts.prepend || "" };
14620
14620
  const tokens = [bos];
@@ -15280,10 +15280,10 @@ const parse$1 = (input, options) => {
15280
15280
  };
15281
15281
  parse$1.fastpaths = (input, options) => {
15282
15282
  const opts = { ...options };
15283
- const max2 = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
15283
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
15284
15284
  const len = input.length;
15285
- if (len > max2) {
15286
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max2}`);
15285
+ if (len > max) {
15286
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
15287
15287
  }
15288
15288
  input = REPLACEMENTS[input] || input;
15289
15289
  const {
@@ -19383,15 +19383,15 @@ function expand(str, isTop) {
19383
19383
  var y = numeric(n[1]);
19384
19384
  var width = Math.max(n[0].length, n[1].length);
19385
19385
  var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
19386
- var test2 = lte;
19386
+ var test = lte;
19387
19387
  var reverse = y < x;
19388
19388
  if (reverse) {
19389
19389
  incr *= -1;
19390
- test2 = gte;
19390
+ test = gte;
19391
19391
  }
19392
19392
  var pad2 = n.some(isPadded);
19393
19393
  N = [];
19394
- for (var i = x; test2(i, y); i += incr) {
19394
+ for (var i = x; test(i, y); i += incr) {
19395
19395
  var c;
19396
19396
  if (isAlphaSequence) {
19397
19397
  c = String.fromCharCode(i);
@@ -22577,7 +22577,7 @@ var baseGetTag$1 = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike$3 =
22577
22577
  var objectTag$1 = "[object Object]";
22578
22578
  var funcProto = Function.prototype, objectProto$3 = Object.prototype;
22579
22579
  var funcToString = funcProto.toString;
22580
- var hasOwnProperty$5 = objectProto$3.hasOwnProperty;
22580
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
22581
22581
  var objectCtorString = funcToString.call(Object);
22582
22582
  function isPlainObject$4(value) {
22583
22583
  if (!isObjectLike$3(value) || baseGetTag$1(value) != objectTag$1) {
@@ -22587,7 +22587,7 @@ function isPlainObject$4(value) {
22587
22587
  if (proto === null) {
22588
22588
  return true;
22589
22589
  }
22590
- var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor;
22590
+ var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
22591
22591
  return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
22592
22592
  }
22593
22593
  var isPlainObject_1 = isPlainObject$4;
@@ -22603,10 +22603,10 @@ function safeGet$2(object, key) {
22603
22603
  var _safeGet = safeGet$2;
22604
22604
  var baseAssignValue$1 = _baseAssignValue, eq$1 = eq_1;
22605
22605
  var objectProto$2 = Object.prototype;
22606
- var hasOwnProperty$4 = objectProto$2.hasOwnProperty;
22606
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
22607
22607
  function assignValue$2(object, key, value) {
22608
22608
  var objValue = object[key];
22609
- if (!(hasOwnProperty$4.call(object, key) && eq$1(objValue, value)) || value === void 0 && !(key in object)) {
22609
+ if (!(hasOwnProperty$3.call(object, key) && eq$1(objValue, value)) || value === void 0 && !(key in object)) {
22610
22610
  baseAssignValue$1(object, key, value);
22611
22611
  }
22612
22612
  }
@@ -22643,14 +22643,14 @@ function nativeKeysIn$1(object) {
22643
22643
  var _nativeKeysIn = nativeKeysIn$1;
22644
22644
  var isObject$6 = isObject_1, isPrototype = _isPrototype, nativeKeysIn = _nativeKeysIn;
22645
22645
  var objectProto$1 = Object.prototype;
22646
- var hasOwnProperty$3 = objectProto$1.hasOwnProperty;
22646
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
22647
22647
  function baseKeysIn$1(object) {
22648
22648
  if (!isObject$6(object)) {
22649
22649
  return nativeKeysIn(object);
22650
22650
  }
22651
22651
  var isProto = isPrototype(object), result = [];
22652
22652
  for (var key in object) {
22653
- if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) {
22653
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) {
22654
22654
  result.push(key);
22655
22655
  }
22656
22656
  }
@@ -24093,7 +24093,7 @@ function requireBuffer() {
24093
24093
  if (hasRequiredBuffer) return buffer;
24094
24094
  hasRequiredBuffer = 1;
24095
24095
  (function(exports2) {
24096
- const base64 = base64Js;
24096
+ const base64 = requireBase64Js();
24097
24097
  const ieee7542 = requireIeee754();
24098
24098
  const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
24099
24099
  exports2.Buffer = Buffer2;
@@ -24305,7 +24305,7 @@ function requireBuffer() {
24305
24305
  }
24306
24306
  return Buffer2.alloc(+length);
24307
24307
  }
24308
- Buffer2.isBuffer = function isBuffer3(b) {
24308
+ Buffer2.isBuffer = function isBuffer2(b) {
24309
24309
  return b != null && b._isBuffer === true && b !== Buffer2.prototype;
24310
24310
  };
24311
24311
  Buffer2.compare = function compare(a, b) {
@@ -24530,9 +24530,9 @@ function requireBuffer() {
24530
24530
  };
24531
24531
  Buffer2.prototype.inspect = function inspect() {
24532
24532
  let str = "";
24533
- const max2 = exports2.INSPECT_MAX_BYTES;
24534
- str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
24535
- if (this.length > max2) str += " ... ";
24533
+ const max = exports2.INSPECT_MAX_BYTES;
24534
+ str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
24535
+ if (this.length > max) str += " ... ";
24536
24536
  return "<Buffer " + str + ">";
24537
24537
  };
24538
24538
  if (customInspectSymbol) {
@@ -24688,7 +24688,7 @@ function requireBuffer() {
24688
24688
  Buffer2.prototype.includes = function includes(val2, byteOffset, encoding) {
24689
24689
  return this.indexOf(val2, byteOffset, encoding) !== -1;
24690
24690
  };
24691
- Buffer2.prototype.indexOf = function indexOf2(val2, byteOffset, encoding) {
24691
+ Buffer2.prototype.indexOf = function indexOf(val2, byteOffset, encoding) {
24692
24692
  return bidirectionalIndexOf(this, val2, byteOffset, encoding, true);
24693
24693
  };
24694
24694
  Buffer2.prototype.lastIndexOf = function lastIndexOf(val2, byteOffset, encoding) {
@@ -25105,9 +25105,9 @@ function requireBuffer() {
25105
25105
  if (!noAssert) checkOffset(offset2, 8, this.length);
25106
25106
  return ieee7542.read(this, offset2, false, 52, 8);
25107
25107
  };
25108
- function checkInt(buf, value, offset2, ext2, max2, min) {
25108
+ function checkInt(buf, value, offset2, ext2, max, min) {
25109
25109
  if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
25110
- if (value > max2 || value < min) throw new RangeError('"value" argument is out of bounds');
25110
+ if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
25111
25111
  if (offset2 + ext2 > buf.length) throw new RangeError("Index out of range");
25112
25112
  }
25113
25113
  Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset2, byteLength2, noAssert) {
@@ -25185,8 +25185,8 @@ function requireBuffer() {
25185
25185
  this[offset2 + 3] = value & 255;
25186
25186
  return offset2 + 4;
25187
25187
  };
25188
- function wrtBigUInt64LE(buf, value, offset2, min, max2) {
25189
- checkIntBI(value, min, max2, buf, offset2, 7);
25188
+ function wrtBigUInt64LE(buf, value, offset2, min, max) {
25189
+ checkIntBI(value, min, max, buf, offset2, 7);
25190
25190
  let lo = Number(value & BigInt(4294967295));
25191
25191
  buf[offset2++] = lo;
25192
25192
  lo = lo >> 8;
@@ -25205,8 +25205,8 @@ function requireBuffer() {
25205
25205
  buf[offset2++] = hi;
25206
25206
  return offset2;
25207
25207
  }
25208
- function wrtBigUInt64BE(buf, value, offset2, min, max2) {
25209
- checkIntBI(value, min, max2, buf, offset2, 7);
25208
+ function wrtBigUInt64BE(buf, value, offset2, min, max) {
25209
+ checkIntBI(value, min, max, buf, offset2, 7);
25210
25210
  let lo = Number(value & BigInt(4294967295));
25211
25211
  buf[offset2 + 7] = lo;
25212
25212
  lo = lo >> 8;
@@ -25320,7 +25320,7 @@ function requireBuffer() {
25320
25320
  Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset2 = 0) {
25321
25321
  return wrtBigUInt64BE(this, value, offset2, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
25322
25322
  });
25323
- function checkIEEE754(buf, value, offset2, ext2, max2, min) {
25323
+ function checkIEEE754(buf, value, offset2, ext2, max, min) {
25324
25324
  if (offset2 + ext2 > buf.length) throw new RangeError("Index out of range");
25325
25325
  if (offset2 < 0) throw new RangeError("Index out of range");
25326
25326
  }
@@ -25518,8 +25518,8 @@ function requireBuffer() {
25518
25518
  boundsError(offset2, buf.length - (byteLength2 + 1));
25519
25519
  }
25520
25520
  }
25521
- function checkIntBI(value, min, max2, buf, offset2, byteLength2) {
25522
- if (value > max2 || value < min) {
25521
+ function checkIntBI(value, min, max, buf, offset2, byteLength2) {
25522
+ if (value > max || value < min) {
25523
25523
  const n = typeof min === "bigint" ? "n" : "";
25524
25524
  let range2;
25525
25525
  {
@@ -25681,1762 +25681,1979 @@ function requireBuffer() {
25681
25681
  }
25682
25682
  var util$5 = {};
25683
25683
  var types = {};
25684
- var shams$1 = function hasSymbols2() {
25685
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
25686
- return false;
25687
- }
25688
- if (typeof Symbol.iterator === "symbol") {
25684
+ var shams$1;
25685
+ var hasRequiredShams$1;
25686
+ function requireShams$1() {
25687
+ if (hasRequiredShams$1) return shams$1;
25688
+ hasRequiredShams$1 = 1;
25689
+ shams$1 = function hasSymbols2() {
25690
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
25691
+ return false;
25692
+ }
25693
+ if (typeof Symbol.iterator === "symbol") {
25694
+ return true;
25695
+ }
25696
+ var obj = {};
25697
+ var sym = Symbol("test");
25698
+ var symObj = Object(sym);
25699
+ if (typeof sym === "string") {
25700
+ return false;
25701
+ }
25702
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
25703
+ return false;
25704
+ }
25705
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
25706
+ return false;
25707
+ }
25708
+ var symVal = 42;
25709
+ obj[sym] = symVal;
25710
+ for (sym in obj) {
25711
+ return false;
25712
+ }
25713
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
25714
+ return false;
25715
+ }
25716
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
25717
+ return false;
25718
+ }
25719
+ var syms = Object.getOwnPropertySymbols(obj);
25720
+ if (syms.length !== 1 || syms[0] !== sym) {
25721
+ return false;
25722
+ }
25723
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
25724
+ return false;
25725
+ }
25726
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
25727
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
25728
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
25729
+ return false;
25730
+ }
25731
+ }
25689
25732
  return true;
25690
- }
25691
- var obj = {};
25692
- var sym = Symbol("test");
25693
- var symObj = Object(sym);
25694
- if (typeof sym === "string") {
25695
- return false;
25696
- }
25697
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
25698
- return false;
25699
- }
25700
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
25701
- return false;
25702
- }
25703
- var symVal = 42;
25704
- obj[sym] = symVal;
25705
- for (sym in obj) {
25706
- return false;
25707
- }
25708
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
25709
- return false;
25710
- }
25711
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
25712
- return false;
25713
- }
25714
- var syms = Object.getOwnPropertySymbols(obj);
25715
- if (syms.length !== 1 || syms[0] !== sym) {
25716
- return false;
25717
- }
25718
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
25719
- return false;
25720
- }
25721
- if (typeof Object.getOwnPropertyDescriptor === "function") {
25722
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
25723
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
25733
+ };
25734
+ return shams$1;
25735
+ }
25736
+ var shams;
25737
+ var hasRequiredShams;
25738
+ function requireShams() {
25739
+ if (hasRequiredShams) return shams;
25740
+ hasRequiredShams = 1;
25741
+ var hasSymbols2 = requireShams$1();
25742
+ shams = function hasToStringTagShams() {
25743
+ return hasSymbols2() && !!Symbol.toStringTag;
25744
+ };
25745
+ return shams;
25746
+ }
25747
+ var esErrors;
25748
+ var hasRequiredEsErrors;
25749
+ function requireEsErrors() {
25750
+ if (hasRequiredEsErrors) return esErrors;
25751
+ hasRequiredEsErrors = 1;
25752
+ esErrors = Error;
25753
+ return esErrors;
25754
+ }
25755
+ var _eval;
25756
+ var hasRequired_eval;
25757
+ function require_eval() {
25758
+ if (hasRequired_eval) return _eval;
25759
+ hasRequired_eval = 1;
25760
+ _eval = EvalError;
25761
+ return _eval;
25762
+ }
25763
+ var range;
25764
+ var hasRequiredRange;
25765
+ function requireRange() {
25766
+ if (hasRequiredRange) return range;
25767
+ hasRequiredRange = 1;
25768
+ range = RangeError;
25769
+ return range;
25770
+ }
25771
+ var ref;
25772
+ var hasRequiredRef;
25773
+ function requireRef() {
25774
+ if (hasRequiredRef) return ref;
25775
+ hasRequiredRef = 1;
25776
+ ref = ReferenceError;
25777
+ return ref;
25778
+ }
25779
+ var syntax;
25780
+ var hasRequiredSyntax;
25781
+ function requireSyntax() {
25782
+ if (hasRequiredSyntax) return syntax;
25783
+ hasRequiredSyntax = 1;
25784
+ syntax = SyntaxError;
25785
+ return syntax;
25786
+ }
25787
+ var type;
25788
+ var hasRequiredType;
25789
+ function requireType() {
25790
+ if (hasRequiredType) return type;
25791
+ hasRequiredType = 1;
25792
+ type = TypeError;
25793
+ return type;
25794
+ }
25795
+ var uri;
25796
+ var hasRequiredUri;
25797
+ function requireUri() {
25798
+ if (hasRequiredUri) return uri;
25799
+ hasRequiredUri = 1;
25800
+ uri = URIError;
25801
+ return uri;
25802
+ }
25803
+ var hasSymbols;
25804
+ var hasRequiredHasSymbols;
25805
+ function requireHasSymbols() {
25806
+ if (hasRequiredHasSymbols) return hasSymbols;
25807
+ hasRequiredHasSymbols = 1;
25808
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
25809
+ var hasSymbolSham = requireShams$1();
25810
+ hasSymbols = function hasNativeSymbols() {
25811
+ if (typeof origSymbol !== "function") {
25724
25812
  return false;
25725
25813
  }
25726
- }
25727
- return true;
25728
- };
25729
- var hasSymbols$2 = shams$1;
25730
- var shams = function hasToStringTagShams() {
25731
- return hasSymbols$2() && !!Symbol.toStringTag;
25732
- };
25733
- var esErrors = Error;
25734
- var _eval = EvalError;
25735
- var range = RangeError;
25736
- var ref = ReferenceError;
25737
- var syntax = SyntaxError;
25738
- var type = TypeError;
25739
- var uri = URIError;
25740
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
25741
- var hasSymbolSham = shams$1;
25742
- var hasSymbols$1 = function hasNativeSymbols() {
25743
- if (typeof origSymbol !== "function") {
25744
- return false;
25745
- }
25746
- if (typeof Symbol !== "function") {
25747
- return false;
25748
- }
25749
- if (typeof origSymbol("foo") !== "symbol") {
25750
- return false;
25751
- }
25752
- if (typeof Symbol("bar") !== "symbol") {
25753
- return false;
25754
- }
25755
- return hasSymbolSham();
25756
- };
25757
- var test = {
25758
- __proto__: null,
25759
- foo: {}
25760
- };
25761
- var $Object = Object;
25762
- var hasProto$1 = function hasProto2() {
25763
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
25764
- };
25765
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
25766
- var toStr$3 = Object.prototype.toString;
25767
- var max = Math.max;
25768
- var funcType = "[object Function]";
25769
- var concatty = function concatty2(a, b) {
25770
- var arr = [];
25771
- for (var i = 0; i < a.length; i += 1) {
25772
- arr[i] = a[i];
25773
- }
25774
- for (var j = 0; j < b.length; j += 1) {
25775
- arr[j + a.length] = b[j];
25776
- }
25777
- return arr;
25778
- };
25779
- var slicy = function slicy2(arrLike, offset2) {
25780
- var arr = [];
25781
- for (var i = offset2, j = 0; i < arrLike.length; i += 1, j += 1) {
25782
- arr[j] = arrLike[i];
25783
- }
25784
- return arr;
25785
- };
25786
- var joiny = function(arr, joiner) {
25787
- var str = "";
25788
- for (var i = 0; i < arr.length; i += 1) {
25789
- str += arr[i];
25790
- if (i + 1 < arr.length) {
25791
- str += joiner;
25814
+ if (typeof Symbol !== "function") {
25815
+ return false;
25792
25816
  }
25793
- }
25794
- return str;
25795
- };
25796
- var implementation$1 = function bind2(that) {
25797
- var target = this;
25798
- if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
25799
- throw new TypeError(ERROR_MESSAGE + target);
25800
- }
25801
- var args2 = slicy(arguments, 1);
25802
- var bound;
25803
- var binder = function() {
25804
- if (this instanceof bound) {
25805
- var result = target.apply(
25806
- this,
25807
- concatty(args2, arguments)
25808
- );
25809
- if (Object(result) === result) {
25810
- return result;
25817
+ if (typeof origSymbol("foo") !== "symbol") {
25818
+ return false;
25819
+ }
25820
+ if (typeof Symbol("bar") !== "symbol") {
25821
+ return false;
25822
+ }
25823
+ return hasSymbolSham();
25824
+ };
25825
+ return hasSymbols;
25826
+ }
25827
+ var hasProto;
25828
+ var hasRequiredHasProto;
25829
+ function requireHasProto() {
25830
+ if (hasRequiredHasProto) return hasProto;
25831
+ hasRequiredHasProto = 1;
25832
+ var test = {
25833
+ __proto__: null,
25834
+ foo: {}
25835
+ };
25836
+ var $Object = Object;
25837
+ hasProto = function hasProto2() {
25838
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
25839
+ };
25840
+ return hasProto;
25841
+ }
25842
+ var implementation;
25843
+ var hasRequiredImplementation;
25844
+ function requireImplementation() {
25845
+ if (hasRequiredImplementation) return implementation;
25846
+ hasRequiredImplementation = 1;
25847
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
25848
+ var toStr = Object.prototype.toString;
25849
+ var max = Math.max;
25850
+ var funcType = "[object Function]";
25851
+ var concatty = function concatty2(a, b) {
25852
+ var arr = [];
25853
+ for (var i = 0; i < a.length; i += 1) {
25854
+ arr[i] = a[i];
25855
+ }
25856
+ for (var j = 0; j < b.length; j += 1) {
25857
+ arr[j + a.length] = b[j];
25858
+ }
25859
+ return arr;
25860
+ };
25861
+ var slicy = function slicy2(arrLike, offset2) {
25862
+ var arr = [];
25863
+ for (var i = offset2, j = 0; i < arrLike.length; i += 1, j += 1) {
25864
+ arr[j] = arrLike[i];
25865
+ }
25866
+ return arr;
25867
+ };
25868
+ var joiny = function(arr, joiner) {
25869
+ var str = "";
25870
+ for (var i = 0; i < arr.length; i += 1) {
25871
+ str += arr[i];
25872
+ if (i + 1 < arr.length) {
25873
+ str += joiner;
25811
25874
  }
25812
- return this;
25813
25875
  }
25814
- return target.apply(
25815
- that,
25816
- concatty(args2, arguments)
25817
- );
25876
+ return str;
25818
25877
  };
25819
- var boundLength = max(0, target.length - args2.length);
25820
- var boundArgs = [];
25821
- for (var i = 0; i < boundLength; i++) {
25822
- boundArgs[i] = "$" + i;
25823
- }
25824
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
25825
- if (target.prototype) {
25826
- var Empty = function Empty2() {
25878
+ implementation = function bind2(that) {
25879
+ var target = this;
25880
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
25881
+ throw new TypeError(ERROR_MESSAGE + target);
25882
+ }
25883
+ var args2 = slicy(arguments, 1);
25884
+ var bound;
25885
+ var binder = function() {
25886
+ if (this instanceof bound) {
25887
+ var result = target.apply(
25888
+ this,
25889
+ concatty(args2, arguments)
25890
+ );
25891
+ if (Object(result) === result) {
25892
+ return result;
25893
+ }
25894
+ return this;
25895
+ }
25896
+ return target.apply(
25897
+ that,
25898
+ concatty(args2, arguments)
25899
+ );
25827
25900
  };
25828
- Empty.prototype = target.prototype;
25829
- bound.prototype = new Empty();
25830
- Empty.prototype = null;
25831
- }
25832
- return bound;
25833
- };
25834
- var implementation = implementation$1;
25835
- var functionBind = Function.prototype.bind || implementation;
25836
- var call = Function.prototype.call;
25837
- var $hasOwn = Object.prototype.hasOwnProperty;
25838
- var bind$2 = functionBind;
25839
- var hasown = bind$2.call(call, $hasOwn);
25840
- var undefined$1;
25841
- var $Error = esErrors;
25842
- var $EvalError = _eval;
25843
- var $RangeError = range;
25844
- var $ReferenceError = ref;
25845
- var $SyntaxError$1 = syntax;
25846
- var $TypeError$2 = type;
25847
- var $URIError = uri;
25848
- var $Function = Function;
25849
- var getEvalledConstructor = function(expressionSyntax) {
25850
- try {
25851
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
25852
- } catch (e) {
25853
- }
25854
- };
25855
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
25856
- if ($gOPD$1) {
25857
- try {
25858
- $gOPD$1({}, "");
25859
- } catch (e) {
25860
- $gOPD$1 = null;
25861
- }
25862
- }
25863
- var throwTypeError = function() {
25864
- throw new $TypeError$2();
25865
- };
25866
- var ThrowTypeError = $gOPD$1 ? function() {
25867
- try {
25868
- arguments.callee;
25869
- return throwTypeError;
25870
- } catch (calleeThrows) {
25901
+ var boundLength = max(0, target.length - args2.length);
25902
+ var boundArgs = [];
25903
+ for (var i = 0; i < boundLength; i++) {
25904
+ boundArgs[i] = "$" + i;
25905
+ }
25906
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
25907
+ if (target.prototype) {
25908
+ var Empty = function Empty2() {
25909
+ };
25910
+ Empty.prototype = target.prototype;
25911
+ bound.prototype = new Empty();
25912
+ Empty.prototype = null;
25913
+ }
25914
+ return bound;
25915
+ };
25916
+ return implementation;
25917
+ }
25918
+ var functionBind;
25919
+ var hasRequiredFunctionBind;
25920
+ function requireFunctionBind() {
25921
+ if (hasRequiredFunctionBind) return functionBind;
25922
+ hasRequiredFunctionBind = 1;
25923
+ var implementation2 = requireImplementation();
25924
+ functionBind = Function.prototype.bind || implementation2;
25925
+ return functionBind;
25926
+ }
25927
+ var hasown;
25928
+ var hasRequiredHasown;
25929
+ function requireHasown() {
25930
+ if (hasRequiredHasown) return hasown;
25931
+ hasRequiredHasown = 1;
25932
+ var call = Function.prototype.call;
25933
+ var $hasOwn = Object.prototype.hasOwnProperty;
25934
+ var bind2 = requireFunctionBind();
25935
+ hasown = bind2.call(call, $hasOwn);
25936
+ return hasown;
25937
+ }
25938
+ var getIntrinsic;
25939
+ var hasRequiredGetIntrinsic;
25940
+ function requireGetIntrinsic() {
25941
+ if (hasRequiredGetIntrinsic) return getIntrinsic;
25942
+ hasRequiredGetIntrinsic = 1;
25943
+ var undefined$1;
25944
+ var $Error = requireEsErrors();
25945
+ var $EvalError = require_eval();
25946
+ var $RangeError = requireRange();
25947
+ var $ReferenceError = requireRef();
25948
+ var $SyntaxError = requireSyntax();
25949
+ var $TypeError = requireType();
25950
+ var $URIError = requireUri();
25951
+ var $Function = Function;
25952
+ var getEvalledConstructor = function(expressionSyntax) {
25871
25953
  try {
25872
- return $gOPD$1(arguments, "callee").get;
25873
- } catch (gOPDthrows) {
25874
- return throwTypeError;
25954
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
25955
+ } catch (e) {
25956
+ }
25957
+ };
25958
+ var $gOPD = Object.getOwnPropertyDescriptor;
25959
+ if ($gOPD) {
25960
+ try {
25961
+ $gOPD({}, "");
25962
+ } catch (e) {
25963
+ $gOPD = null;
25875
25964
  }
25876
25965
  }
25877
- }() : throwTypeError;
25878
- var hasSymbols = hasSymbols$1();
25879
- var hasProto = hasProto$1();
25880
- var getProto$1 = Object.getPrototypeOf || (hasProto ? function(x) {
25881
- return x.__proto__;
25882
- } : null);
25883
- var needsEval = {};
25884
- var TypedArray = typeof Uint8Array === "undefined" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array);
25885
- var INTRINSICS = {
25886
- __proto__: null,
25887
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
25888
- "%Array%": Array,
25889
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
25890
- "%ArrayIteratorPrototype%": hasSymbols && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
25891
- "%AsyncFromSyncIteratorPrototype%": undefined$1,
25892
- "%AsyncFunction%": needsEval,
25893
- "%AsyncGenerator%": needsEval,
25894
- "%AsyncGeneratorFunction%": needsEval,
25895
- "%AsyncIteratorPrototype%": needsEval,
25896
- "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
25897
- "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
25898
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
25899
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
25900
- "%Boolean%": Boolean,
25901
- "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
25902
- "%Date%": Date,
25903
- "%decodeURI%": decodeURI,
25904
- "%decodeURIComponent%": decodeURIComponent,
25905
- "%encodeURI%": encodeURI,
25906
- "%encodeURIComponent%": encodeURIComponent,
25907
- "%Error%": $Error,
25908
- "%eval%": eval,
25909
- // eslint-disable-line no-eval
25910
- "%EvalError%": $EvalError,
25911
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
25912
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
25913
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
25914
- "%Function%": $Function,
25915
- "%GeneratorFunction%": needsEval,
25916
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
25917
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
25918
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
25919
- "%isFinite%": isFinite,
25920
- "%isNaN%": isNaN,
25921
- "%IteratorPrototype%": hasSymbols && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
25922
- "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
25923
- "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
25924
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
25925
- "%Math%": Math,
25926
- "%Number%": Number,
25927
- "%Object%": Object,
25928
- "%parseFloat%": parseFloat,
25929
- "%parseInt%": parseInt,
25930
- "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
25931
- "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
25932
- "%RangeError%": $RangeError,
25933
- "%ReferenceError%": $ReferenceError,
25934
- "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
25935
- "%RegExp%": RegExp,
25936
- "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
25937
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
25938
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
25939
- "%String%": String,
25940
- "%StringIteratorPrototype%": hasSymbols && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
25941
- "%Symbol%": hasSymbols ? Symbol : undefined$1,
25942
- "%SyntaxError%": $SyntaxError$1,
25943
- "%ThrowTypeError%": ThrowTypeError,
25944
- "%TypedArray%": TypedArray,
25945
- "%TypeError%": $TypeError$2,
25946
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
25947
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
25948
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
25949
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
25950
- "%URIError%": $URIError,
25951
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
25952
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
25953
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
25954
- };
25955
- if (getProto$1) {
25956
- try {
25957
- null.error;
25958
- } catch (e) {
25959
- var errorProto = getProto$1(getProto$1(e));
25960
- INTRINSICS["%Error.prototype%"] = errorProto;
25961
- }
25962
- }
25963
- var doEval = function doEval2(name2) {
25964
- var value;
25965
- if (name2 === "%AsyncFunction%") {
25966
- value = getEvalledConstructor("async function () {}");
25967
- } else if (name2 === "%GeneratorFunction%") {
25968
- value = getEvalledConstructor("function* () {}");
25969
- } else if (name2 === "%AsyncGeneratorFunction%") {
25970
- value = getEvalledConstructor("async function* () {}");
25971
- } else if (name2 === "%AsyncGenerator%") {
25972
- var fn = doEval2("%AsyncGeneratorFunction%");
25973
- if (fn) {
25974
- value = fn.prototype;
25975
- }
25976
- } else if (name2 === "%AsyncIteratorPrototype%") {
25977
- var gen = doEval2("%AsyncGenerator%");
25978
- if (gen && getProto$1) {
25979
- value = getProto$1(gen.prototype);
25980
- }
25981
- }
25982
- INTRINSICS[name2] = value;
25983
- return value;
25984
- };
25985
- var LEGACY_ALIASES = {
25986
- __proto__: null,
25987
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
25988
- "%ArrayPrototype%": ["Array", "prototype"],
25989
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
25990
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
25991
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
25992
- "%ArrayProto_values%": ["Array", "prototype", "values"],
25993
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
25994
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
25995
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
25996
- "%BooleanPrototype%": ["Boolean", "prototype"],
25997
- "%DataViewPrototype%": ["DataView", "prototype"],
25998
- "%DatePrototype%": ["Date", "prototype"],
25999
- "%ErrorPrototype%": ["Error", "prototype"],
26000
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
26001
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
26002
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
26003
- "%FunctionPrototype%": ["Function", "prototype"],
26004
- "%Generator%": ["GeneratorFunction", "prototype"],
26005
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
26006
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
26007
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
26008
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
26009
- "%JSONParse%": ["JSON", "parse"],
26010
- "%JSONStringify%": ["JSON", "stringify"],
26011
- "%MapPrototype%": ["Map", "prototype"],
26012
- "%NumberPrototype%": ["Number", "prototype"],
26013
- "%ObjectPrototype%": ["Object", "prototype"],
26014
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
26015
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
26016
- "%PromisePrototype%": ["Promise", "prototype"],
26017
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
26018
- "%Promise_all%": ["Promise", "all"],
26019
- "%Promise_reject%": ["Promise", "reject"],
26020
- "%Promise_resolve%": ["Promise", "resolve"],
26021
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
26022
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
26023
- "%RegExpPrototype%": ["RegExp", "prototype"],
26024
- "%SetPrototype%": ["Set", "prototype"],
26025
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
26026
- "%StringPrototype%": ["String", "prototype"],
26027
- "%SymbolPrototype%": ["Symbol", "prototype"],
26028
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
26029
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
26030
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
26031
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
26032
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
26033
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
26034
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
26035
- "%URIErrorPrototype%": ["URIError", "prototype"],
26036
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
26037
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
26038
- };
26039
- var bind$1 = functionBind;
26040
- var hasOwn = hasown;
26041
- var $concat = bind$1.call(Function.call, Array.prototype.concat);
26042
- var $spliceApply = bind$1.call(Function.apply, Array.prototype.splice);
26043
- var $replace = bind$1.call(Function.call, String.prototype.replace);
26044
- var $strSlice = bind$1.call(Function.call, String.prototype.slice);
26045
- var $exec = bind$1.call(Function.call, RegExp.prototype.exec);
26046
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
26047
- var reEscapeChar$1 = /\\(\\)?/g;
26048
- var stringToPath$2 = function stringToPath2(string2) {
26049
- var first = $strSlice(string2, 0, 1);
26050
- var last2 = $strSlice(string2, -1);
26051
- if (first === "%" && last2 !== "%") {
26052
- throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
26053
- } else if (last2 === "%" && first !== "%") {
26054
- throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
26055
- }
26056
- var result = [];
26057
- $replace(string2, rePropName$1, function(match2, number2, quote, subString) {
26058
- result[result.length] = quote ? $replace(subString, reEscapeChar$1, "$1") : number2 || match2;
26059
- });
26060
- return result;
26061
- };
26062
- var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
26063
- var intrinsicName = name2;
26064
- var alias;
26065
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
26066
- alias = LEGACY_ALIASES[intrinsicName];
26067
- intrinsicName = "%" + alias[0] + "%";
26068
- }
26069
- if (hasOwn(INTRINSICS, intrinsicName)) {
26070
- var value = INTRINSICS[intrinsicName];
26071
- if (value === needsEval) {
26072
- value = doEval(intrinsicName);
25966
+ var throwTypeError = function() {
25967
+ throw new $TypeError();
25968
+ };
25969
+ var ThrowTypeError = $gOPD ? function() {
25970
+ try {
25971
+ arguments.callee;
25972
+ return throwTypeError;
25973
+ } catch (calleeThrows) {
25974
+ try {
25975
+ return $gOPD(arguments, "callee").get;
25976
+ } catch (gOPDthrows) {
25977
+ return throwTypeError;
25978
+ }
25979
+ }
25980
+ }() : throwTypeError;
25981
+ var hasSymbols2 = requireHasSymbols()();
25982
+ var hasProto2 = requireHasProto()();
25983
+ var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
25984
+ return x.__proto__;
25985
+ } : null);
25986
+ var needsEval = {};
25987
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
25988
+ var INTRINSICS = {
25989
+ __proto__: null,
25990
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
25991
+ "%Array%": Array,
25992
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
25993
+ "%ArrayIteratorPrototype%": hasSymbols2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
25994
+ "%AsyncFromSyncIteratorPrototype%": undefined$1,
25995
+ "%AsyncFunction%": needsEval,
25996
+ "%AsyncGenerator%": needsEval,
25997
+ "%AsyncGeneratorFunction%": needsEval,
25998
+ "%AsyncIteratorPrototype%": needsEval,
25999
+ "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
26000
+ "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
26001
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
26002
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
26003
+ "%Boolean%": Boolean,
26004
+ "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
26005
+ "%Date%": Date,
26006
+ "%decodeURI%": decodeURI,
26007
+ "%decodeURIComponent%": decodeURIComponent,
26008
+ "%encodeURI%": encodeURI,
26009
+ "%encodeURIComponent%": encodeURIComponent,
26010
+ "%Error%": $Error,
26011
+ "%eval%": eval,
26012
+ // eslint-disable-line no-eval
26013
+ "%EvalError%": $EvalError,
26014
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
26015
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
26016
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
26017
+ "%Function%": $Function,
26018
+ "%GeneratorFunction%": needsEval,
26019
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
26020
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
26021
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
26022
+ "%isFinite%": isFinite,
26023
+ "%isNaN%": isNaN,
26024
+ "%IteratorPrototype%": hasSymbols2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
26025
+ "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
26026
+ "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
26027
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
26028
+ "%Math%": Math,
26029
+ "%Number%": Number,
26030
+ "%Object%": Object,
26031
+ "%parseFloat%": parseFloat,
26032
+ "%parseInt%": parseInt,
26033
+ "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
26034
+ "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
26035
+ "%RangeError%": $RangeError,
26036
+ "%ReferenceError%": $ReferenceError,
26037
+ "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
26038
+ "%RegExp%": RegExp,
26039
+ "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
26040
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
26041
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
26042
+ "%String%": String,
26043
+ "%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
26044
+ "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
26045
+ "%SyntaxError%": $SyntaxError,
26046
+ "%ThrowTypeError%": ThrowTypeError,
26047
+ "%TypedArray%": TypedArray,
26048
+ "%TypeError%": $TypeError,
26049
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
26050
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
26051
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
26052
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
26053
+ "%URIError%": $URIError,
26054
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
26055
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
26056
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
26057
+ };
26058
+ if (getProto) {
26059
+ try {
26060
+ null.error;
26061
+ } catch (e) {
26062
+ var errorProto = getProto(getProto(e));
26063
+ INTRINSICS["%Error.prototype%"] = errorProto;
26064
+ }
26065
+ }
26066
+ var doEval = function doEval2(name2) {
26067
+ var value;
26068
+ if (name2 === "%AsyncFunction%") {
26069
+ value = getEvalledConstructor("async function () {}");
26070
+ } else if (name2 === "%GeneratorFunction%") {
26071
+ value = getEvalledConstructor("function* () {}");
26072
+ } else if (name2 === "%AsyncGeneratorFunction%") {
26073
+ value = getEvalledConstructor("async function* () {}");
26074
+ } else if (name2 === "%AsyncGenerator%") {
26075
+ var fn = doEval2("%AsyncGeneratorFunction%");
26076
+ if (fn) {
26077
+ value = fn.prototype;
26078
+ }
26079
+ } else if (name2 === "%AsyncIteratorPrototype%") {
26080
+ var gen = doEval2("%AsyncGenerator%");
26081
+ if (gen && getProto) {
26082
+ value = getProto(gen.prototype);
26083
+ }
26084
+ }
26085
+ INTRINSICS[name2] = value;
26086
+ return value;
26087
+ };
26088
+ var LEGACY_ALIASES = {
26089
+ __proto__: null,
26090
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
26091
+ "%ArrayPrototype%": ["Array", "prototype"],
26092
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
26093
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
26094
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
26095
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
26096
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
26097
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
26098
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
26099
+ "%BooleanPrototype%": ["Boolean", "prototype"],
26100
+ "%DataViewPrototype%": ["DataView", "prototype"],
26101
+ "%DatePrototype%": ["Date", "prototype"],
26102
+ "%ErrorPrototype%": ["Error", "prototype"],
26103
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
26104
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
26105
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
26106
+ "%FunctionPrototype%": ["Function", "prototype"],
26107
+ "%Generator%": ["GeneratorFunction", "prototype"],
26108
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
26109
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
26110
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
26111
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
26112
+ "%JSONParse%": ["JSON", "parse"],
26113
+ "%JSONStringify%": ["JSON", "stringify"],
26114
+ "%MapPrototype%": ["Map", "prototype"],
26115
+ "%NumberPrototype%": ["Number", "prototype"],
26116
+ "%ObjectPrototype%": ["Object", "prototype"],
26117
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
26118
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
26119
+ "%PromisePrototype%": ["Promise", "prototype"],
26120
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
26121
+ "%Promise_all%": ["Promise", "all"],
26122
+ "%Promise_reject%": ["Promise", "reject"],
26123
+ "%Promise_resolve%": ["Promise", "resolve"],
26124
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
26125
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
26126
+ "%RegExpPrototype%": ["RegExp", "prototype"],
26127
+ "%SetPrototype%": ["Set", "prototype"],
26128
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
26129
+ "%StringPrototype%": ["String", "prototype"],
26130
+ "%SymbolPrototype%": ["Symbol", "prototype"],
26131
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
26132
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
26133
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
26134
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
26135
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
26136
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
26137
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
26138
+ "%URIErrorPrototype%": ["URIError", "prototype"],
26139
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
26140
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
26141
+ };
26142
+ var bind2 = requireFunctionBind();
26143
+ var hasOwn2 = requireHasown();
26144
+ var $concat = bind2.call(Function.call, Array.prototype.concat);
26145
+ var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
26146
+ var $replace = bind2.call(Function.call, String.prototype.replace);
26147
+ var $strSlice = bind2.call(Function.call, String.prototype.slice);
26148
+ var $exec = bind2.call(Function.call, RegExp.prototype.exec);
26149
+ var rePropName2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
26150
+ var reEscapeChar2 = /\\(\\)?/g;
26151
+ var stringToPath2 = function stringToPath3(string2) {
26152
+ var first = $strSlice(string2, 0, 1);
26153
+ var last2 = $strSlice(string2, -1);
26154
+ if (first === "%" && last2 !== "%") {
26155
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
26156
+ } else if (last2 === "%" && first !== "%") {
26157
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
26158
+ }
26159
+ var result = [];
26160
+ $replace(string2, rePropName2, function(match2, number2, quote, subString) {
26161
+ result[result.length] = quote ? $replace(subString, reEscapeChar2, "$1") : number2 || match2;
26162
+ });
26163
+ return result;
26164
+ };
26165
+ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
26166
+ var intrinsicName = name2;
26167
+ var alias;
26168
+ if (hasOwn2(LEGACY_ALIASES, intrinsicName)) {
26169
+ alias = LEGACY_ALIASES[intrinsicName];
26170
+ intrinsicName = "%" + alias[0] + "%";
26073
26171
  }
26074
- if (typeof value === "undefined" && !allowMissing) {
26075
- throw new $TypeError$2("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
26172
+ if (hasOwn2(INTRINSICS, intrinsicName)) {
26173
+ var value = INTRINSICS[intrinsicName];
26174
+ if (value === needsEval) {
26175
+ value = doEval(intrinsicName);
26176
+ }
26177
+ if (typeof value === "undefined" && !allowMissing) {
26178
+ throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
26179
+ }
26180
+ return {
26181
+ alias,
26182
+ name: intrinsicName,
26183
+ value
26184
+ };
26076
26185
  }
26077
- return {
26078
- alias,
26079
- name: intrinsicName,
26080
- value
26081
- };
26082
- }
26083
- throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
26084
- };
26085
- var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
26086
- if (typeof name2 !== "string" || name2.length === 0) {
26087
- throw new $TypeError$2("intrinsic name must be a non-empty string");
26088
- }
26089
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
26090
- throw new $TypeError$2('"allowMissing" argument must be a boolean');
26091
- }
26092
- if ($exec(/^%?[^%]*%?$/, name2) === null) {
26093
- throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
26094
- }
26095
- var parts = stringToPath$2(name2);
26096
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
26097
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
26098
- var intrinsicRealName = intrinsic.name;
26099
- var value = intrinsic.value;
26100
- var skipFurtherCaching = false;
26101
- var alias = intrinsic.alias;
26102
- if (alias) {
26103
- intrinsicBaseName = alias[0];
26104
- $spliceApply(parts, $concat([0, 1], alias));
26105
- }
26106
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
26107
- var part = parts[i];
26108
- var first = $strSlice(part, 0, 1);
26109
- var last2 = $strSlice(part, -1);
26110
- if ((first === '"' || first === "'" || first === "`" || (last2 === '"' || last2 === "'" || last2 === "`")) && first !== last2) {
26111
- throw new $SyntaxError$1("property names with quotes must have matching quotes");
26112
- }
26113
- if (part === "constructor" || !isOwn) {
26114
- skipFurtherCaching = true;
26115
- }
26116
- intrinsicBaseName += "." + part;
26117
- intrinsicRealName = "%" + intrinsicBaseName + "%";
26118
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
26119
- value = INTRINSICS[intrinsicRealName];
26120
- } else if (value != null) {
26121
- if (!(part in value)) {
26122
- if (!allowMissing) {
26123
- throw new $TypeError$2("base intrinsic for " + name2 + " exists, but the property is not available.");
26186
+ throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
26187
+ };
26188
+ getIntrinsic = function GetIntrinsic(name2, allowMissing) {
26189
+ if (typeof name2 !== "string" || name2.length === 0) {
26190
+ throw new $TypeError("intrinsic name must be a non-empty string");
26191
+ }
26192
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
26193
+ throw new $TypeError('"allowMissing" argument must be a boolean');
26194
+ }
26195
+ if ($exec(/^%?[^%]*%?$/, name2) === null) {
26196
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
26197
+ }
26198
+ var parts = stringToPath2(name2);
26199
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
26200
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
26201
+ var intrinsicRealName = intrinsic.name;
26202
+ var value = intrinsic.value;
26203
+ var skipFurtherCaching = false;
26204
+ var alias = intrinsic.alias;
26205
+ if (alias) {
26206
+ intrinsicBaseName = alias[0];
26207
+ $spliceApply(parts, $concat([0, 1], alias));
26208
+ }
26209
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
26210
+ var part = parts[i];
26211
+ var first = $strSlice(part, 0, 1);
26212
+ var last2 = $strSlice(part, -1);
26213
+ if ((first === '"' || first === "'" || first === "`" || (last2 === '"' || last2 === "'" || last2 === "`")) && first !== last2) {
26214
+ throw new $SyntaxError("property names with quotes must have matching quotes");
26215
+ }
26216
+ if (part === "constructor" || !isOwn) {
26217
+ skipFurtherCaching = true;
26218
+ }
26219
+ intrinsicBaseName += "." + part;
26220
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
26221
+ if (hasOwn2(INTRINSICS, intrinsicRealName)) {
26222
+ value = INTRINSICS[intrinsicRealName];
26223
+ } else if (value != null) {
26224
+ if (!(part in value)) {
26225
+ if (!allowMissing) {
26226
+ throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available.");
26227
+ }
26228
+ return void 0;
26124
26229
  }
26125
- return void 0;
26126
- }
26127
- if ($gOPD$1 && i + 1 >= parts.length) {
26128
- var desc = $gOPD$1(value, part);
26129
- isOwn = !!desc;
26130
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
26131
- value = desc.get;
26230
+ if ($gOPD && i + 1 >= parts.length) {
26231
+ var desc = $gOPD(value, part);
26232
+ isOwn = !!desc;
26233
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
26234
+ value = desc.get;
26235
+ } else {
26236
+ value = value[part];
26237
+ }
26132
26238
  } else {
26239
+ isOwn = hasOwn2(value, part);
26133
26240
  value = value[part];
26134
26241
  }
26135
- } else {
26136
- isOwn = hasOwn(value, part);
26137
- value = value[part];
26138
- }
26139
- if (isOwn && !skipFurtherCaching) {
26140
- INTRINSICS[intrinsicRealName] = value;
26242
+ if (isOwn && !skipFurtherCaching) {
26243
+ INTRINSICS[intrinsicRealName] = value;
26244
+ }
26141
26245
  }
26142
26246
  }
26143
- }
26144
- return value;
26145
- };
26146
- var callBind$2 = { exports: {} };
26247
+ return value;
26248
+ };
26249
+ return getIntrinsic;
26250
+ }
26251
+ var callBind = { exports: {} };
26147
26252
  var esDefineProperty;
26148
26253
  var hasRequiredEsDefineProperty;
26149
26254
  function requireEsDefineProperty() {
26150
26255
  if (hasRequiredEsDefineProperty) return esDefineProperty;
26151
26256
  hasRequiredEsDefineProperty = 1;
26152
- var GetIntrinsic3 = getIntrinsic;
26153
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
26154
- if ($defineProperty2) {
26257
+ var GetIntrinsic = requireGetIntrinsic();
26258
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
26259
+ if ($defineProperty) {
26155
26260
  try {
26156
- $defineProperty2({}, "a", { value: 1 });
26261
+ $defineProperty({}, "a", { value: 1 });
26157
26262
  } catch (e) {
26158
- $defineProperty2 = false;
26263
+ $defineProperty = false;
26159
26264
  }
26160
26265
  }
26161
- esDefineProperty = $defineProperty2;
26266
+ esDefineProperty = $defineProperty;
26162
26267
  return esDefineProperty;
26163
26268
  }
26164
- var GetIntrinsic$2 = getIntrinsic;
26165
- var $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", true);
26166
- if ($gOPD) {
26167
- try {
26168
- $gOPD([], "length");
26169
- } catch (e) {
26170
- $gOPD = null;
26171
- }
26172
- }
26173
- var gopd$1 = $gOPD;
26174
- var $defineProperty$1 = requireEsDefineProperty();
26175
- var $SyntaxError = syntax;
26176
- var $TypeError$1 = type;
26177
- var gopd = gopd$1;
26178
- var defineDataProperty = function defineDataProperty2(obj, property2, value) {
26179
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
26180
- throw new $TypeError$1("`obj` must be an object or a function`");
26181
- }
26182
- if (typeof property2 !== "string" && typeof property2 !== "symbol") {
26183
- throw new $TypeError$1("`property` must be a string or a symbol`");
26184
- }
26185
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
26186
- throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");
26187
- }
26188
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
26189
- throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");
26190
- }
26191
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
26192
- throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");
26193
- }
26194
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
26195
- throw new $TypeError$1("`loose`, if provided, must be a boolean");
26196
- }
26197
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
26198
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
26199
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
26200
- var loose = arguments.length > 6 ? arguments[6] : false;
26201
- var desc = !!gopd && gopd(obj, property2);
26202
- if ($defineProperty$1) {
26203
- $defineProperty$1(obj, property2, {
26204
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
26205
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
26206
- value,
26207
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
26208
- });
26209
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
26210
- obj[property2] = value;
26211
- } else {
26212
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
26213
- }
26214
- };
26215
- var $defineProperty = requireEsDefineProperty();
26216
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
26217
- return !!$defineProperty;
26218
- };
26219
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
26220
- if (!$defineProperty) {
26221
- return null;
26222
- }
26223
- try {
26224
- return $defineProperty([], "length", { value: 1 }).length !== 1;
26225
- } catch (e) {
26226
- return true;
26227
- }
26228
- };
26229
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
26230
- var GetIntrinsic$1 = getIntrinsic;
26231
- var define = defineDataProperty;
26232
- var hasDescriptors = hasPropertyDescriptors_1();
26233
- var gOPD$1 = gopd$1;
26234
- var $TypeError = type;
26235
- var $floor = GetIntrinsic$1("%Math.floor%");
26236
- var setFunctionLength = function setFunctionLength2(fn, length) {
26237
- if (typeof fn !== "function") {
26238
- throw new $TypeError("`fn` is not a function");
26239
- }
26240
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
26241
- throw new $TypeError("`length` must be a positive 32-bit integer");
26242
- }
26243
- var loose = arguments.length > 2 && !!arguments[2];
26244
- var functionLengthIsConfigurable = true;
26245
- var functionLengthIsWritable = true;
26246
- if ("length" in fn && gOPD$1) {
26247
- var desc = gOPD$1(fn, "length");
26248
- if (desc && !desc.configurable) {
26249
- functionLengthIsConfigurable = false;
26250
- }
26251
- if (desc && !desc.writable) {
26252
- functionLengthIsWritable = false;
26253
- }
26254
- }
26255
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
26256
- if (hasDescriptors) {
26257
- define(
26258
- /** @type {Parameters<define>[0]} */
26259
- fn,
26260
- "length",
26261
- length,
26262
- true,
26263
- true
26264
- );
26269
+ var gopd;
26270
+ var hasRequiredGopd;
26271
+ function requireGopd() {
26272
+ if (hasRequiredGopd) return gopd;
26273
+ hasRequiredGopd = 1;
26274
+ var GetIntrinsic = requireGetIntrinsic();
26275
+ var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
26276
+ if ($gOPD) {
26277
+ try {
26278
+ $gOPD([], "length");
26279
+ } catch (e) {
26280
+ $gOPD = null;
26281
+ }
26282
+ }
26283
+ gopd = $gOPD;
26284
+ return gopd;
26285
+ }
26286
+ var defineDataProperty;
26287
+ var hasRequiredDefineDataProperty;
26288
+ function requireDefineDataProperty() {
26289
+ if (hasRequiredDefineDataProperty) return defineDataProperty;
26290
+ hasRequiredDefineDataProperty = 1;
26291
+ var $defineProperty = requireEsDefineProperty();
26292
+ var $SyntaxError = requireSyntax();
26293
+ var $TypeError = requireType();
26294
+ var gopd2 = requireGopd();
26295
+ defineDataProperty = function defineDataProperty2(obj, property2, value) {
26296
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
26297
+ throw new $TypeError("`obj` must be an object or a function`");
26298
+ }
26299
+ if (typeof property2 !== "string" && typeof property2 !== "symbol") {
26300
+ throw new $TypeError("`property` must be a string or a symbol`");
26301
+ }
26302
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
26303
+ throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
26304
+ }
26305
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
26306
+ throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
26307
+ }
26308
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
26309
+ throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
26310
+ }
26311
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
26312
+ throw new $TypeError("`loose`, if provided, must be a boolean");
26313
+ }
26314
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
26315
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
26316
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
26317
+ var loose = arguments.length > 6 ? arguments[6] : false;
26318
+ var desc = !!gopd2 && gopd2(obj, property2);
26319
+ if ($defineProperty) {
26320
+ $defineProperty(obj, property2, {
26321
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
26322
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
26323
+ value,
26324
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
26325
+ });
26326
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
26327
+ obj[property2] = value;
26265
26328
  } else {
26266
- define(
26267
- /** @type {Parameters<define>[0]} */
26268
- fn,
26269
- "length",
26270
- length
26271
- );
26329
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
26272
26330
  }
26273
- }
26274
- return fn;
26275
- };
26276
- (function(module2) {
26277
- var bind3 = functionBind;
26278
- var GetIntrinsic3 = getIntrinsic;
26279
- var setFunctionLength$1 = setFunctionLength;
26280
- var $TypeError2 = type;
26281
- var $apply = GetIntrinsic3("%Function.prototype.apply%");
26282
- var $call = GetIntrinsic3("%Function.prototype.call%");
26283
- var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
26284
- var $defineProperty2 = requireEsDefineProperty();
26285
- var $max = GetIntrinsic3("%Math.max%");
26286
- module2.exports = function callBind2(originalFunction) {
26287
- if (typeof originalFunction !== "function") {
26288
- throw new $TypeError2("a function is required");
26289
- }
26290
- var func2 = $reflectApply(bind3, $call, arguments);
26291
- return setFunctionLength$1(
26292
- func2,
26293
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
26294
- true
26295
- );
26296
26331
  };
26297
- var applyBind = function applyBind2() {
26298
- return $reflectApply(bind3, $apply, arguments);
26332
+ return defineDataProperty;
26333
+ }
26334
+ var hasPropertyDescriptors_1;
26335
+ var hasRequiredHasPropertyDescriptors;
26336
+ function requireHasPropertyDescriptors() {
26337
+ if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1;
26338
+ hasRequiredHasPropertyDescriptors = 1;
26339
+ var $defineProperty = requireEsDefineProperty();
26340
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
26341
+ return !!$defineProperty;
26299
26342
  };
26300
- if ($defineProperty2) {
26301
- $defineProperty2(module2.exports, "apply", { value: applyBind });
26302
- } else {
26303
- module2.exports.apply = applyBind;
26304
- }
26305
- })(callBind$2);
26306
- var callBindExports = callBind$2.exports;
26307
- var GetIntrinsic = getIntrinsic;
26308
- var callBind$1 = callBindExports;
26309
- var $indexOf$1 = callBind$1(GetIntrinsic("String.prototype.indexOf"));
26310
- var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
26311
- var intrinsic = GetIntrinsic(name2, !!allowMissing);
26312
- if (typeof intrinsic === "function" && $indexOf$1(name2, ".prototype.") > -1) {
26313
- return callBind$1(intrinsic);
26314
- }
26315
- return intrinsic;
26316
- };
26317
- var hasToStringTag$3 = shams();
26318
- var callBound$1 = callBound$2;
26319
- var $toString$1 = callBound$1("Object.prototype.toString");
26320
- var isStandardArguments = function isArguments2(value) {
26321
- if (hasToStringTag$3 && value && typeof value === "object" && Symbol.toStringTag in value) {
26322
- return false;
26323
- }
26324
- return $toString$1(value) === "[object Arguments]";
26325
- };
26326
- var isLegacyArguments = function isArguments3(value) {
26327
- if (isStandardArguments(value)) {
26328
- return true;
26329
- }
26330
- return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
26331
- };
26332
- var supportsStandardArguments = function() {
26333
- return isStandardArguments(arguments);
26334
- }();
26335
- isStandardArguments.isLegacyArguments = isLegacyArguments;
26336
- var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
26337
- var toStr$2 = Object.prototype.toString;
26338
- var fnToStr$1 = Function.prototype.toString;
26339
- var isFnRegex = /^\s*(?:function)?\*/;
26340
- var hasToStringTag$2 = shams();
26341
- var getProto = Object.getPrototypeOf;
26342
- var getGeneratorFunc = function() {
26343
- if (!hasToStringTag$2) {
26344
- return false;
26345
- }
26346
- try {
26347
- return Function("return function*() {}")();
26348
- } catch (e) {
26349
- }
26350
- };
26351
- var GeneratorFunction;
26352
- var isGeneratorFunction = function isGeneratorFunction2(fn) {
26353
- if (typeof fn !== "function") {
26354
- return false;
26355
- }
26356
- if (isFnRegex.test(fnToStr$1.call(fn))) {
26357
- return true;
26358
- }
26359
- if (!hasToStringTag$2) {
26360
- var str = toStr$2.call(fn);
26361
- return str === "[object GeneratorFunction]";
26362
- }
26363
- if (!getProto) {
26364
- return false;
26365
- }
26366
- if (typeof GeneratorFunction === "undefined") {
26367
- var generatorFunc = getGeneratorFunc();
26368
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
26369
- }
26370
- return getProto(fn) === GeneratorFunction;
26371
- };
26372
- var fnToStr = Function.prototype.toString;
26373
- var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
26374
- var badArrayLike;
26375
- var isCallableMarker;
26376
- if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
26377
- try {
26378
- badArrayLike = Object.defineProperty({}, "length", {
26379
- get: function() {
26380
- throw isCallableMarker;
26381
- }
26382
- });
26383
- isCallableMarker = {};
26384
- reflectApply(function() {
26385
- throw 42;
26386
- }, null, badArrayLike);
26387
- } catch (_2) {
26388
- if (_2 !== isCallableMarker) {
26389
- reflectApply = null;
26343
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
26344
+ if (!$defineProperty) {
26345
+ return null;
26390
26346
  }
26391
- }
26392
- } else {
26393
- reflectApply = null;
26394
- }
26395
- var constructorRegex = /^\s*class\b/;
26396
- var isES6ClassFn = function isES6ClassFunction(value) {
26397
- try {
26398
- var fnStr = fnToStr.call(value);
26399
- return constructorRegex.test(fnStr);
26400
- } catch (e) {
26401
- return false;
26402
- }
26403
- };
26404
- var tryFunctionObject = function tryFunctionToStr(value) {
26405
- try {
26406
- if (isES6ClassFn(value)) {
26407
- return false;
26347
+ try {
26348
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
26349
+ } catch (e) {
26350
+ return true;
26408
26351
  }
26409
- fnToStr.call(value);
26410
- return true;
26411
- } catch (e) {
26412
- return false;
26413
- }
26414
- };
26415
- var toStr$1 = Object.prototype.toString;
26416
- var objectClass = "[object Object]";
26417
- var fnClass = "[object Function]";
26418
- var genClass = "[object GeneratorFunction]";
26419
- var ddaClass = "[object HTMLAllCollection]";
26420
- var ddaClass2 = "[object HTML document.all class]";
26421
- var ddaClass3 = "[object HTMLCollection]";
26422
- var hasToStringTag$1 = typeof Symbol === "function" && !!Symbol.toStringTag;
26423
- var isIE68 = !(0 in [,]);
26424
- var isDDA = function isDocumentDotAll() {
26425
- return false;
26426
- };
26427
- if (typeof document === "object") {
26428
- var all = document.all;
26429
- if (toStr$1.call(all) === toStr$1.call(document.all)) {
26430
- isDDA = function isDocumentDotAll2(value) {
26431
- if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
26432
- try {
26433
- var str = toStr$1.call(value);
26434
- return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
26435
- } catch (e) {
26436
- }
26352
+ };
26353
+ hasPropertyDescriptors_1 = hasPropertyDescriptors;
26354
+ return hasPropertyDescriptors_1;
26355
+ }
26356
+ var setFunctionLength;
26357
+ var hasRequiredSetFunctionLength;
26358
+ function requireSetFunctionLength() {
26359
+ if (hasRequiredSetFunctionLength) return setFunctionLength;
26360
+ hasRequiredSetFunctionLength = 1;
26361
+ var GetIntrinsic = requireGetIntrinsic();
26362
+ var define = requireDefineDataProperty();
26363
+ var hasDescriptors = requireHasPropertyDescriptors()();
26364
+ var gOPD = requireGopd();
26365
+ var $TypeError = requireType();
26366
+ var $floor = GetIntrinsic("%Math.floor%");
26367
+ setFunctionLength = function setFunctionLength2(fn, length) {
26368
+ if (typeof fn !== "function") {
26369
+ throw new $TypeError("`fn` is not a function");
26370
+ }
26371
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
26372
+ throw new $TypeError("`length` must be a positive 32-bit integer");
26373
+ }
26374
+ var loose = arguments.length > 2 && !!arguments[2];
26375
+ var functionLengthIsConfigurable = true;
26376
+ var functionLengthIsWritable = true;
26377
+ if ("length" in fn && gOPD) {
26378
+ var desc = gOPD(fn, "length");
26379
+ if (desc && !desc.configurable) {
26380
+ functionLengthIsConfigurable = false;
26381
+ }
26382
+ if (desc && !desc.writable) {
26383
+ functionLengthIsWritable = false;
26384
+ }
26385
+ }
26386
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
26387
+ if (hasDescriptors) {
26388
+ define(
26389
+ /** @type {Parameters<define>[0]} */
26390
+ fn,
26391
+ "length",
26392
+ length,
26393
+ true,
26394
+ true
26395
+ );
26396
+ } else {
26397
+ define(
26398
+ /** @type {Parameters<define>[0]} */
26399
+ fn,
26400
+ "length",
26401
+ length
26402
+ );
26437
26403
  }
26438
- return false;
26439
- };
26440
- }
26404
+ }
26405
+ return fn;
26406
+ };
26407
+ return setFunctionLength;
26441
26408
  }
26442
- var isCallable$1 = reflectApply ? function isCallable2(value) {
26443
- if (isDDA(value)) {
26444
- return true;
26445
- }
26446
- if (!value) {
26447
- return false;
26448
- }
26449
- if (typeof value !== "function" && typeof value !== "object") {
26450
- return false;
26451
- }
26452
- try {
26453
- reflectApply(value, null, badArrayLike);
26454
- } catch (e) {
26455
- if (e !== isCallableMarker) {
26409
+ var hasRequiredCallBind;
26410
+ function requireCallBind() {
26411
+ if (hasRequiredCallBind) return callBind.exports;
26412
+ hasRequiredCallBind = 1;
26413
+ (function(module2) {
26414
+ var bind2 = requireFunctionBind();
26415
+ var GetIntrinsic = requireGetIntrinsic();
26416
+ var setFunctionLength2 = requireSetFunctionLength();
26417
+ var $TypeError = requireType();
26418
+ var $apply = GetIntrinsic("%Function.prototype.apply%");
26419
+ var $call = GetIntrinsic("%Function.prototype.call%");
26420
+ var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
26421
+ var $defineProperty = requireEsDefineProperty();
26422
+ var $max = GetIntrinsic("%Math.max%");
26423
+ module2.exports = function callBind2(originalFunction) {
26424
+ if (typeof originalFunction !== "function") {
26425
+ throw new $TypeError("a function is required");
26426
+ }
26427
+ var func2 = $reflectApply(bind2, $call, arguments);
26428
+ return setFunctionLength2(
26429
+ func2,
26430
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
26431
+ true
26432
+ );
26433
+ };
26434
+ var applyBind = function applyBind2() {
26435
+ return $reflectApply(bind2, $apply, arguments);
26436
+ };
26437
+ if ($defineProperty) {
26438
+ $defineProperty(module2.exports, "apply", { value: applyBind });
26439
+ } else {
26440
+ module2.exports.apply = applyBind;
26441
+ }
26442
+ })(callBind);
26443
+ return callBind.exports;
26444
+ }
26445
+ var callBound;
26446
+ var hasRequiredCallBound;
26447
+ function requireCallBound() {
26448
+ if (hasRequiredCallBound) return callBound;
26449
+ hasRequiredCallBound = 1;
26450
+ var GetIntrinsic = requireGetIntrinsic();
26451
+ var callBind2 = requireCallBind();
26452
+ var $indexOf = callBind2(GetIntrinsic("String.prototype.indexOf"));
26453
+ callBound = function callBoundIntrinsic(name2, allowMissing) {
26454
+ var intrinsic = GetIntrinsic(name2, !!allowMissing);
26455
+ if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
26456
+ return callBind2(intrinsic);
26457
+ }
26458
+ return intrinsic;
26459
+ };
26460
+ return callBound;
26461
+ }
26462
+ var isArguments$2;
26463
+ var hasRequiredIsArguments;
26464
+ function requireIsArguments() {
26465
+ if (hasRequiredIsArguments) return isArguments$2;
26466
+ hasRequiredIsArguments = 1;
26467
+ var hasToStringTag = requireShams()();
26468
+ var callBound2 = requireCallBound();
26469
+ var $toString = callBound2("Object.prototype.toString");
26470
+ var isStandardArguments = function isArguments2(value) {
26471
+ if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) {
26456
26472
  return false;
26457
26473
  }
26458
- }
26459
- return !isES6ClassFn(value) && tryFunctionObject(value);
26460
- } : function isCallable3(value) {
26461
- if (isDDA(value)) {
26462
- return true;
26463
- }
26464
- if (!value) {
26465
- return false;
26466
- }
26467
- if (typeof value !== "function" && typeof value !== "object") {
26468
- return false;
26469
- }
26470
- if (hasToStringTag$1) {
26471
- return tryFunctionObject(value);
26472
- }
26473
- if (isES6ClassFn(value)) {
26474
- return false;
26475
- }
26476
- var strClass = toStr$1.call(value);
26477
- if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
26478
- return false;
26479
- }
26480
- return tryFunctionObject(value);
26481
- };
26482
- var isCallable = isCallable$1;
26483
- var toStr = Object.prototype.toString;
26484
- var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
26485
- var forEachArray = function forEachArray2(array, iterator, receiver) {
26486
- for (var i = 0, len = array.length; i < len; i++) {
26487
- if (hasOwnProperty$2.call(array, i)) {
26488
- if (receiver == null) {
26489
- iterator(array[i], i, array);
26490
- } else {
26491
- iterator.call(receiver, array[i], i, array);
26492
- }
26474
+ return $toString(value) === "[object Arguments]";
26475
+ };
26476
+ var isLegacyArguments = function isArguments2(value) {
26477
+ if (isStandardArguments(value)) {
26478
+ return true;
26493
26479
  }
26494
- }
26495
- };
26496
- var forEachString = function forEachString2(string2, iterator, receiver) {
26497
- for (var i = 0, len = string2.length; i < len; i++) {
26498
- if (receiver == null) {
26499
- iterator(string2.charAt(i), i, string2);
26500
- } else {
26501
- iterator.call(receiver, string2.charAt(i), i, string2);
26480
+ return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
26481
+ };
26482
+ var supportsStandardArguments = function() {
26483
+ return isStandardArguments(arguments);
26484
+ }();
26485
+ isStandardArguments.isLegacyArguments = isLegacyArguments;
26486
+ isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
26487
+ return isArguments$2;
26488
+ }
26489
+ var isGeneratorFunction;
26490
+ var hasRequiredIsGeneratorFunction;
26491
+ function requireIsGeneratorFunction() {
26492
+ if (hasRequiredIsGeneratorFunction) return isGeneratorFunction;
26493
+ hasRequiredIsGeneratorFunction = 1;
26494
+ var toStr = Object.prototype.toString;
26495
+ var fnToStr = Function.prototype.toString;
26496
+ var isFnRegex = /^\s*(?:function)?\*/;
26497
+ var hasToStringTag = requireShams()();
26498
+ var getProto = Object.getPrototypeOf;
26499
+ var getGeneratorFunc = function() {
26500
+ if (!hasToStringTag) {
26501
+ return false;
26502
26502
  }
26503
- }
26504
- };
26505
- var forEachObject = function forEachObject2(object, iterator, receiver) {
26506
- for (var k in object) {
26507
- if (hasOwnProperty$2.call(object, k)) {
26508
- if (receiver == null) {
26509
- iterator(object[k], k, object);
26510
- } else {
26511
- iterator.call(receiver, object[k], k, object);
26512
- }
26503
+ try {
26504
+ return Function("return function*() {}")();
26505
+ } catch (e) {
26513
26506
  }
26514
- }
26515
- };
26516
- var forEach$1 = function forEach2(list, iterator, thisArg) {
26517
- if (!isCallable(iterator)) {
26518
- throw new TypeError("iterator must be a function");
26519
- }
26520
- var receiver;
26521
- if (arguments.length >= 3) {
26522
- receiver = thisArg;
26523
- }
26524
- if (toStr.call(list) === "[object Array]") {
26525
- forEachArray(list, iterator, receiver);
26526
- } else if (typeof list === "string") {
26527
- forEachString(list, iterator, receiver);
26528
- } else {
26529
- forEachObject(list, iterator, receiver);
26530
- }
26531
- };
26532
- var forEach_1 = forEach$1;
26533
- var possibleTypedArrayNames = [
26534
- "Float32Array",
26535
- "Float64Array",
26536
- "Int8Array",
26537
- "Int16Array",
26538
- "Int32Array",
26539
- "Uint8Array",
26540
- "Uint8ClampedArray",
26541
- "Uint16Array",
26542
- "Uint32Array",
26543
- "BigInt64Array",
26544
- "BigUint64Array"
26545
- ];
26546
- var possibleNames = possibleTypedArrayNames;
26547
- var g$1 = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
26548
- var availableTypedArrays$1 = function availableTypedArrays2() {
26549
- var out = [];
26550
- for (var i = 0; i < possibleNames.length; i++) {
26551
- if (typeof g$1[possibleNames[i]] === "function") {
26552
- out[out.length] = possibleNames[i];
26507
+ };
26508
+ var GeneratorFunction;
26509
+ isGeneratorFunction = function isGeneratorFunction2(fn) {
26510
+ if (typeof fn !== "function") {
26511
+ return false;
26553
26512
  }
26554
- }
26555
- return out;
26556
- };
26557
- var forEach = forEach_1;
26558
- var availableTypedArrays = availableTypedArrays$1;
26559
- var callBind = callBindExports;
26560
- var callBound = callBound$2;
26561
- var gOPD = gopd$1;
26562
- var $toString = callBound("Object.prototype.toString");
26563
- var hasToStringTag = shams();
26564
- var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
26565
- var typedArrays = availableTypedArrays();
26566
- var $slice = callBound("String.prototype.slice");
26567
- var getPrototypeOf = Object.getPrototypeOf;
26568
- var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
26569
- for (var i = 0; i < array.length; i += 1) {
26570
- if (array[i] === value) {
26571
- return i;
26513
+ if (isFnRegex.test(fnToStr.call(fn))) {
26514
+ return true;
26572
26515
  }
26573
- }
26574
- return -1;
26575
- };
26576
- var cache$1 = { __proto__: null };
26577
- if (hasToStringTag && gOPD && getPrototypeOf) {
26578
- forEach(typedArrays, function(typedArray) {
26579
- var arr = new g[typedArray]();
26580
- if (Symbol.toStringTag in arr) {
26581
- var proto = getPrototypeOf(arr);
26582
- var descriptor = gOPD(proto, Symbol.toStringTag);
26583
- if (!descriptor) {
26584
- var superProto = getPrototypeOf(proto);
26585
- descriptor = gOPD(superProto, Symbol.toStringTag);
26586
- }
26587
- cache$1["$" + typedArray] = callBind(descriptor.get);
26516
+ if (!hasToStringTag) {
26517
+ var str = toStr.call(fn);
26518
+ return str === "[object GeneratorFunction]";
26588
26519
  }
26589
- });
26590
- } else {
26591
- forEach(typedArrays, function(typedArray) {
26592
- var arr = new g[typedArray]();
26593
- var fn = arr.slice || arr.set;
26594
- if (fn) {
26595
- cache$1["$" + typedArray] = callBind(fn);
26520
+ if (!getProto) {
26521
+ return false;
26596
26522
  }
26597
- });
26598
- }
26599
- var tryTypedArrays = function tryAllTypedArrays(value) {
26600
- var found = false;
26601
- forEach(
26602
- // eslint-disable-next-line no-extra-parens
26603
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */
26604
- /** @type {any} */
26605
- cache$1,
26606
- /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
26607
- function(getter, typedArray) {
26608
- if (!found) {
26609
- try {
26610
- if ("$" + getter(value) === typedArray) {
26611
- found = $slice(typedArray, 1);
26612
- }
26613
- } catch (e) {
26614
- }
26615
- }
26523
+ if (typeof GeneratorFunction === "undefined") {
26524
+ var generatorFunc = getGeneratorFunc();
26525
+ GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
26616
26526
  }
26617
- );
26618
- return found;
26619
- };
26620
- var trySlices = function tryAllSlices(value) {
26621
- var found = false;
26622
- forEach(
26623
- // eslint-disable-next-line no-extra-parens
26624
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */
26625
- /** @type {any} */
26626
- cache$1,
26627
- /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
26628
- function(getter, name2) {
26629
- if (!found) {
26630
- try {
26631
- getter(value);
26632
- found = $slice(name2, 1);
26633
- } catch (e) {
26527
+ return getProto(fn) === GeneratorFunction;
26528
+ };
26529
+ return isGeneratorFunction;
26530
+ }
26531
+ var isCallable;
26532
+ var hasRequiredIsCallable;
26533
+ function requireIsCallable() {
26534
+ if (hasRequiredIsCallable) return isCallable;
26535
+ hasRequiredIsCallable = 1;
26536
+ var fnToStr = Function.prototype.toString;
26537
+ var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
26538
+ var badArrayLike;
26539
+ var isCallableMarker;
26540
+ if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
26541
+ try {
26542
+ badArrayLike = Object.defineProperty({}, "length", {
26543
+ get: function() {
26544
+ throw isCallableMarker;
26634
26545
  }
26546
+ });
26547
+ isCallableMarker = {};
26548
+ reflectApply(function() {
26549
+ throw 42;
26550
+ }, null, badArrayLike);
26551
+ } catch (_2) {
26552
+ if (_2 !== isCallableMarker) {
26553
+ reflectApply = null;
26635
26554
  }
26636
26555
  }
26637
- );
26638
- return found;
26639
- };
26640
- var whichTypedArray$1 = function whichTypedArray2(value) {
26641
- if (!value || typeof value !== "object") {
26642
- return false;
26643
- }
26644
- if (!hasToStringTag) {
26645
- var tag2 = $slice($toString(value), 8, -1);
26646
- if ($indexOf(typedArrays, tag2) > -1) {
26647
- return tag2;
26648
- }
26649
- if (tag2 !== "Object") {
26650
- return false;
26651
- }
26652
- return trySlices(value);
26653
- }
26654
- if (!gOPD) {
26655
- return null;
26556
+ } else {
26557
+ reflectApply = null;
26656
26558
  }
26657
- return tryTypedArrays(value);
26658
- };
26659
- var whichTypedArray = whichTypedArray$1;
26660
- var isTypedArray = function isTypedArray2(value) {
26661
- return !!whichTypedArray(value);
26662
- };
26663
- (function(exports2) {
26664
- var isArgumentsObject = isArguments$2;
26665
- var isGeneratorFunction$1 = isGeneratorFunction;
26666
- var whichTypedArray3 = whichTypedArray$1;
26667
- var isTypedArray$12 = isTypedArray;
26668
- function uncurryThis(f) {
26669
- return f.call.bind(f);
26670
- }
26671
- var BigIntSupported = typeof BigInt !== "undefined";
26672
- var SymbolSupported = typeof Symbol !== "undefined";
26673
- var ObjectToString = uncurryThis(Object.prototype.toString);
26674
- var numberValue = uncurryThis(Number.prototype.valueOf);
26675
- var stringValue = uncurryThis(String.prototype.valueOf);
26676
- var booleanValue = uncurryThis(Boolean.prototype.valueOf);
26677
- if (BigIntSupported) {
26678
- var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
26679
- }
26680
- if (SymbolSupported) {
26681
- var symbolValue = uncurryThis(Symbol.prototype.valueOf);
26682
- }
26683
- function checkBoxedPrimitive(value, prototypeValueOf) {
26684
- if (typeof value !== "object") {
26559
+ var constructorRegex = /^\s*class\b/;
26560
+ var isES6ClassFn = function isES6ClassFunction(value) {
26561
+ try {
26562
+ var fnStr = fnToStr.call(value);
26563
+ return constructorRegex.test(fnStr);
26564
+ } catch (e) {
26685
26565
  return false;
26686
26566
  }
26567
+ };
26568
+ var tryFunctionObject = function tryFunctionToStr(value) {
26687
26569
  try {
26688
- prototypeValueOf(value);
26570
+ if (isES6ClassFn(value)) {
26571
+ return false;
26572
+ }
26573
+ fnToStr.call(value);
26689
26574
  return true;
26690
26575
  } catch (e) {
26691
26576
  return false;
26692
26577
  }
26693
- }
26694
- exports2.isArgumentsObject = isArgumentsObject;
26695
- exports2.isGeneratorFunction = isGeneratorFunction$1;
26696
- exports2.isTypedArray = isTypedArray$12;
26697
- function isPromise(input) {
26698
- return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
26699
- }
26700
- exports2.isPromise = isPromise;
26701
- function isArrayBufferView(value) {
26702
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
26703
- return ArrayBuffer.isView(value);
26578
+ };
26579
+ var toStr = Object.prototype.toString;
26580
+ var objectClass = "[object Object]";
26581
+ var fnClass = "[object Function]";
26582
+ var genClass = "[object GeneratorFunction]";
26583
+ var ddaClass = "[object HTMLAllCollection]";
26584
+ var ddaClass2 = "[object HTML document.all class]";
26585
+ var ddaClass3 = "[object HTMLCollection]";
26586
+ var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
26587
+ var isIE68 = !(0 in [,]);
26588
+ var isDDA = function isDocumentDotAll() {
26589
+ return false;
26590
+ };
26591
+ if (typeof document === "object") {
26592
+ var all = document.all;
26593
+ if (toStr.call(all) === toStr.call(document.all)) {
26594
+ isDDA = function isDocumentDotAll(value) {
26595
+ if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
26596
+ try {
26597
+ var str = toStr.call(value);
26598
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
26599
+ } catch (e) {
26600
+ }
26601
+ }
26602
+ return false;
26603
+ };
26704
26604
  }
26705
- return isTypedArray$12(value) || isDataView(value);
26706
26605
  }
26707
- exports2.isArrayBufferView = isArrayBufferView;
26708
- function isUint8Array(value) {
26709
- return whichTypedArray3(value) === "Uint8Array";
26710
- }
26711
- exports2.isUint8Array = isUint8Array;
26712
- function isUint8ClampedArray(value) {
26713
- return whichTypedArray3(value) === "Uint8ClampedArray";
26714
- }
26715
- exports2.isUint8ClampedArray = isUint8ClampedArray;
26716
- function isUint16Array(value) {
26717
- return whichTypedArray3(value) === "Uint16Array";
26718
- }
26719
- exports2.isUint16Array = isUint16Array;
26720
- function isUint32Array(value) {
26721
- return whichTypedArray3(value) === "Uint32Array";
26722
- }
26723
- exports2.isUint32Array = isUint32Array;
26724
- function isInt8Array(value) {
26725
- return whichTypedArray3(value) === "Int8Array";
26726
- }
26727
- exports2.isInt8Array = isInt8Array;
26728
- function isInt16Array(value) {
26729
- return whichTypedArray3(value) === "Int16Array";
26730
- }
26731
- exports2.isInt16Array = isInt16Array;
26732
- function isInt32Array(value) {
26733
- return whichTypedArray3(value) === "Int32Array";
26734
- }
26735
- exports2.isInt32Array = isInt32Array;
26736
- function isFloat32Array(value) {
26737
- return whichTypedArray3(value) === "Float32Array";
26738
- }
26739
- exports2.isFloat32Array = isFloat32Array;
26740
- function isFloat64Array(value) {
26741
- return whichTypedArray3(value) === "Float64Array";
26742
- }
26743
- exports2.isFloat64Array = isFloat64Array;
26744
- function isBigInt64Array(value) {
26745
- return whichTypedArray3(value) === "BigInt64Array";
26746
- }
26747
- exports2.isBigInt64Array = isBigInt64Array;
26748
- function isBigUint64Array(value) {
26749
- return whichTypedArray3(value) === "BigUint64Array";
26750
- }
26751
- exports2.isBigUint64Array = isBigUint64Array;
26752
- function isMapToString(value) {
26753
- return ObjectToString(value) === "[object Map]";
26754
- }
26755
- isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
26756
- function isMap2(value) {
26757
- if (typeof Map === "undefined") {
26758
- return false;
26606
+ isCallable = reflectApply ? function isCallable2(value) {
26607
+ if (isDDA(value)) {
26608
+ return true;
26759
26609
  }
26760
- return isMapToString.working ? isMapToString(value) : value instanceof Map;
26761
- }
26762
- exports2.isMap = isMap2;
26763
- function isSetToString(value) {
26764
- return ObjectToString(value) === "[object Set]";
26765
- }
26766
- isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
26767
- function isSet2(value) {
26768
- if (typeof Set === "undefined") {
26610
+ if (!value) {
26769
26611
  return false;
26770
26612
  }
26771
- return isSetToString.working ? isSetToString(value) : value instanceof Set;
26772
- }
26773
- exports2.isSet = isSet2;
26774
- function isWeakMapToString(value) {
26775
- return ObjectToString(value) === "[object WeakMap]";
26776
- }
26777
- isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
26778
- function isWeakMap(value) {
26779
- if (typeof WeakMap === "undefined") {
26613
+ if (typeof value !== "function" && typeof value !== "object") {
26780
26614
  return false;
26781
26615
  }
26782
- return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
26783
- }
26784
- exports2.isWeakMap = isWeakMap;
26785
- function isWeakSetToString(value) {
26786
- return ObjectToString(value) === "[object WeakSet]";
26787
- }
26788
- isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
26789
- function isWeakSet(value) {
26790
- return isWeakSetToString(value);
26791
- }
26792
- exports2.isWeakSet = isWeakSet;
26793
- function isArrayBufferToString(value) {
26794
- return ObjectToString(value) === "[object ArrayBuffer]";
26795
- }
26796
- isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
26797
- function isArrayBuffer(value) {
26798
- if (typeof ArrayBuffer === "undefined") {
26616
+ try {
26617
+ reflectApply(value, null, badArrayLike);
26618
+ } catch (e) {
26619
+ if (e !== isCallableMarker) {
26620
+ return false;
26621
+ }
26622
+ }
26623
+ return !isES6ClassFn(value) && tryFunctionObject(value);
26624
+ } : function isCallable2(value) {
26625
+ if (isDDA(value)) {
26626
+ return true;
26627
+ }
26628
+ if (!value) {
26799
26629
  return false;
26800
26630
  }
26801
- return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
26802
- }
26803
- exports2.isArrayBuffer = isArrayBuffer;
26804
- function isDataViewToString(value) {
26805
- return ObjectToString(value) === "[object DataView]";
26806
- }
26807
- isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
26808
- function isDataView(value) {
26809
- if (typeof DataView === "undefined") {
26631
+ if (typeof value !== "function" && typeof value !== "object") {
26810
26632
  return false;
26811
26633
  }
26812
- return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
26813
- }
26814
- exports2.isDataView = isDataView;
26815
- var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
26816
- function isSharedArrayBufferToString(value) {
26817
- return ObjectToString(value) === "[object SharedArrayBuffer]";
26818
- }
26819
- function isSharedArrayBuffer(value) {
26820
- if (typeof SharedArrayBufferCopy === "undefined") {
26634
+ if (hasToStringTag) {
26635
+ return tryFunctionObject(value);
26636
+ }
26637
+ if (isES6ClassFn(value)) {
26821
26638
  return false;
26822
26639
  }
26823
- if (typeof isSharedArrayBufferToString.working === "undefined") {
26824
- isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
26640
+ var strClass = toStr.call(value);
26641
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
26642
+ return false;
26825
26643
  }
26826
- return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
26827
- }
26828
- exports2.isSharedArrayBuffer = isSharedArrayBuffer;
26829
- function isAsyncFunction(value) {
26830
- return ObjectToString(value) === "[object AsyncFunction]";
26831
- }
26832
- exports2.isAsyncFunction = isAsyncFunction;
26833
- function isMapIterator(value) {
26834
- return ObjectToString(value) === "[object Map Iterator]";
26835
- }
26836
- exports2.isMapIterator = isMapIterator;
26837
- function isSetIterator(value) {
26838
- return ObjectToString(value) === "[object Set Iterator]";
26839
- }
26840
- exports2.isSetIterator = isSetIterator;
26841
- function isGeneratorObject(value) {
26842
- return ObjectToString(value) === "[object Generator]";
26843
- }
26844
- exports2.isGeneratorObject = isGeneratorObject;
26845
- function isWebAssemblyCompiledModule(value) {
26846
- return ObjectToString(value) === "[object WebAssembly.Module]";
26847
- }
26848
- exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
26849
- function isNumberObject(value) {
26850
- return checkBoxedPrimitive(value, numberValue);
26851
- }
26852
- exports2.isNumberObject = isNumberObject;
26853
- function isStringObject(value) {
26854
- return checkBoxedPrimitive(value, stringValue);
26855
- }
26856
- exports2.isStringObject = isStringObject;
26857
- function isBooleanObject(value) {
26858
- return checkBoxedPrimitive(value, booleanValue);
26859
- }
26860
- exports2.isBooleanObject = isBooleanObject;
26861
- function isBigIntObject(value) {
26862
- return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
26863
- }
26864
- exports2.isBigIntObject = isBigIntObject;
26865
- function isSymbolObject(value) {
26866
- return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
26867
- }
26868
- exports2.isSymbolObject = isSymbolObject;
26869
- function isBoxedPrimitive(value) {
26870
- return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
26871
- }
26872
- exports2.isBoxedPrimitive = isBoxedPrimitive;
26873
- function isAnyArrayBuffer(value) {
26874
- return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
26875
- }
26876
- exports2.isAnyArrayBuffer = isAnyArrayBuffer;
26877
- ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
26878
- Object.defineProperty(exports2, method, {
26879
- enumerable: false,
26880
- value: function() {
26881
- throw new Error(method + " is not supported in userland");
26644
+ return tryFunctionObject(value);
26645
+ };
26646
+ return isCallable;
26647
+ }
26648
+ var forEach_1;
26649
+ var hasRequiredForEach;
26650
+ function requireForEach() {
26651
+ if (hasRequiredForEach) return forEach_1;
26652
+ hasRequiredForEach = 1;
26653
+ var isCallable2 = requireIsCallable();
26654
+ var toStr = Object.prototype.toString;
26655
+ var hasOwnProperty2 = Object.prototype.hasOwnProperty;
26656
+ var forEachArray = function forEachArray2(array, iterator, receiver) {
26657
+ for (var i = 0, len = array.length; i < len; i++) {
26658
+ if (hasOwnProperty2.call(array, i)) {
26659
+ if (receiver == null) {
26660
+ iterator(array[i], i, array);
26661
+ } else {
26662
+ iterator.call(receiver, array[i], i, array);
26663
+ }
26882
26664
  }
26883
- });
26884
- });
26885
- })(types);
26886
- var isBufferBrowser = function isBuffer2(arg) {
26887
- return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
26888
- };
26889
- (function(exports2) {
26890
- var define_process_default2 = { env: {} };
26891
- var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
26892
- var keys2 = Object.keys(obj);
26893
- var descriptors = {};
26894
- for (var i = 0; i < keys2.length; i++) {
26895
- descriptors[keys2[i]] = Object.getOwnPropertyDescriptor(obj, keys2[i]);
26896
26665
  }
26897
- return descriptors;
26898
26666
  };
26899
- var formatRegExp = /%[sdj%]/g;
26900
- exports2.format = function(f) {
26901
- if (!isString2(f)) {
26902
- var objects = [];
26903
- for (var i = 0; i < arguments.length; i++) {
26904
- objects.push(inspect(arguments[i]));
26905
- }
26906
- return objects.join(" ");
26907
- }
26908
- var i = 1;
26909
- var args2 = arguments;
26910
- var len = args2.length;
26911
- var str = String(f).replace(formatRegExp, function(x2) {
26912
- if (x2 === "%%") return "%";
26913
- if (i >= len) return x2;
26914
- switch (x2) {
26915
- case "%s":
26916
- return String(args2[i++]);
26917
- case "%d":
26918
- return Number(args2[i++]);
26919
- case "%j":
26920
- try {
26921
- return JSON.stringify(args2[i++]);
26922
- } catch (_2) {
26923
- return "[Circular]";
26924
- }
26925
- default:
26926
- return x2;
26927
- }
26928
- });
26929
- for (var x = args2[i]; i < len; x = args2[++i]) {
26930
- if (isNull(x) || !isObject2(x)) {
26931
- str += " " + x;
26667
+ var forEachString = function forEachString2(string2, iterator, receiver) {
26668
+ for (var i = 0, len = string2.length; i < len; i++) {
26669
+ if (receiver == null) {
26670
+ iterator(string2.charAt(i), i, string2);
26932
26671
  } else {
26933
- str += " " + inspect(x);
26672
+ iterator.call(receiver, string2.charAt(i), i, string2);
26934
26673
  }
26935
26674
  }
26936
- return str;
26937
26675
  };
26938
- exports2.deprecate = function(fn, msg) {
26939
- if (typeof define_process_default2 !== "undefined" && define_process_default2.noDeprecation === true) {
26940
- return fn;
26941
- }
26942
- if (typeof define_process_default2 === "undefined") {
26943
- return function() {
26944
- return exports2.deprecate(fn, msg).apply(this, arguments);
26945
- };
26946
- }
26947
- var warned2 = false;
26948
- function deprecated() {
26949
- if (!warned2) {
26950
- if (define_process_default2.throwDeprecation) {
26951
- throw new Error(msg);
26952
- } else if (define_process_default2.traceDeprecation) {
26953
- console.trace(msg);
26676
+ var forEachObject = function forEachObject2(object, iterator, receiver) {
26677
+ for (var k in object) {
26678
+ if (hasOwnProperty2.call(object, k)) {
26679
+ if (receiver == null) {
26680
+ iterator(object[k], k, object);
26954
26681
  } else {
26955
- console.error(msg);
26682
+ iterator.call(receiver, object[k], k, object);
26956
26683
  }
26957
- warned2 = true;
26958
26684
  }
26959
- return fn.apply(this, arguments);
26960
26685
  }
26961
- return deprecated;
26962
26686
  };
26963
- var debugs = {};
26964
- var debugEnvRegex = /^$/;
26965
- exports2.debuglog = function(set2) {
26966
- set2 = set2.toUpperCase();
26967
- if (!debugs[set2]) {
26968
- if (debugEnvRegex.test(set2)) {
26969
- var pid = define_process_default2.pid;
26970
- debugs[set2] = function() {
26971
- var msg = exports2.format.apply(exports2, arguments);
26972
- console.error("%s %d: %s", set2, pid, msg);
26973
- };
26974
- } else {
26975
- debugs[set2] = function() {
26976
- };
26977
- }
26687
+ var forEach = function forEach2(list, iterator, thisArg) {
26688
+ if (!isCallable2(iterator)) {
26689
+ throw new TypeError("iterator must be a function");
26690
+ }
26691
+ var receiver;
26692
+ if (arguments.length >= 3) {
26693
+ receiver = thisArg;
26694
+ }
26695
+ if (toStr.call(list) === "[object Array]") {
26696
+ forEachArray(list, iterator, receiver);
26697
+ } else if (typeof list === "string") {
26698
+ forEachString(list, iterator, receiver);
26699
+ } else {
26700
+ forEachObject(list, iterator, receiver);
26978
26701
  }
26979
- return debugs[set2];
26980
26702
  };
26981
- function inspect(obj, opts) {
26982
- var ctx = {
26983
- seen: [],
26984
- stylize: stylizeNoColor
26985
- };
26986
- if (arguments.length >= 3) ctx.depth = arguments[2];
26987
- if (arguments.length >= 4) ctx.colors = arguments[3];
26988
- if (isBoolean(opts)) {
26989
- ctx.showHidden = opts;
26990
- } else if (opts) {
26991
- exports2._extend(ctx, opts);
26992
- }
26993
- if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
26994
- if (isUndefined(ctx.depth)) ctx.depth = 2;
26995
- if (isUndefined(ctx.colors)) ctx.colors = false;
26996
- if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
26997
- if (ctx.colors) ctx.stylize = stylizeWithColor;
26998
- return formatValue(ctx, obj, ctx.depth);
26999
- }
27000
- exports2.inspect = inspect;
27001
- inspect.colors = {
27002
- "bold": [1, 22],
27003
- "italic": [3, 23],
27004
- "underline": [4, 24],
27005
- "inverse": [7, 27],
27006
- "white": [37, 39],
27007
- "grey": [90, 39],
27008
- "black": [30, 39],
27009
- "blue": [34, 39],
27010
- "cyan": [36, 39],
27011
- "green": [32, 39],
27012
- "magenta": [35, 39],
27013
- "red": [31, 39],
27014
- "yellow": [33, 39]
27015
- };
27016
- inspect.styles = {
27017
- "special": "cyan",
27018
- "number": "yellow",
27019
- "boolean": "yellow",
27020
- "undefined": "grey",
27021
- "null": "bold",
27022
- "string": "green",
27023
- "date": "magenta",
27024
- // "name": intentionally not styling
27025
- "regexp": "red"
26703
+ forEach_1 = forEach;
26704
+ return forEach_1;
26705
+ }
26706
+ var possibleTypedArrayNames;
26707
+ var hasRequiredPossibleTypedArrayNames;
26708
+ function requirePossibleTypedArrayNames() {
26709
+ if (hasRequiredPossibleTypedArrayNames) return possibleTypedArrayNames;
26710
+ hasRequiredPossibleTypedArrayNames = 1;
26711
+ possibleTypedArrayNames = [
26712
+ "Float32Array",
26713
+ "Float64Array",
26714
+ "Int8Array",
26715
+ "Int16Array",
26716
+ "Int32Array",
26717
+ "Uint8Array",
26718
+ "Uint8ClampedArray",
26719
+ "Uint16Array",
26720
+ "Uint32Array",
26721
+ "BigInt64Array",
26722
+ "BigUint64Array"
26723
+ ];
26724
+ return possibleTypedArrayNames;
26725
+ }
26726
+ var availableTypedArrays;
26727
+ var hasRequiredAvailableTypedArrays;
26728
+ function requireAvailableTypedArrays() {
26729
+ if (hasRequiredAvailableTypedArrays) return availableTypedArrays;
26730
+ hasRequiredAvailableTypedArrays = 1;
26731
+ var possibleNames = requirePossibleTypedArrayNames();
26732
+ var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
26733
+ availableTypedArrays = function availableTypedArrays2() {
26734
+ var out = [];
26735
+ for (var i = 0; i < possibleNames.length; i++) {
26736
+ if (typeof g[possibleNames[i]] === "function") {
26737
+ out[out.length] = possibleNames[i];
26738
+ }
26739
+ }
26740
+ return out;
27026
26741
  };
27027
- function stylizeWithColor(str, styleType) {
27028
- var style = inspect.styles[styleType];
27029
- if (style) {
27030
- return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
27031
- } else {
27032
- return str;
26742
+ return availableTypedArrays;
26743
+ }
26744
+ var whichTypedArray;
26745
+ var hasRequiredWhichTypedArray;
26746
+ function requireWhichTypedArray() {
26747
+ if (hasRequiredWhichTypedArray) return whichTypedArray;
26748
+ hasRequiredWhichTypedArray = 1;
26749
+ var forEach = requireForEach();
26750
+ var availableTypedArrays2 = requireAvailableTypedArrays();
26751
+ var callBind2 = requireCallBind();
26752
+ var callBound2 = requireCallBound();
26753
+ var gOPD = requireGopd();
26754
+ var $toString = callBound2("Object.prototype.toString");
26755
+ var hasToStringTag = requireShams()();
26756
+ var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
26757
+ var typedArrays = availableTypedArrays2();
26758
+ var $slice = callBound2("String.prototype.slice");
26759
+ var getPrototypeOf2 = Object.getPrototypeOf;
26760
+ var $indexOf = callBound2("Array.prototype.indexOf", true) || function indexOf(array, value) {
26761
+ for (var i = 0; i < array.length; i += 1) {
26762
+ if (array[i] === value) {
26763
+ return i;
26764
+ }
27033
26765
  }
27034
- }
27035
- function stylizeNoColor(str, styleType) {
27036
- return str;
27037
- }
27038
- function arrayToHash(array) {
27039
- var hash = {};
27040
- array.forEach(function(val2, idx) {
27041
- hash[val2] = true;
26766
+ return -1;
26767
+ };
26768
+ var cache2 = { __proto__: null };
26769
+ if (hasToStringTag && gOPD && getPrototypeOf2) {
26770
+ forEach(typedArrays, function(typedArray) {
26771
+ var arr = new g[typedArray]();
26772
+ if (Symbol.toStringTag in arr) {
26773
+ var proto = getPrototypeOf2(arr);
26774
+ var descriptor = gOPD(proto, Symbol.toStringTag);
26775
+ if (!descriptor) {
26776
+ var superProto = getPrototypeOf2(proto);
26777
+ descriptor = gOPD(superProto, Symbol.toStringTag);
26778
+ }
26779
+ cache2["$" + typedArray] = callBind2(descriptor.get);
26780
+ }
26781
+ });
26782
+ } else {
26783
+ forEach(typedArrays, function(typedArray) {
26784
+ var arr = new g[typedArray]();
26785
+ var fn = arr.slice || arr.set;
26786
+ if (fn) {
26787
+ cache2["$" + typedArray] = callBind2(fn);
26788
+ }
27042
26789
  });
27043
- return hash;
27044
26790
  }
27045
- function formatValue(ctx, value, recurseTimes) {
27046
- if (ctx.customInspect && value && isFunction2(value.inspect) && // Filter out the util module, it's inspect function is special
27047
- value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.
27048
- !(value.constructor && value.constructor.prototype === value)) {
27049
- var ret2 = value.inspect(recurseTimes, ctx);
27050
- if (!isString2(ret2)) {
27051
- ret2 = formatValue(ctx, ret2, recurseTimes);
26791
+ var tryTypedArrays = function tryAllTypedArrays(value) {
26792
+ var found = false;
26793
+ forEach(
26794
+ // eslint-disable-next-line no-extra-parens
26795
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
26796
+ /** @type {any} */
26797
+ cache2,
26798
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
26799
+ function(getter, typedArray) {
26800
+ if (!found) {
26801
+ try {
26802
+ if ("$" + getter(value) === typedArray) {
26803
+ found = $slice(typedArray, 1);
26804
+ }
26805
+ } catch (e) {
26806
+ }
26807
+ }
27052
26808
  }
27053
- return ret2;
27054
- }
27055
- var primitive = formatPrimitive(ctx, value);
27056
- if (primitive) {
27057
- return primitive;
26809
+ );
26810
+ return found;
26811
+ };
26812
+ var trySlices = function tryAllSlices(value) {
26813
+ var found = false;
26814
+ forEach(
26815
+ // eslint-disable-next-line no-extra-parens
26816
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
26817
+ /** @type {any} */
26818
+ cache2,
26819
+ /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
26820
+ function(getter, name2) {
26821
+ if (!found) {
26822
+ try {
26823
+ getter(value);
26824
+ found = $slice(name2, 1);
26825
+ } catch (e) {
26826
+ }
26827
+ }
26828
+ }
26829
+ );
26830
+ return found;
26831
+ };
26832
+ whichTypedArray = function whichTypedArray2(value) {
26833
+ if (!value || typeof value !== "object") {
26834
+ return false;
27058
26835
  }
27059
- var keys2 = Object.keys(value);
27060
- var visibleKeys = arrayToHash(keys2);
27061
- if (ctx.showHidden) {
27062
- keys2 = Object.getOwnPropertyNames(value);
26836
+ if (!hasToStringTag) {
26837
+ var tag2 = $slice($toString(value), 8, -1);
26838
+ if ($indexOf(typedArrays, tag2) > -1) {
26839
+ return tag2;
26840
+ }
26841
+ if (tag2 !== "Object") {
26842
+ return false;
26843
+ }
26844
+ return trySlices(value);
27063
26845
  }
27064
- if (isError2(value) && (keys2.indexOf("message") >= 0 || keys2.indexOf("description") >= 0)) {
27065
- return formatError(value);
26846
+ if (!gOPD) {
26847
+ return null;
27066
26848
  }
27067
- if (keys2.length === 0) {
27068
- if (isFunction2(value)) {
27069
- var name2 = value.name ? ": " + value.name : "";
27070
- return ctx.stylize("[Function" + name2 + "]", "special");
27071
- }
27072
- if (isRegExp2(value)) {
27073
- return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
26849
+ return tryTypedArrays(value);
26850
+ };
26851
+ return whichTypedArray;
26852
+ }
26853
+ var isTypedArray;
26854
+ var hasRequiredIsTypedArray;
26855
+ function requireIsTypedArray() {
26856
+ if (hasRequiredIsTypedArray) return isTypedArray;
26857
+ hasRequiredIsTypedArray = 1;
26858
+ var whichTypedArray2 = requireWhichTypedArray();
26859
+ isTypedArray = function isTypedArray2(value) {
26860
+ return !!whichTypedArray2(value);
26861
+ };
26862
+ return isTypedArray;
26863
+ }
26864
+ var hasRequiredTypes;
26865
+ function requireTypes() {
26866
+ if (hasRequiredTypes) return types;
26867
+ hasRequiredTypes = 1;
26868
+ (function(exports2) {
26869
+ var isArgumentsObject = requireIsArguments();
26870
+ var isGeneratorFunction2 = requireIsGeneratorFunction();
26871
+ var whichTypedArray2 = requireWhichTypedArray();
26872
+ var isTypedArray2 = requireIsTypedArray();
26873
+ function uncurryThis(f) {
26874
+ return f.call.bind(f);
26875
+ }
26876
+ var BigIntSupported = typeof BigInt !== "undefined";
26877
+ var SymbolSupported = typeof Symbol !== "undefined";
26878
+ var ObjectToString = uncurryThis(Object.prototype.toString);
26879
+ var numberValue = uncurryThis(Number.prototype.valueOf);
26880
+ var stringValue = uncurryThis(String.prototype.valueOf);
26881
+ var booleanValue = uncurryThis(Boolean.prototype.valueOf);
26882
+ if (BigIntSupported) {
26883
+ var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
26884
+ }
26885
+ if (SymbolSupported) {
26886
+ var symbolValue = uncurryThis(Symbol.prototype.valueOf);
26887
+ }
26888
+ function checkBoxedPrimitive(value, prototypeValueOf) {
26889
+ if (typeof value !== "object") {
26890
+ return false;
27074
26891
  }
27075
- if (isDate(value)) {
27076
- return ctx.stylize(Date.prototype.toString.call(value), "date");
26892
+ try {
26893
+ prototypeValueOf(value);
26894
+ return true;
26895
+ } catch (e) {
26896
+ return false;
27077
26897
  }
27078
- if (isError2(value)) {
27079
- return formatError(value);
26898
+ }
26899
+ exports2.isArgumentsObject = isArgumentsObject;
26900
+ exports2.isGeneratorFunction = isGeneratorFunction2;
26901
+ exports2.isTypedArray = isTypedArray2;
26902
+ function isPromise(input) {
26903
+ return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
26904
+ }
26905
+ exports2.isPromise = isPromise;
26906
+ function isArrayBufferView(value) {
26907
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
26908
+ return ArrayBuffer.isView(value);
27080
26909
  }
26910
+ return isTypedArray2(value) || isDataView(value);
27081
26911
  }
27082
- var base2 = "", array = false, braces = ["{", "}"];
27083
- if (isArray2(value)) {
27084
- array = true;
27085
- braces = ["[", "]"];
26912
+ exports2.isArrayBufferView = isArrayBufferView;
26913
+ function isUint8Array(value) {
26914
+ return whichTypedArray2(value) === "Uint8Array";
27086
26915
  }
27087
- if (isFunction2(value)) {
27088
- var n = value.name ? ": " + value.name : "";
27089
- base2 = " [Function" + n + "]";
26916
+ exports2.isUint8Array = isUint8Array;
26917
+ function isUint8ClampedArray(value) {
26918
+ return whichTypedArray2(value) === "Uint8ClampedArray";
27090
26919
  }
27091
- if (isRegExp2(value)) {
27092
- base2 = " " + RegExp.prototype.toString.call(value);
26920
+ exports2.isUint8ClampedArray = isUint8ClampedArray;
26921
+ function isUint16Array(value) {
26922
+ return whichTypedArray2(value) === "Uint16Array";
27093
26923
  }
27094
- if (isDate(value)) {
27095
- base2 = " " + Date.prototype.toUTCString.call(value);
26924
+ exports2.isUint16Array = isUint16Array;
26925
+ function isUint32Array(value) {
26926
+ return whichTypedArray2(value) === "Uint32Array";
27096
26927
  }
27097
- if (isError2(value)) {
27098
- base2 = " " + formatError(value);
26928
+ exports2.isUint32Array = isUint32Array;
26929
+ function isInt8Array(value) {
26930
+ return whichTypedArray2(value) === "Int8Array";
27099
26931
  }
27100
- if (keys2.length === 0 && (!array || value.length == 0)) {
27101
- return braces[0] + base2 + braces[1];
26932
+ exports2.isInt8Array = isInt8Array;
26933
+ function isInt16Array(value) {
26934
+ return whichTypedArray2(value) === "Int16Array";
27102
26935
  }
27103
- if (recurseTimes < 0) {
27104
- if (isRegExp2(value)) {
27105
- return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
27106
- } else {
27107
- return ctx.stylize("[Object]", "special");
26936
+ exports2.isInt16Array = isInt16Array;
26937
+ function isInt32Array(value) {
26938
+ return whichTypedArray2(value) === "Int32Array";
26939
+ }
26940
+ exports2.isInt32Array = isInt32Array;
26941
+ function isFloat32Array(value) {
26942
+ return whichTypedArray2(value) === "Float32Array";
26943
+ }
26944
+ exports2.isFloat32Array = isFloat32Array;
26945
+ function isFloat64Array(value) {
26946
+ return whichTypedArray2(value) === "Float64Array";
26947
+ }
26948
+ exports2.isFloat64Array = isFloat64Array;
26949
+ function isBigInt64Array(value) {
26950
+ return whichTypedArray2(value) === "BigInt64Array";
26951
+ }
26952
+ exports2.isBigInt64Array = isBigInt64Array;
26953
+ function isBigUint64Array(value) {
26954
+ return whichTypedArray2(value) === "BigUint64Array";
26955
+ }
26956
+ exports2.isBigUint64Array = isBigUint64Array;
26957
+ function isMapToString(value) {
26958
+ return ObjectToString(value) === "[object Map]";
26959
+ }
26960
+ isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
26961
+ function isMap2(value) {
26962
+ if (typeof Map === "undefined") {
26963
+ return false;
27108
26964
  }
26965
+ return isMapToString.working ? isMapToString(value) : value instanceof Map;
27109
26966
  }
27110
- ctx.seen.push(value);
27111
- var output2;
27112
- if (array) {
27113
- output2 = formatArray(ctx, value, recurseTimes, visibleKeys, keys2);
27114
- } else {
27115
- output2 = keys2.map(function(key) {
27116
- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
27117
- });
26967
+ exports2.isMap = isMap2;
26968
+ function isSetToString(value) {
26969
+ return ObjectToString(value) === "[object Set]";
27118
26970
  }
27119
- ctx.seen.pop();
27120
- return reduceToSingleString(output2, base2, braces);
27121
- }
27122
- function formatPrimitive(ctx, value) {
27123
- if (isUndefined(value))
27124
- return ctx.stylize("undefined", "undefined");
27125
- if (isString2(value)) {
27126
- var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
27127
- return ctx.stylize(simple, "string");
27128
- }
27129
- if (isNumber(value))
27130
- return ctx.stylize("" + value, "number");
27131
- if (isBoolean(value))
27132
- return ctx.stylize("" + value, "boolean");
27133
- if (isNull(value))
27134
- return ctx.stylize("null", "null");
27135
- }
27136
- function formatError(value) {
27137
- return "[" + Error.prototype.toString.call(value) + "]";
27138
- }
27139
- function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
27140
- var output2 = [];
27141
- for (var i = 0, l = value.length; i < l; ++i) {
27142
- if (hasOwnProperty2(value, String(i))) {
27143
- output2.push(formatProperty(
27144
- ctx,
27145
- value,
27146
- recurseTimes,
27147
- visibleKeys,
27148
- String(i),
27149
- true
27150
- ));
27151
- } else {
27152
- output2.push("");
26971
+ isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
26972
+ function isSet2(value) {
26973
+ if (typeof Set === "undefined") {
26974
+ return false;
27153
26975
  }
26976
+ return isSetToString.working ? isSetToString(value) : value instanceof Set;
27154
26977
  }
27155
- keys2.forEach(function(key) {
27156
- if (!key.match(/^\d+$/)) {
27157
- output2.push(formatProperty(
27158
- ctx,
27159
- value,
27160
- recurseTimes,
27161
- visibleKeys,
27162
- key,
27163
- true
27164
- ));
26978
+ exports2.isSet = isSet2;
26979
+ function isWeakMapToString(value) {
26980
+ return ObjectToString(value) === "[object WeakMap]";
26981
+ }
26982
+ isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
26983
+ function isWeakMap(value) {
26984
+ if (typeof WeakMap === "undefined") {
26985
+ return false;
27165
26986
  }
27166
- });
27167
- return output2;
27168
- }
27169
- function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
27170
- var name2, str, desc;
27171
- desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
27172
- if (desc.get) {
27173
- if (desc.set) {
27174
- str = ctx.stylize("[Getter/Setter]", "special");
27175
- } else {
27176
- str = ctx.stylize("[Getter]", "special");
26987
+ return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
26988
+ }
26989
+ exports2.isWeakMap = isWeakMap;
26990
+ function isWeakSetToString(value) {
26991
+ return ObjectToString(value) === "[object WeakSet]";
26992
+ }
26993
+ isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
26994
+ function isWeakSet(value) {
26995
+ return isWeakSetToString(value);
26996
+ }
26997
+ exports2.isWeakSet = isWeakSet;
26998
+ function isArrayBufferToString(value) {
26999
+ return ObjectToString(value) === "[object ArrayBuffer]";
27000
+ }
27001
+ isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
27002
+ function isArrayBuffer(value) {
27003
+ if (typeof ArrayBuffer === "undefined") {
27004
+ return false;
27177
27005
  }
27178
- } else {
27179
- if (desc.set) {
27180
- str = ctx.stylize("[Setter]", "special");
27006
+ return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
27007
+ }
27008
+ exports2.isArrayBuffer = isArrayBuffer;
27009
+ function isDataViewToString(value) {
27010
+ return ObjectToString(value) === "[object DataView]";
27011
+ }
27012
+ isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
27013
+ function isDataView(value) {
27014
+ if (typeof DataView === "undefined") {
27015
+ return false;
27181
27016
  }
27017
+ return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
27018
+ }
27019
+ exports2.isDataView = isDataView;
27020
+ var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
27021
+ function isSharedArrayBufferToString(value) {
27022
+ return ObjectToString(value) === "[object SharedArrayBuffer]";
27023
+ }
27024
+ function isSharedArrayBuffer(value) {
27025
+ if (typeof SharedArrayBufferCopy === "undefined") {
27026
+ return false;
27027
+ }
27028
+ if (typeof isSharedArrayBufferToString.working === "undefined") {
27029
+ isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
27030
+ }
27031
+ return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
27032
+ }
27033
+ exports2.isSharedArrayBuffer = isSharedArrayBuffer;
27034
+ function isAsyncFunction(value) {
27035
+ return ObjectToString(value) === "[object AsyncFunction]";
27036
+ }
27037
+ exports2.isAsyncFunction = isAsyncFunction;
27038
+ function isMapIterator(value) {
27039
+ return ObjectToString(value) === "[object Map Iterator]";
27182
27040
  }
27183
- if (!hasOwnProperty2(visibleKeys, key)) {
27184
- name2 = "[" + key + "]";
27041
+ exports2.isMapIterator = isMapIterator;
27042
+ function isSetIterator(value) {
27043
+ return ObjectToString(value) === "[object Set Iterator]";
27185
27044
  }
27186
- if (!str) {
27187
- if (ctx.seen.indexOf(desc.value) < 0) {
27188
- if (isNull(recurseTimes)) {
27189
- str = formatValue(ctx, desc.value, null);
27045
+ exports2.isSetIterator = isSetIterator;
27046
+ function isGeneratorObject(value) {
27047
+ return ObjectToString(value) === "[object Generator]";
27048
+ }
27049
+ exports2.isGeneratorObject = isGeneratorObject;
27050
+ function isWebAssemblyCompiledModule(value) {
27051
+ return ObjectToString(value) === "[object WebAssembly.Module]";
27052
+ }
27053
+ exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
27054
+ function isNumberObject(value) {
27055
+ return checkBoxedPrimitive(value, numberValue);
27056
+ }
27057
+ exports2.isNumberObject = isNumberObject;
27058
+ function isStringObject(value) {
27059
+ return checkBoxedPrimitive(value, stringValue);
27060
+ }
27061
+ exports2.isStringObject = isStringObject;
27062
+ function isBooleanObject(value) {
27063
+ return checkBoxedPrimitive(value, booleanValue);
27064
+ }
27065
+ exports2.isBooleanObject = isBooleanObject;
27066
+ function isBigIntObject(value) {
27067
+ return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
27068
+ }
27069
+ exports2.isBigIntObject = isBigIntObject;
27070
+ function isSymbolObject(value) {
27071
+ return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
27072
+ }
27073
+ exports2.isSymbolObject = isSymbolObject;
27074
+ function isBoxedPrimitive(value) {
27075
+ return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
27076
+ }
27077
+ exports2.isBoxedPrimitive = isBoxedPrimitive;
27078
+ function isAnyArrayBuffer(value) {
27079
+ return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
27080
+ }
27081
+ exports2.isAnyArrayBuffer = isAnyArrayBuffer;
27082
+ ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
27083
+ Object.defineProperty(exports2, method, {
27084
+ enumerable: false,
27085
+ value: function() {
27086
+ throw new Error(method + " is not supported in userland");
27087
+ }
27088
+ });
27089
+ });
27090
+ })(types);
27091
+ return types;
27092
+ }
27093
+ var isBufferBrowser;
27094
+ var hasRequiredIsBufferBrowser;
27095
+ function requireIsBufferBrowser() {
27096
+ if (hasRequiredIsBufferBrowser) return isBufferBrowser;
27097
+ hasRequiredIsBufferBrowser = 1;
27098
+ isBufferBrowser = function isBuffer2(arg) {
27099
+ return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
27100
+ };
27101
+ return isBufferBrowser;
27102
+ }
27103
+ var hasRequiredUtil;
27104
+ function requireUtil() {
27105
+ if (hasRequiredUtil) return util$5;
27106
+ hasRequiredUtil = 1;
27107
+ (function(exports2) {
27108
+ var define_process_default2 = { env: {} };
27109
+ var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
27110
+ var keys2 = Object.keys(obj);
27111
+ var descriptors = {};
27112
+ for (var i = 0; i < keys2.length; i++) {
27113
+ descriptors[keys2[i]] = Object.getOwnPropertyDescriptor(obj, keys2[i]);
27114
+ }
27115
+ return descriptors;
27116
+ };
27117
+ var formatRegExp = /%[sdj%]/g;
27118
+ exports2.format = function(f) {
27119
+ if (!isString2(f)) {
27120
+ var objects = [];
27121
+ for (var i = 0; i < arguments.length; i++) {
27122
+ objects.push(inspect(arguments[i]));
27123
+ }
27124
+ return objects.join(" ");
27125
+ }
27126
+ var i = 1;
27127
+ var args2 = arguments;
27128
+ var len = args2.length;
27129
+ var str = String(f).replace(formatRegExp, function(x2) {
27130
+ if (x2 === "%%") return "%";
27131
+ if (i >= len) return x2;
27132
+ switch (x2) {
27133
+ case "%s":
27134
+ return String(args2[i++]);
27135
+ case "%d":
27136
+ return Number(args2[i++]);
27137
+ case "%j":
27138
+ try {
27139
+ return JSON.stringify(args2[i++]);
27140
+ } catch (_2) {
27141
+ return "[Circular]";
27142
+ }
27143
+ default:
27144
+ return x2;
27145
+ }
27146
+ });
27147
+ for (var x = args2[i]; i < len; x = args2[++i]) {
27148
+ if (isNull(x) || !isObject2(x)) {
27149
+ str += " " + x;
27190
27150
  } else {
27191
- str = formatValue(ctx, desc.value, recurseTimes - 1);
27151
+ str += " " + inspect(x);
27192
27152
  }
27193
- if (str.indexOf("\n") > -1) {
27194
- if (array) {
27195
- str = str.split("\n").map(function(line) {
27196
- return " " + line;
27197
- }).join("\n").slice(2);
27153
+ }
27154
+ return str;
27155
+ };
27156
+ exports2.deprecate = function(fn, msg) {
27157
+ if (typeof define_process_default2 !== "undefined" && define_process_default2.noDeprecation === true) {
27158
+ return fn;
27159
+ }
27160
+ if (typeof define_process_default2 === "undefined") {
27161
+ return function() {
27162
+ return exports2.deprecate(fn, msg).apply(this, arguments);
27163
+ };
27164
+ }
27165
+ var warned2 = false;
27166
+ function deprecated() {
27167
+ if (!warned2) {
27168
+ if (define_process_default2.throwDeprecation) {
27169
+ throw new Error(msg);
27170
+ } else if (define_process_default2.traceDeprecation) {
27171
+ console.trace(msg);
27198
27172
  } else {
27199
- str = "\n" + str.split("\n").map(function(line) {
27200
- return " " + line;
27201
- }).join("\n");
27173
+ console.error(msg);
27202
27174
  }
27175
+ warned2 = true;
27176
+ }
27177
+ return fn.apply(this, arguments);
27178
+ }
27179
+ return deprecated;
27180
+ };
27181
+ var debugs = {};
27182
+ var debugEnvRegex = /^$/;
27183
+ exports2.debuglog = function(set2) {
27184
+ set2 = set2.toUpperCase();
27185
+ if (!debugs[set2]) {
27186
+ if (debugEnvRegex.test(set2)) {
27187
+ var pid = define_process_default2.pid;
27188
+ debugs[set2] = function() {
27189
+ var msg = exports2.format.apply(exports2, arguments);
27190
+ console.error("%s %d: %s", set2, pid, msg);
27191
+ };
27192
+ } else {
27193
+ debugs[set2] = function() {
27194
+ };
27203
27195
  }
27196
+ }
27197
+ return debugs[set2];
27198
+ };
27199
+ function inspect(obj, opts) {
27200
+ var ctx = {
27201
+ seen: [],
27202
+ stylize: stylizeNoColor
27203
+ };
27204
+ if (arguments.length >= 3) ctx.depth = arguments[2];
27205
+ if (arguments.length >= 4) ctx.colors = arguments[3];
27206
+ if (isBoolean(opts)) {
27207
+ ctx.showHidden = opts;
27208
+ } else if (opts) {
27209
+ exports2._extend(ctx, opts);
27210
+ }
27211
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
27212
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
27213
+ if (isUndefined(ctx.colors)) ctx.colors = false;
27214
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
27215
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
27216
+ return formatValue(ctx, obj, ctx.depth);
27217
+ }
27218
+ exports2.inspect = inspect;
27219
+ inspect.colors = {
27220
+ "bold": [1, 22],
27221
+ "italic": [3, 23],
27222
+ "underline": [4, 24],
27223
+ "inverse": [7, 27],
27224
+ "white": [37, 39],
27225
+ "grey": [90, 39],
27226
+ "black": [30, 39],
27227
+ "blue": [34, 39],
27228
+ "cyan": [36, 39],
27229
+ "green": [32, 39],
27230
+ "magenta": [35, 39],
27231
+ "red": [31, 39],
27232
+ "yellow": [33, 39]
27233
+ };
27234
+ inspect.styles = {
27235
+ "special": "cyan",
27236
+ "number": "yellow",
27237
+ "boolean": "yellow",
27238
+ "undefined": "grey",
27239
+ "null": "bold",
27240
+ "string": "green",
27241
+ "date": "magenta",
27242
+ // "name": intentionally not styling
27243
+ "regexp": "red"
27244
+ };
27245
+ function stylizeWithColor(str, styleType) {
27246
+ var style = inspect.styles[styleType];
27247
+ if (style) {
27248
+ return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
27204
27249
  } else {
27205
- str = ctx.stylize("[Circular]", "special");
27250
+ return str;
27206
27251
  }
27207
27252
  }
27208
- if (isUndefined(name2)) {
27209
- if (array && key.match(/^\d+$/)) {
27210
- return str;
27253
+ function stylizeNoColor(str, styleType) {
27254
+ return str;
27255
+ }
27256
+ function arrayToHash(array) {
27257
+ var hash = {};
27258
+ array.forEach(function(val2, idx) {
27259
+ hash[val2] = true;
27260
+ });
27261
+ return hash;
27262
+ }
27263
+ function formatValue(ctx, value, recurseTimes) {
27264
+ if (ctx.customInspect && value && isFunction2(value.inspect) && // Filter out the util module, it's inspect function is special
27265
+ value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.
27266
+ !(value.constructor && value.constructor.prototype === value)) {
27267
+ var ret2 = value.inspect(recurseTimes, ctx);
27268
+ if (!isString2(ret2)) {
27269
+ ret2 = formatValue(ctx, ret2, recurseTimes);
27270
+ }
27271
+ return ret2;
27272
+ }
27273
+ var primitive = formatPrimitive(ctx, value);
27274
+ if (primitive) {
27275
+ return primitive;
27276
+ }
27277
+ var keys2 = Object.keys(value);
27278
+ var visibleKeys = arrayToHash(keys2);
27279
+ if (ctx.showHidden) {
27280
+ keys2 = Object.getOwnPropertyNames(value);
27281
+ }
27282
+ if (isError2(value) && (keys2.indexOf("message") >= 0 || keys2.indexOf("description") >= 0)) {
27283
+ return formatError(value);
27284
+ }
27285
+ if (keys2.length === 0) {
27286
+ if (isFunction2(value)) {
27287
+ var name2 = value.name ? ": " + value.name : "";
27288
+ return ctx.stylize("[Function" + name2 + "]", "special");
27289
+ }
27290
+ if (isRegExp2(value)) {
27291
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
27292
+ }
27293
+ if (isDate(value)) {
27294
+ return ctx.stylize(Date.prototype.toString.call(value), "date");
27295
+ }
27296
+ if (isError2(value)) {
27297
+ return formatError(value);
27298
+ }
27299
+ }
27300
+ var base2 = "", array = false, braces = ["{", "}"];
27301
+ if (isArray2(value)) {
27302
+ array = true;
27303
+ braces = ["[", "]"];
27304
+ }
27305
+ if (isFunction2(value)) {
27306
+ var n = value.name ? ": " + value.name : "";
27307
+ base2 = " [Function" + n + "]";
27211
27308
  }
27212
- name2 = JSON.stringify("" + key);
27213
- if (name2.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
27214
- name2 = name2.slice(1, -1);
27215
- name2 = ctx.stylize(name2, "name");
27309
+ if (isRegExp2(value)) {
27310
+ base2 = " " + RegExp.prototype.toString.call(value);
27311
+ }
27312
+ if (isDate(value)) {
27313
+ base2 = " " + Date.prototype.toUTCString.call(value);
27314
+ }
27315
+ if (isError2(value)) {
27316
+ base2 = " " + formatError(value);
27317
+ }
27318
+ if (keys2.length === 0 && (!array || value.length == 0)) {
27319
+ return braces[0] + base2 + braces[1];
27320
+ }
27321
+ if (recurseTimes < 0) {
27322
+ if (isRegExp2(value)) {
27323
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
27324
+ } else {
27325
+ return ctx.stylize("[Object]", "special");
27326
+ }
27327
+ }
27328
+ ctx.seen.push(value);
27329
+ var output2;
27330
+ if (array) {
27331
+ output2 = formatArray(ctx, value, recurseTimes, visibleKeys, keys2);
27216
27332
  } else {
27217
- name2 = name2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
27218
- name2 = ctx.stylize(name2, "string");
27219
- }
27220
- }
27221
- return name2 + ": " + str;
27222
- }
27223
- function reduceToSingleString(output2, base2, braces) {
27224
- var length = output2.reduce(function(prev, cur) {
27225
- if (cur.indexOf("\n") >= 0) ;
27226
- return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
27227
- }, 0);
27228
- if (length > 60) {
27229
- return braces[0] + (base2 === "" ? "" : base2 + "\n ") + " " + output2.join(",\n ") + " " + braces[1];
27230
- }
27231
- return braces[0] + base2 + " " + output2.join(", ") + " " + braces[1];
27232
- }
27233
- exports2.types = types;
27234
- function isArray2(ar) {
27235
- return Array.isArray(ar);
27236
- }
27237
- exports2.isArray = isArray2;
27238
- function isBoolean(arg) {
27239
- return typeof arg === "boolean";
27240
- }
27241
- exports2.isBoolean = isBoolean;
27242
- function isNull(arg) {
27243
- return arg === null;
27244
- }
27245
- exports2.isNull = isNull;
27246
- function isNullOrUndefined(arg) {
27247
- return arg == null;
27248
- }
27249
- exports2.isNullOrUndefined = isNullOrUndefined;
27250
- function isNumber(arg) {
27251
- return typeof arg === "number";
27252
- }
27253
- exports2.isNumber = isNumber;
27254
- function isString2(arg) {
27255
- return typeof arg === "string";
27256
- }
27257
- exports2.isString = isString2;
27258
- function isSymbol2(arg) {
27259
- return typeof arg === "symbol";
27260
- }
27261
- exports2.isSymbol = isSymbol2;
27262
- function isUndefined(arg) {
27263
- return arg === void 0;
27264
- }
27265
- exports2.isUndefined = isUndefined;
27266
- function isRegExp2(re) {
27267
- return isObject2(re) && objectToString2(re) === "[object RegExp]";
27268
- }
27269
- exports2.isRegExp = isRegExp2;
27270
- exports2.types.isRegExp = isRegExp2;
27271
- function isObject2(arg) {
27272
- return typeof arg === "object" && arg !== null;
27273
- }
27274
- exports2.isObject = isObject2;
27275
- function isDate(d2) {
27276
- return isObject2(d2) && objectToString2(d2) === "[object Date]";
27277
- }
27278
- exports2.isDate = isDate;
27279
- exports2.types.isDate = isDate;
27280
- function isError2(e) {
27281
- return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
27282
- }
27283
- exports2.isError = isError2;
27284
- exports2.types.isNativeError = isError2;
27285
- function isFunction2(arg) {
27286
- return typeof arg === "function";
27287
- }
27288
- exports2.isFunction = isFunction2;
27289
- function isPrimitive2(arg) {
27290
- return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
27291
- typeof arg === "undefined";
27292
- }
27293
- exports2.isPrimitive = isPrimitive2;
27294
- exports2.isBuffer = isBufferBrowser;
27295
- function objectToString2(o) {
27296
- return Object.prototype.toString.call(o);
27297
- }
27298
- function pad2(n) {
27299
- return n < 10 ? "0" + n.toString(10) : n.toString(10);
27300
- }
27301
- var months = [
27302
- "Jan",
27303
- "Feb",
27304
- "Mar",
27305
- "Apr",
27306
- "May",
27307
- "Jun",
27308
- "Jul",
27309
- "Aug",
27310
- "Sep",
27311
- "Oct",
27312
- "Nov",
27313
- "Dec"
27314
- ];
27315
- function timestamp() {
27316
- var d2 = /* @__PURE__ */ new Date();
27317
- var time = [
27318
- pad2(d2.getHours()),
27319
- pad2(d2.getMinutes()),
27320
- pad2(d2.getSeconds())
27321
- ].join(":");
27322
- return [d2.getDate(), months[d2.getMonth()], time].join(" ");
27323
- }
27324
- exports2.log = function() {
27325
- console.log("%s - %s", timestamp(), exports2.format.apply(exports2, arguments));
27326
- };
27327
- exports2.inherits = inherits_browserExports;
27328
- exports2._extend = function(origin, add2) {
27329
- if (!add2 || !isObject2(add2)) return origin;
27330
- var keys2 = Object.keys(add2);
27331
- var i = keys2.length;
27332
- while (i--) {
27333
- origin[keys2[i]] = add2[keys2[i]];
27334
- }
27335
- return origin;
27336
- };
27337
- function hasOwnProperty2(obj, prop2) {
27338
- return Object.prototype.hasOwnProperty.call(obj, prop2);
27339
- }
27340
- var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
27341
- exports2.promisify = function promisify2(original) {
27342
- if (typeof original !== "function")
27343
- throw new TypeError('The "original" argument must be of type Function');
27344
- if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
27345
- var fn = original[kCustomPromisifiedSymbol];
27346
- if (typeof fn !== "function") {
27347
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
27348
- }
27349
- Object.defineProperty(fn, kCustomPromisifiedSymbol, {
27350
- value: fn,
27351
- enumerable: false,
27352
- writable: false,
27353
- configurable: true
27333
+ output2 = keys2.map(function(key) {
27334
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
27335
+ });
27336
+ }
27337
+ ctx.seen.pop();
27338
+ return reduceToSingleString(output2, base2, braces);
27339
+ }
27340
+ function formatPrimitive(ctx, value) {
27341
+ if (isUndefined(value))
27342
+ return ctx.stylize("undefined", "undefined");
27343
+ if (isString2(value)) {
27344
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
27345
+ return ctx.stylize(simple, "string");
27346
+ }
27347
+ if (isNumber(value))
27348
+ return ctx.stylize("" + value, "number");
27349
+ if (isBoolean(value))
27350
+ return ctx.stylize("" + value, "boolean");
27351
+ if (isNull(value))
27352
+ return ctx.stylize("null", "null");
27353
+ }
27354
+ function formatError(value) {
27355
+ return "[" + Error.prototype.toString.call(value) + "]";
27356
+ }
27357
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
27358
+ var output2 = [];
27359
+ for (var i = 0, l = value.length; i < l; ++i) {
27360
+ if (hasOwnProperty2(value, String(i))) {
27361
+ output2.push(formatProperty(
27362
+ ctx,
27363
+ value,
27364
+ recurseTimes,
27365
+ visibleKeys,
27366
+ String(i),
27367
+ true
27368
+ ));
27369
+ } else {
27370
+ output2.push("");
27371
+ }
27372
+ }
27373
+ keys2.forEach(function(key) {
27374
+ if (!key.match(/^\d+$/)) {
27375
+ output2.push(formatProperty(
27376
+ ctx,
27377
+ value,
27378
+ recurseTimes,
27379
+ visibleKeys,
27380
+ key,
27381
+ true
27382
+ ));
27383
+ }
27354
27384
  });
27355
- return fn;
27385
+ return output2;
27356
27386
  }
27357
- function fn() {
27358
- var promiseResolve, promiseReject;
27359
- var promise2 = new Promise(function(resolve2, reject) {
27360
- promiseResolve = resolve2;
27361
- promiseReject = reject;
27362
- });
27363
- var args2 = [];
27364
- for (var i = 0; i < arguments.length; i++) {
27365
- args2.push(arguments[i]);
27387
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
27388
+ var name2, str, desc;
27389
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
27390
+ if (desc.get) {
27391
+ if (desc.set) {
27392
+ str = ctx.stylize("[Getter/Setter]", "special");
27393
+ } else {
27394
+ str = ctx.stylize("[Getter]", "special");
27395
+ }
27396
+ } else {
27397
+ if (desc.set) {
27398
+ str = ctx.stylize("[Setter]", "special");
27399
+ }
27366
27400
  }
27367
- args2.push(function(err2, value) {
27368
- if (err2) {
27369
- promiseReject(err2);
27401
+ if (!hasOwnProperty2(visibleKeys, key)) {
27402
+ name2 = "[" + key + "]";
27403
+ }
27404
+ if (!str) {
27405
+ if (ctx.seen.indexOf(desc.value) < 0) {
27406
+ if (isNull(recurseTimes)) {
27407
+ str = formatValue(ctx, desc.value, null);
27408
+ } else {
27409
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
27410
+ }
27411
+ if (str.indexOf("\n") > -1) {
27412
+ if (array) {
27413
+ str = str.split("\n").map(function(line) {
27414
+ return " " + line;
27415
+ }).join("\n").slice(2);
27416
+ } else {
27417
+ str = "\n" + str.split("\n").map(function(line) {
27418
+ return " " + line;
27419
+ }).join("\n");
27420
+ }
27421
+ }
27370
27422
  } else {
27371
- promiseResolve(value);
27423
+ str = ctx.stylize("[Circular]", "special");
27372
27424
  }
27373
- });
27374
- try {
27375
- original.apply(this, args2);
27376
- } catch (err2) {
27377
- promiseReject(err2);
27378
27425
  }
27379
- return promise2;
27380
- }
27381
- Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
27382
- if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
27383
- value: fn,
27384
- enumerable: false,
27385
- writable: false,
27386
- configurable: true
27387
- });
27388
- return Object.defineProperties(
27389
- fn,
27390
- getOwnPropertyDescriptors(original)
27391
- );
27392
- };
27393
- exports2.promisify.custom = kCustomPromisifiedSymbol;
27394
- function callbackifyOnRejected(reason, cb) {
27395
- if (!reason) {
27396
- var newReason = new Error("Promise was rejected with a falsy value");
27397
- newReason.reason = reason;
27398
- reason = newReason;
27399
- }
27400
- return cb(reason);
27401
- }
27402
- function callbackify(original) {
27403
- if (typeof original !== "function") {
27404
- throw new TypeError('The "original" argument must be of type Function');
27405
- }
27406
- function callbackified() {
27407
- var args2 = [];
27408
- for (var i = 0; i < arguments.length; i++) {
27409
- args2.push(arguments[i]);
27410
- }
27411
- var maybeCb = args2.pop();
27412
- if (typeof maybeCb !== "function") {
27413
- throw new TypeError("The last argument must be of type Function");
27414
- }
27415
- var self2 = this;
27416
- var cb = function() {
27417
- return maybeCb.apply(self2, arguments);
27418
- };
27419
- original.apply(this, args2).then(
27420
- function(ret2) {
27421
- define_process_default2.nextTick(cb.bind(null, null, ret2));
27422
- },
27423
- function(rej) {
27424
- define_process_default2.nextTick(callbackifyOnRejected.bind(null, rej, cb));
27426
+ if (isUndefined(name2)) {
27427
+ if (array && key.match(/^\d+$/)) {
27428
+ return str;
27429
+ }
27430
+ name2 = JSON.stringify("" + key);
27431
+ if (name2.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
27432
+ name2 = name2.slice(1, -1);
27433
+ name2 = ctx.stylize(name2, "name");
27434
+ } else {
27435
+ name2 = name2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
27436
+ name2 = ctx.stylize(name2, "string");
27437
+ }
27438
+ }
27439
+ return name2 + ": " + str;
27440
+ }
27441
+ function reduceToSingleString(output2, base2, braces) {
27442
+ var length = output2.reduce(function(prev, cur) {
27443
+ if (cur.indexOf("\n") >= 0) ;
27444
+ return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
27445
+ }, 0);
27446
+ if (length > 60) {
27447
+ return braces[0] + (base2 === "" ? "" : base2 + "\n ") + " " + output2.join(",\n ") + " " + braces[1];
27448
+ }
27449
+ return braces[0] + base2 + " " + output2.join(", ") + " " + braces[1];
27450
+ }
27451
+ exports2.types = requireTypes();
27452
+ function isArray2(ar) {
27453
+ return Array.isArray(ar);
27454
+ }
27455
+ exports2.isArray = isArray2;
27456
+ function isBoolean(arg) {
27457
+ return typeof arg === "boolean";
27458
+ }
27459
+ exports2.isBoolean = isBoolean;
27460
+ function isNull(arg) {
27461
+ return arg === null;
27462
+ }
27463
+ exports2.isNull = isNull;
27464
+ function isNullOrUndefined(arg) {
27465
+ return arg == null;
27466
+ }
27467
+ exports2.isNullOrUndefined = isNullOrUndefined;
27468
+ function isNumber(arg) {
27469
+ return typeof arg === "number";
27470
+ }
27471
+ exports2.isNumber = isNumber;
27472
+ function isString2(arg) {
27473
+ return typeof arg === "string";
27474
+ }
27475
+ exports2.isString = isString2;
27476
+ function isSymbol2(arg) {
27477
+ return typeof arg === "symbol";
27478
+ }
27479
+ exports2.isSymbol = isSymbol2;
27480
+ function isUndefined(arg) {
27481
+ return arg === void 0;
27482
+ }
27483
+ exports2.isUndefined = isUndefined;
27484
+ function isRegExp2(re) {
27485
+ return isObject2(re) && objectToString2(re) === "[object RegExp]";
27486
+ }
27487
+ exports2.isRegExp = isRegExp2;
27488
+ exports2.types.isRegExp = isRegExp2;
27489
+ function isObject2(arg) {
27490
+ return typeof arg === "object" && arg !== null;
27491
+ }
27492
+ exports2.isObject = isObject2;
27493
+ function isDate(d2) {
27494
+ return isObject2(d2) && objectToString2(d2) === "[object Date]";
27495
+ }
27496
+ exports2.isDate = isDate;
27497
+ exports2.types.isDate = isDate;
27498
+ function isError2(e) {
27499
+ return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
27500
+ }
27501
+ exports2.isError = isError2;
27502
+ exports2.types.isNativeError = isError2;
27503
+ function isFunction2(arg) {
27504
+ return typeof arg === "function";
27505
+ }
27506
+ exports2.isFunction = isFunction2;
27507
+ function isPrimitive2(arg) {
27508
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
27509
+ typeof arg === "undefined";
27510
+ }
27511
+ exports2.isPrimitive = isPrimitive2;
27512
+ exports2.isBuffer = requireIsBufferBrowser();
27513
+ function objectToString2(o) {
27514
+ return Object.prototype.toString.call(o);
27515
+ }
27516
+ function pad2(n) {
27517
+ return n < 10 ? "0" + n.toString(10) : n.toString(10);
27518
+ }
27519
+ var months = [
27520
+ "Jan",
27521
+ "Feb",
27522
+ "Mar",
27523
+ "Apr",
27524
+ "May",
27525
+ "Jun",
27526
+ "Jul",
27527
+ "Aug",
27528
+ "Sep",
27529
+ "Oct",
27530
+ "Nov",
27531
+ "Dec"
27532
+ ];
27533
+ function timestamp() {
27534
+ var d2 = /* @__PURE__ */ new Date();
27535
+ var time = [
27536
+ pad2(d2.getHours()),
27537
+ pad2(d2.getMinutes()),
27538
+ pad2(d2.getSeconds())
27539
+ ].join(":");
27540
+ return [d2.getDate(), months[d2.getMonth()], time].join(" ");
27541
+ }
27542
+ exports2.log = function() {
27543
+ console.log("%s - %s", timestamp(), exports2.format.apply(exports2, arguments));
27544
+ };
27545
+ exports2.inherits = inherits_browserExports;
27546
+ exports2._extend = function(origin, add2) {
27547
+ if (!add2 || !isObject2(add2)) return origin;
27548
+ var keys2 = Object.keys(add2);
27549
+ var i = keys2.length;
27550
+ while (i--) {
27551
+ origin[keys2[i]] = add2[keys2[i]];
27552
+ }
27553
+ return origin;
27554
+ };
27555
+ function hasOwnProperty2(obj, prop2) {
27556
+ return Object.prototype.hasOwnProperty.call(obj, prop2);
27557
+ }
27558
+ var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
27559
+ exports2.promisify = function promisify2(original) {
27560
+ if (typeof original !== "function")
27561
+ throw new TypeError('The "original" argument must be of type Function');
27562
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
27563
+ var fn = original[kCustomPromisifiedSymbol];
27564
+ if (typeof fn !== "function") {
27565
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
27566
+ }
27567
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
27568
+ value: fn,
27569
+ enumerable: false,
27570
+ writable: false,
27571
+ configurable: true
27572
+ });
27573
+ return fn;
27574
+ }
27575
+ function fn() {
27576
+ var promiseResolve, promiseReject;
27577
+ var promise2 = new Promise(function(resolve2, reject) {
27578
+ promiseResolve = resolve2;
27579
+ promiseReject = reject;
27580
+ });
27581
+ var args2 = [];
27582
+ for (var i = 0; i < arguments.length; i++) {
27583
+ args2.push(arguments[i]);
27584
+ }
27585
+ args2.push(function(err2, value) {
27586
+ if (err2) {
27587
+ promiseReject(err2);
27588
+ } else {
27589
+ promiseResolve(value);
27590
+ }
27591
+ });
27592
+ try {
27593
+ original.apply(this, args2);
27594
+ } catch (err2) {
27595
+ promiseReject(err2);
27425
27596
  }
27597
+ return promise2;
27598
+ }
27599
+ Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
27600
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
27601
+ value: fn,
27602
+ enumerable: false,
27603
+ writable: false,
27604
+ configurable: true
27605
+ });
27606
+ return Object.defineProperties(
27607
+ fn,
27608
+ getOwnPropertyDescriptors(original)
27609
+ );
27610
+ };
27611
+ exports2.promisify.custom = kCustomPromisifiedSymbol;
27612
+ function callbackifyOnRejected(reason, cb) {
27613
+ if (!reason) {
27614
+ var newReason = new Error("Promise was rejected with a falsy value");
27615
+ newReason.reason = reason;
27616
+ reason = newReason;
27617
+ }
27618
+ return cb(reason);
27619
+ }
27620
+ function callbackify(original) {
27621
+ if (typeof original !== "function") {
27622
+ throw new TypeError('The "original" argument must be of type Function');
27623
+ }
27624
+ function callbackified() {
27625
+ var args2 = [];
27626
+ for (var i = 0; i < arguments.length; i++) {
27627
+ args2.push(arguments[i]);
27628
+ }
27629
+ var maybeCb = args2.pop();
27630
+ if (typeof maybeCb !== "function") {
27631
+ throw new TypeError("The last argument must be of type Function");
27632
+ }
27633
+ var self2 = this;
27634
+ var cb = function() {
27635
+ return maybeCb.apply(self2, arguments);
27636
+ };
27637
+ original.apply(this, args2).then(
27638
+ function(ret2) {
27639
+ define_process_default2.nextTick(cb.bind(null, null, ret2));
27640
+ },
27641
+ function(rej) {
27642
+ define_process_default2.nextTick(callbackifyOnRejected.bind(null, rej, cb));
27643
+ }
27644
+ );
27645
+ }
27646
+ Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
27647
+ Object.defineProperties(
27648
+ callbackified,
27649
+ getOwnPropertyDescriptors(original)
27426
27650
  );
27651
+ return callbackified;
27427
27652
  }
27428
- Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
27429
- Object.defineProperties(
27430
- callbackified,
27431
- getOwnPropertyDescriptors(original)
27432
- );
27433
- return callbackified;
27434
- }
27435
- exports2.callbackify = callbackify;
27436
- })(util$5);
27437
- const util$4 = /* @__PURE__ */ _mergeNamespaces({
27438
- __proto__: null
27439
- }, [util$5]);
27653
+ exports2.callbackify = callbackify;
27654
+ })(util$5);
27655
+ return util$5;
27656
+ }
27440
27657
  var buffer_list;
27441
27658
  var hasRequiredBuffer_list;
27442
27659
  function requireBuffer_list() {
@@ -27506,7 +27723,7 @@ function requireBuffer_list() {
27506
27723
  return (hint === "string" ? String : Number)(input);
27507
27724
  }
27508
27725
  var _require = requireBuffer(), Buffer2 = _require.Buffer;
27509
- var _require2 = util$5, inspect = _require2.inspect;
27726
+ var _require2 = requireUtil(), inspect = _require2.inspect;
27510
27727
  var custom = inspect && inspect.custom || "inspect";
27511
27728
  function copyBuffer(src, target, offset2) {
27512
27729
  Buffer2.prototype.copy.call(src, target, offset2);
@@ -29098,7 +29315,7 @@ function require_stream_readable() {
29098
29315
  function _isUint8Array(obj) {
29099
29316
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
29100
29317
  }
29101
- var debugUtil = util$5;
29318
+ var debugUtil = requireUtil();
29102
29319
  var debug2;
29103
29320
  if (debugUtil && debugUtil.debuglog) {
29104
29321
  debug2 = debugUtil.debuglog("stream");
@@ -29487,7 +29704,7 @@ function require_stream_readable() {
29487
29704
  var ret2 = dest.write(chunk);
29488
29705
  debug2("dest.write", ret2);
29489
29706
  if (ret2 === false) {
29490
- if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf2(state2.pipes, dest) !== -1) && !cleanedUp) {
29707
+ if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf(state2.pipes, dest) !== -1) && !cleanedUp) {
29491
29708
  debug2("false write response, pause", state2.awaitDrain);
29492
29709
  state2.awaitDrain++;
29493
29710
  }
@@ -29560,7 +29777,7 @@ function require_stream_readable() {
29560
29777
  });
29561
29778
  return this;
29562
29779
  }
29563
- var index2 = indexOf2(state2.pipes, dest);
29780
+ var index2 = indexOf(state2.pipes, dest);
29564
29781
  if (index2 === -1) return this;
29565
29782
  state2.pipes.splice(index2, 1);
29566
29783
  state2.pipesCount -= 1;
@@ -29796,7 +30013,7 @@ function require_stream_readable() {
29796
30013
  return from(Readable, iterable, opts);
29797
30014
  };
29798
30015
  }
29799
- function indexOf2(xs, x) {
30016
+ function indexOf(xs, x) {
29800
30017
  for (var i = 0, l = xs.length; i < l; i++) {
29801
30018
  if (xs[i] === x) return i;
29802
30019
  }
@@ -29964,7 +30181,7 @@ function requirePipeline() {
29964
30181
  callback(err2 || new ERR_STREAM_DESTROYED("pipe"));
29965
30182
  };
29966
30183
  }
29967
- function call2(fn) {
30184
+ function call(fn) {
29968
30185
  fn();
29969
30186
  }
29970
30187
  function pipe(from, to) {
@@ -29990,9 +30207,9 @@ function requirePipeline() {
29990
30207
  var writing = i > 0;
29991
30208
  return destroyer(stream, reading, writing, function(err2) {
29992
30209
  if (!error) error = err2;
29993
- if (err2) destroys.forEach(call2);
30210
+ if (err2) destroys.forEach(call);
29994
30211
  if (reading) return;
29995
- destroys.forEach(call2);
30212
+ destroys.forEach(call);
29996
30213
  callback(error);
29997
30214
  });
29998
30215
  });
@@ -33218,11 +33435,11 @@ function isInstanceOf(wat, base2) {
33218
33435
  function isVueViewModel(wat) {
33219
33436
  return !!(typeof wat === "object" && wat !== null && (wat.__isVue || wat._isVue));
33220
33437
  }
33221
- function truncate(str, max2 = 0) {
33222
- if (typeof str !== "string" || max2 === 0) {
33438
+ function truncate(str, max = 0) {
33439
+ if (typeof str !== "string" || max === 0) {
33223
33440
  return str;
33224
33441
  }
33225
- return str.length <= max2 ? str : `${str.slice(0, max2)}...`;
33442
+ return str.length <= max ? str : `${str.slice(0, max)}...`;
33226
33443
  }
33227
33444
  function safeJoin(input, delimiter) {
33228
33445
  if (!Array.isArray(input)) {
@@ -39602,15 +39819,15 @@ async function getContextFilesForUnitTestCommand(file) {
39602
39819
  const contextFiles = [];
39603
39820
  const excludePattern = "**/*{e2e,integration,node_modules,dist}*/**";
39604
39821
  const searchCurrentDirectoryOnly = true;
39605
- const max2 = 10;
39822
+ const max = 10;
39606
39823
  const sameNameTestPattern = getSearchPatternForTestFiles(file, !searchCurrentDirectoryOnly, true);
39607
39824
  const testWithSameName = await getWorkspaceFilesContext(sameNameTestPattern, excludePattern, 1);
39608
39825
  const currentDirPattern = getSearchPatternForTestFiles(file, searchCurrentDirectoryOnly);
39609
- const currentDirContext = await getWorkspaceFilesContext(currentDirPattern, excludePattern, max2);
39826
+ const currentDirContext = await getWorkspaceFilesContext(currentDirPattern, excludePattern, max);
39610
39827
  contextFiles.push(...testWithSameName, ...currentDirContext);
39611
39828
  if (!contextFiles.length) {
39612
39829
  const wsTestPattern = getSearchPatternForTestFiles(file, !searchCurrentDirectoryOnly);
39613
- const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max2 / 2);
39830
+ const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max / 2);
39614
39831
  contextFiles.push(...codebaseFiles);
39615
39832
  }
39616
39833
  return contextFiles.filter((f) => isValidTestFile(f.uri));
@@ -39792,13 +40009,13 @@ async function getContextFilesForAddingUnitTestCases(testFile) {
39792
40009
  const contextFiles = [];
39793
40010
  const excludePattern = "**/*{e2e,integration,node_modules,dist}*/**";
39794
40011
  const searchInCurrentDirectoryOnly = true;
39795
- const max2 = 10;
40012
+ const max = 10;
39796
40013
  const curerntDirPattern = getSearchPatternForTestFiles(testFile, searchInCurrentDirectoryOnly);
39797
- const currentDirContext = await getWorkspaceFilesContext(curerntDirPattern, excludePattern, max2);
40014
+ const currentDirContext = await getWorkspaceFilesContext(curerntDirPattern, excludePattern, max);
39798
40015
  contextFiles.push(...currentDirContext);
39799
40016
  if (!contextFiles.length) {
39800
40017
  const wsTestPattern = getSearchPatternForTestFiles(testFile, !searchInCurrentDirectoryOnly);
39801
- const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max2 / 2);
40018
+ const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max / 2);
39802
40019
  contextFiles.push(...codebaseFiles);
39803
40020
  }
39804
40021
  return contextFiles.filter((f) => isValidTestFile(f.uri));
@@ -45608,9 +45825,7 @@ function requireCjs() {
45608
45825
  })(cjs);
45609
45826
  return cjs;
45610
45827
  }
45611
- const worker_threads = {
45612
- hello: "world"
45613
- };
45828
+ const worker_threads = {};
45614
45829
  const worker_threads$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45615
45830
  __proto__: null,
45616
45831
  default: worker_threads
@@ -45629,7 +45844,7 @@ function requireLib() {
45629
45844
  const MurmurHash3 = requireImurmurhash();
45630
45845
  const { onExit } = requireCjs();
45631
45846
  const path2 = pathBrowserify;
45632
- const { promisify: promisify2 } = util$5;
45847
+ const { promisify: promisify2 } = requireUtil();
45633
45848
  const activeFiles = {};
45634
45849
  const threadId = function getId() {
45635
45850
  try {
@@ -48861,7 +49076,7 @@ class CommandsProvider {
48861
49076
  if (!isFileURI(uri2)) {
48862
49077
  throw new Error("history only supported on local file paths");
48863
49078
  }
48864
- const { getContextFileFromGitLog } = await import("./git-log-D7tTcqas.mjs");
49079
+ const { getContextFileFromGitLog } = await import("./git-log-B1KSeH79.mjs");
48865
49080
  return getContextFileFromGitLog(uri2, options);
48866
49081
  }
48867
49082
  dispose() {
@@ -49964,8 +50179,8 @@ var ngram = function(str, size) {
49964
50179
  return ngramz;
49965
50180
  };
49966
50181
  var stringNgram = ngram;
49967
- var edgeNGrams = function(str, min, max2, delta, ifn, idx) {
49968
- var dlta = delta || 2, eg, egs = [], imax = Math.min(max2 || 8, str.length) + 1, start2 = min || 2;
50182
+ var edgeNGrams = function(str, min, max, delta, ifn, idx) {
50183
+ var dlta = delta || 2, eg, egs = [], imax = Math.min(max || 8, str.length) + 1, start2 = min || 2;
49969
50184
  for (var i = start2; i < imax; i += dlta) {
49970
50185
  eg = str.slice(0, i);
49971
50186
  egs.push(eg);
@@ -50229,9 +50444,9 @@ const sentenceWiseImportance = function(rdd) {
50229
50444
  sentenceWiseWeights[e] += pgw.weight;
50230
50445
  });
50231
50446
  });
50232
- let max2 = Math.max(...sentenceWiseWeights);
50233
- if (max2 === 0) max2 = 1;
50234
- return sentenceWiseWeights.map((e, i) => ({ index: i, importance: +(e / max2).toFixed(4) }));
50447
+ let max = Math.max(...sentenceWiseWeights);
50448
+ if (max === 0) max = 1;
50449
+ return sentenceWiseWeights.map((e, i) => ({ index: i, importance: +(e / max).toFixed(4) }));
50235
50450
  };
50236
50451
  var sentenceWiseImportance_1 = sentenceWiseImportance;
50237
50452
  var sort4FT$1 = sort4FT$2;
@@ -50789,7 +51004,7 @@ var doc = function(docData, addons) {
50789
51004
  api.filter = (f) => selFilter(f, selectedTokens, itemToken, colSelectedTokens);
50790
51005
  api.itemAt = (k) => selGetItemAt(k, selectedTokens, itemToken);
50791
51006
  api.length = () => selectedTokens.length;
50792
- api.out = (f, g2) => selTokensOut(selectedTokens, docData, f, g2, addons);
51007
+ api.out = (f, g) => selTokensOut(selectedTokens, docData, f, g, addons);
50793
51008
  return api;
50794
51009
  };
50795
51010
  colTokens = function(start2, end) {
@@ -50799,7 +51014,7 @@ var doc = function(docData, addons) {
50799
51014
  api.filter = (f) => colFilter(f, start2, end, itemToken, colSelectedTokens);
50800
51015
  api.itemAt = (k) => colGetItemAt(k, start2, end, itemToken);
50801
51016
  api.length = () => end - start2 + 1;
50802
- api.out = (f, g2) => colTokensOut(start2, end, docData, f, g2, addons);
51017
+ api.out = (f, g) => colTokensOut(start2, end, docData, f, g, addons);
50803
51018
  return api;
50804
51019
  };
50805
51020
  };
@@ -50819,7 +51034,7 @@ var doc = function(docData, addons) {
50819
51034
  api.filter = (f) => selFilter(f, selectedEntities, itemEntity, colSelectedEntities);
50820
51035
  api.itemAt = (k) => selGetItemAt(k, selectedEntities, itemEntity);
50821
51036
  api.length = () => selectedEntities.length;
50822
- api.out = (f, g2) => selEntitiesOut(selectedEntities, entities, docData, f, g2);
51037
+ api.out = (f, g) => selEntitiesOut(selectedEntities, entities, docData, f, g);
50823
51038
  return api;
50824
51039
  };
50825
51040
  colEntities = function() {
@@ -50828,7 +51043,7 @@ var doc = function(docData, addons) {
50828
51043
  api.filter = (f) => colFilter(f, 0, entities.length - 1, itemEntity, colSelectedEntities);
50829
51044
  api.itemAt = (k) => colGetItemAt(k, 0, entities.length - 1, itemEntity);
50830
51045
  api.length = () => entities.length;
50831
- api.out = (f, g2) => colEntitiesOut(entities, docData, f, g2);
51046
+ api.out = (f, g) => colEntitiesOut(entities, docData, f, g);
50832
51047
  return api;
50833
51048
  };
50834
51049
  itemCustomEntity = function(index2) {
@@ -50847,7 +51062,7 @@ var doc = function(docData, addons) {
50847
51062
  api.filter = (f) => selFilter(f, selectedCustomEntities, itemCustomEntity, colSelectedCustomEntities);
50848
51063
  api.itemAt = (k) => selGetItemAt(k, selectedCustomEntities, itemCustomEntity);
50849
51064
  api.length = () => selectedCustomEntities.length;
50850
- api.out = (f, g2) => selEntitiesOut(selectedCustomEntities, customEntities, docData, f, g2);
51065
+ api.out = (f, g) => selEntitiesOut(selectedCustomEntities, customEntities, docData, f, g);
50851
51066
  return api;
50852
51067
  };
50853
51068
  colCustomEntities = function() {
@@ -50856,7 +51071,7 @@ var doc = function(docData, addons) {
50856
51071
  api.filter = (f) => colFilter(f, 0, customEntities.length - 1, itemCustomEntity, colSelectedCustomEntities);
50857
51072
  api.itemAt = (k) => colGetItemAt(k, 0, customEntities.length - 1, itemCustomEntity);
50858
51073
  api.length = () => customEntities.length;
50859
- api.out = (f, g2) => colEntitiesOut(customEntities, docData, f, g2);
51074
+ api.out = (f, g) => colEntitiesOut(customEntities, docData, f, g);
50860
51075
  return api;
50861
51076
  };
50862
51077
  itemSentence = function(index2) {
@@ -51600,9 +51815,9 @@ var simpleFSM = function(cache2, token2Ignore) {
51600
51815
  for (let i = 0; i < patterns.length; i += 1) {
51601
51816
  const pi = patterns[i];
51602
51817
  if (typeof pi.pattern === "string") {
51603
- const all2 = composePatterns(pi.pattern);
51604
- for (let j = 0; j < all2.length; j += 1)
51605
- cp.push({ name: pi.name, pattern: all2[j], mark: pi.mark, customProperty: pi.customProperty });
51818
+ const all = composePatterns(pi.pattern);
51819
+ for (let j = 0; j < all.length; j += 1)
51820
+ cp.push({ name: pi.name, pattern: all[j], mark: pi.mark, customProperty: pi.customProperty });
51606
51821
  } else cp.push({ name: pi.name, pattern: pi.pattern, mark: pi.mark, customProperty: pi.customProperty });
51607
51822
  }
51608
51823
  cp.sort((a, b) => b.pattern.length - a.pattern.length);
@@ -148757,7 +148972,7 @@ function startOrEndOverlapsLineRange(uriA, lineRangeA, uriB, lineRangeB) {
148757
148972
  return lineRangeA.start >= lineRangeB.start && lineRangeA.start <= lineRangeB.end || lineRangeA.end >= lineRangeB.start && lineRangeA.end <= lineRangeB.end;
148758
148973
  }
148759
148974
  var validator$2 = {};
148760
- var util$3 = {};
148975
+ var util$4 = {};
148761
148976
  (function(exports2) {
148762
148977
  const nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
148763
148978
  const nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
@@ -148811,8 +149026,8 @@ var util$3 = {};
148811
149026
  exports2.isName = isName;
148812
149027
  exports2.getAllMatches = getAllMatches;
148813
149028
  exports2.nameRegexp = nameRegexp;
148814
- })(util$3);
148815
- const util$2 = util$3;
149029
+ })(util$4);
149030
+ const util$3 = util$4;
148816
149031
  const defaultOptions$2 = {
148817
149032
  allowBooleanAttributes: false,
148818
149033
  //A tag can have attributes without any value
@@ -149034,7 +149249,7 @@ function readAttributeStr(xmlData, i) {
149034
149249
  }
149035
149250
  const validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
149036
149251
  function validateAttributeString(attrStr, options) {
149037
- const matches = util$2.getAllMatches(attrStr, validAttrStrRegxp);
149252
+ const matches = util$3.getAllMatches(attrStr, validAttrStrRegxp);
149038
149253
  const attrNames = {};
149039
149254
  for (let i = 0; i < matches.length; i++) {
149040
149255
  if (matches[i][1].length === 0) {
@@ -149099,10 +149314,10 @@ function getErrorObject(code, message, lineNumber) {
149099
149314
  };
149100
149315
  }
149101
149316
  function validateAttrName(attrName) {
149102
- return util$2.isName(attrName);
149317
+ return util$3.isName(attrName);
149103
149318
  }
149104
149319
  function validateTagName(tagname) {
149105
- return util$2.isName(tagname);
149320
+ return util$3.isName(tagname);
149106
149321
  }
149107
149322
  function getLineNumberForPosition(xmlData, index2) {
149108
149323
  const lines2 = xmlData.substring(0, index2).split(/\r?\n/);
@@ -149185,7 +149400,7 @@ class XmlNode {
149185
149400
  }
149186
149401
  }
149187
149402
  var xmlNode$1 = XmlNode;
149188
- const util$1 = util$3;
149403
+ const util$2 = util$4;
149189
149404
  function readDocType$1(xmlData, i) {
149190
149405
  const entities = {};
149191
149406
  if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") {
@@ -149271,7 +149486,7 @@ function isNotation(xmlData, i) {
149271
149486
  return false;
149272
149487
  }
149273
149488
  function validateEntityName(name2) {
149274
- if (util$1.isName(name2))
149489
+ if (util$2.isName(name2))
149275
149490
  return name2;
149276
149491
  else
149277
149492
  throw new Error(`Invalid entity name ${name2}`);
@@ -149348,11 +149563,11 @@ function trimZeros(numStr) {
149348
149563
  return numStr;
149349
149564
  }
149350
149565
  var strnum = toNumber$1;
149351
- const util = util$3;
149566
+ const util$1 = util$4;
149352
149567
  const xmlNode = xmlNode$1;
149353
149568
  const readDocType = DocTypeReader;
149354
149569
  const toNumber = strnum;
149355
- "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp);
149570
+ "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util$1.nameRegexp);
149356
149571
  let OrderedObjParser$1 = class OrderedObjParser2 {
149357
149572
  constructor(options) {
149358
149573
  this.options = options;
@@ -149444,7 +149659,7 @@ function resolveNameSpace(tagname) {
149444
149659
  const attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
149445
149660
  function buildAttributesMap(attrStr, jPath, tagName) {
149446
149661
  if (!this.options.ignoreAttributes && typeof attrStr === "string") {
149447
- const matches = util.getAllMatches(attrStr, attrsRegx);
149662
+ const matches = util$1.getAllMatches(attrStr, attrsRegx);
149448
149663
  const len = matches.length;
149449
149664
  const attrs = {};
149450
149665
  for (let i = 0; i < len; i++) {
@@ -149815,7 +150030,7 @@ function parseValue(val2, shouldParse, options) {
149815
150030
  else if (newval === "false") return false;
149816
150031
  else return toNumber(val2, options);
149817
150032
  } else {
149818
- if (util.isExist(val2)) {
150033
+ if (util$1.isExist(val2)) {
149819
150034
  return val2;
149820
150035
  } else {
149821
150036
  return "";
@@ -152577,8 +152792,8 @@ function isAllNewLineChars(text) {
152577
152792
  function trimNewLineCharsFromString(text) {
152578
152793
  return text.replace(/^(?:\r\n|\n)+|(?:\r\n|\n)+$/g, "");
152579
152794
  }
152580
- function clip(line, min, max2) {
152581
- return Math.max(Math.min(line, max2), min);
152795
+ function clip(line, min, max) {
152796
+ return Math.max(Math.min(line, max), min);
152582
152797
  }
152583
152798
  const LINT_ERRORS_TAG_OPEN = ps`<lint_errors>`;
152584
152799
  const LINT_ERRORS_TAG_CLOSE = ps`</lint_errors>`;
@@ -153448,10 +153663,10 @@ class DefaultDecorator {
153448
153663
  }
153449
153664
  const lineNumbers = addedLinesInfo.map((d2) => d2.afterLine);
153450
153665
  const min = Math.min(...lineNumbers);
153451
- const max2 = Math.max(...lineNumbers);
153666
+ const max = Math.max(...lineNumbers);
153452
153667
  for (const unchangedLine of unchangedLines) {
153453
153668
  const lineNumber = unchangedLine.lineNumber;
153454
- if (lineNumber < min || lineNumber > max2) {
153669
+ if (lineNumber < min || lineNumber > max) {
153455
153670
  continue;
153456
153671
  }
153457
153672
  addedLinesInfo.push({
@@ -154406,7 +154621,7 @@ var fuzzysort$1 = { exports: {} };
154406
154621
  };
154407
154622
  var go2 = (search2, targets, options) => {
154408
154623
  if (search2 == "farzher") return [{ target: "farzher was here (^-^*)/", score: 0, _indexes: [0], obj: targets ? targets[0] : NULL }];
154409
- if (!search2) return options && options.all ? all2(search2, targets, options) : noResults;
154624
+ if (!search2) return options && options.all ? all(search2, targets, options) : noResults;
154410
154625
  var preparedSearch = getPreparedSearch(search2);
154411
154626
  var searchBitflags = preparedSearch.bitflags;
154412
154627
  preparedSearch.containsSpace;
@@ -154600,7 +154815,7 @@ var fuzzysort$1 = { exports: {} };
154600
154815
  preparedSearchCache.set(search2, searchPrepared);
154601
154816
  return searchPrepared;
154602
154817
  };
154603
- var all2 = (search2, targets, options) => {
154818
+ var all = (search2, targets, options) => {
154604
154819
  var results = [];
154605
154820
  results.total = targets.length;
154606
154821
  var limit = options && options.limit || INT_MAX;
@@ -154839,16 +155054,16 @@ var fuzzysort$1 = { exports: {} };
154839
155054
  var matchesSimple = [];
154840
155055
  var matchesStrict = [];
154841
155056
  var defaultScoreFn = (a) => {
154842
- var max2 = INT_MIN;
155057
+ var max = INT_MIN;
154843
155058
  var len = a.length;
154844
155059
  for (var i = 0; i < len; ++i) {
154845
155060
  var result = a[i];
154846
155061
  if (result === NULL) continue;
154847
155062
  var score = result.score;
154848
- if (score > max2) max2 = score;
155063
+ if (score > max) max = score;
154849
155064
  }
154850
- if (max2 === INT_MIN) return NULL;
154851
- return max2;
155065
+ if (max === INT_MIN) return NULL;
155066
+ return max;
154852
155067
  };
154853
155068
  var getValue2 = (obj, prop2) => {
154854
155069
  var tmp = obj[prop2];
@@ -156021,11 +156236,11 @@ const SMALL_A_RUNE = "a".codePointAt(0);
156021
156236
  const SMALL_Z_RUNE = "z".codePointAt(0);
156022
156237
  const NUMERAL_ZERO_RUNE = "0".codePointAt(0);
156023
156238
  const NUMERAL_NINE_RUNE = "9".codePointAt(0);
156024
- function indexAt(index2, max2, forward) {
156239
+ function indexAt(index2, max, forward) {
156025
156240
  if (forward) {
156026
156241
  return index2;
156027
156242
  }
156028
- return max2 - index2 - 1;
156243
+ return max - index2 - 1;
156029
156244
  }
156030
156245
  const SCORE_MATCH = 16, SCORE_GAP_START = -3, SCORE_GAP_EXTENTION = -1, BONUS_BOUNDARY = SCORE_MATCH / 2, BONUS_NON_WORD = SCORE_MATCH / 2, BONUS_CAMEL_123 = BONUS_BOUNDARY + SCORE_GAP_EXTENTION, BONUS_CONSECUTIVE = -(SCORE_GAP_START + SCORE_GAP_EXTENTION), BONUS_FIRST_CHAR_MULTIPLIER = 2;
156031
156246
  function createPosSet(withPos) {
@@ -157095,7 +157310,7 @@ async function getLocalCommands(input) {
157095
157310
  const { query: query2, isUnifiedPromptsEnabled, remoteBuiltinPrompts } = input;
157096
157311
  if (remoteBuiltinPrompts) {
157097
157312
  const remoteStandardPrompts = await graphqlClient.queryBuiltinPrompts({ query: query2 });
157098
- return remoteStandardPrompts.map((prompt) => ({ ...prompt, actionType: "prompt" }));
157313
+ return remoteStandardPrompts.map((prompt) => ({ ...prompt, actionType: "prompt", builtin: true }));
157099
157314
  }
157100
157315
  const codyCommands = getCodyCommandList();
157101
157316
  const allCommands = !clientCapabilities().isCodyWeb ? (
@@ -157389,7 +157604,7 @@ function parseMentionURI(uri2) {
157389
157604
  }
157390
157605
  }
157391
157606
  async function execFileAsync(program2, args2, { cwd }) {
157392
- const { promisify: promisify2 } = await Promise.resolve().then(() => util$4);
157607
+ const { promisify: promisify2 } = await Promise.resolve().then(() => util);
157393
157608
  const { execFile: execFile2 } = await Promise.resolve().then(() => child_process);
157394
157609
  return promisify2(execFile2)(program2, args2, { cwd });
157395
157610
  }
@@ -159793,8 +160008,12 @@ async function warnIfOpenCtxExtensionConflict() {
159793
160008
  );
159794
160009
  await commands$1.executeCommand("workbench.extensions.action.showExtensionsWithIds", [[ext2.id]]);
159795
160010
  }
160011
+ var utilExports = requireUtil();
160012
+ const util = /* @__PURE__ */ _mergeNamespaces({
160013
+ __proto__: null
160014
+ }, [utilExports]);
159796
160015
  var define_process_default$1 = { env: {} };
159797
- const execAsync = util$5.promisify(exec);
160016
+ const execAsync = utilExports.promisify(exec);
159798
160017
  const config = workspace.getConfiguration("cody");
159799
160018
  const isDisabled = Boolean(config.get("context.shell.disabled"));
159800
160019
  const OUTPUT_WRAPPER = `
@@ -159940,8 +160159,8 @@ function replaceSpace() {
159940
160159
  }
159941
160160
  function trimFactory(replace) {
159942
160161
  return dropOrReplace;
159943
- function dropOrReplace(value, index2, all2) {
159944
- return index2 === 0 || index2 + value.length === all2.length ? "" : replace(value);
160162
+ function dropOrReplace(value, index2, all) {
160163
+ return index2 === 0 || index2 + value.length === all.length ? "" : replace(value);
159945
160164
  }
159946
160165
  }
159947
160166
  const own$1 = {}.hasOwnProperty;
@@ -160126,10 +160345,10 @@ function francAll(value, options = {}) {
160126
160345
  }
160127
160346
  function normalize(value, distances) {
160128
160347
  const min = distances[0][1];
160129
- const max2 = value.length * MAX_DIFFERENCE - min;
160348
+ const max = value.length * MAX_DIFFERENCE - min;
160130
160349
  let index2 = -1;
160131
160350
  while (++index2 < distances.length) {
160132
- distances[index2][1] = 1 - (distances[index2][1] - min) / max2 || 0;
160351
+ distances[index2][1] = 1 - (distances[index2][1] - min) / max || 0;
160133
160352
  }
160134
160353
  return distances;
160135
160354
  }
@@ -173129,7 +173348,7 @@ async function registerDebugCommands(context2, disposables) {
173129
173348
  }
173130
173349
  async function tryRegisterTutorial(context2, disposables) {
173131
173350
  if (!isRunningInsideAgent()) {
173132
- const { registerInteractiveTutorial } = await import("./index-BSvnyoZl.mjs");
173351
+ const { registerInteractiveTutorial } = await import("./index-CPZYEb47.mjs");
173133
173352
  registerInteractiveTutorial(context2).then((disposable) => disposables.push(...disposable));
173134
173353
  }
173135
173354
  }