/*! SES sources included by LavaMoat. Do not optimize or minify. */
;
// ses@1.15.0
(functors => options => {
  'use strict';

  const {
    Map,
    Object,
    ReferenceError,
    Reflect,
    TypeError,
  } = globalThis;
  const {
    create,
    defineProperties,
    defineProperty,
    freeze,
    fromEntries,
    getOwnPropertyDescriptors,
    getOwnPropertyNames,
    keys,
  } = Object;
  const { get, set } = Reflect;

  const {
  } = options || {};



  const cell = (name, value = undefined) => {
    const observers = [];
    return freeze({
      get: freeze(() => {
        return value;
      }),
      set: freeze((newValue) => {
        value = newValue;
        for (const observe of observers) {
          observe(value);
        }
      }),
      observe: freeze((observe) => {
        observers.push(observe);
        observe(value);
      }),
      enumerable: true,
    });
  };

  const cells = [
    {
      globalThis: cell("globalThis"),
      Array: cell("Array"),
      ArrayBuffer: cell("ArrayBuffer"),
      Date: cell("Date"),
      FinalizationRegistry: cell("FinalizationRegistry"),
      Float32Array: cell("Float32Array"),
      JSON: cell("JSON"),
      Map: cell("Map"),
      Math: cell("Math"),
      Number: cell("Number"),
      Object: cell("Object"),
      Promise: cell("Promise"),
      Proxy: cell("Proxy"),
      Reflect: cell("Reflect"),
      FERAL_REG_EXP: cell("FERAL_REG_EXP"),
      Set: cell("Set"),
      String: cell("String"),
      Symbol: cell("Symbol"),
      Uint8Array: cell("Uint8Array"),
      WeakMap: cell("WeakMap"),
      WeakSet: cell("WeakSet"),
      FERAL_ERROR: cell("FERAL_ERROR"),
      RangeError: cell("RangeError"),
      ReferenceError: cell("ReferenceError"),
      SyntaxError: cell("SyntaxError"),
      TypeError: cell("TypeError"),
      AggregateError: cell("AggregateError"),
      assign: cell("assign"),
      create: cell("create"),
      defineProperties: cell("defineProperties"),
      entries: cell("entries"),
      freeze: cell("freeze"),
      getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
      getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
      getOwnPropertyNames: cell("getOwnPropertyNames"),
      getPrototypeOf: cell("getPrototypeOf"),
      is: cell("is"),
      isFrozen: cell("isFrozen"),
      isSealed: cell("isSealed"),
      isExtensible: cell("isExtensible"),
      keys: cell("keys"),
      objectPrototype: cell("objectPrototype"),
      seal: cell("seal"),
      preventExtensions: cell("preventExtensions"),
      setPrototypeOf: cell("setPrototypeOf"),
      values: cell("values"),
      fromEntries: cell("fromEntries"),
      speciesSymbol: cell("speciesSymbol"),
      toStringTagSymbol: cell("toStringTagSymbol"),
      iteratorSymbol: cell("iteratorSymbol"),
      matchAllSymbol: cell("matchAllSymbol"),
      replaceSymbol: cell("replaceSymbol"),
      unscopablesSymbol: cell("unscopablesSymbol"),
      symbolKeyFor: cell("symbolKeyFor"),
      symbolFor: cell("symbolFor"),
      isInteger: cell("isInteger"),
      stringifyJson: cell("stringifyJson"),
      defineProperty: cell("defineProperty"),
      apply: cell("apply"),
      construct: cell("construct"),
      reflectGet: cell("reflectGet"),
      reflectGetOwnPropertyDescriptor: cell("reflectGetOwnPropertyDescriptor"),
      reflectHas: cell("reflectHas"),
      reflectIsExtensible: cell("reflectIsExtensible"),
      ownKeys: cell("ownKeys"),
      reflectPreventExtensions: cell("reflectPreventExtensions"),
      reflectSet: cell("reflectSet"),
      isArray: cell("isArray"),
      arrayPrototype: cell("arrayPrototype"),
      arrayBufferPrototype: cell("arrayBufferPrototype"),
      mapPrototype: cell("mapPrototype"),
      proxyRevocable: cell("proxyRevocable"),
      regexpPrototype: cell("regexpPrototype"),
      setPrototype: cell("setPrototype"),
      stringPrototype: cell("stringPrototype"),
      weakmapPrototype: cell("weakmapPrototype"),
      weaksetPrototype: cell("weaksetPrototype"),
      functionPrototype: cell("functionPrototype"),
      promisePrototype: cell("promisePrototype"),
      generatorPrototype: cell("generatorPrototype"),
      iteratorPrototype: cell("iteratorPrototype"),
      typedArrayPrototype: cell("typedArrayPrototype"),
      uncurryThis: cell("uncurryThis"),
      hasOwn: cell("hasOwn"),
      arrayFilter: cell("arrayFilter"),
      arrayForEach: cell("arrayForEach"),
      arrayIncludes: cell("arrayIncludes"),
      arrayJoin: cell("arrayJoin"),
      arrayMap: cell("arrayMap"),
      arrayFlatMap: cell("arrayFlatMap"),
      arrayPop: cell("arrayPop"),
      arrayPush: cell("arrayPush"),
      arraySlice: cell("arraySlice"),
      arraySome: cell("arraySome"),
      arraySort: cell("arraySort"),
      iterateArray: cell("iterateArray"),
      arrayBufferSlice: cell("arrayBufferSlice"),
      arrayBufferGetByteLength: cell("arrayBufferGetByteLength"),
      typedArraySet: cell("typedArraySet"),
      mapSet: cell("mapSet"),
      mapGet: cell("mapGet"),
      mapHas: cell("mapHas"),
      mapDelete: cell("mapDelete"),
      mapEntries: cell("mapEntries"),
      iterateMap: cell("iterateMap"),
      setAdd: cell("setAdd"),
      setDelete: cell("setDelete"),
      setForEach: cell("setForEach"),
      setHas: cell("setHas"),
      iterateSet: cell("iterateSet"),
      regexpExec: cell("regexpExec"),
      regexpReplace: cell("regexpReplace"),
      matchAllRegExp: cell("matchAllRegExp"),
      sealRegexp: cell("sealRegexp"),
      stringEndsWith: cell("stringEndsWith"),
      stringIncludes: cell("stringIncludes"),
      stringIndexOf: cell("stringIndexOf"),
      stringMatch: cell("stringMatch"),
      stringSearch: cell("stringSearch"),
      stringSlice: cell("stringSlice"),
      stringSplit: cell("stringSplit"),
      stringStartsWith: cell("stringStartsWith"),
      iterateString: cell("iterateString"),
      weakmapDelete: cell("weakmapDelete"),
      weakmapGet: cell("weakmapGet"),
      weakmapHas: cell("weakmapHas"),
      weakmapSet: cell("weakmapSet"),
      weaksetAdd: cell("weaksetAdd"),
      weaksetHas: cell("weaksetHas"),
      functionToString: cell("functionToString"),
      functionBind: cell("functionBind"),
      generatorNext: cell("generatorNext"),
      generatorThrow: cell("generatorThrow"),
      promiseAll: cell("promiseAll"),
      promiseCatch: cell("promiseCatch"),
      promiseThen: cell("promiseThen"),
      finalizationRegistryRegister: cell("finalizationRegistryRegister"),
      finalizationRegistryUnregister: cell("finalizationRegistryUnregister"),
      isPrimitive: cell("isPrimitive"),
      isError: cell("isError"),
      identity: cell("identity"),
      FERAL_EVAL: cell("FERAL_EVAL"),
      FERAL_FUNCTION: cell("FERAL_FUNCTION"),
      noEvalEvaluate: cell("noEvalEvaluate"),
      FERAL_STACK_GETTER: cell("FERAL_STACK_GETTER"),
      FERAL_STACK_SETTER: cell("FERAL_STACK_SETTER"),
      AsyncGeneratorFunctionInstance: cell("AsyncGeneratorFunctionInstance"),
    },
    {
    },
    {
      makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
      getEnvironmentOption: cell("getEnvironmentOption"),
      getEnvironmentOptionsList: cell("getEnvironmentOptionsList"),
      environmentOptionsListHas: cell("environmentOptionsListHas"),
    },
    {
    },
    {
      isBufferImmutable: cell("isBufferImmutable"),
      sliceBufferToImmutable: cell("sliceBufferToImmutable"),
      optTransferBufferToImmutable: cell("optTransferBufferToImmutable"),
    },
    {
    },
    {
    },
    {
      an: cell("an"),
      bestEffortStringify: cell("bestEffortStringify"),
      enJoin: cell("enJoin"),
    },
    {
    },
    {
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeNoteLogArgsArrayKit: cell("makeNoteLogArgsArrayKit"),
    },
    {
      q: cell("q"),
      b: cell("b"),
      X: cell("X"),
      unredactedDetails: cell("unredactedDetails"),
      makeError: cell("makeError"),
      annotateError: cell("annotateError"),
      loggedErrorHandler: cell("loggedErrorHandler"),
      assert: cell("assert"),
      assertEqual: cell("assertEqual"),
      sanitizeError: cell("sanitizeError"),
      makeAssert: cell("makeAssert"),
    },
    {
      isTypedArray: cell("isTypedArray"),
      makeHardener: cell("makeHardener"),
    },
    {
      cauterizeProperty: cell("cauterizeProperty"),
    },
    {
      NativeErrors: cell("NativeErrors"),
      constantProperties: cell("constantProperties"),
      universalPropertyNames: cell("universalPropertyNames"),
      initialGlobalPropertyNames: cell("initialGlobalPropertyNames"),
      sharedGlobalPropertyNames: cell("sharedGlobalPropertyNames"),
      uniqueGlobalPropertyNames: cell("uniqueGlobalPropertyNames"),
      FunctionInstance: cell("FunctionInstance"),
      AsyncFunctionInstance: cell("AsyncFunctionInstance"),
      isAccessorPermit: cell("isAccessorPermit"),
      permitted: cell("permitted"),
    },
    {
      makeIntrinsicsCollector: cell("makeIntrinsicsCollector"),
      getGlobalIntrinsics: cell("getGlobalIntrinsics"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      minEnablements: cell("minEnablements"),
      moderateEnablements: cell("moderateEnablements"),
      severeEnablements: cell("severeEnablements"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      makeEvalFunction: cell("makeEvalFunction"),
    },
    {
      makeFunctionConstructor: cell("makeFunctionConstructor"),
    },
    {
      setGlobalObjectSymbolUnscopables: cell("setGlobalObjectSymbolUnscopables"),
      setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
      setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
      setGlobalObjectEvaluators: cell("setGlobalObjectEvaluators"),
    },
    {
      alwaysThrowHandler: cell("alwaysThrowHandler"),
      strictScopeTerminatorHandler: cell("strictScopeTerminatorHandler"),
      strictScopeTerminator: cell("strictScopeTerminator"),
    },
    {
      createSloppyGlobalsScopeTerminator: cell("createSloppyGlobalsScopeTerminator"),
    },
    {
      makeEvalScopeKit: cell("makeEvalScopeKit"),
    },
    {
      getSourceURL: cell("getSourceURL"),
    },
    {
      rejectHtmlComments: cell("rejectHtmlComments"),
      evadeHtmlCommentTest: cell("evadeHtmlCommentTest"),
      rejectImportExpressions: cell("rejectImportExpressions"),
      evadeImportExpressionTest: cell("evadeImportExpressionTest"),
      rejectSomeDirectEvalExpressions: cell("rejectSomeDirectEvalExpressions"),
      mandatoryTransforms: cell("mandatoryTransforms"),
      applyTransforms: cell("applyTransforms"),
      transforms: cell("transforms"),
    },
    {
      isValidIdentifierName: cell("isValidIdentifierName"),
      getScopeConstants: cell("getScopeConstants"),
    },
    {
      makeEvaluate: cell("makeEvaluate"),
    },
    {
      makeSafeEvaluator: cell("makeSafeEvaluator"),
    },
    {
      tameFunctionToString: cell("tameFunctionToString"),
    },
    {
      tameDomains: cell("tameDomains"),
    },
    {
      tameModuleSource: cell("tameModuleSource"),
    },
    {
      consoleLevelMethods: cell("consoleLevelMethods"),
      consoleOtherMethods: cell("consoleOtherMethods"),
      makeLoggingConsoleKit: cell("makeLoggingConsoleKit"),
      pumpLogToConsole: cell("pumpLogToConsole"),
      makeCausalConsole: cell("makeCausalConsole"),
      defineCausalConsoleFromLogger: cell("defineCausalConsoleFromLogger"),
      filterConsole: cell("filterConsole"),
    },
    {
      makeRejectionHandlers: cell("makeRejectionHandlers"),
    },
    {
      tameConsole: cell("tameConsole"),
    },
    {
      filterFileName: cell("filterFileName"),
      shortenCallSiteString: cell("shortenCallSiteString"),
      tameV8ErrorConstructor: cell("tameV8ErrorConstructor"),
    },
    {
      default: cell("default"),
    },
    {
      makeAlias: cell("makeAlias"),
      load: cell("load"),
      loadNow: cell("loadNow"),
    },
    {
      deferExports: cell("deferExports"),
      getDeferredExports: cell("getDeferredExports"),
    },
    {
      provideCompartmentEvaluator: cell("provideCompartmentEvaluator"),
      compartmentEvaluate: cell("compartmentEvaluate"),
    },
    {
      makeVirtualModuleInstance: cell("makeVirtualModuleInstance"),
      makeModuleInstance: cell("makeModuleInstance"),
    },
    {
      link: cell("link"),
      instantiate: cell("instantiate"),
    },
    {
      InertCompartment: cell("InertCompartment"),
      CompartmentPrototype: cell("CompartmentPrototype"),
      compartmentOptions: cell("compartmentOptions"),
      makeCompartmentConstructor: cell("makeCompartmentConstructor"),
    },
    {
      getAnonymousIntrinsics: cell("getAnonymousIntrinsics"),
    },
    {
      tameHarden: cell("tameHarden"),
    },
    {
      tameSymbolConstructor: cell("tameSymbolConstructor"),
    },
    {
      tameFauxDataProperty: cell("tameFauxDataProperty"),
      tameFauxDataProperties: cell("tameFauxDataProperties"),
    },
    {
      tameRegeneratorRuntime: cell("tameRegeneratorRuntime"),
    },
    {
      shimArrayBufferTransfer: cell("shimArrayBufferTransfer"),
    },
    {
      chooseReporter: cell("chooseReporter"),
      reportInGroup: cell("reportInGroup"),
    },
    {
      repairIntrinsics: cell("repairIntrinsics"),
    },
    {
    },
    {
    },
    {
    },
    {
    },
    {
    },
  ];

  defineProperties(cells[3], getOwnPropertyDescriptors(cells[2]));

  defineProperties(cells[11], {"makeCacheMapKit": { value: cells[10]["makeCacheMapKit"] } });

  const namespaces = cells.map(cells => freeze(create(null, {
    ...cells,
    // Make this appear like an ESM module namespace object.
    [Symbol.toStringTag]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  })));

  for (let index = 0; index < namespaces.length; index += 1) {
    cells[index]['*'] = cell('*', namespaces[index]);
  }

function observeImports(map, importName, importIndex) {
  for (const [name, observers] of map.get(importName)) {
    const cell = cells[importIndex][name];
    if (cell === undefined) {
      throw new ReferenceError(`Cannot import name ${name} (has ${Object.getOwnPropertyNames(cells[importIndex]).join(', ')})`);
    }
    for (const observer of observers) {
      cell.observe(observer);
    }
  }
}

  functors[0]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      universalThis: cells[0].globalThis.set,
      Array: cells[0].Array.set,
      ArrayBuffer: cells[0].ArrayBuffer.set,
      Date: cells[0].Date.set,
      FinalizationRegistry: cells[0].FinalizationRegistry.set,
      Float32Array: cells[0].Float32Array.set,
      JSON: cells[0].JSON.set,
      Map: cells[0].Map.set,
      Math: cells[0].Math.set,
      Number: cells[0].Number.set,
      Object: cells[0].Object.set,
      Promise: cells[0].Promise.set,
      Proxy: cells[0].Proxy.set,
      Reflect: cells[0].Reflect.set,
      FERAL_REG_EXP: cells[0].FERAL_REG_EXP.set,
      Set: cells[0].Set.set,
      String: cells[0].String.set,
      Symbol: cells[0].Symbol.set,
      Uint8Array: cells[0].Uint8Array.set,
      WeakMap: cells[0].WeakMap.set,
      WeakSet: cells[0].WeakSet.set,
      FERAL_ERROR: cells[0].FERAL_ERROR.set,
      RangeError: cells[0].RangeError.set,
      ReferenceError: cells[0].ReferenceError.set,
      SyntaxError: cells[0].SyntaxError.set,
      TypeError: cells[0].TypeError.set,
      AggregateError: cells[0].AggregateError.set,
      assign: cells[0].assign.set,
      create: cells[0].create.set,
      defineProperties: cells[0].defineProperties.set,
      entries: cells[0].entries.set,
      freeze: cells[0].freeze.set,
      getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
      getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
      getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
      getPrototypeOf: cells[0].getPrototypeOf.set,
      is: cells[0].is.set,
      isFrozen: cells[0].isFrozen.set,
      isSealed: cells[0].isSealed.set,
      isExtensible: cells[0].isExtensible.set,
      keys: cells[0].keys.set,
      objectPrototype: cells[0].objectPrototype.set,
      seal: cells[0].seal.set,
      preventExtensions: cells[0].preventExtensions.set,
      setPrototypeOf: cells[0].setPrototypeOf.set,
      values: cells[0].values.set,
      fromEntries: cells[0].fromEntries.set,
      speciesSymbol: cells[0].speciesSymbol.set,
      toStringTagSymbol: cells[0].toStringTagSymbol.set,
      iteratorSymbol: cells[0].iteratorSymbol.set,
      matchAllSymbol: cells[0].matchAllSymbol.set,
      replaceSymbol: cells[0].replaceSymbol.set,
      unscopablesSymbol: cells[0].unscopablesSymbol.set,
      symbolKeyFor: cells[0].symbolKeyFor.set,
      symbolFor: cells[0].symbolFor.set,
      isInteger: cells[0].isInteger.set,
      stringifyJson: cells[0].stringifyJson.set,
      defineProperty: cells[0].defineProperty.set,
      apply: cells[0].apply.set,
      construct: cells[0].construct.set,
      reflectGet: cells[0].reflectGet.set,
      reflectGetOwnPropertyDescriptor: cells[0].reflectGetOwnPropertyDescriptor.set,
      reflectHas: cells[0].reflectHas.set,
      reflectIsExtensible: cells[0].reflectIsExtensible.set,
      ownKeys: cells[0].ownKeys.set,
      reflectPreventExtensions: cells[0].reflectPreventExtensions.set,
      reflectSet: cells[0].reflectSet.set,
      isArray: cells[0].isArray.set,
      arrayPrototype: cells[0].arrayPrototype.set,
      arrayBufferPrototype: cells[0].arrayBufferPrototype.set,
      mapPrototype: cells[0].mapPrototype.set,
      proxyRevocable: cells[0].proxyRevocable.set,
      regexpPrototype: cells[0].regexpPrototype.set,
      setPrototype: cells[0].setPrototype.set,
      stringPrototype: cells[0].stringPrototype.set,
      weakmapPrototype: cells[0].weakmapPrototype.set,
      weaksetPrototype: cells[0].weaksetPrototype.set,
      functionPrototype: cells[0].functionPrototype.set,
      promisePrototype: cells[0].promisePrototype.set,
      generatorPrototype: cells[0].generatorPrototype.set,
      iteratorPrototype: cells[0].iteratorPrototype.set,
      typedArrayPrototype: cells[0].typedArrayPrototype.set,
      uncurryThis: cells[0].uncurryThis.set,
      hasOwn: cells[0].hasOwn.set,
      arrayFilter: cells[0].arrayFilter.set,
      arrayForEach: cells[0].arrayForEach.set,
      arrayIncludes: cells[0].arrayIncludes.set,
      arrayJoin: cells[0].arrayJoin.set,
      arrayMap: cells[0].arrayMap.set,
      arrayFlatMap: cells[0].arrayFlatMap.set,
      arrayPop: cells[0].arrayPop.set,
      arrayPush: cells[0].arrayPush.set,
      arraySlice: cells[0].arraySlice.set,
      arraySome: cells[0].arraySome.set,
      arraySort: cells[0].arraySort.set,
      iterateArray: cells[0].iterateArray.set,
      arrayBufferSlice: cells[0].arrayBufferSlice.set,
      arrayBufferGetByteLength: cells[0].arrayBufferGetByteLength.set,
      typedArraySet: cells[0].typedArraySet.set,
      mapSet: cells[0].mapSet.set,
      mapGet: cells[0].mapGet.set,
      mapHas: cells[0].mapHas.set,
      mapDelete: cells[0].mapDelete.set,
      mapEntries: cells[0].mapEntries.set,
      iterateMap: cells[0].iterateMap.set,
      setAdd: cells[0].setAdd.set,
      setDelete: cells[0].setDelete.set,
      setForEach: cells[0].setForEach.set,
      setHas: cells[0].setHas.set,
      iterateSet: cells[0].iterateSet.set,
      regexpExec: cells[0].regexpExec.set,
      regexpReplace: cells[0].regexpReplace.set,
      matchAllRegExp: cells[0].matchAllRegExp.set,
      sealRegexp: cells[0].sealRegexp.set,
      stringEndsWith: cells[0].stringEndsWith.set,
      stringIncludes: cells[0].stringIncludes.set,
      stringIndexOf: cells[0].stringIndexOf.set,
      stringMatch: cells[0].stringMatch.set,
      stringSearch: cells[0].stringSearch.set,
      stringSlice: cells[0].stringSlice.set,
      stringSplit: cells[0].stringSplit.set,
      stringStartsWith: cells[0].stringStartsWith.set,
      iterateString: cells[0].iterateString.set,
      weakmapDelete: cells[0].weakmapDelete.set,
      weakmapGet: cells[0].weakmapGet.set,
      weakmapHas: cells[0].weakmapHas.set,
      weakmapSet: cells[0].weakmapSet.set,
      weaksetAdd: cells[0].weaksetAdd.set,
      weaksetHas: cells[0].weaksetHas.set,
      functionToString: cells[0].functionToString.set,
      functionBind: cells[0].functionBind.set,
      generatorNext: cells[0].generatorNext.set,
      generatorThrow: cells[0].generatorThrow.set,
      promiseAll: cells[0].promiseAll.set,
      promiseCatch: cells[0].promiseCatch.set,
      promiseThen: cells[0].promiseThen.set,
      finalizationRegistryRegister: cells[0].finalizationRegistryRegister.set,
      finalizationRegistryUnregister: cells[0].finalizationRegistryUnregister.set,
      isPrimitive: cells[0].isPrimitive.set,
      isError: cells[0].isError.set,
      identity: cells[0].identity.set,
      FERAL_EVAL: cells[0].FERAL_EVAL.set,
      FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
      noEvalEvaluate: cells[0].noEvalEvaluate.set,
      FERAL_STACK_GETTER: cells[0].FERAL_STACK_GETTER.set,
      FERAL_STACK_SETTER: cells[0].FERAL_STACK_SETTER.set,
      AsyncGeneratorFunctionInstance: cells[0].AsyncGeneratorFunctionInstance.set,
    },
    importMeta: {},
  });
  functors[1]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[2]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEnvironmentCaptor: cells[2].makeEnvironmentCaptor.set,
      getEnvironmentOption: cells[2].getEnvironmentOption.set,
      getEnvironmentOptionsList: cells[2].getEnvironmentOptionsList.set,
      environmentOptionsListHas: cells[2].environmentOptionsListHas.set,
    },
    importMeta: {},
  });
  functors[3]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/env-options.js", 2);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[4]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      isBufferImmutable: cells[4].isBufferImmutable.set,
      sliceBufferToImmutable: cells[4].sliceBufferToImmutable.set,
      optTransferBufferToImmutable: cells[4].optTransferBufferToImmutable.set,
    },
    importMeta: {},
  });
  functors[5]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./immutable-arraybuffer-pony.js", 4);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[6]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/immutable-arraybuffer-shim.js", 5);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[7]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      an: cells[7].an.set,
      bestEffortStringify: cells[7].bestEffortStringify.set,
      enJoin: cells[7].enJoin.set,
    },
    importMeta: {},
  });
  functors[8]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[9]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[10]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeCacheMapKit: cells[10].makeCacheMapKit.set,
    },
    importMeta: {},
  });
  functors[11]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/cachemap.js", 10);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[12]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/cache-map", 11);
    },
    liveVar: {
    },
    onceVar: {
      makeNoteLogArgsArrayKit: cells[12].makeNoteLogArgsArrayKit.set,
    },
    importMeta: {},
  });
  functors[13]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./stringify-utils.js", 7);
      observeImports(map, "./types.js", 8);
      observeImports(map, "./internal-types.js", 9);
      observeImports(map, "./note-log-args.js", 12);
    },
    liveVar: {
    },
    onceVar: {
      quote: cells[13].q.set,
      bare: cells[13].b.set,
      redactedDetails: cells[13].X.set,
      unredactedDetails: cells[13].unredactedDetails.set,
      makeError: cells[13].makeError.set,
      note: cells[13].annotateError.set,
      loggedErrorHandler: cells[13].loggedErrorHandler.set,
      assert: cells[13].assert.set,
      assertEqual: cells[13].assertEqual.set,
      sanitizeError: cells[13].sanitizeError.set,
      makeAssert: cells[13].makeAssert.set,
    },
    importMeta: {},
  });
  functors[14]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      isTypedArray: cells[14].isTypedArray.set,
      makeHardener: cells[14].makeHardener.set,
    },
    importMeta: {},
  });
  functors[15]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      cauterizeProperty: cells[15].cauterizeProperty.set,
    },
    importMeta: {},
  });
  functors[16]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      NativeErrors: cells[16].NativeErrors.set,
      constantProperties: cells[16].constantProperties.set,
      universalPropertyNames: cells[16].universalPropertyNames.set,
      initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
      sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
      uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
      FunctionInstance: cells[16].FunctionInstance.set,
      AsyncFunctionInstance: cells[16].AsyncFunctionInstance.set,
      isAccessorPermit: cells[16].isAccessorPermit.set,
      permitted: cells[16].permitted.set,
    },
    importMeta: {},
  });
  functors[17]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./cauterize-property.js", 15);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      makeIntrinsicsCollector: cells[17].makeIntrinsicsCollector.set,
      getGlobalIntrinsics: cells[17].getGlobalIntrinsics.set,
    },
    importMeta: {},
  });
  functors[18]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./cauterize-property.js", 15);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[18].default.set,
    },
    importMeta: {},
  });
  functors[19]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[19].default.set,
    },
    importMeta: {},
  });
  functors[20]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[20].default.set,
    },
    importMeta: {},
  });
  functors[21]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[21].default.set,
    },
    importMeta: {},
  });
  functors[22]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[22].default.set,
    },
    importMeta: {},
  });
  functors[23]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      minEnablements: cells[23].minEnablements.set,
      moderateEnablements: cells[23].moderateEnablements.set,
      severeEnablements: cells[23].severeEnablements.set,
    },
    importMeta: {},
  });
  functors[24]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./enablements.js", 23);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[24].default.set,
    },
    importMeta: {},
  });
  functors[25]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[25].default.set,
    },
    importMeta: {},
  });
  functors[26]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalFunction: cells[26].makeEvalFunction.set,
    },
    importMeta: {},
  });
  functors[27]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeFunctionConstructor: cells[27].makeFunctionConstructor.set,
    },
    importMeta: {},
  });
  functors[28]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-eval-function.js", 26);
      observeImports(map, "./make-function-constructor.js", 27);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      setGlobalObjectSymbolUnscopables: cells[28].setGlobalObjectSymbolUnscopables.set,
      setGlobalObjectConstantProperties: cells[28].setGlobalObjectConstantProperties.set,
      setGlobalObjectMutableProperties: cells[28].setGlobalObjectMutableProperties.set,
      setGlobalObjectEvaluators: cells[28].setGlobalObjectEvaluators.set,
    },
    importMeta: {},
  });
  functors[29]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      alwaysThrowHandler: cells[29].alwaysThrowHandler.set,
      strictScopeTerminatorHandler: cells[29].strictScopeTerminatorHandler.set,
      strictScopeTerminator: cells[29].strictScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[30]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
    },
    liveVar: {
    },
    onceVar: {
      createSloppyGlobalsScopeTerminator: cells[30].createSloppyGlobalsScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[31]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalScopeKit: cells[31].makeEvalScopeKit.set,
    },
    importMeta: {},
  });
  functors[32]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      getSourceURL: cells[32].getSourceURL.set,
    },
    importMeta: {},
  });
  functors[33]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./get-source-url.js", 32);
    },
    liveVar: {
    },
    onceVar: {
      rejectHtmlComments: cells[33].rejectHtmlComments.set,
      evadeHtmlCommentTest: cells[33].evadeHtmlCommentTest.set,
      rejectImportExpressions: cells[33].rejectImportExpressions.set,
      evadeImportExpressionTest: cells[33].evadeImportExpressionTest.set,
      rejectSomeDirectEvalExpressions: cells[33].rejectSomeDirectEvalExpressions.set,
      mandatoryTransforms: cells[33].mandatoryTransforms.set,
      applyTransforms: cells[33].applyTransforms.set,
      transforms: cells[33].transforms.set,
    },
    importMeta: {},
  });
  functors[34]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      isValidIdentifierName: cells[34].isValidIdentifierName.set,
      getScopeConstants: cells[34].getScopeConstants.set,
    },
    importMeta: {},
  });
  functors[35]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./scope-constants.js", 34);
    },
    liveVar: {
    },
    onceVar: {
      makeEvaluate: cells[35].makeEvaluate.set,
    },
    importMeta: {},
  });
  functors[36]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
      observeImports(map, "./sloppy-globals-scope-terminator.js", 30);
      observeImports(map, "./eval-scope.js", 31);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-evaluate.js", 35);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeSafeEvaluator: cells[36].makeSafeEvaluator.set,
    },
    importMeta: {},
  });
  functors[37]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFunctionToString: cells[37].tameFunctionToString.set,
    },
    importMeta: {},
  });
  functors[38]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameDomains: cells[38].tameDomains.set,
    },
    importMeta: {},
  });
  functors[39]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameModuleSource: cells[39].tameModuleSource.set,
    },
    importMeta: {},
  });
  functors[40]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      consoleLevelMethods: cells[40].consoleLevelMethods.set,
      consoleOtherMethods: cells[40].consoleOtherMethods.set,
      makeLoggingConsoleKit: cells[40].makeLoggingConsoleKit.set,
      pumpLogToConsole: cells[40].pumpLogToConsole.set,
      makeCausalConsole: cells[40].makeCausalConsole.set,
      defineCausalConsoleFromLogger: cells[40].defineCausalConsoleFromLogger.set,
      filterConsole: cells[40].filterConsole.set,
    },
    importMeta: {},
  });
  functors[41]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      makeRejectionHandlers: cells[41].makeRejectionHandlers.set,
    },
    importMeta: {},
  });
  functors[42]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./assert.js", 13);
      observeImports(map, "./console.js", 40);
      observeImports(map, "./unhandled-rejection.js", 41);
    },
    liveVar: {
    },
    onceVar: {
      tameConsole: cells[42].tameConsole.set,
    },
    importMeta: {},
  });
  functors[43]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      filterFileName: cells[43].filterFileName.set,
      shortenCallSiteString: cells[43].shortenCallSiteString.set,
      tameV8ErrorConstructor: cells[43].tameV8ErrorConstructor.set,
    },
    importMeta: {},
  });
  functors[44]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "../permits.js", 16);
      observeImports(map, "./tame-v8-error-constructor.js", 43);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[44].default.set,
    },
    importMeta: {},
  });
  functors[45]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeAlias: cells[45].makeAlias.set,
      load: cells[45].load.set,
      loadNow: cells[45].loadNow.set,
    },
    importMeta: {},
  });
  functors[46]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      deferExports: cells[46].deferExports.set,
      getDeferredExports: cells[46].getDeferredExports.set,
    },
    importMeta: {},
  });
  functors[47]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      provideCompartmentEvaluator: cells[47].provideCompartmentEvaluator.set,
      compartmentEvaluate: cells[47].compartmentEvaluate.set,
    },
    importMeta: {},
  });
  functors[48]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment-evaluate.js", 47);
    },
    liveVar: {
    },
    onceVar: {
      makeVirtualModuleInstance: cells[48].makeVirtualModuleInstance.set,
      makeModuleInstance: cells[48].makeModuleInstance.set,
    },
    importMeta: {},
  });
  functors[49]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-instance.js", 48);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      link: cells[49].link.set,
      instantiate: cells[49].instantiate.set,
    },
    importMeta: {},
  });
  functors[50]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./module-link.js", 49);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./compartment-evaluate.js", 47);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      InertCompartment: cells[50].InertCompartment.set,
      CompartmentPrototype: cells[50].CompartmentPrototype.set,
      compartmentOptions: cells[50].compartmentOptions.set,
      makeCompartmentConstructor: cells[50].makeCompartmentConstructor.set,
    },
    importMeta: {},
  });
  functors[51]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
    },
    liveVar: {
    },
    onceVar: {
      getAnonymousIntrinsics: cells[51].getAnonymousIntrinsics.set,
    },
    importMeta: {},
  });
  functors[52]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameHarden: cells[52].tameHarden.set,
    },
    importMeta: {},
  });
  functors[53]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameSymbolConstructor: cells[53].tameSymbolConstructor.set,
    },
    importMeta: {},
  });
  functors[54]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFauxDataProperty: cells[54].tameFauxDataProperty.set,
      tameFauxDataProperties: cells[54].tameFauxDataProperties.set,
    },
    importMeta: {},
  });
  functors[55]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameRegeneratorRuntime: cells[55].tameRegeneratorRuntime.set,
    },
    importMeta: {},
  });
  functors[56]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      shimArrayBufferTransfer: cells[56].shimArrayBufferTransfer.set,
    },
    importMeta: {},
  });
  functors[57]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      chooseReporter: cells[57].chooseReporter.set,
      reportInGroup: cells[57].reportInGroup.set,
    },
    importMeta: {},
  });
  functors[58]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "@endo/immutable-arraybuffer/shim.js", 6);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-hardener.js", 14);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./permits-intrinsics.js", 18);
      observeImports(map, "./tame-function-constructors.js", 19);
      observeImports(map, "./tame-date-constructor.js", 20);
      observeImports(map, "./tame-math-object.js", 21);
      observeImports(map, "./tame-regexp-constructor.js", 22);
      observeImports(map, "./enable-property-overrides.js", 24);
      observeImports(map, "./tame-locale-methods.js", 25);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./make-safe-evaluator.js", 36);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./tame-domains.js", 38);
      observeImports(map, "./tame-module-source.js", 39);
      observeImports(map, "./error/tame-console.js", 42);
      observeImports(map, "./error/tame-error-constructor.js", 44);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./get-anonymous-intrinsics.js", 51);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-harden.js", 52);
      observeImports(map, "./tame-symbol-constructor.js", 53);
      observeImports(map, "./tame-faux-data-properties.js", 54);
      observeImports(map, "./tame-regenerator-runtime.js", 55);
      observeImports(map, "./shim-arraybuffer-transfer.js", 56);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
      repairIntrinsics: cells[58].repairIntrinsics.set,
    },
    importMeta: {},
  });
  functors[59]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./assert-sloppy-mode.js", 1);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./lockdown.js", 58);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[60]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[61]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[62]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/console.js", 40);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[63]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/lockdown-shim.js", 59);
      observeImports(map, "./src/compartment-shim.js", 60);
      observeImports(map, "./src/assert-shim.js", 61);
      observeImports(map, "./src/console-shim.js", 62);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });

  return cells[cells.length - 1]['*'].get();
})([
// === 0. ses ./src/commons.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * Captures native intrinsics during initialization, so vetted shims
 * (running between initialization of SES and calling lockdown) are free to
 * modify the environment without compromising the integrity of SES. For
 * example, a vetted shim can modify Object.assign because we capture and
 * export Object and assign here, then never again consult Object to get its
 * assign property.
 *
 * This pattern of use is enforced by eslint rules no-restricted-globals and
 * no-polymorphic-call.
 * We maintain the list of restricted globals in ../package.json.
 *
 * @module
 */

/* global globalThis */
/* eslint-disable no-restricted-globals */

// We cannot use globalThis as the local name since it would capture the
// lexical name.
const universalThis = globalThis;$h͏_once.universalThis(universalThis);


       const {
  Array,
  ArrayBuffer,
  Date,
  FinalizationRegistry,
  Float32Array,
  JSON,
  Map,
  Math,
  Number,
  Object,
  Promise,
  Proxy,
  Reflect,
  RegExp: FERAL_REG_EXP,
  Set,
  String,
  Symbol,
  Uint8Array,
  WeakMap,
  WeakSet,
} = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.Float32Array(Float32Array);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);

       const {
  // The feral Error constructor is safe for internal use, but must not be
  // revealed to post-lockdown code in any compartment including the start
  // compartment since in V8 at least it bears stack inspection capabilities.
  Error: FERAL_ERROR,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  AggregateError,
} = globalThis;$h͏_once.FERAL_ERROR(FERAL_ERROR);$h͏_once.RangeError(RangeError);$h͏_once.ReferenceError(ReferenceError);$h͏_once.SyntaxError(SyntaxError);$h͏_once.TypeError(TypeError);$h͏_once.AggregateError(AggregateError);

       const {
  assign,
  create,
  defineProperties,
  entries,
  freeze,
  getOwnPropertyDescriptor,
  getOwnPropertyDescriptors,
  getOwnPropertyNames,
  getPrototypeOf,
  is,
  isFrozen,
  isSealed,
  isExtensible,
  keys,
  prototype: objectPrototype,
  seal,
  preventExtensions,
  setPrototypeOf,
  values,
  fromEntries,
} = Object;$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.freeze(freeze);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);

       const {
  species: speciesSymbol,
  toStringTag: toStringTagSymbol,
  iterator: iteratorSymbol,
  matchAll: matchAllSymbol,
  replace: replaceSymbol,
  unscopables: unscopablesSymbol,
  keyFor: symbolKeyFor,
  for: symbolFor,
} = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);

       const { isInteger } = Number;$h͏_once.isInteger(isInteger);

       const { stringify: stringifyJson } = JSON;

// Needed only for the Safari bug workaround below
$h͏_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProperty}=Object;

       const defineProperty = (object, prop, descriptor) => {
  // We used to do the following, until we had to reopen Safari bug
  // https://bugs.webkit.org/show_bug.cgi?id=222538#c17
  // Once this is fixed, we may restore it.
  // // Object.defineProperty is allowed to fail silently so we use
  // // Object.defineProperties instead.
  // return defineProperties(object, { [prop]: descriptor });

  // Instead, to workaround the Safari bug
  const result = originalDefineProperty(object, prop, descriptor);
  if (result !== object) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DEFINE_PROPERTY_FAILED_SILENTLY.md
    throw TypeError(
      `Please report that the original defineProperty silently failed to set ${stringifyJson(
        String(prop),
      )}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`,
    );
  }
  return result;
};$h͏_once.defineProperty(defineProperty);

       const {
  apply,
  construct,
  get: reflectGet,
  getOwnPropertyDescriptor: reflectGetOwnPropertyDescriptor,
  has: reflectHas,
  isExtensible: reflectIsExtensible,
  ownKeys,
  preventExtensions: reflectPreventExtensions,
  set: reflectSet,
} = Reflect;$h͏_once.apply(apply);$h͏_once.construct(construct);$h͏_once.reflectGet(reflectGet);$h͏_once.reflectGetOwnPropertyDescriptor(reflectGetOwnPropertyDescriptor);$h͏_once.reflectHas(reflectHas);$h͏_once.reflectIsExtensible(reflectIsExtensible);$h͏_once.ownKeys(ownKeys);$h͏_once.reflectPreventExtensions(reflectPreventExtensions);$h͏_once.reflectSet(reflectSet);

       const { isArray, prototype: arrayPrototype } = Array;$h͏_once.isArray(isArray);$h͏_once.arrayPrototype(arrayPrototype);
       const { prototype: arrayBufferPrototype } = ArrayBuffer;$h͏_once.arrayBufferPrototype(arrayBufferPrototype);
       const { prototype: mapPrototype } = Map;$h͏_once.mapPrototype(mapPrototype);
       const { revocable: proxyRevocable } = Proxy;$h͏_once.proxyRevocable(proxyRevocable);
       const { prototype: regexpPrototype } = RegExp;$h͏_once.regexpPrototype(regexpPrototype);
       const { prototype: setPrototype } = Set;$h͏_once.setPrototype(setPrototype);
       const { prototype: stringPrototype } = String;$h͏_once.stringPrototype(stringPrototype);
       const { prototype: weakmapPrototype } = WeakMap;$h͏_once.weakmapPrototype(weakmapPrototype);
       const { prototype: weaksetPrototype } = WeakSet;$h͏_once.weaksetPrototype(weaksetPrototype);
       const { prototype: functionPrototype } = Function;$h͏_once.functionPrototype(functionPrototype);
       const { prototype: promisePrototype } = Promise;$h͏_once.promisePrototype(promisePrototype);
       const { prototype: generatorPrototype } = getPrototypeOf(
  // eslint-disable-next-line no-empty-function, func-names
  function* () {},
);$h͏_once.generatorPrototype(generatorPrototype);
       const iteratorPrototype = getPrototypeOf(
  // eslint-disable-next-line @endo/no-polymorphic-call
  getPrototypeOf(arrayPrototype.values()),
);$h͏_once.iteratorPrototype(iteratorPrototype);

       const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);$h͏_once.typedArrayPrototype(typedArrayPrototype);

const { bind } = functionPrototype;

/**
 * uncurryThis()
 * Equivalent of: fn => (thisArg, ...args) => apply(fn, thisArg, args)
 *
 * See those reference for a complete explanation:
 * http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 * which only lives at
 * http://web.archive.org/web/20160805225710/http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 *
 * @type {<F extends (this: any, ...args: any[]) => any>(fn: F) => ((thisArg: ThisParameterType<F>, ...args: Parameters<F>) => ReturnType<F>)}
 */
       const uncurryThis = bind.bind(bind.call); // eslint-disable-line @endo/no-polymorphic-call

// See https://github.com/endojs/endo/issues/2930
$h͏_once.uncurryThis(uncurryThis);if(!('hasOwn'in Object)){
  const ObjectPrototypeHasOwnProperty = objectPrototype.hasOwnProperty;
  const hasOwnShim = (obj, key) => {
    if (obj === undefined || obj === null) {
      // We need to add this extra test because of differences in
      // the order in which `hasOwn` vs `hasOwnProperty` validates
      // arguments.
      throw TypeError('Cannot convert undefined or null to object');
    }
    return apply(ObjectPrototypeHasOwnProperty, obj, [key]);
  };
  defineProperty(Object, 'hasOwn', {
    value: hasOwnShim,
    writable: true,
    enumerable: false,
    configurable: true,
  });
}

       const { hasOwn } = Object;
//
$h͏_once.hasOwn(hasOwn);const arrayFilter=uncurryThis(arrayPrototype.filter);$h͏_once.arrayFilter(arrayFilter);
       const arrayForEach = uncurryThis(arrayPrototype.forEach);$h͏_once.arrayForEach(arrayForEach);
       const arrayIncludes = uncurryThis(arrayPrototype.includes);$h͏_once.arrayIncludes(arrayIncludes);
       const arrayJoin = uncurryThis(arrayPrototype.join);
/** @type {<T, U>(thisArg: readonly T[], callbackfn: (value: T, index: number, array: T[]) => U, cbThisArg?: any) => U[]} */$h͏_once.arrayJoin(arrayJoin);
       const arrayMap = /** @type {any} */ (uncurryThis(arrayPrototype.map));$h͏_once.arrayMap(arrayMap);
       const arrayFlatMap = /** @type {any} */ (
  uncurryThis(arrayPrototype.flatMap)
);$h͏_once.arrayFlatMap(arrayFlatMap);
       const arrayPop = uncurryThis(arrayPrototype.pop);
/** @type {<T>(thisArg: T[], ...items: T[]) => number} */$h͏_once.arrayPop(arrayPop);
       const arrayPush = uncurryThis(arrayPrototype.push);$h͏_once.arrayPush(arrayPush);
       const arraySlice = uncurryThis(arrayPrototype.slice);$h͏_once.arraySlice(arraySlice);
       const arraySome = uncurryThis(arrayPrototype.some);$h͏_once.arraySome(arraySome);
       const arraySort = uncurryThis(arrayPrototype.sort);$h͏_once.arraySort(arraySort);
       const iterateArray = uncurryThis(arrayPrototype[iteratorSymbol]);
//
$h͏_once.iterateArray(iterateArray);const arrayBufferSlice=uncurryThis(arrayBufferPrototype.slice);
/** @type {(b: ArrayBuffer) => number} */$h͏_once.arrayBufferSlice(arrayBufferSlice);
       const arrayBufferGetByteLength = uncurryThis(
  // @ts-expect-error we know it is there on all conforming platforms
  getOwnPropertyDescriptor(arrayBufferPrototype, 'byteLength').get,
);
//
$h͏_once.arrayBufferGetByteLength(arrayBufferGetByteLength);const typedArraySet=uncurryThis(typedArrayPrototype.set);
//
$h͏_once.typedArraySet(typedArraySet);const mapSet=uncurryThis(mapPrototype.set);$h͏_once.mapSet(mapSet);
       const mapGet = uncurryThis(mapPrototype.get);$h͏_once.mapGet(mapGet);
       const mapHas = uncurryThis(mapPrototype.has);$h͏_once.mapHas(mapHas);
       const mapDelete = uncurryThis(mapPrototype.delete);$h͏_once.mapDelete(mapDelete);
       const mapEntries = uncurryThis(mapPrototype.entries);$h͏_once.mapEntries(mapEntries);
       const iterateMap = uncurryThis(mapPrototype[iteratorSymbol]);
//
$h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏_once.setAdd(setAdd);
       const setDelete = uncurryThis(setPrototype.delete);$h͏_once.setDelete(setDelete);
       const setForEach = uncurryThis(setPrototype.forEach);$h͏_once.setForEach(setForEach);
       const setHas = uncurryThis(setPrototype.has);$h͏_once.setHas(setHas);
       const iterateSet = uncurryThis(setPrototype[iteratorSymbol]);
//
/**
 * `regexpExec` is provided in exclusion of `regexpTest`, which would be
 * vulnerable to RegExp.prototype poisoning.
 */$h͏_once.iterateSet(iterateSet);
       const regexpExec = uncurryThis(regexpPrototype.exec);
/**
 * @type { &
 *   ((thisArg: RegExp, string: string, replaceValue: string) => string) &
 *   ((thisArg: RegExp, string: string, replacer: (substring: string, ...args: any[]) => string) => string)
 * }
 */$h͏_once.regexpExec(regexpExec);
       const regexpReplace = /** @type {any} */ (
  uncurryThis(regexpPrototype[replaceSymbol])
);$h͏_once.regexpReplace(regexpReplace);
       const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);$h͏_once.matchAllRegExp(matchAllRegExp);
const { _regexpConstructor, ...regexpDescriptors } =
  getOwnPropertyDescriptors(regexpPrototype);
arrayForEach(ownKeys(regexpDescriptors), key => {
  const desc = regexpDescriptors[/** @type {any} */ (key)];
  desc.configurable = false;
  if (desc.writable) desc.writable = false;
});
/**
 * Protect a RegExp instance against RegExp.prototype poisoning ("exec",
 * "flags", Symbol.replace, etc.).
 * @type {<T extends RegExp>(regexp: T) => T}
 */
       const sealRegexp = regexp =>
  seal(defineProperties(regexp, regexpDescriptors));
//
$h͏_once.sealRegexp(sealRegexp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
       const stringIncludes = uncurryThis(stringPrototype.includes);$h͏_once.stringIncludes(stringIncludes);
       const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h͏_once.stringIndexOf(stringIndexOf);
       const stringMatch = uncurryThis(stringPrototype.match);
// `stringReplace` is intentionally omitted because it would be vulnerable to
// RegExp.prototype poisoning; use `regexpReplace(re, str, replacer)` instead
// (and `sealRegexp` on its regular expressions).
$h͏_once.stringMatch(stringMatch);const stringSearch=uncurryThis(stringPrototype.search);$h͏_once.stringSearch(stringSearch);
       const stringSlice = uncurryThis(stringPrototype.slice);
/**
 * `stringSplit` should only be used with a string separator; regular
 * expressions are vulnerable to RegExp.prototype poisoning.
 * @type {(thisArg: string, separator: string, limit?: number) => string[]}
 */$h͏_once.stringSlice(stringSlice);
       const stringSplit = /** @type {any} */ (
  uncurryThis(stringPrototype.split)
);$h͏_once.stringSplit(stringSplit);
       const stringStartsWith = uncurryThis(stringPrototype.startsWith);$h͏_once.stringStartsWith(stringStartsWith);
       const iterateString = uncurryThis(stringPrototype[iteratorSymbol]);
//
$h͏_once.iterateString(iterateString);const weakmapDelete=uncurryThis(weakmapPrototype.delete);
/** @type {<K extends {}, V>(thisArg: WeakMap<K, V>, ...args: Parameters<WeakMap<K,V>['get']>) => ReturnType<WeakMap<K,V>['get']>} */$h͏_once.weakmapDelete(weakmapDelete);
       const weakmapGet = uncurryThis(weakmapPrototype.get);$h͏_once.weakmapGet(weakmapGet);
       const weakmapHas = uncurryThis(weakmapPrototype.has);$h͏_once.weakmapHas(weakmapHas);
       const weakmapSet = uncurryThis(weakmapPrototype.set);
//
$h͏_once.weakmapSet(weakmapSet);const weaksetAdd=uncurryThis(weaksetPrototype.add);$h͏_once.weaksetAdd(weaksetAdd);
       const weaksetHas = uncurryThis(weaksetPrototype.has);
//
$h͏_once.weaksetHas(weaksetHas);const functionToString=uncurryThis(functionPrototype.toString);$h͏_once.functionToString(functionToString);
       const functionBind = uncurryThis(bind);
//
$h͏_once.functionBind(functionBind);const generatorNext=uncurryThis(generatorPrototype.next);$h͏_once.generatorNext(generatorNext);
       const generatorThrow = uncurryThis(generatorPrototype.throw);
//
$h͏_once.generatorThrow(generatorThrow);const{all}=Promise;
       const promiseAll = promises => apply(all, Promise, [promises]);$h͏_once.promiseAll(promiseAll);
       const promiseCatch = uncurryThis(promisePrototype.catch);
/** @type {<T, TResult1 = T, TResult2 = never>(thisArg: T, onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null) => Promise<TResult1 | TResult2>} */$h͏_once.promiseCatch(promiseCatch);
       const promiseThen = /** @type {any} */ (
  uncurryThis(promisePrototype.then)
);
//
$h͏_once.promiseThen(promiseThen);const finalizationRegistryRegister=
  FinalizationRegistry && uncurryThis(FinalizationRegistry.prototype.register);$h͏_once.finalizationRegistryRegister(finalizationRegistryRegister);
       const finalizationRegistryUnregister =
  FinalizationRegistry &&
  uncurryThis(FinalizationRegistry.prototype.unregister);

/**
 * TODO Consolidate with `isPrimitive` that's currently in `@endo/pass-style`.
 * Layering constraints make this tricky, which is why we haven't yet figured
 * out how to do this.
 *
 * @type {(val: unknown) => val is (undefined
 * | null
 * | boolean
 * | number
 * | bigint
 * | string
 * | symbol)}
 */$h͏_once.finalizationRegistryUnregister(finalizationRegistryUnregister);
       const isPrimitive = val =>
  !val || (typeof val !== 'object' && typeof val !== 'function');

/**
 * isError tests whether an object inherits from the intrinsic
 * `Error.prototype`.
 * We capture the original error constructor as FERAL_ERROR to provide a clear
 * signal for reviewers that we are handling an object with excess authority,
 * like stack trace inspection, that we are carefully hiding from client code.
 * Checking instanceof happens to be safe, but to avoid uttering FERAL_ERROR
 * for such a trivial case outside commons.js, we provide a utility function.
 *
 * @param {any} value
 */$h͏_once.isPrimitive(isPrimitive);
       const isError = value => value instanceof FERAL_ERROR;

/**
 * @template T
 * @param {T} x
 */$h͏_once.isError(isError);
       const identity = x => x;

// The original unsafe untamed eval function, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
// eslint-disable-next-line no-eval
$h͏_once.identity(identity);const FERAL_EVAL=eval;

// The original unsafe untamed Function constructor, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
$h͏_once.FERAL_EVAL(FERAL_EVAL);const FERAL_FUNCTION=Function;$h͏_once.FERAL_FUNCTION(FERAL_FUNCTION);

       const noEvalEvaluate = () => {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_EVAL.md
  throw TypeError('Cannot eval with evalTaming set to "no-eval" (SES_NO_EVAL)');
};

// ////////////////// FERAL_STACK_GETTER FERAL_STACK_SETTER ////////////////////

// The error repair mechanism is very similar to code in
// pass-style/src/error.js and these implementations should be kept in sync.

/**
 * We gratuitiously construct a TypeError instance using syntax in order to
 * obviate the possibility that code that ran before SES (for which we are
 * irreducable vulnerable) may have replaced the global TypeError constructor.
 * We treat the nature of this error instance as the source of truth for the
 * nature of runtime constructed errors on the platform, particularly whether
 * such errors will have an own "stack" property with getters and setters.
 * At time of writing (2025) we know of no comparable mechanism for obtaining a
 * host-generated base Error instance, but we corroborate the nature of the
 * global Error constructor's instances and refuse to initialize SES in an
 * environment where the syntactic TypeError and global Error produce
 * inconsistent "stack" properties.
 * @returns {TypeError}
 */$h͏_once.noEvalEvaluate(noEvalEvaluate);
const makeTypeError = () => {
  try {
    // @ts-expect-error deliberate TypeError
    null.null;
    throw TypeError('obligatory'); // To convince the type flow inferrence.
  } catch (error) {
    return error;
  }
};

const errorStackDesc = getOwnPropertyDescriptor(Error('obligatory'), 'stack');
const typeErrorStackDesc = getOwnPropertyDescriptor(makeTypeError(), 'stack');

let feralStackGetter;
let feralStackSetter;
if (typeErrorStackDesc && typeErrorStackDesc.get) {
  // We should only encounter this case on v8 because of its problematic
  // error own stack accessor behavior.
  // Note that FF/SpiderMonkey, Moddable/XS, and the error stack proposal
  // all inherit a stack accessor property from Error.prototype, which is
  // great. That case needs no heroics to secure.
  if (
    // In the v8 case as we understand it, all errors have an own stack
    // accessor property, but within the same realm, all these accessor
    // properties have the same getter and have the same setter.
    // This is therefore the case that we repair.
    errorStackDesc &&
    typeof typeErrorStackDesc.get === 'function' &&
    typeErrorStackDesc.get === errorStackDesc.get &&
    typeof typeErrorStackDesc.set === 'function' &&
    typeErrorStackDesc.set === errorStackDesc.set
  ) {
    // Otherwise, we have own stack accessor properties that are outside
    // our expectations, that therefore need to be understood better
    // before we know how to repair them.
    feralStackGetter = freeze(typeErrorStackDesc.get);
    feralStackSetter = freeze(typeErrorStackDesc.set);
  } else {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR.md
    throw TypeError(
      'Unexpected Error own stack accessor functions (SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR)',
    );
  }
}

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {(() => any) | undefined}
 */
       const FERAL_STACK_GETTER = feralStackGetter;

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {((newValue: any) => void) | undefined}
 */$h͏_once.FERAL_STACK_GETTER(FERAL_STACK_GETTER);
       const FERAL_STACK_SETTER = feralStackSetter;$h͏_once.FERAL_STACK_SETTER(FERAL_STACK_SETTER);

const getAsyncGeneratorFunctionInstance = () => {
  // Test for async generator function syntax support.
  try {
    // Wrapping one in an new Function lets the `hermesc` binary file
    // parse the Metro js bundle without SyntaxError, to generate the
    // optimised Hermes bytecode bundle, when `gradlew` is called to
    // assemble the release build APK for React Native prod Android apps.
    // Delaying the error until runtime lets us customise lockdown behaviour.
    return new FERAL_FUNCTION(
      'return (async function* AsyncGeneratorFunctionInstance() {})',
    )();
  } catch (error) {
    // Note: `Error.prototype.jsEngine` is only set by React Native runtime, not Hermes:
    // https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.cpp#L224-L230
    if (error.name === 'SyntaxError') {
      // Swallows Hermes error `async generators are unsupported` at runtime.
      // Note: `console` is not a JS built-in, so Hermes engine throws:
      // Uncaught ReferenceError: Property 'console' doesn't exist
      // See: https://github.com/facebook/hermes/issues/675
      // However React Native provides a `console` implementation when setting up error handling:
      // https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js
      return undefined;
    } else if (error.name === 'EvalError') {
      // eslint-disable-next-line no-empty-function
      return async function* AsyncGeneratorFunctionInstance() {};
    } else {
      throw error;
    }
  }
};

/**
 * If the platform supports async generator functions, this will be an
 * async generator function instance. Otherwise, it will be `undefined`.
 *
 * @type {AsyncGeneratorFunction | undefined}
 */
       const AsyncGeneratorFunctionInstance =
  getAsyncGeneratorFunctionInstance();$h͏_once.AsyncGeneratorFunctionInstance(AsyncGeneratorFunctionInstance);
})()
,
// === 1. ses ./src/assert-sloppy-mode.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);

/** getThis returns globalThis in sloppy mode or undefined in strict mode. */
function getThis() {
  return this;
}

if (getThis()) {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_SLOPPY.md
  throw TypeError(`SES failed to initialize, sloppy mode (SES_NO_SLOPPY)`);
}
})()
,
// === 2. env-options ./src/env-options.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */
// @ts-check

// `@endo/env-options` needs to be imported quite early, and so should
// avoid importing from ses or anything that depends on ses.

// /////////////////////////////////////////////////////////////////////////////
// Prelude of cheap good - enough imitations of things we'd use or
// do differently if we could depend on ses

// eslint-disable-next-line no-restricted-globals
const localThis = globalThis;

const { Object, Reflect, Array, String, JSON, Error } = localThis;
const { freeze } = Object;
const { apply } = Reflect;

// Should be equivalent to the one in ses' commons.js even though it
// uses the other technique.
const uncurryThis =
  fn =>
  (receiver, ...args) =>
    apply(fn, receiver, args);
const arrayPush = uncurryThis(Array.prototype.push);
const arrayIncludes = uncurryThis(Array.prototype.includes);
const stringSplit = uncurryThis(String.prototype.split);

const q = JSON.stringify;

const Fail = (literals, ...args) => {
  let msg = literals[0];
  for (let i = 0; i < args.length; i += 1) {
    msg = `${msg}${args[i]}${literals[i + 1]}`;
  }
  throw Error(msg);
};

// end prelude
// /////////////////////////////////////////////////////////////////////////////

/**
 * `makeEnvironmentCaptor` provides a mechanism for getting environment
 * variables, if they are needed, and a way to catalog the names of all
 * the environment variables that were captured.
 *
 * @param {object} aGlobal
 * @param {boolean} [dropNames] Defaults to false. If true, don't track
 * names used.
 */
       const makeEnvironmentCaptor = (aGlobal, dropNames = false) => {
  /** @type {string[]} */
  const capturedEnvironmentOptionNames = [];

  /**
   * Gets an environment option by name and returns the option value or the
   * given default.
   *
   * @param {string} optionName
   * @param {string} defaultSetting
   * @param {string[]} [optOtherValues]
   * If provided, the option value must be included or match `defaultSetting`.
   * @returns {string}
   */
  const getEnvironmentOption = (
    optionName,
    defaultSetting,
    optOtherValues = undefined,
  ) => {
    typeof optionName === 'string' ||
      Fail`Environment option name ${q(optionName)} must be a string.`;
    typeof defaultSetting === 'string' ||
      Fail`Environment option default setting ${q(
        defaultSetting,
      )} must be a string.`;

    /** @type {string} */
    let setting = defaultSetting;
    const globalProcess = aGlobal.process || undefined;
    const globalEnv =
      (typeof globalProcess === 'object' && globalProcess.env) || undefined;
    if (typeof globalEnv === 'object') {
      if (optionName in globalEnv) {
        if (!dropNames) {
          arrayPush(capturedEnvironmentOptionNames, optionName);
        }
        const optionValue = globalEnv[optionName];
        // eslint-disable-next-line @endo/no-polymorphic-call
        typeof optionValue === 'string' ||
          Fail`Environment option named ${q(
            optionName,
          )}, if present, must have a corresponding string value, got ${q(
            optionValue,
          )}`;
        setting = optionValue;
      }
    }
    optOtherValues === undefined ||
      setting === defaultSetting ||
      arrayIncludes(optOtherValues, setting) ||
      Fail`Unrecognized ${q(optionName)} value ${q(
        setting,
      )}. Expected one of ${q([defaultSetting, ...optOtherValues])}`;
    return setting;
  };
  freeze(getEnvironmentOption);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @returns {T[]}
   */
  const getEnvironmentOptionsList = optionName => {
    const option = getEnvironmentOption(optionName, '');
    return freeze(option === '' ? [] : stringSplit(option, ','));
  };
  freeze(getEnvironmentOptionsList);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @param {T} element
   * @returns {boolean}
   */
  const environmentOptionsListHas = (optionName, element) =>
    arrayIncludes(getEnvironmentOptionsList(optionName), element);

  const getCapturedEnvironmentOptionNames = () => {
    return freeze([...capturedEnvironmentOptionNames]);
  };
  freeze(getCapturedEnvironmentOptionNames);

  return freeze({
    getEnvironmentOption,
    getEnvironmentOptionsList,
    environmentOptionsListHas,
    getCapturedEnvironmentOptionNames,
  });
};$h͏_once.makeEnvironmentCaptor(makeEnvironmentCaptor);
freeze(makeEnvironmentCaptor);

/**
 * For the simple case, where the global in question is `globalThis` and no
 * reporting of option names is desired.
 */
       const {
  getEnvironmentOption,
  getEnvironmentOptionsList,
  environmentOptionsListHas,
} = makeEnvironmentCaptor(localThis, true);$h͏_once.getEnvironmentOption(getEnvironmentOption);$h͏_once.getEnvironmentOptionsList(getEnvironmentOptionsList);$h͏_once.environmentOptionsListHas(environmentOptionsListHas);
})()
,
// === 3. env-options ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/env-options.js", []]]);
})()
,
// === 4. immutable-arraybuffer ./src/immutable-arraybuffer-pony.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */

const {
  ArrayBuffer,
  Object,
  Reflect,
  Symbol,
  TypeError,
  Uint8Array,
  WeakMap,
  // Capture structuredClone before it can be scuttled.
  structuredClone: optStructuredClone
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

const { freeze, defineProperty, getPrototypeOf, getOwnPropertyDescriptor } =
  Object;
const { apply, ownKeys } = Reflect;
const { toStringTag } = Symbol;

const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { slice, transfer: optTransfer } = arrayBufferPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: arrayBufferByteLength } = getOwnPropertyDescriptor(
  arrayBufferPrototype,
  'byteLength',
);

const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);
const { set: uint8ArraySet } = typedArrayPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: uint8ArrayBuffer } = getOwnPropertyDescriptor(
  typedArrayPrototype,
  'buffer',
);

/**
 * Copy a range of values from a genuine ArrayBuffer exotic object into a new
 * ArrayBuffer.
 *
 * @param {ArrayBuffer} realBuffer
 * @param {number} [start]
 * @param {number} [end]
 * @returns {ArrayBuffer}
 */
const arrayBufferSlice = (realBuffer, start = undefined, end = undefined) =>
  apply(slice, realBuffer, [start, end]);

/**
 * Move the contents of a genuine ArrayBuffer exotic object into a new fresh
 * ArrayBuffer and detach the original source.
 * We can only do this on platforms that support `structuredClone` or
 * `ArrayBuffer.prototype.transfer`.
 * On other platforms, we can still emulate
 * `ArrayBuffer.prototoype.sliceToImmutable`, but not
 * `ArrayBuffer.prototype.transferToImmutable`.
 * Currently, these known-deficient platforms are
 * - Hermes
 * - Node.js <= 16
 * - Apparently some versions of JavaScriptCore that are still of concern.
 *
 * @param {ArrayBuffer} arrayBuffer
 * @returns {ArrayBuffer}
 */
let optArrayBufferTransfer;

if (optTransfer) {
  optArrayBufferTransfer = arrayBuffer => apply(optTransfer, arrayBuffer, []);
} else if (optStructuredClone) {
  optArrayBufferTransfer = arrayBuffer => {
    // Hopefully, a zero-length slice is cheap, but still enforces that
    // `arrayBuffer` is a genuine `ArrayBuffer` exotic object.
    arrayBufferSlice(arrayBuffer, 0, 0);
    return optStructuredClone(arrayBuffer, {
      transfer: [arrayBuffer],
    });
  };
} else {
  // Assignment is redundant, but remains for clarity.
  optArrayBufferTransfer = undefined;
}

/**
 * If we could use classes with private fields everywhere, this would have
 * been a `this.#buffer` private field on an `ImmutableArrayBufferInternal`
 * class. But we cannot do so on Hermes. So, instead, we
 * emulate the `this.#buffer` private field, including its use as a brand check.
 * Maps from all and only emulated Immutable ArrayBuffers to real ArrayBuffers.
 *
 * @type {Pick<WeakMap<ArrayBuffer, ArrayBuffer>, 'get' | 'has' | 'set'>}
 */
const buffers = new WeakMap();
// Avoid post-hoc prototype lookups.
for (const methodName of ['get', 'has', 'set']) {
  defineProperty(buffers, methodName, { value: buffers[methodName] });
}
const getBuffer = immuAB => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  const result = buffers.get(immuAB);
  if (result) {
    return result;
  }
  throw TypeError('Not an emulated Immutable ArrayBuffer');
};

// Omits `constructor` so `Array.prototype.constructor` is inherited.
const ImmutableArrayBufferInternalPrototype = {
  __proto__: arrayBufferPrototype,
  get byteLength() {
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get detached() {
    getBuffer(this); // shim brand check
    return false;
  },
  get maxByteLength() {
    // Not underlying maxByteLength, which is irrelevant
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get resizable() {
    getBuffer(this); // shim brand check
    return false;
  },
  get immutable() {
    getBuffer(this); // shim brand check
    return true;
  },
  slice(start = undefined, end = undefined) {
    return arrayBufferSlice(getBuffer(this), start, end);
  },
  sliceToImmutable(start = undefined, end = undefined) {
    // eslint-disable-next-line no-use-before-define
    return sliceBufferToImmutable(getBuffer(this), start, end);
  },
  resize(_newByteLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot resize an immutable ArrayBuffer');
  },
  transfer(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToFixedLength(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToImmutable(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  /**
   * See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
   */
  [toStringTag]: 'ImmutableArrayBuffer',
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(ImmutableArrayBufferInternalPrototype)) {
  defineProperty(ImmutableArrayBufferInternalPrototype, key, {
    enumerable: false,
  });
}

/**
 * Emulates what would have been the encapsulated `ImmutableArrayBufferInternal`
 * class constructor. This function takes the `realBuffer` which its
 * result encapsulates. Security demands that this result has exclusive access
 * to the `realBuffer` it is given, which its callers must ensure.
 *
 * @param {ArrayBuffer} realBuffer
 * @returns {ArrayBuffer}
 */
const makeImmutableArrayBufferInternal = realBuffer => {
  const result = /** @type {ArrayBuffer} */ (
    /** @type {unknown} */ ({
      __proto__: ImmutableArrayBufferInternalPrototype,
    })
  );
  // Safe because this WeakMap owns its set method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  buffers.set(result, realBuffer);
  return result;
};
// Since `makeImmutableArrayBufferInternal` MUST not escape,
// this `freeze` is just belt-and-suspenders.
freeze(makeImmutableArrayBufferInternal);

/**
 * @param {ArrayBuffer} buffer
 * @returns {boolean}
 */
// eslint-disable-next-line @endo/no-polymorphic-call
       const isBufferImmutable = buffer => buffers.has(buffer);

/**
 * Creates an immutable slice of the given buffer.
 * @param {ArrayBuffer} buffer The original buffer.
 * @param {number} [start] The start index.
 * @param {number} [end] The end index.
 * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
 */$h͏_once.isBufferImmutable(isBufferImmutable);
       const sliceBufferToImmutable = (
  buffer,
  start = undefined,
  end = undefined,
) => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  let realBuffer = buffers.get(buffer);
  if (realBuffer === undefined) {
    realBuffer = buffer;
  }
  return makeImmutableArrayBufferInternal(
    arrayBufferSlice(realBuffer, start, end),
  );
};$h͏_once.sliceBufferToImmutable(sliceBufferToImmutable);

let transferBufferToImmutable;
if (optArrayBufferTransfer) {
  /**
   * Transfer the contents to a new Immutable ArrayBuffer
   *
   * @param {ArrayBuffer} buffer The original buffer.
   * @param {number} [newLength] The start index.
   * @returns {ArrayBuffer}
   */
  transferBufferToImmutable = (buffer, newLength = undefined) => {
    if (newLength === undefined) {
      buffer = optArrayBufferTransfer(buffer);
    } else if (optTransfer) {
      buffer = apply(optTransfer, buffer, [newLength]);
    } else {
      buffer = optArrayBufferTransfer(buffer);
      const oldLength = buffer.byteLength;
      // eslint-disable-next-line @endo/restrict-comparison-operands
      if (newLength <= oldLength) {
        buffer = arrayBufferSlice(buffer, 0, newLength);
      } else {
        const oldTA = new Uint8Array(buffer);
        const newTA = new Uint8Array(newLength);
        apply(uint8ArraySet, newTA, [oldTA]);
        buffer = apply(uint8ArrayBuffer, newTA, []);
      }
    }
    const result = makeImmutableArrayBufferInternal(buffer);
    return /** @type {ArrayBuffer} */ (/** @type {unknown} */ (result));
  };
} else {
  transferBufferToImmutable = undefined;
}

       const optTransferBufferToImmutable = transferBufferToImmutable;$h͏_once.optTransferBufferToImmutable(optTransferBufferToImmutable);
})()
,
// === 5. immutable-arraybuffer ./src/immutable-arraybuffer-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let isBufferImmutable,sliceBufferToImmutable,optXferBuf2Immu;$h͏_imports([["./immutable-arraybuffer-pony.js", [["isBufferImmutable",[$h͏_a => (isBufferImmutable = $h͏_a)]],["sliceBufferToImmutable",[$h͏_a => (sliceBufferToImmutable = $h͏_a)]],["optTransferBufferToImmutable",[$h͏_a => (optXferBuf2Immu = $h͏_a)]]]]]);







const {
  ArrayBuffer,
  JSON,
  Object,
  Reflect
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

// Even though the imported one is not exported by the pony as a live binding,
// TS doesn't know that,
// so it cannot do its normal flow-based inference. By making and using a local
// copy, no problem.
const optTransferBufferToImmutable = optXferBuf2Immu;

const { getOwnPropertyDescriptors, defineProperties, defineProperty } = Object;
const { ownKeys } = Reflect;
const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { stringify } = JSON;

const arrayBufferMethods = {
  /**
   * Creates an immutable slice of the given buffer.
   *
   * @this {ArrayBuffer} buffer The original buffer.
   * @param {number} [start] The start index.
   * @param {number} [end] The end index.
   * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
   */
  sliceToImmutable(start = undefined, end = undefined) {
    return sliceBufferToImmutable(this, start, end);
  },

  /**
   * @this {ArrayBuffer}
   */
  get immutable() {
    return isBufferImmutable(this);
  },

  ...(optTransferBufferToImmutable
    ? {
        /**
         * Transfer the contents to a new immutable ArrayBuffer
         *
         * @this {ArrayBuffer} buffer The original buffer.
         * @param {number} [newLength] The start index.
         * @returns {ArrayBuffer} The new immutable ArrayBuffer.
         */
        transferToImmutable(newLength = undefined) {
          return optTransferBufferToImmutable(this, newLength);
        },
      }
    : {}),
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(arrayBufferMethods)) {
  defineProperty(arrayBufferMethods, key, {
    enumerable: false,
  });
}

// Modern shim practice frowns on conditional installation, at least for
// proposals prior to stage 3. This is so changes to the proposal since
// an old shim was distributed don't need to worry about the proposal
// breaking old code depending on the old shim. Thus, if we detect that
// we're about to overwrite a prior installation, we simply issue this
// warning and continue.
//
// TODO, if the primordials are frozen after the prior implementation, such as
// by `lockdown`, then this precludes overwriting as expected. However, for
// this case, the following warning text will be confusing.
//
// Allowing polymorphic calls because these occur during initialization.
// eslint-disable-next-line @endo/no-polymorphic-call
const overwrites = ownKeys(arrayBufferMethods).filter(
  key => key in arrayBufferPrototype,
);
if (overwrites.length > 0) {
  // eslint-disable-next-line @endo/no-polymorphic-call
  console.warn(
    `About to overwrite ArrayBuffer.prototype properties ${stringify(overwrites)}`,
  );
}

defineProperties(
  arrayBufferPrototype,
  getOwnPropertyDescriptors(arrayBufferMethods),
);
})()
,
// === 6. immutable-arraybuffer ./shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/immutable-arraybuffer-shim.js", []]]);
})()
,
// === 7. ses ./src/error/stringify-utils.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,isArray,arrayJoin,arraySlice,arraySort,arrayMap,keys,fromEntries,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h͏_imports([["../commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["stringifyJson",[$h͏_a => (stringifyJson = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






















/** @import {Stringable} from '../../types.js' */

/**
 * Joins English terms with commas and an optional conjunction.
 *
 * @param {(string | Stringable)[]} terms
 * @param {"and" | "or"} conjunction
 */
       const enJoin = (terms, conjunction) => {
  if (terms.length === 0) {
    return '(none)';
  } else if (terms.length === 1) {
    return terms[0];
  } else if (terms.length === 2) {
    const [first, second] = terms;
    return `${first} ${conjunction} ${second}`;
  } else {
    return `${arrayJoin(arraySlice(terms, 0, -1), ', ')}, ${conjunction} ${
      terms[terms.length - 1]
    }`;
  }
};

/**
 * Prepend the correct indefinite article onto a noun, typically a typeof
 * result, e.g., "an object" vs. "a number"
 *
 * @param {string} str The noun to prepend
 * @returns {string} The noun prepended with a/an
 */$h͏_once.enJoin(enJoin);
const an = str => {
  str = `${str}`;
  if (str.length >= 1 && stringIncludes('aeiouAEIOU', str[0])) {
    return `an ${str}`;
  }
  return `a ${str}`;
};$h͏_once.an(an);
freeze(an);


/**
 * Like `JSON.stringify` but does not blow up if given a cycle or a bigint.
 * This is not
 * intended to be a serialization to support any useful unserialization,
 * or any programmatic use of the resulting string. The string is intended
 * *only* for showing a human under benign conditions, in order to be
 * informative enough for some
 * logging purposes. As such, this `bestEffortStringify` has an
 * imprecise specification and may change over time.
 *
 * The current `bestEffortStringify` possibly emits too many "seen"
 * markings: Not only for cycles, but also for repeated subtrees by
 * object identity.
 *
 * As a best effort only for diagnostic interpretation by humans,
 * `bestEffortStringify` also turns various cases that normal
 * `JSON.stringify` skips or errors on, like `undefined` or bigints,
 * into strings that convey their meaning. To distinguish this from
 * strings in the input, these synthesized strings always begin and
 * end with square brackets. To distinguish those strings from an
 * input string with square brackets, and input string that starts
 * with an open square bracket `[` is itself placed in square brackets.
 *
 * @param {any} payload
 * @param {(string|number)=} spaces
 * @returns {string}
 */
const bestEffortStringify = (payload, spaces = undefined) => {
  const seenSet = new Set();
  const replacer = (_, val) => {
    switch (typeof val) {
      case 'object': {
        if (val === null) {
          return null;
        }
        if (setHas(seenSet, val)) {
          return '[Seen]';
        }
        setAdd(seenSet, val);
        if (isError(val)) {
          return `[${val.name}: ${val.message}]`;
        }
        if (toStringTagSymbol in val) {
          // For the built-ins that have or inherit a `Symbol.toStringTag`-named
          // property, most of them inherit the default `toString` method,
          // which will print in a similar manner: `"[object Foo]"` vs
          // `"[Foo]"`. The exceptions are
          //    * `Symbol.prototype`, `BigInt.prototype`, `String.prototype`
          //      which don't matter to us since we handle primitives
          //      separately and we don't care about primitive wrapper objects.
          //    * TODO
          //      `Date.prototype`, `TypedArray.prototype`.
          //      Hmmm, we probably should make special cases for these. We're
          //      not using these yet, so it's not urgent. But others will run
          //      into these.
          //
          // Once #2018 is closed, the only objects in our code that have or
          // inherit a `Symbol.toStringTag`-named property are remotables
          // or their remote presences.
          // This printing will do a good job for these without
          // violating abstraction layering. This behavior makes sense
          // purely in terms of JavaScript concepts. That's some of the
          // motivation for choosing that representation of remotables
          // and their remote presences in the first place.
          return `[${val[toStringTagSymbol]}]`;
        }
        if (isArray(val)) {
          return val;
        }
        const names = keys(val);
        if (names.length < 2) {
          return val;
        }
        let sorted = true;
        for (let i = 1; i < names.length; i += 1) {
          if (names[i - 1] >= names[i]) {
            sorted = false;
            break;
          }
        }
        if (sorted) {
          return val;
        }
        arraySort(names);
        const entries = arrayMap(names, name => [name, val[name]]);
        return fromEntries(entries);
      }
      case 'function': {
        return `[Function ${val.name || '<anon>'}]`;
      }
      case 'string': {
        if (stringStartsWith(val, '[')) {
          return `[${val}]`;
        }
        return val;
      }
      case 'undefined':
      case 'symbol': {
        return `[${String(val)}]`;
      }
      case 'bigint': {
        return `[${val}n]`;
      }
      case 'number': {
        if (is(val, NaN)) {
          return '[NaN]';
        } else if (val === Infinity) {
          return '[Infinity]';
        } else if (val === -Infinity) {
          return '[-Infinity]';
        }
        return val;
      }
      default: {
        return val;
      }
    }
  };
  try {
    return stringifyJson(payload, replacer, spaces);
  } catch (_err) {
    // Don't do anything more fancy here if there is any
    // chance that might throw, unless you surround that
    // with another try-catch-recovery. For example,
    // the caught thing might be a proxy or other exotic
    // object rather than an error. The proxy might throw
    // whenever it is possible for it to.
    return '[Something that failed to stringify]';
  }
};$h͏_once.bestEffortStringify(bestEffortStringify);
freeze(bestEffortStringify);
})()
,
// === 8. ses ./src/error/types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/** @import {GenericErrorConstructor, AssertMakeErrorOptions, DetailsToken, Stringable} from '../../types.js' */

/**
 * @typedef {object} VirtualConsole
 * @property {Console['debug']} debug
 * @property {Console['log']} log
 * @property {Console['info']} info
 * @property {Console['warn']} warn
 * @property {Console['error']} error
 *
 * @property {Console['trace']} trace
 * @property {Console['dirxml']} dirxml
 * @property {Console['group']} group
 * @property {Console['groupCollapsed']} groupCollapsed
 *
 * @property {Console['assert']} assert
 * @property {Console['timeLog']} timeLog
 *
 * @property {Console['clear']} clear
 * @property {Console['count']} count
 * @property {Console['countReset']} countReset
 * @property {Console['dir']} dir
 * @property {Console['groupEnd']} groupEnd
 *
 * @property {Console['table']} table
 * @property {Console['time']} time
 * @property {Console['timeEnd']} timeEnd
 * @property {Console['timeStamp']} timeStamp
 */

/* This is deliberately *not* JSDoc, it is a regular comment.
 *
 * TODO: We'd like to add the following properties to the above
 * VirtualConsole, but they currently cause conflicts where
 * some Typescript implementations don't have these properties
 * on the Console type.
 *
 * @property {Console['profile']} profile
 * @property {Console['profileEnd']} profileEnd
 */

/**
 * @typedef {'debug' | 'log' | 'info' | 'warn' | 'error'} LogSeverity
 */

/**
 * @typedef ConsoleFilter
 * @property {(severity: LogSeverity) => boolean} canLog
 */

/**
 * @callback FilterConsole
 * @param {VirtualConsole} baseConsole
 * @param {ConsoleFilter} filter
 * @param {string} [topic]
 * @returns {VirtualConsole}
 */
})()
,
// === 9. ses ./src/error/internal-types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/**
 * @import {VirtualConsole} from './types.js'
 */

/**
 * @typedef {readonly any[]} LogArgs
 *
 * This is an array suitable to be used as arguments of a console
 * level message *after* the format string argument. It is the result of
 * a `details` template string and consists of alternating literal strings
 * and substitution values, starting with a literal string. At least that
 * first literal string is always present.
 */

/**
 * @callback NoteCallback
 *
 * @param {Error} error
 * @param {LogArgs} noteLogArgs
 * @returns {void}
 */

/**
 * @callback GetStackString
 * @param {Error} error
 * @returns {string=}
 */

/**
 * @typedef {object} LoggedErrorHandler
 *
 * Used to parameterize `makeCausalConsole` to give it access to potentially
 * hidden information to augment the logging of errors.
 *
 * @property {GetStackString} getStackString
 * @property {(error: Error) => string} tagError
 * @property {() => void} resetErrorTagNum for debugging purposes only
 * @property {(error: Error) => (LogArgs | undefined)} getMessageLogArgs
 * @property {(error: Error) => (LogArgs | undefined)} takeMessageLogArgs
 * @property {(error: Error, callback?: NoteCallback) => LogArgs[] } takeNoteLogArgsArray
 */

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {readonly [string, ...any[]]} LogRecord
 */

/**
 * @typedef {object} LoggingConsoleKit
 * @property {VirtualConsole} loggingConsole
 * @property {() => readonly LogRecord[]} takeLog
 */

/**
 * @typedef {object} MakeLoggingConsoleKitOptions
 * @property {boolean=} shouldResetForDebugging
 */

/**
 * @callback MakeLoggingConsoleKit
 *
 * A logging console just accumulates the contents of all permitted calls,
 * making them available to callers of `takeLog()`. Calling `takeLog()`
 * consumes these, so later calls to `takeLog()` will only provide a log of
 * calls that have happened since then.
 *
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @param {MakeLoggingConsoleKitOptions=} options
 * @returns {LoggingConsoleKit}
 */

/**
 * @typedef {{
 *   NOTE: 'ERROR_NOTE:',
 *   MESSAGE: 'ERROR_MESSAGE:',
 *   CAUSE: 'cause:',
 *   ERRORS: 'errors:',
 * }} ErrorInfo
 */

/**
 * @typedef {ErrorInfo[keyof ErrorInfo]} ErrorInfoKind
 */

/**
 * @callback MakeCausalConsole
 *
 * Makes a causal console wrapper of a `baseConsole`, where the causal console
 * calls methods of the `loggedErrorHandler` to customize how it handles logged
 * errors.
 *
 * @param {VirtualConsole | undefined} baseConsole
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @returns {VirtualConsole | undefined}
 */
})()
,
// === 10. cache-map ./src/cachemap.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check
/* global globalThis */
/* eslint-disable @endo/no-polymorphic-call */

// eslint-disable-next-line no-restricted-globals
const { Error, TypeError, WeakMap } = globalThis;
// eslint-disable-next-line no-restricted-globals
const { parse, stringify } = JSON;
// eslint-disable-next-line no-restricted-globals
const { isSafeInteger } = Number;
// eslint-disable-next-line no-restricted-globals
const { freeze } = Object;
// eslint-disable-next-line no-restricted-globals
const { toStringTag: toStringTagSymbol } = Symbol;

// eslint-disable-next-line no-restricted-globals
const UNKNOWN_KEY = Symbol('UNKNOWN_KEY');

/**
 * @template T
 * @typedef {T extends object ? { -readonly [K in keyof T]: T[K] } : never} WritableDeep
 *   Intentionally limited to local needs; refer to
 *   https://github.com/sindresorhus/type-fest if insufficient.
 */

/**
 * @template T
 * @param {T} value
 * @param {<U,>(name: string, value: U) => U} [reviver]
 * @returns {WritableDeep<T>}
 */
const deepCopyJsonable = (value, reviver) => {
  const encoded = stringify(value);
  const decoded = parse(encoded, reviver);
  return decoded;
};

const freezingReviver = (_name, value) => freeze(value);

/** @type {<T,>(value: T) => T} */
const deepCopyAndFreezeJsonable = value =>
  deepCopyJsonable(value, freezingReviver);

/**
 * A cache of bounded size, implementing the WeakMap interface but holding keys
 * strongly if created with a non-weak `makeMap` option of
 * {@link makeCacheMapKit}.
 *
 * @template K
 * @template V
 * @typedef {Pick<Map<K, V>, Exclude<keyof WeakMap<WeakKey, *>, 'set'>> & {set: (key: K, value: V) => WeakMapAPI<K, V>}} WeakMapAPI
 */

/**
 * @template K
 * @template V
 * @typedef {WeakMapAPI<K, V> & ({clear?: undefined} | Pick<Map<K, V>, 'clear'>)} SingleEntryMap
 */

/**
 * A cell of a doubly-linked ring (circular list) for a cache map.
 * Instances are not frozen, and so should be closely encapsulated.
 *
 * @template K
 * @template V
 * @typedef {object} CacheMapCell
 * @property {number} id for debugging
 * @property {CacheMapCell<K, V>} next
 * @property {CacheMapCell<K, V>} prev
 * @property {SingleEntryMap<K, V>} data
 */

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} prev
 * @param {number} id
 * @param {SingleEntryMap<K, V>} data
 * @returns {CacheMapCell<K, V>}
 */
const appendNewCell = (prev, id, data) => {
  const next = prev?.next;
  const cell = { id, next, prev, data };
  prev.next = cell;
  next.prev = cell;
  return cell;
};

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {CacheMapCell<K, V>} prev
 * @param {CacheMapCell<K, V>} [next]
 */
const moveCellAfter = (cell, prev, next = prev.next) => {
  if (cell === prev || cell === next) return; // already in position

  // Splice out cell.
  const { prev: oldPrev, next: oldNext } = cell;
  oldPrev.next = oldNext;
  oldNext.prev = oldPrev;

  // Splice in cell after prev.
  cell.prev = prev;
  cell.next = next;
  prev.next = cell;
  next.prev = cell;
};

/**
 * Clear out a cell to prepare it for future use. Its map is preserved when
 * possible, but must instead be replaced if the associated key is not known.
 *
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {K | UNKNOWN_KEY} oldKey
 * @param {() => SingleEntryMap<K, V>} [makeMap] required when the key is unknown
 */
const resetCell = (cell, oldKey, makeMap) => {
  if (oldKey !== UNKNOWN_KEY) {
    cell.data.delete(oldKey);
    return;
  }
  if (cell.data.clear) {
    cell.data.clear();
    return;
  }
  // WeakMap instances must be replaced when the key is unknown.
  if (!makeMap) {
    throw Error('internal: makeMap is required with UNKNOWN_KEY');
  }
  cell.data = makeMap();
};

const zeroMetrics = freeze({
  totalQueryCount: 0,
  totalHitCount: 0
  // TODO?
  // * method-specific counts
  // * liveTouchStats/evictedTouchStats { count, sum, mean, min, max }
  //   * p50/p90/p95/p99 via Ben-Haim/Tom-Tov streaming histograms
});
/** @typedef {typeof zeroMetrics} CacheMapMetrics */

/**
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @typedef {object} CacheMapKit
 * @property {WeakMapAPI<K, V>} cache
 * @property {() => CacheMapMetrics} getMetrics
 */

/**
 * Create a bounded-size cache having WeakMap-compatible
 * `has`/`get`/`set`/`delete` methods, capable of supporting SES (specifically
 * `assert` error notes).
 * Key validity, comparison, and referential strength are controlled by the
 * `makeMap` option, which defaults to `WeakMap` but can be set to any producer
 * of objects with those methods (e.g., using `Map` allows for arbitrary keys
 * which will be strongly held).
 * Cache eviction policy is not currently configurable, but strives for a hit
 * ratio at least as good as
 * [LRU](https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU) (e.g., it
 * might be
 * [CLOCK](https://en.wikipedia.org/wiki/Page_replacement_algorithm#Clock)
 * or [SIEVE](https://sievecache.com/)).
 *
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @param {number} capacity
 * @param {object} [options]
 * @param {C | (() => SingleEntryMap<K, V>)} [options.makeMap]
 * @returns {CacheMapKit<C, K, V>}
 */
       const makeCacheMapKit = (capacity, options = {}) => {
  if (!isSafeInteger(capacity) || capacity < 0) {
    throw TypeError(
      'capacity must be a non-negative safe integer number <= 2**53 - 1',
    );
  }

  /**
   * @template V
   * @type {<V,>() => SingleEntryMap<K, V>}
   */
  const makeMap = (MaybeCtor => {
    try {
      // @ts-expect-error
      MaybeCtor();
      return /** @type {any} */ (MaybeCtor);
    } catch (err) {
      // @ts-expect-error
      const constructNewMap = () => new MaybeCtor();
      return constructNewMap;
    }
  })(options.makeMap ?? WeakMap);
  const tag =
    /** @type {any} */ (makeMap()).clear === undefined
      ? 'WeakCacheMap'
      : 'CacheMap';

  /** @type {WeakMapAPI<K, CacheMapCell<K, V>>} */
  const keyToCell = makeMap();
  // @ts-expect-error this sentinel head is special
  const head = /** @type {CacheMapCell<K, V>} */ ({
    id: 0,
    // next and prev are established below as self-referential.
    next: undefined,
    prev: undefined,
    data: {
      has: () => {
        throw Error('internal: sentinel head cell has no data');
      },
    },
  });
  head.next = head;
  head.prev = head;
  let cellCount = 0;

  const metrics = deepCopyJsonable(zeroMetrics);
  const getMetrics = () => deepCopyAndFreezeJsonable(metrics);

  /**
   * Touching moves a cell to first position so LRU eviction can target the last
   * cell (`head.prev`).
   *
   * @type {(key: K) => (CacheMapCell<K, V> | undefined)}
   */
  const touchKey = key => {
    metrics.totalQueryCount += 1;
    const cell = keyToCell.get(key);
    if (!cell?.data.has(key)) return undefined;

    metrics.totalHitCount += 1;
    moveCellAfter(cell, head);
    return cell;
  };

  /** @type {WeakMapAPI<K, V>['has']} */
  const has = key => {
    const cell = touchKey(key);
    return cell !== undefined;
  };
  freeze(has);

  /** @type {WeakMapAPI<K, V>['get']} */
  const get = key => {
    const cell = touchKey(key);
    return cell?.data.get(key);
  };
  freeze(get);

  /** @type {WeakMapAPI<K, V>['set']} */
  const set = (key, value) => {
    let cell = touchKey(key);
    if (cell) {
      cell.data.set(key, value);
      // eslint-disable-next-line no-use-before-define
      return implementation;
    }

    if (cellCount < capacity) {
      // Add and use a new cell at first position.
      cell = appendNewCell(head, cellCount + 1, makeMap());
      cellCount += 1; // intentionally follows cell creation
      cell.data.set(key, value);
    } else if (capacity > 0) {
      // Reuse the current tail, moving it to first position.
      cell = head.prev;
      resetCell(/** @type {any} */ (cell), UNKNOWN_KEY, makeMap);
      cell.data.set(key, value);
      moveCellAfter(cell, head);
    }

    // Don't establish this entry until prior steps succeed.
    if (cell) keyToCell.set(key, cell);

    // eslint-disable-next-line no-use-before-define
    return implementation;
  };
  freeze(set);

  // "delete" is a keyword.
  const { delete: deleteEntry } = {
    /** @type {WeakMapAPI<K, V>['delete']} */
    delete: key => {
      const cell = keyToCell.get(key);
      if (!cell?.data.has(key)) {
        keyToCell.delete(key);
        return false;
      }
      moveCellAfter(cell, head.prev);
      resetCell(cell, key);
      keyToCell.delete(key);
      return true;
    },
  };
  freeze(deleteEntry);

  const implementation = /** @type {WeakMapAPI<K, V>} */ ({
    has,
    get,
    set,
    delete: deleteEntry,
    // eslint-disable-next-line jsdoc/check-types
    [/** @type {typeof Symbol.toStringTag} */ (toStringTagSymbol)]: tag,
  });
  freeze(implementation);

  const kit = { cache: implementation, getMetrics };
  return freeze(kit);
};$h͏_once.makeCacheMapKit(makeCacheMapKit);
freeze(makeCacheMapKit);
})()
,
// === 11. cache-map ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/cachemap.js", []]]);
})()
,
// === 12. ses ./src/error/note-log-args.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeCacheMapKit;$h͏_imports([["@endo/cache-map", [["makeCacheMapKit",[$h͏_a => (makeCacheMapKit = $h͏_a)]]]]]);





/**
 * @import {CacheMapKit} from '@endo/cache-map';
 * @import {LogArgs} from './internal-types.js';
 */

const { freeze } = Object;
const { isSafeInteger } = Number;

const defaultLoggedErrorsBudget = 1000;
const defaultArgsPerErrorBudget = 100;

/**
 * @param {number} [errorsBudget]
 * @param {number} [argsPerErrorBudget]
 */
       const makeNoteLogArgsArrayKit = (
  errorsBudget = defaultLoggedErrorsBudget,
  argsPerErrorBudget = defaultArgsPerErrorBudget,
) => {
  if (!isSafeInteger(argsPerErrorBudget) || argsPerErrorBudget < 1) {
    throw TypeError(
      'argsPerErrorBudget must be a safe positive integer number',
    );
  }

  /**
   * Maps from an error to an array of log args, where each log args is
   * remembered as an annotation on that error. This can be used, for example,
   * to keep track of additional causes of the error. The elements of any
   * log args may include errors which are associated with further annotations.
   * An augmented console, like the causal console of `console.js`, could
   * then retrieve the graph of such annotations.
   *
   * @type {CacheMapKit<WeakMapConstructor, Error, LogArgs[]>}
   */
  const { cache: noteLogArgsArrayMap } = makeCacheMapKit(errorsBudget);

  /**
   * @param {Error} error
   * @param {LogArgs} logArgs
   */
  const addLogArgs = (error, logArgs) => {
    const logArgsArray = noteLogArgsArrayMap.get(error);
    if (logArgsArray !== undefined) {
      if (logArgsArray.length >= argsPerErrorBudget) {
        logArgsArray.shift();
      }
      logArgsArray.push(logArgs);
    } else {
      noteLogArgsArrayMap.set(error, [logArgs]);
    }
  };
  freeze(addLogArgs);

  /**
   * @param {Error} error
   * @returns {LogArgs[] | undefined}
   */
  const takeLogArgsArray = error => {
    const result = noteLogArgsArrayMap.get(error);
    noteLogArgsArrayMap.delete(error);
    return result;
  };
  freeze(takeLogArgsArray);

  return freeze({
    addLogArgs,
    takeLogArgsArray,
  });
};$h͏_once.makeNoteLogArgsArrayKit(makeNoteLogArgsArrayKit);
freeze(makeNoteLogArgsArrayKit);
})()
,
// === 13. ses ./src/error/assert.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpExec,regexpReplace,sealRegexp,stringIndexOf,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
















































/**
 * @import {BaseAssert, Assert, AssertionFunctions, AssertionUtilities, DeprecatedAssertionUtilities, Stringable, DetailsToken, MakeAssert} from '../../types.js';
 * @import {LogArgs, NoteCallback, LoggedErrorHandler} from './internal-types.js';
 */

// For internal debugging purposes, uncomment
// const internalDebugConsole = console;

// /////////////////////////////////////////////////////////////////////////////

/**
 * Maps the result of a `quote` or `bare` call back to its input value.
 *
 * @type {WeakMap<Stringable, any>}
 */
const declassifiers = new WeakMap();

/** @type {AssertionUtilities['quote']} */
const quote = (value, spaces = undefined) => {
  const result = freeze({
    toString: freeze(() => bestEffortStringify(value, spaces)),
  });
  weakmapSet(declassifiers, result, value);
  return result;
};$h͏_once.quote(quote);
freeze(quote);

const canBeBare = freeze(/^[\w:-]( ?[\w:-])*$/);

/**
 * @type {AssertionUtilities['bare']}
 */
const bare = (text, spaces = undefined) => {
  if (typeof text !== 'string' || !regexpExec(canBeBare, text)) {
    return quote(text, spaces);
  }
  const result = freeze({
    toString: freeze(() => text),
  });
  weakmapSet(declassifiers, result, text);
  return result;
};$h͏_once.bare(bare);
freeze(bare);

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {{ template: TemplateStringsArray | string[], args: any[] }} DetailsParts
 *
 * The contents of a `details` template literal tag: literal strings (always at
 * least one) and arbitrary substitution values from in between them.
 *
 * Unquoted substitution values are sensitive (and are redacted in error
 * `message` strings), so a DetailsPart must not leak outside of this file.
 */

/**
 * Maps the result of a `details` tagged template literal back to a record of
 * that template literal's contents.
 *
 * @type {WeakMap<DetailsToken, DetailsParts>}
 */
const hiddenDetailsMap = new WeakMap();

/**
 * Construct an error message string from `details` template literal contents,
 * replacing unquoted substitution values with redactions.
 *
 * @param {DetailsParts} hiddenDetails
 * @returns {string}
 */
const getMessageString = ({ template, args }) => {
  const parts = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    const arg = args[i];
    let argStr;
    if (weakmapHas(declassifiers, arg)) {
      argStr = `${arg}`;
    } else if (isError(arg)) {
      argStr = `(${an(arg.name)})`;
    } else {
      argStr = `(${an(typeof arg)})`;
    }
    arrayPush(parts, argStr, template[i + 1]);
  }
  return arrayJoin(parts, '');
};

/**
 * Define `toString` behavior for DetailsToken. To minimize the overhead of
 * creating new instances, we do this with an inherited `this`-sensitive method,
 * even though we normally avoid such sensitivity. To protect the method from
 * inappropriate application, it verifies that `this` is registered in
 * `redactedDetails` before doing interesting work.
 *
 * The behavior must not reveal anything redacted, so we use `getMessageString`
 * to return the same value as the message for a thrown assertion-failure error.
 */
const DetailsTokenProto = freeze({
  toString() {
    const hiddenDetails = weakmapGet(hiddenDetailsMap, this);
    if (hiddenDetails === undefined) {
      return '[Not a DetailsToken]';
    }
    return getMessageString(hiddenDetails);
  },
});
freeze(DetailsTokenProto.toString);

/**
 * Normally this is the function exported as `assert.details` and often
 * spelled `X`. However, if the `{errorTaming: 'unsafe'}` or
 * `{errorTaming: 'unsafe-debug'}` option is
 * given to `lockdown`, then `unredactedDetails` is used instead.
 *
 * There are some unconditional uses of `redactedDetails` in this module. All
 * of them should be uses where the template literal has no redacted (unquoted)
 * substitution values. In those cases, `redactedDetails` is equivalent to
 * `unredactedDetails`.
 *
 * @type {AssertionUtilities['details']}
 */
const redactedDetails = (template, ...args) => {
  // In case the result of this call is never used, perform as little processing
  // as possible here to keep things fast.
  const detailsToken = freeze({ __proto__: DetailsTokenProto });
  weakmapSet(hiddenDetailsMap, detailsToken, { template, args });
  return /** @type {DetailsToken} */ (/** @type {unknown} */ (detailsToken));
};$h͏_once.redactedDetails(redactedDetails);
freeze(redactedDetails);

/**
 * `unredactedDetails` is like `details` except that it does not redact
 * anything. It acts like `details` would act if all substitution values
 * were wrapped with the `quote` function above (the function normally
 * spelled `q`). If the `{errorTaming: 'unsafe'}`
 * or `{errorTaming: 'unsafe-debug'}` option is given to
 * `lockdown`, then the lockdown-shim arranges for the global `assert` to be
 * one whose `details` property is `unredactedDetails`.
 * This setting optimizes the debugging and testing experience at the price
 * of safety. `unredactedDetails` also sacrifices the speed of `details`,
 * which is usually fine in debugging and testing.
 *
 * @type {AssertionUtilities['details']}
 */
const unredactedDetails = (template, ...args) => {
  args = arrayMap(args, arg =>
    weakmapHas(declassifiers, arg) ? arg : quote(arg),
  );
  return redactedDetails(template, ...args);
};$h͏_once.unredactedDetails(unredactedDetails);
freeze(unredactedDetails);


const leadingSpacePattern = sealRegexp(/^ /);
const trailingSpacePattern = sealRegexp(/ $/);

/**
 * Get arguments suitable for a console logger function (e.g., `console.error`)
 * from `details` template literal contents, unquoting quoted substitution
 * values.
 *
 * @param {DetailsParts} hiddenDetails
 * @returns {LogArgs}
 */
const getLogArgs = ({ template, args }) => {
  const logArgs = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    let arg = args[i];
    if (weakmapHas(declassifiers, arg)) {
      arg = weakmapGet(declassifiers, arg);
    }
    // Remove substitution-adjacent spaces from template fixed-string parts
    // (since console logging inserts its own argument-separating spaces).
    const prevLiteralPart = regexpReplace(
      trailingSpacePattern,
      arrayPop(logArgs) || '',
      '',
    );
    if (prevLiteralPart !== '') {
      arrayPush(logArgs, prevLiteralPart);
    }
    const nextLiteralPart = regexpReplace(
      leadingSpacePattern,
      template[i + 1],
      '',
    );
    arrayPush(logArgs, arg, nextLiteralPart);
  }
  if (logArgs[logArgs.length - 1] === '') {
    arrayPop(logArgs);
  }
  return logArgs;
};

/**
 * Maps from an error object to arguments suitable for a privileged console
 * logger function such as `console.error`, including values that may be
 * redacted in the error's `message`.
 *
 * @type {WeakMap<Error, LogArgs>}
 */
const hiddenMessageLogArgs = new WeakMap();

// So each error tag will be unique.
let errorTagNum = 0;

/**
 * @type {WeakMap<Error, string>}
 */
const errorTags = new WeakMap();

/**
 * @param {Error} err
 * @param {string=} optErrorName
 * @returns {string}
 */
const tagError = (err, optErrorName = err.name) => {
  let errorTag = weakmapGet(errorTags, err);
  if (errorTag !== undefined) {
    return errorTag;
  }
  errorTagNum += 1;
  errorTag = `${optErrorName}#${errorTagNum}`;
  weakmapSet(errorTags, err, errorTag);
  return errorTag;
};

/**
 * Make reasonable best efforts to make a `Passable` error.
 *   - `sanitizeError` will remove any "extraneous" own properties already added
 *     by the host,
 *     such as `fileName`,`lineNumber` on FireFox or `line` on Safari.
 *   - If any such "extraneous" properties were removed, `sanitizeError` will
 *     annotate
 *     the error with them, so they still appear on the causal console
 *     log output for diagnostic purposes, but not be otherwise visible.
 *   - `sanitizeError` will ensure that any expected properties already
 *     added by the host are data
 *     properties, converting accessor properties to data properties as needed,
 *     such as `stack` on v8 (Chrome, Brave, Edge?)
 *   - `sanitizeError` will freeze the error, preventing any correct engine from
 *     adding or
 *     altering any of the error's own properties `sanitizeError` is done.
 *
 * However, `sanitizeError` will not, for example, `harden`
 * (i.e., deeply freeze)
 * or ensure that the `cause` or `errors` property satisfy the `Passable`
 * constraints. The purpose of `sanitizeError` is only to protect against
 * mischief the host may have already added to the error as created,
 * not to ensure that the error is actually Passable. For that,
 * see `toPassableError` in `@endo/pass-style`.
 *
 * @param {Error} error
 */
       const sanitizeError = error => {
  const descs = getOwnPropertyDescriptors(error);
  const {
    name: _nameDesc,
    message: _messageDesc,
    errors: _errorsDesc = undefined,
    cause: _causeDesc = undefined,
    stack: _stackDesc = undefined,
    ...restDescs
  } = descs;

  const restNames = ownKeys(restDescs);
  if (restNames.length >= 1) {
    for (const name of restNames) {
      delete error[name];
    }
    const dropped = create(objectPrototype, restDescs);
    const droppedDetails = redactedDetails`originally with properties ${quote(dropped)}`;
    // eslint-disable-next-line no-use-before-define
    note(error, droppedDetails);
  }
  for (const name of ownKeys(error)) {
    // @ts-expect-error TypeScript is still confused by symbols as property keys
    const desc = descs[name];
    if (desc && hasOwn(desc, 'get')) {
      const value = error[name]; // invokes the getter
      defineProperty(error, name, { value });
    }
  }
  freeze(error);
};

/**
 * @type {AssertionUtilities['makeError']}
 */$h͏_once.sanitizeError(sanitizeError);
const makeError = (
  optDetails = redactedDetails`Assert failed`,
  errConstructor = globalThis.Error,
  {
    errorName = undefined,
    cause = undefined,
    errors = undefined,
    sanitize = true,
  } = {},
) => {
  // Promote string-valued `optDetails` into a minimal DetailsParts
  // consisting of that string as the sole literal part with no substitutions.
  if (typeof optDetails === 'string') {
    optDetails = redactedDetails([optDetails]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, optDetails);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(optDetails)}`);
  }
  const messageString = getMessageString(hiddenDetails);
  const opts = cause && { cause };
  let error;
  if (
    typeof AggregateError !== 'undefined' &&
    errConstructor === AggregateError
  ) {
    error = AggregateError(errors || [], messageString, opts);
  } else {
    const ErrorCtor = /** @type {ErrorConstructor} */ (errConstructor);
    error = ErrorCtor(messageString, opts);
    // Since we need to tolerate `errors` on an AggregateError, we may as well
    // tolerate it on all errors.
    if (errors !== undefined) {
      defineProperty(error, 'errors', {
        value: errors,
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }
  weakmapSet(hiddenMessageLogArgs, error, getLogArgs(hiddenDetails));
  if (errorName !== undefined) {
    tagError(error, errorName);
  }
  if (sanitize) {
    sanitizeError(error);
  }
  // The next line is a particularly fruitful place to put a breakpoint.
  return error;
};$h͏_once.makeError(makeError);
freeze(makeError);

// /////////////////////////////////////////////////////////////////////////////

const { addLogArgs: addNoteLogArgs, takeLogArgsArray: takeAllNoteLogArgs } =
  makeNoteLogArgsArrayKit();

/**
 * An augmented console will normally only take the hidden noteArgs array once,
 * when it logs the error being annotated. Once that happens, further
 * annotations of that error should go to the console immediately. We arrange
 * that by accepting a note-callback function from the console as an optional
 * part of that taking operation. Normally there will only be at most one
 * callback per error, but that depends on console behavior which we should not
 * assume. We make this an array of callbacks so multiple registrations
 * are independent.
 *
 * @type {WeakMap<Error, NoteCallback[]>}
 */
const hiddenNoteCallbacks = new WeakMap();

/** @type {AssertionUtilities['note']} */
const note = (error, detailsNote) => {
  // Promote string-valued `detailsNote` into a minimal DetailsParts consisting
  // of that string as the sole literal part with no substitutions.
  if (typeof detailsNote === 'string') {
    detailsNote = redactedDetails([detailsNote]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, detailsNote);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(detailsNote)}`);
  }
  const logArgs = getLogArgs(hiddenDetails);
  const callbacks = weakmapGet(hiddenNoteCallbacks, error);
  if (callbacks !== undefined) {
    for (const callback of callbacks) {
      callback(error, logArgs);
    }
  } else {
    addNoteLogArgs(error, logArgs);
  }
};$h͏_once.note(note);
freeze(note);

/**
 * The unprivileged form that just uses the de facto `error.stack` property.
 * The start compartment normally has a privileged `globalThis.getStackString`
 * which should be preferred if present.
 *
 * @param {Error} error
 * @returns {string}
 */
const defaultGetStackString = error => {
  if (!('stack' in error)) {
    return '';
  }
  const stackString = `${error.stack}`;
  const pos = stringIndexOf(stackString, '\n');
  if (stringStartsWith(stackString, ' ') || pos === -1) {
    return stackString;
  }
  return stringSlice(stackString, pos + 1); // exclude the initial newline
};

/** @type {LoggedErrorHandler} */
const loggedErrorHandler = {
  getStackString: globalThis.getStackString || defaultGetStackString,
  tagError: error => tagError(error),
  resetErrorTagNum: () => {
    errorTagNum = 0;
  },
  getMessageLogArgs: error => weakmapGet(hiddenMessageLogArgs, error),
  takeMessageLogArgs: error => {
    const logArgs = weakmapGet(hiddenMessageLogArgs, error);
    weakmapDelete(hiddenMessageLogArgs, error);
    return logArgs;
  },
  takeNoteLogArgsArray: (error, callback) => {
    const logArgsArray = takeAllNoteLogArgs(error);
    if (callback !== undefined) {
      const callbacks = weakmapGet(hiddenNoteCallbacks, error);
      if (callbacks) {
        arrayPush(callbacks, callback);
      } else {
        weakmapSet(hiddenNoteCallbacks, error, [callback]);
      }
    }
    return logArgsArray || [];
  },
};$h͏_once.loggedErrorHandler(loggedErrorHandler);
freeze(loggedErrorHandler);


// /////////////////////////////////////////////////////////////////////////////

/**
 * @type {MakeAssert}
 */
       const makeAssert = (optRaise = undefined, unredacted = false) => {
  const details = unredacted ? unredactedDetails : redactedDetails;
  const assertFailedDetails = details`Check failed`;

  /** @type {AssertionFunctions['fail']} */
  const fail = (
    optDetails = assertFailedDetails,
    errConstructor = undefined,
    options = undefined,
  ) => {
    const reason = makeError(optDetails, errConstructor, options);
    if (optRaise !== undefined) {
      optRaise(reason);
    }
    throw reason;
  };
  freeze(fail);

  /** @type {AssertionUtilities['Fail']} */
  const Fail = (template, ...args) => fail(details(template, ...args));

  // Don't freeze or export `assert` until we add methods.
  /** @type {BaseAssert} */
  const assert = (
    condition,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) => {
    condition || fail(optDetails, errConstructor, options);
  };

  /** @type {AssertionFunctions['equal']} */
  const equal = (
    actual,
    expected,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) => {
    is(actual, expected) ||
      fail(
        optDetails || details`Expected ${actual} is same as ${expected}`,
        errConstructor || RangeError,
        options,
      );
  };
  freeze(equal);

  /** @type {AssertionFunctions['typeof']} */
  const assertTypeof = (specimen, typename, optDetails) => {
    // This will safely fall through if typename is not a string,
    // which is what we want.
    // eslint-disable-next-line valid-typeof
    if (typeof specimen === typename) {
      return;
    }
    typeof typename === 'string' || Fail`${quote(typename)} must be a string`;

    if (optDetails === undefined) {
      // Embed the type phrase without quotes.
      const typeWithDeterminer = an(typename);
      optDetails = details`${specimen} must be ${bare(typeWithDeterminer)}`;
    }
    fail(optDetails, TypeError);
  };
  freeze(assertTypeof);

  /** @type {AssertionFunctions['string']} */
  const assertString = (specimen, optDetails = undefined) =>
    assertTypeof(specimen, 'string', optDetails);

  /** @type {Pick<AssertionFunctions, keyof AssertionFunctions>} */
  const assertionFunctions = {
    equal,
    typeof: assertTypeof,
    string: assertString,
    fail,
  };

  /** @type {AssertionUtilities} */
  const assertionUtilities = {
    makeError,
    note,
    details,
    Fail,
    quote,
    bare,
  };

  /** @type {DeprecatedAssertionUtilities} */
  const deprecated = { error: makeError, makeAssert };

  /** @type {Assert} */
  const finishedAssert = assign(assert, {
    ...assertionFunctions,
    ...assertionUtilities,
    ...deprecated,
  });
  return freeze(finishedAssert);
};$h͏_once.makeAssert(makeAssert);
freeze(makeAssert);

/** @type {Assert} */
const assert = makeAssert();$h͏_once.assert(assert);


// Internal, to obviate polymorphic dispatch, but may become rigorously
// consistent with @endo/error:

/** @type {AssertionFunctions['equal']} */
const assertEqual = assert.equal;$h͏_once.assertEqual(assertEqual);
})()
,
// === 14. ses ./src/make-hardener.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isPrimitive,hasOwn,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weaksetAdd,weaksetHas,FERAL_STACK_GETTER,FERAL_STACK_SETTER,isError,assert;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isInteger",[$h͏_a => (isInteger = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["preventExtensions",[$h͏_a => (preventExtensions = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setForEach",[$h͏_a => (setForEach = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["typedArrayPrototype",[$h͏_a => (typedArrayPrototype = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["FERAL_STACK_GETTER",[$h͏_a => (FERAL_STACK_GETTER = $h͏_a)]],["FERAL_STACK_SETTER",[$h͏_a => (FERAL_STACK_SETTER = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);





















































/**
 * @import {Harden} from '../types.js'
 */

// Obtain the string tag accessor of of TypedArray so we can indirectly use the
// TypedArray brand check it employs.
const typedArrayToStringTag = getOwnPropertyDescriptor(
  typedArrayPrototype,
  toStringTagSymbol,
);
assert(typedArrayToStringTag);
const getTypedArrayToStringTag = typedArrayToStringTag.get;
assert(getTypedArrayToStringTag);

// Exported for tests.
/**
 * Duplicates packages/marshal/src/helpers/passStyle-helpers.js to avoid a dependency.
 *
 * @param {unknown} object
 */
       const isTypedArray = object => {
  // The object must pass a brand check or toStringTag will return undefined.
  const tag = apply(getTypedArrayToStringTag, object, []);
  return tag !== undefined;
};

/**
 * Tests if a property key is an integer-valued canonical numeric index.
 * https://tc39.es/ecma262/#sec-canonicalnumericindexstring
 *
 * @param {string | symbol} propertyKey
 */$h͏_once.isTypedArray(isTypedArray);
const isCanonicalIntegerIndexString = propertyKey => {
  const n = +String(propertyKey);
  return isInteger(n) && String(n) === propertyKey;
};

/**
 * @template T
 * @param {ArrayLike<T>} array
 */
const freezeTypedArray = array => {
  preventExtensions(array);

  // Downgrade writable expandos to readonly, even if non-configurable.
  // We get each descriptor individually rather than using
  // getOwnPropertyDescriptors in order to fail safe when encountering
  // an obscure GraalJS issue where getOwnPropertyDescriptor returns
  // undefined for a property that does exist.
  arrayForEach(ownKeys(array), (/** @type {string | symbol} */ name) => {
    const desc = getOwnPropertyDescriptor(array, name);
    assert(desc);
    // TypedArrays are integer-indexed exotic objects, which define special
    // treatment for property names in canonical numeric form:
    // integers in range are permanently writable and non-configurable.
    // https://tc39.es/ecma262/#sec-integer-indexed-exotic-objects
    //
    // This is analogous to the data of a hardened Map or Set,
    // so we carve out this exceptional behavior but make all other
    // properties non-configurable.
    if (!isCanonicalIntegerIndexString(name)) {
      defineProperty(array, name, {
        ...desc,
        writable: false,
        configurable: false,
      });
    }
  });
};

/**
 * Create a `harden` function.
 *
 * @returns {Harden}
 */
       const makeHardener = () => {
  // Use a native hardener if possible.
  if (typeof globalThis.harden === 'function') {
    const safeHarden = globalThis.harden;
    return safeHarden;
  }

  const hardened = new WeakSet();

  const { harden } = {
    /**
     * @template T
     * @param {T} root
     * @returns {T}
     */
    harden(root) {
      const toFreeze = new Set();

      // If val is something we should be freezing but aren't yet,
      // add it to toFreeze.
      /**
       * @param {any} val
       */
      function enqueue(val) {
        if (isPrimitive(val)) {
          // ignore primitives
          return;
        }
        const type = typeof val;
        if (type !== 'object' && type !== 'function') {
          // future proof: break until someone figures out what it should do
          throw TypeError(`Unexpected typeof: ${type}`);
        }
        if (weaksetHas(hardened, val) || setHas(toFreeze, val)) {
          // Ignore if this is an exit, or we've already visited it
          return;
        }
        // console.warn(`adding ${val} to toFreeze`, val);
        setAdd(toFreeze, val);
      }

      /**
       * @param {any} obj
       */
      const baseFreezeAndTraverse = obj => {
        // Now freeze the object to ensure reactive
        // objects such as proxies won't add properties
        // during traversal, before they get frozen.

        // Object are verified before being enqueued,
        // therefore this is a valid candidate.
        // Throws if this fails (strict mode).
        // Also throws if the object is an ArrayBuffer or any TypedArray.
        if (isTypedArray(obj)) {
          freezeTypedArray(obj);
        } else {
          freeze(obj);
        }

        // we rely upon certain commitments of Object.freeze and proxies here

        // get stable/immutable outbound links before a Proxy has a chance to do
        // something sneaky.
        const descs = getOwnPropertyDescriptors(obj);
        const proto = getPrototypeOf(obj);
        enqueue(proto);

        arrayForEach(ownKeys(descs), (/** @type {string | symbol} */ name) => {
          // The 'name' may be a symbol, and TypeScript doesn't like us to
          // index arbitrary symbols on objects, so we pretend they're just
          // strings.
          const desc = descs[/** @type {string} */ (name)];
          // getOwnPropertyDescriptors is guaranteed to return well-formed
          // descriptors, but they still inherit from Object.prototype. If
          // someone has poisoned Object.prototype to add 'value' or 'get'
          // properties, then a simple 'if ("value" in desc)' or 'desc.value'
          // test could be confused. We use hasOwnProperty to be sure about
          // whether 'value' is present or not, which tells us for sure that
          // this is a data property.
          if (hasOwn(desc, 'value')) {
            enqueue(desc.value);
          } else {
            enqueue(desc.get);
            enqueue(desc.set);
          }
        });
      };

      const freezeAndTraverse =
        FERAL_STACK_GETTER === undefined && FERAL_STACK_SETTER === undefined
          ? // On platforms without v8's error own stack accessor problem,
            // don't pay for any extra overhead.
            baseFreezeAndTraverse
          : obj => {
              if (isError(obj)) {
                // Only pay the overhead if it first passes this cheap isError
                // check. Otherwise, it will be unrepaired, but won't be judged
                // to be a passable error anyway, so will not be unsafe.
                const stackDesc = getOwnPropertyDescriptor(obj, 'stack');
                if (
                  stackDesc &&
                  stackDesc.get === FERAL_STACK_GETTER &&
                  stackDesc.configurable
                ) {
                  // Can only repair if it is configurable. Otherwise, leave
                  // unrepaired, in which case it will not be judged passable,
                  // avoiding a safety problem.
                  defineProperty(obj, 'stack', {
                    // NOTE: Calls getter during harden, which seems dangerous.
                    // But we're only calling the problematic getter whose
                    // hazards we think we understand.
                    // @ts-expect-error TS should know FERAL_STACK_GETTER
                    // cannot be `undefined` here.
                    // See https://github.com/endojs/endo/pull/2232#discussion_r1575179471
                    value: apply(FERAL_STACK_GETTER, obj, []),
                  });
                }
              }
              return baseFreezeAndTraverse(obj);
            };

      const dequeue = () => {
        // New values added before forEach() has finished will be visited.
        setForEach(toFreeze, freezeAndTraverse);
      };

      /** @param {any} value */
      const markHardened = value => {
        weaksetAdd(hardened, value);
      };

      const commit = () => {
        setForEach(toFreeze, markHardened);
      };

      enqueue(root);
      dequeue();
      // console.warn("toFreeze set:", toFreeze);
      commit();

      return root;
    },
  };

  return harden;
};$h͏_once.makeHardener(makeHardener);
})()
,
// === 15. ses ./src/cauterize-property.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let hasOwn;$h͏_imports([["./commons.js", [["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);

/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Delete `obj[prop]` or at least make it harmless.
 *
 * If the property was not expected, then emit a reporter-dependent warning
 * to bring attention to this case, so someone can determine what to do with it.
 *
 * If the property to be deleted is a function's `.prototype` property, this
 * will normally be because the function was supposed to be a
 * - builtin method or non-constructor function
 * - arrow function
 * - concise method
 *
 * all of whom are not supposed to have a `.prototype` property. Nevertheless,
 * on some platforms (like older versions of Hermes), or as a result of
 * some shim-based mods to the primordials (like core-js?), some of these
 * functions may accidentally be more like `function` functions with
 * an undeletable `.prototype` property. In these cases, if we can
 * set the value of that bogus `.prototype` property to `undefined`,
 * we do so, issuing a warning, rather than failing to initialize ses.
 *
 * @param {object} obj
 * @param {PropertyKey} prop
 * @param {boolean} known If deletion is expected, don't warn
 * @param {string} subPath Used for warning messages
 * @param {Reporter} reporter Where to issue warning or error.
 * @returns {void}
 */
       const cauterizeProperty = (
  obj,
  prop,
  known,
  subPath,
  { warn, error },
) => {
  // Either the object lacks a permit or the object doesn't match the
  // permit.
  // If the permit is specifically false, not merely undefined,
  // this is a property we expect to see because we know it exists in
  // some environments and we have expressly decided to exclude it.
  // Any other disallowed property is one we have not audited and we log
  // that we are removing it so we know to look into it, as happens when
  // the language evolves new features to existing intrinsics.
  if (!known) {
    warn(`Removing ${subPath}`);
  }
  try {
    delete obj[prop];
  } catch (err) {
    if (hasOwn(obj, prop)) {
      if (typeof obj === 'function' && prop === 'prototype') {
        obj.prototype = undefined;
        if (obj.prototype === undefined) {
          warn(`Tolerating undeletable ${subPath} === undefined`);
          return;
        }
      }
      error(`failed to delete ${subPath}`, err);
    } else {
      error(`deleting ${subPath} threw`, err);
    }
    throw err;
  }
};$h͏_once.cauterizeProperty(cauterizeProperty);
})()
,
// === 16. ses ./src/permits.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayPush,arrayForEach;$h͏_imports([["./commons.js", [["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]]]]]);




/** @import {GenericErrorConstructor} from '../types.js' */

/**
 * Exports {@code permits}, a recursively defined
 * JSON record enumerating all intrinsics and their properties
 * according to ECMA specs.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * constantProperties
 * non-configurable, non-writable data properties of all global objects.
 * Must be powerless.
 * Maps from property name to the actual value
 */
       const constantProperties = {
  // *** Value Properties of the Global Object

  Infinity,
  NaN,
  undefined,
};

/**
 * universalPropertyNames
 * Properties of all global objects.
 * Must be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.constantProperties(constantProperties);
       const universalPropertyNames = {
  // *** Function Properties of the Global Object

  isFinite: 'isFinite',
  isNaN: 'isNaN',
  parseFloat: 'parseFloat',
  parseInt: 'parseInt',

  decodeURI: 'decodeURI',
  decodeURIComponent: 'decodeURIComponent',
  encodeURI: 'encodeURI',
  encodeURIComponent: 'encodeURIComponent',

  // *** Constructor Properties of the Global Object

  Array: 'Array',
  ArrayBuffer: 'ArrayBuffer',
  BigInt: 'BigInt',
  BigInt64Array: 'BigInt64Array',
  BigUint64Array: 'BigUint64Array',
  Boolean: 'Boolean',
  DataView: 'DataView',
  EvalError: 'EvalError',
  // https://github.com/tc39/proposal-float16array
  Float16Array: 'Float16Array',
  Float32Array: 'Float32Array',
  Float64Array: 'Float64Array',
  Int8Array: 'Int8Array',
  Int16Array: 'Int16Array',
  Int32Array: 'Int32Array',
  Map: 'Map',
  Number: 'Number',
  Object: 'Object',
  Promise: 'Promise',
  Proxy: 'Proxy',
  RangeError: 'RangeError',
  ReferenceError: 'ReferenceError',
  Set: 'Set',
  String: 'String',
  SyntaxError: 'SyntaxError',
  TypeError: 'TypeError',
  Uint8Array: 'Uint8Array',
  Uint8ClampedArray: 'Uint8ClampedArray',
  Uint16Array: 'Uint16Array',
  Uint32Array: 'Uint32Array',
  URIError: 'URIError',
  WeakMap: 'WeakMap',
  WeakSet: 'WeakSet',
  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: 'Iterator',
  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: 'AsyncIterator',
  // https://github.com/endojs/endo/issues/550
  AggregateError: 'AggregateError',

  // https://github.com/tc39/proposal-explicit-resource-management
  // TODO DisposableStack, AsyncDisposableStack
  // DisposableStack: 'DisposableStack',
  // AsyncDisposableStack: 'AsyncDisposableStack',

  // https://tc39.es/proposal-shadowrealm/
  // TODO ShadowRealm
  // ShadowRealm: 'ShadowRealm',

  // *** Other Properties of the Global Object

  JSON: 'JSON',
  Reflect: 'Reflect',

  // *** Annex B

  escape: 'escape',
  unescape: 'unescape',

  // ESNext

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source
  ModuleSource: 'ModuleSource',

  lockdown: 'lockdown',
  harden: 'harden',

  HandledPromise: 'HandledPromise'  // TODO: Until Promise.delegate (see below).
};

/**
 * initialGlobalPropertyNames
 * Those found only on the initial global, i.e., the global of the
 * start compartment, as well as any compartments created before lockdown.
 * These may provide much of the power provided by the original.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.universalPropertyNames(universalPropertyNames);
       const initialGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%InitialDate%',
  Error: '%InitialError%',
  RegExp: '%InitialRegExp%',

  // Omit `Symbol`, because we want the original to appear on the
  // start compartment without passing through the permits mechanism, since
  // we want to preserve all its properties, even if we never heard of them.
  // Symbol: '%InitialSymbol%',

  // *** Other Properties of the Global Object

  Math: '%InitialMath%',

  // ESNext

  // From Error-stack proposal
  // Only on initial global. No corresponding
  // powerless form for other globals.
  getStackString: '%InitialGetStackString%'

  // TODO https://github.com/Agoric/SES-shim/issues/551
  // Need initial WeakRef and FinalizationGroup in
  // start compartment only.

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%InitialTemporal%' // with Temporal.Now
};

/**
 * sharedGlobalPropertyNames
 * Those found only on the globals of new compartments created after lockdown,
 * which must therefore be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.initialGlobalPropertyNames(initialGlobalPropertyNames);
       const sharedGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%SharedDate%',
  Error: '%SharedError%',
  RegExp: '%SharedRegExp%',
  Symbol: '%SharedSymbol%',

  // *** Other Properties of the Global Object

  Math: '%SharedMath%'

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%SharedTemporal%' // without Temporal.Now
};

/**
 * uniqueGlobalPropertyNames
 * Those made separately for each global, including the initial global
 * of the start compartment.
 * Maps from property name to the intrinsic name in the permits
 * (which is currently always the same).
 */$h͏_once.sharedGlobalPropertyNames(sharedGlobalPropertyNames);
       const uniqueGlobalPropertyNames = {
  // *** Value Properties of the Global Object

  globalThis: '%UniqueGlobalThis%',

  // *** Function Properties of the Global Object

  eval: '%UniqueEval%',

  // *** Constructor Properties of the Global Object

  Function: '%UniqueFunction%',

  // *** Other Properties of the Global Object

  // ESNext

  Compartment: '%UniqueCompartment%'
  // According to current agreements, eventually the Realm constructor too.
  // 'Realm',
};

// All the "subclasses" of Error. These are collectively represented in the
// ECMAScript spec by the meta variable NativeError.
/** @type {GenericErrorConstructor[]} */$h͏_once.uniqueGlobalPropertyNames(uniqueGlobalPropertyNames);
const NativeErrors = [
  EvalError,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  URIError
  // https://github.com/endojs/endo/issues/550
  // Commented out to accommodate platforms prior to AggregateError.
  // Instead, conditional push below.
  // AggregateError,
];$h͏_once.NativeErrors(NativeErrors);

if (typeof AggregateError !== 'undefined') {
  // Conditional, to accommodate platforms prior to AggregateError
  arrayPush(NativeErrors, AggregateError);
}



/**
 * <p>Each JSON record enumerates the disposition of the properties on
 *    some corresponding intrinsic object.
 *
 * <p>All records are made of key-value pairs where the key
 *    is the property to process, and the value is the associated
 *    dispositions a.k.a. the "permit". Those permits can be:
 * <ul>
 * <li>The boolean value "false", in which case this property is
 *     blacklisted and simply removed. Properties not mentioned
 *     are also considered blacklisted and are removed.
 * <li>A string value equal to a primitive ("number", "string", etc),
 *     in which case the property is permitted if its value property
 *     is typeof the given type. For example, {@code "Infinity"} leads to
 *     "number" and property values that fail {@code typeof "number"}.
 *     are removed.
 * <li>A string value equal to an intinsic name ("ObjectPrototype",
 *     "Array", etc), in which case the property permitted if its
 *     value property is equal to the value of the corresponfing
 *     intrinsics. For example, {@code Map.prototype} leads to
 *     "MapPrototype" and the property is removed if its value is
 *     not equal to %MapPrototype%
 * <li>Another record, in which case this property is simply
 *     permitted and that next record represents the disposition of
 *     the object which is its value. For example, {@code "Object"}
 *     leads to another record explaining what properties {@code
 *     "Object"} may have and how each such property should be treated.
 *
 * <p>Notes:
 * <li>"[[Proto]]" is used to refer to the "[[Prototype]]" internal
 *     slot, which says which object this object inherits from.
 * <li>"--proto--" is used to refer to the "__proto__" property name,
 *     which is the name of an accessor property on Object.prototype.
 *     In practice, it is used to access the [[Proto]] internal slot,
 *     but is distinct from the internal slot itself. We use
 *     "--proto--" rather than "__proto__" below because "__proto__"
 *     in an object literal is special syntax rather than a normal
 *     property definition.
 * <li>"ObjectPrototype" is the default "[[Proto]]" (when not specified).
 * <li>Constants "fn" and "getter" are used to keep the structure DRY.
 * <li>Symbol properties are listed as follow:
 *     <li>Well-known symbols use the "@@name" form.
 *     <li>Registered symbols use the "RegisteredSymbol(key)" form.
 *     <li>Unique symbols use the "UniqueSymbol(description)" form.
 */

// Function Instances
       const FunctionInstance = {
  '[[Proto]]': '%FunctionPrototype%',
  length: 'number',
  name: 'string'
  // Do not specify "prototype" here, since only Function instances that can
  // be used as a constructor have a prototype property. For constructors,
  // since prototype properties are instance-specific, we define it there.
};

// AsyncFunction Instances
$h͏_once.FunctionInstance(FunctionInstance);const AsyncFunctionInstance={
  // This property is not mentioned in ECMA 262, but is present in V8 and
  // necessary for lockdown to succeed.
  '[[Proto]]': '%AsyncFunctionPrototype%',
};

// Aliases
$h͏_once.AsyncFunctionInstance(AsyncFunctionInstance);const fn=FunctionInstance;
const asyncFn = AsyncFunctionInstance;

const getter = {
  get: fn,
  set: 'undefined',
};

// Possible but not encountered in the specs
// export const setter = {
//   get: 'undefined',
//   set: fn,
// };

const accessor = {
  get: fn,
  set: fn,
};

// eslint-disable-next-line func-names
const strict = function () {
  'use strict';
};

// TODO Remove this once we no longer support the Hermes that needed this.
arrayForEach(['caller', 'arguments'], prop => {
  try {
    strict[prop];
  } catch (e) {
    // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
    if (e.message === 'Restricted in strict mode') {
      // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
      FunctionInstance[prop] = accessor;
    }
  }
});

       const isAccessorPermit = permit => {
  return permit === getter || permit === accessor;
};

// NativeError Object Structure
$h͏_once.isAccessorPermit(isAccessorPermit);function NativeError(prototype){
  return {
    // Properties of the NativeError Constructors
    '[[Proto]]': '%SharedError%',

    // NativeError.prototype
    prototype,
  };
}

function NativeErrorPrototype(constructor) {
  return {
    // Properties of the NativeError Prototype Objects
    '[[Proto]]': '%ErrorPrototype%',
    constructor,
    message: 'string',
    name: 'string',
    // Redundantly present only on v8. Safe to remove.
    toString: false,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  };
}

// The TypedArray Constructors
function TypedArray(prototype) {
  return {
    // Properties of the TypedArray Constructors
    '[[Proto]]': '%TypedArray%',
    BYTES_PER_ELEMENT: 'number',
    prototype,
  };
}

function TypedArrayPrototype(constructor) {
  return {
    // Properties of the TypedArray Prototype Objects
    '[[Proto]]': '%TypedArrayPrototype%',
    BYTES_PER_ELEMENT: 'number',
    constructor,
  };
}

// Without Math.random
const CommonMath = {
  E: 'number',
  LN10: 'number',
  LN2: 'number',
  LOG10E: 'number',
  LOG2E: 'number',
  PI: 'number',
  SQRT1_2: 'number',
  SQRT2: 'number',
  '@@toStringTag': 'string',
  abs: fn,
  acos: fn,
  acosh: fn,
  asin: fn,
  asinh: fn,
  atan: fn,
  atanh: fn,
  atan2: fn,
  cbrt: fn,
  ceil: fn,
  clz32: fn,
  cos: fn,
  cosh: fn,
  exp: fn,
  expm1: fn,
  floor: fn,
  fround: fn,
  hypot: fn,
  imul: fn,
  log: fn,
  log1p: fn,
  log10: fn,
  log2: fn,
  max: fn,
  min: fn,
  pow: fn,
  round: fn,
  sign: fn,
  sin: fn,
  sinh: fn,
  sqrt: fn,
  tan: fn,
  tanh: fn,
  trunc: fn,
  // https://github.com/tc39/proposal-float16array
  f16round: fn,
  // https://github.com/tc39/proposal-math-sum
  sumPrecise: fn,

  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idivmod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imuldiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  irem: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  mod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
  irandom: false,
};

       const permitted = {
  // ECMA https://tc39.es/ecma262

  // The intrinsics object has no prototype to avoid conflicts.
  '[[Proto]]': null,

  // %ThrowTypeError%
  '%ThrowTypeError%': fn,

  // *** The Global Object

  // *** Value Properties of the Global Object
  Infinity: 'number',
  NaN: 'number',
  undefined: 'undefined',

  // *** Function Properties of the Global Object

  // eval
  '%UniqueEval%': fn,
  isFinite: fn,
  isNaN: fn,
  parseFloat: fn,
  parseInt: fn,
  decodeURI: fn,
  decodeURIComponent: fn,
  encodeURI: fn,
  encodeURIComponent: fn,

  // *** Fundamental Objects

  Object: {
    // Properties of the Object Constructor
    '[[Proto]]': '%FunctionPrototype%',
    assign: fn,
    create: fn,
    defineProperties: fn,
    defineProperty: fn,
    entries: fn,
    freeze: fn,
    fromEntries: fn,
    getOwnPropertyDescriptor: fn,
    getOwnPropertyDescriptors: fn,
    getOwnPropertyNames: fn,
    getOwnPropertySymbols: fn,
    getPrototypeOf: fn,
    is: fn,
    isExtensible: fn,
    isFrozen: fn,
    isSealed: fn,
    keys: fn,
    preventExtensions: fn,
    prototype: '%ObjectPrototype%',
    seal: fn,
    setPrototypeOf: fn,
    values: fn,
    'RegisteredSymbol(harden)': {
      ...fn,
      // Installed with hardenTaming: 'unsafe'
      isFake: 'boolean',
    },
    // https://github.com/tc39/proposal-accessible-object-hasownproperty
    hasOwn: fn,
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
    // Seen on QuickJS
    __getClass: false,
  },

  '%ObjectPrototype%': {
    // Properties of the Object Prototype Object
    '[[Proto]]': null,
    constructor: 'Object',
    hasOwnProperty: fn,
    isPrototypeOf: fn,
    propertyIsEnumerable: fn,
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,

    // Annex B: Additional Properties of the Object.prototype Object

    // See note in header about the difference between [[Proto]] and --proto--
    // special notations.
    '--proto--': accessor,
    __defineGetter__: fn,
    __defineSetter__: fn,
    __lookupGetter__: fn,
    __lookupSetter__: fn,
  },

  '%UniqueFunction%': {
    // Properties of the Function Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%InertFunction%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%FunctionPrototype%': {
    apply: fn,
    bind: fn,
    call: fn,
    constructor: '%InertFunction%',
    toString: fn,
    '@@hasInstance': fn,
    // proposed but not yet std. To be removed if there
    caller: false,
    // proposed but not yet std. To be removed if there
    arguments: false,
    // Seen on QuickJS. TODO grab getter for use by console
    fileName: false,
    // Seen on QuickJS. TODO grab getter for use by console
    lineNumber: false,
  },

  Boolean: {
    // Properties of the Boolean Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%BooleanPrototype%',
  },

  '%BooleanPrototype%': {
    constructor: 'Boolean',
    toString: fn,
    valueOf: fn,
  },

  '%SharedSymbol%': {
    // Properties of the Symbol Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asyncIterator: 'symbol',
    for: fn,
    hasInstance: 'symbol',
    isConcatSpreadable: 'symbol',
    iterator: 'symbol',
    keyFor: fn,
    match: 'symbol',
    matchAll: 'symbol',
    prototype: '%SymbolPrototype%',
    replace: 'symbol',
    search: 'symbol',
    species: 'symbol',
    split: 'symbol',
    toPrimitive: 'symbol',
    toStringTag: 'symbol',
    unscopables: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    asyncDispose: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    dispose: 'symbol',
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSimple: false,
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSetter: false,
    // Seen on QuickJS
    operatorSet: false,
  },

  '%SymbolPrototype%': {
    // Properties of the Symbol Prototype Object
    constructor: '%SharedSymbol%',
    description: getter,
    toString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,
    '@@toStringTag': 'string',
  },

  '%InitialError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%SharedError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%ErrorPrototype%': {
    constructor: '%SharedError%',
    message: 'string',
    name: 'string',
    toString: fn,
    // proposed de-facto, assumed TODO
    // Seen on FF Nightly 88.0a1
    at: false,
    // Seen on FF and XS
    stack: accessor,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  },

  // NativeError

  EvalError: NativeError('%EvalErrorPrototype%'),
  RangeError: NativeError('%RangeErrorPrototype%'),
  ReferenceError: NativeError('%ReferenceErrorPrototype%'),
  SyntaxError: NativeError('%SyntaxErrorPrototype%'),
  TypeError: NativeError('%TypeErrorPrototype%'),
  URIError: NativeError('%URIErrorPrototype%'),
  // https://github.com/endojs/endo/issues/550
  AggregateError: NativeError('%AggregateErrorPrototype%'),

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // SuppressedError: NativeError('%SuppressedErrorPrototype%'),

  '%EvalErrorPrototype%': NativeErrorPrototype('EvalError'),
  '%RangeErrorPrototype%': NativeErrorPrototype('RangeError'),
  '%ReferenceErrorPrototype%': NativeErrorPrototype('ReferenceError'),
  '%SyntaxErrorPrototype%': NativeErrorPrototype('SyntaxError'),
  '%TypeErrorPrototype%': NativeErrorPrototype('TypeError'),
  '%URIErrorPrototype%': NativeErrorPrototype('URIError'),
  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': NativeErrorPrototype('AggregateError'),
  // TODO AggregateError .errors

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // '%SuppressedErrorPrototype%': NativeErrorPrototype('SuppressedError'),
  // TODO SuppressedError .error
  // TODO SuppressedError .suppressed

  // *** Numbers and Dates

  Number: {
    // Properties of the Number Constructor
    '[[Proto]]': '%FunctionPrototype%',
    EPSILON: 'number',
    isFinite: fn,
    isInteger: fn,
    isNaN: fn,
    isSafeInteger: fn,
    MAX_SAFE_INTEGER: 'number',
    MAX_VALUE: 'number',
    MIN_SAFE_INTEGER: 'number',
    MIN_VALUE: 'number',
    NaN: 'number',
    NEGATIVE_INFINITY: 'number',
    parseFloat: fn,
    parseInt: fn,
    POSITIVE_INFINITY: 'number',
    prototype: '%NumberPrototype%',
  },

  '%NumberPrototype%': {
    // Properties of the Number Prototype Object
    constructor: 'Number',
    toExponential: fn,
    toFixed: fn,
    toLocaleString: fn,
    toPrecision: fn,
    toString: fn,
    valueOf: fn,
  },

  BigInt: {
    // Properties of the BigInt Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asIntN: fn,
    asUintN: fn,
    prototype: '%BigIntPrototype%',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    bitLength: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
    // Seen on QuickJS
    tdiv: false,
    // Seen on QuickJS
    fdiv: false,
    // Seen on QuickJS
    cdiv: false,
    // Seen on QuickJS
    ediv: false,
    // Seen on QuickJS
    tdivrem: false,
    // Seen on QuickJS
    fdivrem: false,
    // Seen on QuickJS
    cdivrem: false,
    // Seen on QuickJS
    edivrem: false,
    // Seen on QuickJS
    sqrt: false,
    // Seen on QuickJS
    sqrtrem: false,
    // Seen on QuickJS
    floorLog2: false,
    // Seen on QuickJS
    ctz: false,
  },

  '%BigIntPrototype%': {
    constructor: 'BigInt',
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,
    '@@toStringTag': 'string',
  },

  '%InitialMath%': {
    ...CommonMath,
    // `%InitialMath%.random()` has the standard unsafe behavior
    random: fn,
  },

  '%SharedMath%': {
    ...CommonMath,
    // `%SharedMath%.random()` is tamed to always throw
    random: fn,
  },

  '%InitialDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%SharedDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    // `%SharedDate%.now()` is tamed to always throw
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%DatePrototype%': {
    constructor: '%SharedDate%',
    getDate: fn,
    getDay: fn,
    getFullYear: fn,
    getHours: fn,
    getMilliseconds: fn,
    getMinutes: fn,
    getMonth: fn,
    getSeconds: fn,
    getTime: fn,
    getTimezoneOffset: fn,
    getUTCDate: fn,
    getUTCDay: fn,
    getUTCFullYear: fn,
    getUTCHours: fn,
    getUTCMilliseconds: fn,
    getUTCMinutes: fn,
    getUTCMonth: fn,
    getUTCSeconds: fn,
    setDate: fn,
    setFullYear: fn,
    setHours: fn,
    setMilliseconds: fn,
    setMinutes: fn,
    setMonth: fn,
    setSeconds: fn,
    setTime: fn,
    setUTCDate: fn,
    setUTCFullYear: fn,
    setUTCHours: fn,
    setUTCMilliseconds: fn,
    setUTCMinutes: fn,
    setUTCMonth: fn,
    setUTCSeconds: fn,
    toDateString: fn,
    toISOString: fn,
    toJSON: fn,
    toLocaleDateString: fn,
    toLocaleString: fn,
    toLocaleTimeString: fn,
    toString: fn,
    toTimeString: fn,
    toUTCString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,

    // Annex B: Additional Properties of the Date.prototype Object
    getYear: fn,
    setYear: fn,
    toGMTString: fn,
  },

  // Text Processing

  String: {
    // Properties of the String Constructor
    '[[Proto]]': '%FunctionPrototype%',
    fromCharCode: fn,
    fromCodePoint: fn,
    prototype: '%StringPrototype%',
    raw: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
  },

  '%StringPrototype%': {
    // Properties of the String Prototype Object
    length: 'number',
    charAt: fn,
    charCodeAt: fn,
    codePointAt: fn,
    concat: fn,
    constructor: 'String',
    endsWith: fn,
    includes: fn,
    indexOf: fn,
    lastIndexOf: fn,
    localeCompare: fn,
    match: fn,
    matchAll: fn,
    normalize: fn,
    padEnd: fn,
    padStart: fn,
    repeat: fn,
    replace: fn,
    replaceAll: fn, // ES2021
    search: fn,
    slice: fn,
    split: fn,
    startsWith: fn,
    substring: fn,
    toLocaleLowerCase: fn,
    toLocaleUpperCase: fn,
    toLowerCase: fn,
    toString: fn,
    toUpperCase: fn,
    trim: fn,
    trimEnd: fn,
    trimStart: fn,
    valueOf: fn,
    '@@iterator': fn,
    // Failed tc39 proposal
    // https://github.com/tc39/proposal-relative-indexing-method
    at: fn,
    // https://github.com/tc39/proposal-is-usv-string
    isWellFormed: fn,
    toWellFormed: fn,
    unicodeSets: fn,

    // Annex B: Additional Properties of the String.prototype Object
    substr: fn,
    anchor: fn,
    big: fn,
    blink: fn,
    bold: fn,
    fixed: fn,
    fontcolor: fn,
    fontsize: fn,
    italics: fn,
    link: fn,
    small: fn,
    strike: fn,
    sub: fn,
    sup: fn,
    trimLeft: fn,
    trimRight: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    compare: false,
    // Seen on QuickJS
    __quote: false,
  },

  '%StringIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  '%InitialRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,

    // The https://github.com/tc39/proposal-regexp-legacy-features
    // are all optional, unsafe, and omitted
    input: false,
    $_: false,
    lastMatch: false,
    '$&': false,
    lastParen: false,
    '$+': false,
    leftContext: false,
    '$`': false,
    rightContext: false,
    "$'": false,
    $1: false,
    $2: false,
    $3: false,
    $4: false,
    $5: false,
    $6: false,
    $7: false,
    $8: false,
    $9: false,
  },

  '%SharedRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,
  },

  '%RegExpPrototype%': {
    // Properties of the RegExp Prototype Object
    constructor: '%SharedRegExp%',
    exec: fn,
    dotAll: getter,
    flags: getter,
    global: getter,
    hasIndices: getter,
    ignoreCase: getter,
    '@@match': fn,
    '@@matchAll': fn,
    multiline: getter,
    '@@replace': fn,
    '@@search': fn,
    source: getter,
    '@@split': fn,
    sticky: getter,
    test: fn,
    toString: fn,
    unicode: getter,
    unicodeSets: getter,

    // Annex B: Additional Properties of the RegExp.prototype Object
    compile: false  // UNSAFE and suppressed.
  },

  '%RegExpStringIteratorPrototype%': {
    // The %RegExpStringIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // Indexed Collections

  Array: {
    // Properties of the Array Constructor
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    isArray: fn,
    of: fn,
    prototype: '%ArrayPrototype%',
    '@@species': getter,

    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // https://tc39.es/proposal-array-from-async/
    fromAsync: fn,
  },

  '%ArrayPrototype%': {
    // Properties of the Array Prototype Object
    length: 'number',
    concat: fn,
    constructor: 'Array',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    flat: fn,
    flatMap: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    map: fn,
    pop: fn,
    push: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    shift: fn,
    slice: fn,
    some: fn,
    sort: fn,
    splice: fn,
    toLocaleString: fn,
    toString: fn,
    unshift: fn,
    values: fn,
    '@@iterator': fn,
    '@@unscopables': {
      '[[Proto]]': null,
      copyWithin: 'boolean',
      entries: 'boolean',
      fill: 'boolean',
      find: 'boolean',
      findIndex: 'boolean',
      flat: 'boolean',
      flatMap: 'boolean',
      includes: 'boolean',
      keys: 'boolean',
      values: 'boolean',
      // Failed tc39 proposal
      // https://tc39.es/proposal-relative-indexing-method/
      // Seen on FF Nightly 88.0a1
      at: 'boolean',
      // See https://github.com/tc39/proposal-array-find-from-last
      findLast: 'boolean',
      findLastIndex: 'boolean',
      // https://github.com/tc39/proposal-change-array-by-copy
      toReversed: 'boolean',
      toSorted: 'boolean',
      toSpliced: 'boolean',
      with: 'boolean',
      // https://github.com/tc39/proposal-array-grouping
      group: 'boolean',
      groupToMap: 'boolean',
      groupBy: 'boolean',
    },
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    toSpliced: fn,
    with: fn,
    // https://github.com/tc39/proposal-array-grouping
    group: fn, // Not in proposal? Where?
    groupToMap: fn, // Not in proposal? Where?
    groupBy: fn,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
  },

  '%ArrayIteratorPrototype%': {
    // The %ArrayIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // *** TypedArray Objects

  '%TypedArray%': {
    // Properties of the %TypedArray% Intrinsic Object
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    of: fn,
    prototype: '%TypedArrayPrototype%',
    '@@species': getter,
  },

  '%TypedArrayPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: '%TypedArray%',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    length: getter,
    map: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    set: fn,
    slice: fn,
    some: fn,
    sort: fn,
    subarray: fn,
    toLocaleString: fn,
    toString: fn,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': getter,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    with: fn,
  },

  // The TypedArray Constructors

  BigInt64Array: TypedArray('%BigInt64ArrayPrototype%'),
  BigUint64Array: TypedArray('%BigUint64ArrayPrototype%'),
  // https://github.com/tc39/proposal-float16array
  Float16Array: TypedArray('%Float16ArrayPrototype%'),
  Float32Array: TypedArray('%Float32ArrayPrototype%'),
  Float64Array: TypedArray('%Float64ArrayPrototype%'),
  Int16Array: TypedArray('%Int16ArrayPrototype%'),
  Int32Array: TypedArray('%Int32ArrayPrototype%'),
  Int8Array: TypedArray('%Int8ArrayPrototype%'),
  Uint16Array: TypedArray('%Uint16ArrayPrototype%'),
  Uint32Array: TypedArray('%Uint32ArrayPrototype%'),
  Uint8ClampedArray: TypedArray('%Uint8ClampedArrayPrototype%'),
  Uint8Array: {
    ...TypedArray('%Uint8ArrayPrototype%'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromHex: fn,
  },

  '%BigInt64ArrayPrototype%': TypedArrayPrototype('BigInt64Array'),
  '%BigUint64ArrayPrototype%': TypedArrayPrototype('BigUint64Array'),
  // https://github.com/tc39/proposal-float16array
  '%Float16ArrayPrototype%': TypedArrayPrototype('Float16Array'),
  '%Float32ArrayPrototype%': TypedArrayPrototype('Float32Array'),
  '%Float64ArrayPrototype%': TypedArrayPrototype('Float64Array'),
  '%Int16ArrayPrototype%': TypedArrayPrototype('Int16Array'),
  '%Int32ArrayPrototype%': TypedArrayPrototype('Int32Array'),
  '%Int8ArrayPrototype%': TypedArrayPrototype('Int8Array'),
  '%Uint16ArrayPrototype%': TypedArrayPrototype('Uint16Array'),
  '%Uint32ArrayPrototype%': TypedArrayPrototype('Uint32Array'),
  '%Uint8ClampedArrayPrototype%': TypedArrayPrototype('Uint8ClampedArray'),
  '%Uint8ArrayPrototype%': {
    ...TypedArrayPrototype('Uint8Array'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromHex: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toHex: fn,
  },

  // *** Keyed Collections

  Map: {
    // Properties of the Map Constructor
    '[[Proto]]': '%FunctionPrototype%',
    '@@species': getter,
    prototype: '%MapPrototype%',
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
  },

  '%MapPrototype%': {
    clear: fn,
    constructor: 'Map',
    delete: fn,
    entries: fn,
    forEach: fn,
    get: fn,
    has: fn,
    keys: fn,
    set: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
  },

  '%MapIteratorPrototype%': {
    // The %MapIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  Set: {
    // Properties of the Set Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%SetPrototype%',
    '@@species': getter,
    // Seen on QuickJS
    groupBy: false,
  },

  '%SetPrototype%': {
    add: fn,
    clear: fn,
    constructor: 'Set',
    delete: fn,
    entries: fn,
    forEach: fn,
    has: fn,
    keys: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-set-methods
    intersection: fn,
    // See https://github.com/tc39/proposal-set-methods
    union: fn,
    // See https://github.com/tc39/proposal-set-methods
    difference: fn,
    // See https://github.com/tc39/proposal-set-methods
    symmetricDifference: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSubsetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSupersetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isDisjointFrom: fn,
  },

  '%SetIteratorPrototype%': {
    // The %SetIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  WeakMap: {
    // Properties of the WeakMap Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakMapPrototype%',
  },

  '%WeakMapPrototype%': {
    constructor: 'WeakMap',
    delete: fn,
    get: fn,
    has: fn,
    set: fn,
    '@@toStringTag': 'string',
  },

  WeakSet: {
    // Properties of the WeakSet Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakSetPrototype%',
  },

  '%WeakSetPrototype%': {
    add: fn,
    constructor: 'WeakSet',
    delete: fn,
    has: fn,
    '@@toStringTag': 'string',
  },

  // *** Structured Data

  ArrayBuffer: {
    // Properties of the ArrayBuffer Constructor
    '[[Proto]]': '%FunctionPrototype%',
    isView: fn,
    prototype: '%ArrayBufferPrototype%',
    '@@species': getter,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromString: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromBigInt: false,
  },

  '%ArrayBufferPrototype%': {
    byteLength: getter,
    constructor: 'ArrayBuffer',
    slice: fn,
    '@@toStringTag': 'string',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    concat: false,
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // If this exists, it is purely an artifact of how we currently shim
  // `transferToImmutable`. As natively implemented, there would be no
  // such extra prototype.
  '%ImmutableArrayBufferPrototype%': {
    '[[Proto]]': '%ArrayBufferPrototype%',
    byteLength: getter,
    slice: fn,
    // See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // SharedArrayBuffer Objects
  SharedArrayBuffer: false, // UNSAFE and purposely suppressed.
  '%SharedArrayBufferPrototype%': false, // UNSAFE and purposely suppressed.

  DataView: {
    // Properties of the DataView Constructor
    '[[Proto]]': '%FunctionPrototype%',
    BYTES_PER_ELEMENT: 'number', // Non std but undeletable on Safari.
    prototype: '%DataViewPrototype%',
  },

  '%DataViewPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: 'DataView',
    getBigInt64: fn,
    getBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    getFloat16: fn,
    getFloat32: fn,
    getFloat64: fn,
    getInt8: fn,
    getInt16: fn,
    getInt32: fn,
    getUint8: fn,
    getUint16: fn,
    getUint32: fn,
    setBigInt64: fn,
    setBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    setFloat16: fn,
    setFloat32: fn,
    setFloat64: fn,
    setInt8: fn,
    setInt16: fn,
    setInt32: fn,
    setUint8: fn,
    setUint16: fn,
    setUint32: fn,
    '@@toStringTag': 'string',
  },

  // Atomics
  Atomics: false, // UNSAFE and suppressed.

  JSON: {
    parse: fn,
    stringify: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-json-parse-with-source/
    rawJSON: fn,
    isRawJSON: fn,
  },

  // *** Control Abstraction Objects

  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%IteratorPrototype%',
    from: fn,
    // https://github.com/tc39/proposal-joint-iteration
    zip: fn,
    zipKeyed: fn,
    // https://github.com/tc39/proposal-iterator-sequencing
    concat: fn,
  },

  '%IteratorPrototype%': {
    // The %IteratorPrototype% Object
    '@@iterator': fn,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: 'Iterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-async-iterator-helpers
    toAsync: fn,
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@dispose': false,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%WrapForValidIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%IteratorHelperPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AsyncIteratorPrototype%',
    from: fn,
  },

  '%AsyncIteratorPrototype%': {
    // The %AsyncIteratorPrototype% Object
    '@@asyncIterator': fn,
    // https://github.com/tc39/proposal-async-iterator-helpers
    constructor: 'AsyncIterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@asyncDispose': false,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%WrapForValidAsyncIteratorPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%AsyncIteratorHelperPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  '%InertGeneratorFunction%': {
    // Properties of the GeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%Generator%',
  },

  '%Generator%': {
    // Properties of the GeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertGeneratorFunction%',
    prototype: '%GeneratorPrototype%',
    '@@toStringTag': 'string',
  },

  '%InertAsyncGeneratorFunction%': {
    // Properties of the AsyncGeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncGenerator%',
  },

  '%AsyncGenerator%': {
    // Properties of the AsyncGeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncGeneratorFunction%',
    prototype: '%AsyncGeneratorPrototype%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  '%GeneratorPrototype%': {
    // Properties of the Generator Prototype Object
    '[[Proto]]': '%IteratorPrototype%',
    constructor: '%Generator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  '%AsyncGeneratorPrototype%': {
    // Properties of the AsyncGenerator Prototype Object
    '[[Proto]]': '%AsyncIteratorPrototype%',
    constructor: '%AsyncGenerator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  // TODO: To be replaced with Promise.delegate
  //
  // The HandledPromise global variable shimmed by `@agoric/eventual-send/shim`
  // implements an initial version of the eventual send specification at:
  // https://github.com/tc39/proposal-eventual-send
  //
  // We will likely change this to add a property to Promise called
  // Promise.delegate and put static methods on it, which will necessitate
  // another permits change to update to the current proposed standard.
  HandledPromise: {
    '[[Proto]]': 'Promise',
    applyFunction: fn,
    applyFunctionSendOnly: fn,
    applyMethod: fn,
    applyMethodSendOnly: fn,
    get: fn,
    getSendOnly: fn,
    prototype: '%PromisePrototype%',
    resolve: fn,
  },

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source

  ModuleSource: {
    '[[Proto]]': '%AbstractModuleSource%',
    prototype: '%ModuleSourcePrototype%',
  },

  '%ModuleSourcePrototype%': {
    '[[Proto]]': '%AbstractModuleSourcePrototype%',
    constructor: 'ModuleSource',
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-compartments
    bindings: getter,
    needsImport: getter,
    needsImportMeta: getter,
    // @endo/module-source provides a legacy interface
    imports: getter,
    exports: getter,
    reexports: getter,
  },

  '%AbstractModuleSource%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AbstractModuleSourcePrototype%',
  },

  '%AbstractModuleSourcePrototype%': {
    constructor: '%AbstractModuleSource%',
  },

  Promise: {
    // Properties of the Promise Constructor
    '[[Proto]]': '%FunctionPrototype%',
    all: fn,
    allSettled: fn,
    // https://github.com/Agoric/SES-shim/issues/550
    any: fn,
    prototype: '%PromisePrototype%',
    race: fn,
    reject: fn,
    resolve: fn,
    // https://github.com/tc39/proposal-promise-with-resolvers
    withResolvers: fn,
    '@@species': getter,
    // https://github.com/tc39/proposal-promise-try
    try: fn,
  },

  '%PromisePrototype%': {
    // Properties of the Promise Prototype Object
    catch: fn,
    constructor: 'Promise',
    finally: fn,
    then: fn,
    '@@toStringTag': 'string',
    // Non-standard, used in node to prevent async_hooks from breaking
    'UniqueSymbol(async_id_symbol)': accessor,
    'UniqueSymbol(trigger_async_id_symbol)': accessor,
    'UniqueSymbol(destroyed)': accessor,
  },

  '%InertAsyncFunction%': {
    // Properties of the AsyncFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncFunctionPrototype%',
  },

  '%AsyncFunctionPrototype%': {
    // Properties of the AsyncFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncFunction%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  // Reflection

  Reflect: {
    // The Reflect Object
    // Not a function object.
    apply: fn,
    construct: fn,
    defineProperty: fn,
    deleteProperty: fn,
    get: fn,
    getOwnPropertyDescriptor: fn,
    getPrototypeOf: fn,
    has: fn,
    isExtensible: fn,
    ownKeys: fn,
    preventExtensions: fn,
    set: fn,
    setPrototypeOf: fn,
    '@@toStringTag': 'string',
  },

  Proxy: {
    // Properties of the Proxy Constructor
    '[[Proto]]': '%FunctionPrototype%',
    revocable: fn,
  },

  // Appendix B

  // Annex B: Additional Properties of the Global Object

  escape: fn,
  unescape: fn,

  // Proposed

  '%UniqueCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%InertCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%CompartmentPrototype%': {
    constructor: '%InertCompartment%',
    evaluate: fn,
    globalThis: getter,
    name: getter,
    import: asyncFn,
    load: asyncFn,
    importNow: fn,
    module: fn,
    '@@toStringTag': 'string',
  },

  lockdown: fn,
  harden: { ...fn, isFake: 'boolean' },

  '%InitialGetStackString%': fn,
};$h͏_once.permitted(permitted);
})()
,
// === 17. ses ./src/intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let cauterizeProperty,TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isPrimitive,hasOwn,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h͏_imports([["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]],["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]],["permitted",[$h͏_a => (permitted = $h͏_a)]]]]]);

























/**
 * @import {Reporter} from './reporting-types.js'
 */

const isFunction = obj => typeof obj === 'function';

// Like defineProperty, but throws if it would modify an existing property.
// We use this to ensure that two conflicting attempts to define the same
// property throws, causing SES initialization to fail. Otherwise, a
// conflict between, for example, two of SES's internal permits might
// get masked as one overwrites the other. Accordingly, the thrown error
// complains of a "Conflicting definition".
function initProperty(obj, name, desc) {
  if (hasOwn(obj, name)) {
    const preDesc = getOwnPropertyDescriptor(obj, name);
    if (
      !preDesc ||
      !is(preDesc.value, desc.value) ||
      preDesc.get !== desc.get ||
      preDesc.set !== desc.set ||
      preDesc.writable !== desc.writable ||
      preDesc.enumerable !== desc.enumerable ||
      preDesc.configurable !== desc.configurable
    ) {
      throw TypeError(`Conflicting definitions of ${name}`);
    }
  }
  defineProperty(obj, name, desc);
}

// Like defineProperties, but throws if it would modify an existing property.
// This ensures that the intrinsics added to the intrinsics collector object
// graph do not overlap.
function initProperties(obj, descs) {
  for (const [name, desc] of entries(descs)) {
    initProperty(obj, name, desc);
  }
}

// sampleGlobals creates an intrinsics object, suitable for
// interinsicsCollector.addIntrinsics, from the named properties of a global
// object.
function sampleGlobals(globalObject, newPropertyNames) {
  const newIntrinsics = { __proto__: null };
  for (const [globalName, intrinsicName] of entries(newPropertyNames)) {
    if (hasOwn(globalObject, globalName)) {
      newIntrinsics[intrinsicName] = globalObject[globalName];
    }
  }
  return newIntrinsics;
}

/**
 * @param {Reporter} reporter
 */
       const makeIntrinsicsCollector = reporter => {
  /** @type {Record<any, any>} */
  const intrinsics = create(null);
  let pseudoNatives;

  const addIntrinsics = newIntrinsics => {
    initProperties(intrinsics, getOwnPropertyDescriptors(newIntrinsics));
  };
  freeze(addIntrinsics);

  // For each intrinsic, if it has a `.prototype` property, use the
  // permits to find out the intrinsic name for that prototype and add it
  // to the intrinsics.
  const completePrototypes = () => {
    for (const [name, intrinsic] of entries(intrinsics)) {
      if (isPrimitive(intrinsic)) {
        // eslint-disable-next-line no-continue
        continue;
      }
      if (!hasOwn(intrinsic, 'prototype')) {
        // eslint-disable-next-line no-continue
        continue;
      }
      const permit = permitted[name];
      if (typeof permit !== 'object') {
        throw TypeError(`Expected permit object at permits.${name}`);
      }
      const namePrototype = permit.prototype;
      if (!namePrototype) {
        cauterizeProperty(
          intrinsic,
          'prototype',
          false,
          `${name}.prototype`,
          reporter,
        );
        // eslint-disable-next-line no-continue
        continue;
      }
      if (
        typeof namePrototype !== 'string' ||
        !hasOwn(permitted, namePrototype)
      ) {
        throw TypeError(`Unrecognized ${name}.prototype permits entry`);
      }
      const intrinsicPrototype = intrinsic.prototype;
      if (hasOwn(intrinsics, namePrototype)) {
        if (intrinsics[namePrototype] !== intrinsicPrototype) {
          throw TypeError(`Conflicting bindings of ${namePrototype}`);
        }
        // eslint-disable-next-line no-continue
        continue;
      }
      intrinsics[namePrototype] = intrinsicPrototype;
    }
  };
  freeze(completePrototypes);

  const finalIntrinsics = () => {
    freeze(intrinsics);
    pseudoNatives = new WeakSet(arrayFilter(values(intrinsics), isFunction));
    return intrinsics;
  };
  freeze(finalIntrinsics);

  const isPseudoNative = obj => {
    if (!pseudoNatives) {
      throw TypeError(
        'isPseudoNative can only be called after finalIntrinsics',
      );
    }
    return weaksetHas(pseudoNatives, obj);
  };
  freeze(isPseudoNative);

  const intrinsicsCollector = {
    addIntrinsics,
    completePrototypes,
    finalIntrinsics,
    isPseudoNative,
  };
  freeze(intrinsicsCollector);

  addIntrinsics(constantProperties);
  addIntrinsics(sampleGlobals(globalThis, universalPropertyNames));

  return intrinsicsCollector;
};

/**
 * getGlobalIntrinsics()
 * Doesn't tame, delete, or modify anything. Samples globalObject to create an
 * intrinsics record containing only the permitted global variables, listed
 * by the intrinsic names appropriate for new globals, i.e., the globals of
 * newly constructed compartments.
 *
 * WARNING:
 * If run before lockdown, the returned intrinsics record will carry the
 * *original* unsafe (feral, untamed) bindings of these global variables.
 *
 * @param {object} globalObject
 * @param {Reporter} reporter
 */$h͏_once.makeIntrinsicsCollector(makeIntrinsicsCollector);
       const getGlobalIntrinsics = (globalObject, reporter) => {
  // TODO pass a proper reporter to `makeIntrinsicsCollector`
  const { addIntrinsics, finalIntrinsics } = makeIntrinsicsCollector(reporter);

  addIntrinsics(sampleGlobals(globalObject, sharedGlobalPropertyNames));

  return finalIntrinsics();
};$h͏_once.getGlobalIntrinsics(getGlobalIntrinsics);
})()
,
// === 18. ses ./src/permits-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isPrimitive,mapGet,hasOwn,ownKeys,symbolKeyFor,cauterizeProperty;$h͏_imports([["./permits.js", [["permitted",[$h͏_a => (permitted = $h͏_a)]],["FunctionInstance",[$h͏_a => (FunctionInstance = $h͏_a)]],["isAccessorPermit",[$h͏_a => (isAccessorPermit = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["symbolKeyFor",[$h͏_a => (symbolKeyFor = $h͏_a)]]]],["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]]]);
































































/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Removes all non-allowed properties found by recursively and
 * reflectively walking own property chains.
 *
 * @param {object} intrinsics
 * @param {(virtualizedNativeFunction: object) => void} markVirtualizedNativeFunction
 * @param {Reporter} reporter
 */
               function removeUnpermittedIntrinsics(
  intrinsics,
  markVirtualizedNativeFunction,
  reporter,
) {
  // These primitives are allowed for permits.
  const primitives = ['undefined', 'boolean', 'number', 'string', 'symbol'];

  // These symbols are allowed as well-known symbols
  const wellKnownSymbolNames = new Map(
    Symbol
      ? arrayMap(
          arrayFilter(
            entries(permitted['%SharedSymbol%']),
            ([name, permit]) =>
              permit === 'symbol' && typeof Symbol[name] === 'symbol',
          ),
          ([name]) => [Symbol[name], `@@${name}`],
        )
      : [],
  );

  /**
   * asStringPropertyName()
   *
   * @param {string} path
   * @param {string | symbol} prop
   */
  function asStringPropertyName(path, prop) {
    if (typeof prop === 'string') {
      return prop;
    }

    const wellKnownSymbol = mapGet(wellKnownSymbolNames, prop);

    if (typeof prop === 'symbol') {
      if (wellKnownSymbol) {
        return wellKnownSymbol;
      } else {
        const registeredKey = symbolKeyFor(prop);
        if (registeredKey !== undefined) {
          return `RegisteredSymbol(${registeredKey})`;
        } else {
          return `Unique${String(prop)}`;
        }
      }
    }

    throw TypeError(`Unexpected property name type ${path} ${prop}`);
  }

  /*
   * visitPrototype()
   * Validate the object's [[prototype]] against a permit.
   */
  function visitPrototype(path, obj, protoName) {
    if (isPrimitive(obj)) {
      throw TypeError(`Object expected: ${path}, ${String(obj)}, ${protoName}`);
    }
    const proto = getPrototypeOf(obj);

    // Null prototype.
    if (proto === null && protoName === null) {
      return;
    }

    // Assert: protoName, if provided, is a string.
    if (protoName !== undefined && typeof protoName !== 'string') {
      throw TypeError(`Malformed permit ${path}.__proto__`);
    }

    // If permit not specified, default to Object.prototype.
    if (proto === intrinsics[protoName || '%ObjectPrototype%']) {
      return;
    }

    // We can't clean [[Prototype]], therefore abort.
    throw TypeError(
      `Unexpected [[Prototype]] at ${path}.__proto__ (expected ${protoName || '%ObjectPrototype%'})`,
    );
  }

  /*
   * isAllowedPropertyValue()
   * enforce permit for a single property value.
   */
  function isAllowedPropertyValue(path, value, prop, permit) {
    if (typeof permit === 'object') {
      // eslint-disable-next-line no-use-before-define
      visitProperties(path, value, permit);
      // The property is allowed.
      return true;
    }

    if (permit === false) {
      // A boolan 'false' permit specifies the removal of a property.
      // We require a more specific permit instead of allowing 'true'.
      return false;
    }

    if (typeof permit === 'string') {
      // A string permit can have one of two meanings:

      if (prop === 'prototype' || prop === 'constructor') {
        // For prototype and constructor value properties, the permit
        // is the name of an intrinsic.
        // Assumption: prototype and constructor cannot be primitives.
        // Assert: the permit is the name of an intrinsic.
        // Assert: the property value is equal to that intrinsic.

        if (hasOwn(intrinsics, permit)) {
          if (value !== intrinsics[permit]) {
            throw TypeError(`Does not match permit for ${path}`);
          }
          return true;
        }
      } else {
        // For all other properties, the permit is the name of a primitive.
        // Assert: the permit is the name of a primitive.
        // Assert: the property value type is equal to that primitive.

        // eslint-disable-next-line no-lonely-if
        if (arrayIncludes(primitives, permit)) {
          // eslint-disable-next-line valid-typeof
          if (typeof value !== permit) {
            throw TypeError(
              `At ${path} expected ${permit} not ${typeof value}`,
            );
          }
          return true;
        }
      }
    }

    throw TypeError(
      `Unexpected property ${prop} with permit ${permit} at ${path}`,
    );
  }

  /*
   * isAllowedProperty()
   * Check whether a single property is allowed.
   */
  function isAllowedProperty(path, obj, prop, permit) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      throw TypeError(`Property ${prop} not found at ${path}`);
    }

    // Is this a value property?
    if (hasOwn(desc, 'value')) {
      if (isAccessorPermit(permit)) {
        throw TypeError(`Accessor expected at ${path}`);
      }
      return isAllowedPropertyValue(path, desc.value, prop, permit);
    }
    if (!isAccessorPermit(permit)) {
      throw TypeError(`Accessor not expected at ${path}`);
    }
    return (
      isAllowedPropertyValue(`${path}<get>`, desc.get, prop, permit.get) &&
      isAllowedPropertyValue(`${path}<set>`, desc.set, prop, permit.set)
    );
  }

  /*
   * getSubPermit()
   */
  function getSubPermit(obj, permit, prop) {
    const permitProp = prop === '__proto__' ? '--proto--' : prop;
    if (hasOwn(permit, permitProp)) {
      return permit[permitProp];
    }

    if (typeof obj === 'function') {
      if (hasOwn(FunctionInstance, permitProp)) {
        return FunctionInstance[permitProp];
      }
    }

    return undefined;
  }

  /*
   * visitProperties()
   * Visit all properties for a permit.
   */
  function visitProperties(path, obj, permit) {
    if (obj === undefined || obj === null) {
      return;
    }

    const protoName = permit['[[Proto]]'];
    visitPrototype(path, obj, protoName);

    if (typeof obj === 'function') {
      markVirtualizedNativeFunction(obj);
    }

    for (const prop of ownKeys(obj)) {
      const propString = asStringPropertyName(path, prop);
      const subPath = `${path}.${propString}`;
      const subPermit = getSubPermit(obj, permit, propString);

      if (!subPermit || !isAllowedProperty(subPath, obj, prop, subPermit)) {
        cauterizeProperty(obj, prop, subPermit === false, subPath, reporter);
      }
    }
  }

  // Start path with 'intrinsics' to clarify that properties are not
  // removed from the global object by the permitting operation.
  visitProperties('intrinsics', intrinsics, permitted);
}$h͏_once.default(      removeUnpermittedIntrinsics);
})()
,
// === 19. ses ./src/tame-function-constructors.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf,freeze,AsyncGeneratorFunctionInstance;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]]]]]);










// This module replaces the original `Function` constructor, and the original
// `%GeneratorFunction%`, `%AsyncFunction%` and `%AsyncGeneratorFunction%`,
// with safe replacements that throw if invoked.
//
// These are all reachable via syntax, so it isn't sufficient to just
// replace global properties with safe versions. Our main goal is to prevent
// access to the `Function` constructor through these starting points.
//
// After modules block is done, the originals must no longer be reachable,
// unless a copy has been made, and functions can only be created by syntax
// (using eval) or by invoking a previously saved reference to the originals.
//
// Typically, this module will not be used directly, but via the
// [lockdown - shim] which handles all necessary repairs and taming in SES.
//
// Relation to ECMA specifications
//
// The taming of constructors really wants to be part of the standard, because
// new constructors may be added in the future, reachable from syntax, and this
// list must be updated to match.
//
// In addition, the standard needs to define four new intrinsics for the safe
// replacement functions. See [./permits-intrinsics.js].
//
// Adapted from SES/Caja
// Copyright (C) 2011 Google Inc.
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/startSES.js
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/repairES5.js

/**
 * tameFunctionConstructors()
 * This block replaces the original Function constructor, and the original
 * %GeneratorFunction% %AsyncFunction% and %AsyncGeneratorFunction%, with
 * safe replacements that throw if invoked.
 */
               function tameFunctionConstructors() {
  try {
    // Verify that the method is not callable.
    // eslint-disable-next-line @endo/no-polymorphic-call
    FERAL_FUNCTION.prototype.constructor('return 1');
  } catch (ignore) {
    // Throws, no need to patch.
    return freeze({});
  }

  const newIntrinsics = {};

  /*
   * The process to repair constructors:
   * 1. Create an instance of the function by evaluating syntax
   * 2. Obtain the prototype from the instance
   * 3. Create a substitute tamed constructor
   * 4. Replace the original constructor with the tamed constructor
   * 5. Replace tamed constructor prototype property with the original one
   * 6. Replace its [[Prototype]] slot with the tamed constructor of Function
   */
  function repairFunction(name, intrinsicName, declaration) {
    let FunctionInstance;
    try {
      // eslint-disable-next-line no-eval, no-restricted-globals
      FunctionInstance = (0, eval)(declaration);
    } catch (e) {
      if (e instanceof SyntaxError) {
        // Prevent failure on platforms where async and/or generators
        // are not supported.
        return;
      }
      // Re-throw
      throw e;
    }
    const FunctionPrototype = getPrototypeOf(FunctionInstance);

    // Prevents the evaluation of source when calling constructor on the
    // prototype of functions.
    // eslint-disable-next-line func-names
    const InertConstructor = function () {
      throw TypeError(
        'Function.prototype.constructor is not a valid constructor.',
      );
    };
    defineProperties(InertConstructor, {
      prototype: { value: FunctionPrototype },
      name: {
        value: name,
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });

    defineProperties(FunctionPrototype, {
      constructor: { value: InertConstructor },
    });

    // Reconstructs the inheritance among the new tamed constructors
    // to mirror the original specified in normal JS.
    if (InertConstructor !== FERAL_FUNCTION.prototype.constructor) {
      setPrototypeOf(InertConstructor, FERAL_FUNCTION.prototype.constructor);
    }

    newIntrinsics[intrinsicName] = InertConstructor;
  }

  // Here, the order of operation is important: Function needs to be repaired
  // first since the other repaired constructors need to inherit from the
  // tamed Function function constructor.

  repairFunction('Function', '%InertFunction%', '(function(){})');
  repairFunction(
    'GeneratorFunction',
    '%InertGeneratorFunction%',
    '(function*(){})',
  );
  repairFunction(
    'AsyncFunction',
    '%InertAsyncFunction%',
    '(async function(){})',
  );

  if (AsyncGeneratorFunctionInstance !== undefined) {
    repairFunction(
      'AsyncGeneratorFunction',
      '%InertAsyncGeneratorFunction%',
      '(async function*(){})',
    );
  }

  return newIntrinsics;
}$h͏_once.default(      tameFunctionConstructors);
})()
,
// === 20. ses ./src/tame-date-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Date,TypeError,apply,construct,defineProperties;$h͏_imports([["./commons.js", [["Date",[$h͏_a => (Date = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]]]]]);









               function tameDateConstructor() {
  const OriginalDate = Date;
  const DatePrototype = OriginalDate.prototype;

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedDate%.now()` throw a `TypeError` starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    now() {
      throw TypeError('secure mode Calling %SharedDate%.now() throws');
    },
  };

  /**
   * Tame the Date constructor.
   * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
   *
   * Common behavior
   *   * `new Date(x)` coerces x into a number and then returns a Date
   *     for that number of millis since the epoch
   *   * `new Date(NaN)` returns a Date object which stringifies to
   *     'Invalid Date'
   *   * `new Date(undefined)` returns a Date object which stringifies to
   *     'Invalid Date'
   *
   * OriginalDate (normal standard) behavior preserved by
   * `%InitialDate%`.
   *   * `Date(anything)` gives a string with the current time
   *   * `new Date()` returns the current time, as a Date object
   *
   * `%SharedDate%` behavior
   *   * `Date(anything)` throws a TypeError starting with "secure mode"
   *   * `new Date()` throws a TypeError starting with "secure mode"
   *
   * @param {{powers?: string}} [opts]
   */
  const makeDateConstructor = ({ powers = 'none' } = {}) => {
    let ResultDate;
    if (powers === 'original') {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          return apply(OriginalDate, undefined, rest);
        }
        return construct(OriginalDate, rest, new.target);
      };
    } else {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          throw TypeError(
            'secure mode Calling %SharedDate% constructor as a function throws',
          );
        }
        if (rest.length === 0) {
          throw TypeError(
            'secure mode Calling new %SharedDate%() with no arguments throws',
          );
        }
        return construct(OriginalDate, rest, new.target);
      };
    }

    defineProperties(ResultDate, {
      length: { value: 7 },
      prototype: {
        value: DatePrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
      parse: {
        value: OriginalDate.parse,
        writable: true,
        enumerable: false,
        configurable: true,
      },
      UTC: {
        value: OriginalDate.UTC,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });
    return ResultDate;
  };
  const InitialDate = makeDateConstructor({ powers: 'original' });
  const SharedDate = makeDateConstructor({ powers: 'none' });

  defineProperties(InitialDate, {
    now: {
      value: OriginalDate.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });
  defineProperties(SharedDate, {
    now: {
      value: tamedMethods.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  defineProperties(DatePrototype, {
    constructor: { value: SharedDate },
  });

  return {
    '%InitialDate%': InitialDate,
    '%SharedDate%': SharedDate,
  };
}$h͏_once.default(      tameDateConstructor);
})()
,
// === 21. ses ./src/tame-math-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h͏_imports([["./commons.js", [["Math",[$h͏_a => (Math = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]]]]]);







               function tameMathObject() {
  const originalMath = Math;
  const initialMath = originalMath; // to follow the naming pattern

  const { random: _, ...otherDescriptors } =
    getOwnPropertyDescriptors(originalMath);

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedMath%.random()` throws a TypeError starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    random() {
      throw TypeError('secure mode %SharedMath%.random() throws');
    },
  };

  const sharedMath = create(objectPrototype, {
    ...otherDescriptors,
    random: {
      value: tamedMethods.random,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  return {
    '%InitialMath%': initialMath,
    '%SharedMath%': sharedMath,
  };
}$h͏_once.default(      tameMathObject);
})()
,
// === 22. ses ./src/tame-regexp-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["speciesSymbol",[$h͏_a => (speciesSymbol = $h͏_a)]]]]]);








               function tameRegExpConstructor(regExpTaming = 'safe') {
  const RegExpPrototype = FERAL_REG_EXP.prototype;

  const makeRegExpConstructor = (_ = {}) => {
    // RegExp has non-writable static properties we need to omit.
    /**
     * @param  {Parameters<typeof FERAL_REG_EXP>} rest
     */
    const ResultRegExp = function RegExp(...rest) {
      if (new.target === undefined) {
        return FERAL_REG_EXP(...rest);
      }
      return construct(FERAL_REG_EXP, rest, new.target);
    };

    defineProperties(ResultRegExp, {
      length: { value: 2 },
      prototype: {
        value: RegExpPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    // Hermes does not have `Symbol.species`. We should support such platforms.
    if (speciesSymbol) {
      const speciesDesc = getOwnPropertyDescriptor(
        FERAL_REG_EXP,
        speciesSymbol,
      );
      if (!speciesDesc) {
        throw TypeError('no RegExp[Symbol.species] descriptor');
      }
      defineProperties(ResultRegExp, {
        [speciesSymbol]: speciesDesc,
      });
    }
    return ResultRegExp;
  };

  const InitialRegExp = makeRegExpConstructor();
  const SharedRegExp = makeRegExpConstructor();

  if (regExpTaming !== 'unsafe') {
    // @ts-expect-error Deleted properties must be optional
    delete RegExpPrototype.compile;
  }
  defineProperties(RegExpPrototype, {
    constructor: { value: SharedRegExp },
  });

  return {
    '%InitialRegExp%': InitialRegExp,
    '%SharedRegExp%': SharedRegExp,
  };
}$h͏_once.default(      tameRegExpConstructor);
})()
,
// === 23. ses ./src/enablements.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);

/**
 * Exports {@code enablements}, a recursively defined
 * JSON record defining the optimum set of intrinsics properties
 * that need to be "repaired" before hardening is applied on
 * enviromments subject to the override mistake.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * <p>Because "repairing" replaces data properties with accessors, every
 * time a repaired property is accessed, the associated getter is invoked,
 * which degrades the runtime performance of all code executing in the
 * repaired enviromment, compared to the non-repaired case. In order
 * to maintain performance, we only repair the properties of objects
 * for which hardening causes a breakage of their normal intended usage.
 *
 * There are three unwanted cases:
 * <ul>
 * <li>Overriding properties on objects typically used as records,
 *     namely {@code "Object"} and {@code "Array"}. In the case of arrays,
 *     the situation is unintentional, a given program might not be aware
 *     that non-numerical properties are stored on the underlying object
 *     instance, not on the array. When an object is typically used as a
 *     map, we repair all of its prototype properties.
 * <li>Overriding properties on objects that provide defaults on their
 *     prototype and that programs typically set using an assignment, such as
 *     {@code "Error.prototype.message"} and {@code "Function.prototype.name"}
 *     (both default to "").
 * <li>Setting-up a prototype chain, where a constructor is set to extend
 *     another one. This is typically set by assignment, for example
 *     {@code "Child.prototype.constructor = Child"}, instead of invoking
 *     Object.defineProperty();
 *
 * <p>Each JSON record enumerates the disposition of the properties on
 * some corresponding intrinsic object.
 *
 * <p>For each such record, the values associated with its property
 * names can be:
 * <ul>
 * <li>true, in which case this property is simply repaired. The
 *     value associated with that property is not traversed. For
 *     example, {@code "Function.prototype.name"} leads to true,
 *     meaning that the {@code "name"} property of {@code
 *     "Function.prototype"} should be repaired (which is needed
 *     when inheriting from @code{Function} and setting the subclass's
 *     {@code "prototype.name"} property). If the property is
 *     already an accessor property, it is not repaired (because
 *     accessors are not subject to the override mistake).
 * <li>"*", in which case this property is not repaired but the
 *     value associated with that property are traversed and repaired.
 * <li>Another record, in which case this property is not repaired
 *     and that next record represents the disposition of the object
 *     which is its value. For example,{@code "FunctionPrototype"}
 *     leads to another record explaining which properties {@code
 *     Function.prototype} need to be repaired.
 */

/**
 * Minimal enablements when all the code is modern and known not to
 * step into the override mistake, except for the following pervasive
 * cases.
 */
       const minEnablements = {
  '%ObjectPrototype%': {
    toString: true,
  },

  '%FunctionPrototype%': {
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    name: true  // set by "precond", "ava", "node-fetch"
  },

  '%IteratorPrototype%': {
    toString: true,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: true,
    // https://github.com/tc39/proposal-iterator-helpers
    [toStringTagSymbol]: true,
  },
};

/**
 * Moderate enablements are usually good enough for legacy compat.
 */$h͏_once.minEnablements(minEnablements);
       const moderateEnablements = {
  ...minEnablements,

  '%ObjectPrototype%': {
    toString: true,
    valueOf: true,
  },

  '%ArrayPrototype%': {
    toString: true,
    push: true, // set by "Google Analytics"
    concat: true, // set by mobx generated code (old TS compiler?)
    [iteratorSymbol]: true  // set by mobx generated code (old TS compiler?)
  },

  '%IteratorPrototype%': {
    [iteratorSymbol]: true  // is sometimes used in custom iterators and generators implementations eg. @rive-app/canvas
  },

  // Function.prototype has no 'prototype' property to enable.
  // Function instances have their own 'name' and 'length' properties
  // which are configurable and non-writable. Thus, they are already
  // non-assignable anyway.
  '%FunctionPrototype%': {
    constructor: true, // set by "regenerator-runtime"
    bind: true, // set by "underscore", "express"
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    constructor: true, // set by "fast-json-patch", "node-fetch"
    message: true,
    name: true, // set by "precond", "ava", "node-fetch", "node 14"
    toString: true  // set by "bluebird"
  },

  '%TypeErrorPrototype%': {
    constructor: true, // set by "readable-stream"
    message: true, // set by "tape"
    name: true  // set by "readable-stream", "node 14"
  },

  '%SyntaxErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%RangeErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%URIErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%EvalErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%ReferenceErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"?
  },

  '%PromisePrototype%': {
    constructor: true  // set by "core-js"
  },

  '%TypedArrayPrototype%': '*', // set by https://github.com/feross/buffer

  '%Generator%': {
    constructor: true,
    name: true,
    toString: true,
  },
};

/**
 * The 'severe' enablement are needed because of issues tracked at
 * https://github.com/endojs/endo/issues/576
 *
 * They are like the `moderate` enablements except for the entries below.
 */$h͏_once.moderateEnablements(moderateEnablements);
       const severeEnablements = {
  ...moderateEnablements,

  /**
   * Rollup (as used at least by vega) and webpack
   * (as used at least by regenerator) both turn exports into assignments
   * to a big `exports` object that inherits directly from
   * `Object.prototype`. Some of the exported names we've seen include
   * `hasOwnProperty`, `constructor`, and `toString`. But the strategy used
   * by rollup and webpack potentionally turns any exported name
   * into an assignment rejected by the override mistake. That's why
   * the `severe` enablements takes the extreme step of enabling
   * everything on `Object.prototype`.
   *
   * In addition, code doing inheritance manually will often override
   * the `constructor` property on the new prototype by assignment. We've
   * seen this several times.
   *
   * The cost of enabling all these is that they create a miserable debugging
   * experience specifically on Node.
   * https://github.com/Agoric/agoric-sdk/issues/2324
   * explains how it confused the Node console.
   *
   * (TODO Reexamine the vscode situation. I think it may have improved
   * since the following paragraph was written.)
   *
   * The vscode debugger's object inspector shows the own data properties of
   * an object, which is typically what you want, but also shows both getter
   * and setter for every accessor property whether inherited or own.
   * With the `'*'` setting here, all the properties inherited from
   * `Object.prototype` are accessors, creating an unusable display as seen
   * at As explained at
   * https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md#overridetaming-options
   * Open the triangles at the bottom of that section.
   */
  '%ObjectPrototype%': '*',

  /**
   * The widely used Buffer defined at https://github.com/feross/buffer
   * on initialization, manually creates the equivalent of a subclass of
   * `TypedArray`, which it then initializes by assignment. These assignments
   * include enough of the `TypeArray` methods that here, the `severe`
   * enablements just enable them all.
   */
  '%TypedArrayPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%MapPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%SetPrototype%': '*',
};$h͏_once.severeEnablements(severeEnablements);
})()
,
// === 24. ses ./src/enable-property-overrides.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,isPrimitive,hasOwn,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]],["./enablements.js", [["minEnablements",[$h͏_a => (minEnablements = $h͏_a)]],["moderateEnablements",[$h͏_a => (moderateEnablements = $h͏_a)]],["severeEnablements",[$h͏_a => (severeEnablements = $h͏_a)]]]]]);
























/** @import {Reporter} from './reporting-types.js' */

/**
 * For a special set of properties defined in the `enablement` list,
 * `enablePropertyOverrides` ensures that the effect of freezing does not
 * suppress the ability to override these properties on derived objects by
 * simple assignment.
 *
 * Because of lack of sufficient foresight at the time, ES5 unfortunately
 * specified that a simple assignment to a non-existent property must fail if
 * it would override an non-writable data property of the same name in the
 * shadow of the prototype chain. In retrospect, this was a mistake, the
 * so-called "override mistake". But it is now too late and we must live with
 * the consequences.
 *
 * As a result, simply freezing an object to make it tamper proof has the
 * unfortunate side effect of breaking previously correct code that is
 * considered to have followed JS best practices, if this previous code used
 * assignment to override.
 *
 * For the enabled properties, `enablePropertyOverrides` effectively shims what
 * the assignment behavior would have been in the absence of the override
 * mistake. However, the shim produces an imperfect emulation. It shims the
 * behavior by turning these data properties into accessor properties, where
 * the accessor's getter and setter provide the desired behavior. For
 * non-reflective operations, the illusion is perfect. However, reflective
 * operations like `getOwnPropertyDescriptor` see the descriptor of an accessor
 * property rather than the descriptor of a data property. At the time of this
 * writing, this is the best we know how to do.
 *
 * To the getter of the accessor we add a property named
 * `'originalValue'` whose value is, as it says, the value that the
 * data property had before being converted to an accessor property. We add
 * this extra property to the getter for two reason:
 *
 * The harden algorithm walks the own properties reflectively, i.e., with
 * `getOwnPropertyDescriptor` semantics, rather than `[[Get]]` semantics. When
 * it sees an accessor property, it does not invoke the getter. Rather, it
 * proceeds to walk both the getter and setter as part of its transitive
 * traversal. Without this extra property, `enablePropertyOverrides` would have
 * hidden the original data property value from `harden`, which would be bad.
 * Instead, by exposing that value in an own data property on the getter,
 * `harden` finds and walks it anyway.
 *
 * We enable a form of cooperative emulation, giving reflective code an
 * opportunity to cooperate in upholding the illusion. When such cooperative
 * reflective code sees an accessor property, where the accessor's getter
 * has an `originalValue` property, it knows that the getter is
 * alleging that it is the result of the `enablePropertyOverrides` conversion
 * pattern, so it can decide to cooperatively "pretend" that it sees a data
 * property with that value.
 *
 * @param {Record<string, any>} intrinsics
 * @param {'min' | 'moderate' | 'severe'} overrideTaming
 * @param {Reporter} reporter
 * @param {Iterable<string | symbol>} [overrideDebug]
 */
               function enablePropertyOverrides(
  intrinsics,
  overrideTaming,
  { warn },
  overrideDebug = [],
) {
  const debugProperties = new Set(overrideDebug);
  function enable(path, obj, prop, desc) {
    if ('value' in desc && desc.configurable) {
      const { value } = desc;

      const isDebug = setHas(debugProperties, prop);

      // We use concise method syntax to be `this` sensitive, but still
      // omit a prototype property or [[Construct]] behavior.
      // @ts-expect-error We know there is an accessor descriptor there
      const { get: getter, set: setter } = getOwnPropertyDescriptor(
        {
          get [prop]() {
            return value;
          },
          set [prop](newValue) {
            if (obj === this) {
              throw TypeError(
                `Cannot assign to read only property '${String(
                  prop,
                )}' of '${path}'`,
              );
            }
            if (hasOwn(this, prop)) {
              this[prop] = newValue;
            } else {
              if (isDebug) {
                warn(TypeError(`Override property ${prop}`));
              }
              defineProperty(this, prop, {
                value: newValue,
                writable: true,
                enumerable: true,
                configurable: true,
              });
            }
          },
        },
        prop,
      );

      defineProperty(getter, 'originalValue', {
        value,
        writable: false,
        enumerable: false,
        configurable: false,
      });

      defineProperty(obj, prop, {
        get: getter,
        set: setter,
        enumerable: desc.enumerable,
        configurable: desc.configurable,
      });
    }
  }

  function enableProperty(path, obj, prop) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      return;
    }
    enable(path, obj, prop, desc);
  }

  function enableAllProperties(path, obj) {
    const descs = getOwnPropertyDescriptors(obj);
    if (!descs) {
      return;
    }
    // TypeScript does not allow symbols to be used as indexes because it
    // cannot recokon types of symbolized properties.
    arrayForEach(ownKeys(descs), prop => enable(path, obj, prop, descs[prop]));
  }

  function enableProperties(path, obj, plan) {
    for (const prop of ownKeys(plan)) {
      const desc = getOwnPropertyDescriptor(obj, prop);
      if (!desc || desc.get || desc.set) {
        // No not a value property, nothing to do.
        // eslint-disable-next-line no-continue
        continue;
      }

      // In case `prop` is a symbol, we first coerce it with `String`,
      // purely for diagnostic purposes.
      const subPath = `${path}.${String(prop)}`;
      const subPlan = plan[prop];

      if (subPlan === true) {
        enableProperty(subPath, obj, prop);
      } else if (subPlan === '*') {
        enableAllProperties(subPath, desc.value);
      } else if (!isPrimitive(subPlan)) {
        enableProperties(subPath, desc.value, subPlan);
      } else {
        throw TypeError(`Unexpected override enablement plan ${subPath}`);
      }
    }
  }

  let plan;
  switch (overrideTaming) {
    case 'min': {
      plan = minEnablements;
      break;
    }
    case 'moderate': {
      plan = moderateEnablements;
      break;
    }
    case 'severe': {
      plan = severeEnablements;
      break;
    }
    default: {
      throw TypeError(`unrecognized overrideTaming ${overrideTaming}`);
    }
  }

  // Do the repair.
  enableProperties('root', intrinsics, plan);
}$h͏_once.default(      enablePropertyOverrides);
})()
,
// === 25. ses ./src/tame-locale-methods.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,getOwnPropertyNames,isPrimitive,regexpExec,assert;$h͏_imports([["./commons.js", [["Number",[$h͏_a => (Number = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

const localePattern = /^(\w*[a-z])Locale([A-Z]\w*)$/;

// Use concise methods to obtain named functions without constructor
// behavior or `.prototype` property.
const tamedMethods = {
  // See https://tc39.es/ecma262/#sec-string.prototype.localecompare
  localeCompare(arg) {
    if (this === null || this === undefined) {
      throw TypeError(
        'Cannot localeCompare with null or undefined "this" value',
      );
    }
    const s = `${this}`;
    const that = `${arg}`;
    if (s < that) {
      return -1;
    }
    if (s > that) {
      return 1;
    }
    s === that || Fail`expected ${q(s)} and ${q(that)} to compare`;
    return 0;
  },

  toString() {
    return `${this}`;
  },
};

const nonLocaleCompare = tamedMethods.localeCompare;
const numberToString = tamedMethods.toString;

               function tameLocaleMethods(intrinsics, localeTaming = 'safe') {
  if (localeTaming === 'unsafe') {
    return;
  }

  defineProperty(String.prototype, 'localeCompare', {
    value: nonLocaleCompare,
  });

  for (const intrinsicName of getOwnPropertyNames(intrinsics)) {
    const intrinsic = intrinsics[intrinsicName];
    if (!isPrimitive(intrinsic)) {
      for (const methodName of getOwnPropertyNames(intrinsic)) {
        const match = regexpExec(localePattern, methodName);
        if (match) {
          typeof intrinsic[methodName] === 'function' ||
            Fail`expected ${q(methodName)} to be a function`;
          const nonLocaleMethodName = `${match[1]}${match[2]}`;
          const method = intrinsic[nonLocaleMethodName];
          typeof method === 'function' ||
            Fail`function ${q(nonLocaleMethodName)} not found`;
          defineProperty(intrinsic, methodName, { value: method });
        }
      }
    }
  }

  // Numbers are special because toString accepts a radix instead of ignoring
  // all of the arguments that we would otherwise forward.
  defineProperty(Number.prototype, 'toLocaleString', {
    value: numberToString,
  });
}$h͏_once.default(      tameLocaleMethods);
})()
,
// === 26. ses ./src/make-eval-function.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * makeEvalFunction()
 * A safe version of the native eval function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 *
 * @param {Function} evaluator
 */
       const makeEvalFunction = evaluator => {
  // We use the concise method syntax to create an eval without a
  // [[Construct]] behavior (such that the invocation "new eval()" throws
  // TypeError: eval is not a constructor"), but which still accepts a
  // 'this' binding.
  const newEval = {
    eval(source) {
      if (typeof source !== 'string') {
        // As per the runtime semantic of PerformEval [ECMAScript 18.2.1.1]:
        // If Type(source) is not String, return source.
        // TODO Recent proposals from Mike Samuel may change this non-string
        // rule. Track.
        return source;
      }
      return evaluator(source);
    },
  }.eval;

  return newEval;
};$h͏_once.makeEvalFunction(makeEvalFunction);
})()
,
// === 27. ses ./src/make-function-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);








const { Fail } = assert;

/*
 * makeFunctionConstructor()
 * A safe version of the native Function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 */
       const makeFunctionConstructor = evaluator => {
  // Define an unused parameter to ensure Function.length === 1
  const newFunction = function Function(_body) {
    // Sanitize all parameters at the entry point.
    // eslint-disable-next-line prefer-rest-params
    const bodyText = `${arrayPop(arguments) || ''}`;
    // eslint-disable-next-line prefer-rest-params
    const parameters = `${arrayJoin(arguments, ',')}`;

    // Are parameters and bodyText valid code, or is someone
    // attempting an injection attack? This will throw a SyntaxError if:
    // - parameters doesn't parse as parameters
    // - bodyText doesn't parse as a function body
    // - either contain a call to super() or references a super property.
    //
    // It seems that XS may still be vulnerable to the attack explained at
    // https://github.com/tc39/ecma262/pull/2374#issuecomment-813769710
    // where `new Function('/*', '*/ ) {')` would incorrectly validate.
    // Before we worried about this, we check the parameters and bodyText
    // together in one call
    // ```js
    // new FERAL_FUNCTION(parameters, bodyTest);
    // ```
    // However, this check is vulnerable to that bug. Aside from that case,
    // all engines do seem to validate the parameters, taken by themselves,
    // correctly. And all engines do seem to validate the bodyText, taken
    // by itself correctly. So with the following two checks, SES builds a
    // correct safe `Function` constructor by composing two calls to an
    // original unsafe `Function` constructor that may suffer from this bug
    // but is otherwise correctly validating.
    //
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(parameters, '');
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(bodyText);

    // Safe to be combined. Defeat potential trailing comments.
    // TODO: since we create an anonymous function, the 'this' value
    // isn't bound to the global object as per specs, but set as undefined.
    const src = `(function anonymous(${parameters}\n) {\n${bodyText}\n})`;
    return evaluator(src);
  };

  defineProperties(newFunction, {
    // Ensure that any function created in any evaluator in a realm is an
    // instance of Function in any evaluator of the same realm.
    prototype: {
      value: FERAL_FUNCTION.prototype,
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });

  // Assert identity of Function.__proto__ accross all compartments
  getPrototypeOf(FERAL_FUNCTION) === FERAL_FUNCTION.prototype ||
    Fail`Function prototype is the same accross compartments`;
  getPrototypeOf(newFunction) === FERAL_FUNCTION.prototype ||
    Fail`Function constructor prototype is the same across compartments`;

  return newFunction;
};$h͏_once.makeFunctionConstructor(makeFunctionConstructor);
})()
,
// === 28. ses ./src/global-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,assign,create,defineProperty,entries,freeze,hasOwn,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["unscopablesSymbol",[$h͏_a => (unscopablesSymbol = $h͏_a)]]]],["./make-eval-function.js", [["makeEvalFunction",[$h͏_a => (makeEvalFunction = $h͏_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor",[$h͏_a => (makeFunctionConstructor = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);













/**
 * The host's ordinary global object is not provided by a `with` block, so
 * assigning to Symbol.unscopables has no effect.
 * Since this shim uses `with` blocks to create a confined lexical scope for
 * guest programs, we cannot emulate the proper behavior.
 * With this shim, assigning Symbol.unscopables causes the given lexical
 * names to fall through to the terminal scope proxy.
 * But, we can install this setter to prevent a program from proceding on
 * this false assumption.
 *
 * @param {object} globalObject
 */
       const setGlobalObjectSymbolUnscopables = globalObject => {
  defineProperty(
    globalObject,
    unscopablesSymbol,
    freeze(
      assign(create(null), {
        set: freeze(() => {
          throw TypeError(
            `Cannot set Symbol.unscopables of a Compartment's globalThis`,
          );
        }),
        enumerable: false,
        configurable: false,
      }),
    ),
  );
};

/**
 * setGlobalObjectConstantProperties()
 * Initializes a new global object using a process similar to ECMA specifications
 * (SetDefaultGlobalBindings). This process is split between this function and
 * `setGlobalObjectMutableProperties`.
 *
 * @param {object} globalObject
 */$h͏_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
       const setGlobalObjectConstantProperties = globalObject => {
  for (const [name, constant] of entries(constantProperties)) {
    defineProperty(globalObject, name, {
      value: constant,
      writable: false,
      enumerable: false,
      configurable: false,
    });
  }
};

/**
 * setGlobalObjectMutableProperties()
 * Create new global object using a process similar to ECMA specifications
 * (portions of SetRealmGlobalObject and SetDefaultGlobalBindings).
 * `newGlobalPropertyNames` should be either `initialGlobalPropertyNames` or
 * `sharedGlobalPropertyNames`.
 *
 * @param {object} globalObject
 * @param {object} args
 * @param {object} args.intrinsics
 * @param {object} args.newGlobalPropertyNames
 * @param {Function} args.makeCompartmentConstructor
 * @param {(object) => void} args.markVirtualizedNativeFunction
 * @param {Compartment} [args.parentCompartment]
 */$h͏_once.setGlobalObjectConstantProperties(setGlobalObjectConstantProperties);
       const setGlobalObjectMutableProperties = (
  globalObject,
  {
    intrinsics,
    newGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
    parentCompartment,
  },
) => {
  for (const [name, intrinsicName] of entries(universalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  for (const [name, intrinsicName] of entries(newGlobalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  const perCompartmentGlobals = {
    globalThis: globalObject,
  };

  perCompartmentGlobals.Compartment = freeze(
    makeCompartmentConstructor(
      makeCompartmentConstructor,
      intrinsics,
      markVirtualizedNativeFunction,
      {
        parentCompartment,
        enforceNew: true,
      },
    ),
  );

  // TODO These should still be tamed according to the permits before
  // being made available.
  for (const [name, value] of entries(perCompartmentGlobals)) {
    defineProperty(globalObject, name, {
      value,
      writable: true,
      enumerable: false,
      configurable: true,
    });
    if (typeof value === 'function') {
      markVirtualizedNativeFunction(value);
    }
  }
};

/**
 * setGlobalObjectEvaluators()
 * Set the eval and the Function evaluator on the global object with given evalTaming policy.
 *
 * @param {object} globalObject
 * @param {Function} evaluator
 * @param {(object) => void} markVirtualizedNativeFunction
 */$h͏_once.setGlobalObjectMutableProperties(setGlobalObjectMutableProperties);
       const setGlobalObjectEvaluators = (
  globalObject,
  evaluator,
  markVirtualizedNativeFunction,
) => {
  {
    const f = freeze(makeEvalFunction(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'eval', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
  {
    const f = freeze(makeFunctionConstructor(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'Function', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
};$h͏_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
})()
,
// === 29. ses ./src/strict-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,assert;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/**
 * alwaysThrowHandler
 * This is an object that throws if any property is called. It's used as
 * a proxy handler which throws on any trap called.
 * It's made from a proxy with a get trap that throws. It's safe to
 * create one and share it between all Proxy handlers.
 */
       const alwaysThrowHandler = new Proxy(
  objTarget,
  freeze({
    get(_shadow, prop) {
      Fail`Please report unexpected scope handler trap: ${q(String(prop))}`;
    },
  }),
);

/*
 * scopeProxyHandlerProperties
 * scopeTerminatorHandler manages a strictScopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals".
 */$h͏_once.alwaysThrowHandler(alwaysThrowHandler);
const scopeProxyHandlerProperties = {
  get(_shadow, _prop) {
    return undefined;
  },

  set(_shadow, prop, _value) {
    // We should only hit this if the has() hook returned true matches the v8
    // ReferenceError message "Uncaught ReferenceError: xyz is not defined"
    throw ReferenceError(`${String(prop)} is not defined`);
  },

  has(_shadow, prop) {
    // we must at least return true for all properties on the realm globalThis
    return true;
  },

  // note: this is likely a bug of safari
  // https://bugs.webkit.org/show_bug.cgi?id=195534
  getPrototypeOf(_shadow) {
    return null;
  },

  // See https://github.com/endojs/endo/issues/1510
  // TODO: report as bug to v8 or Chrome, and record issue link here.
  getOwnPropertyDescriptor(_shadow, prop) {
    // Coerce with `String` in case prop is a symbol.
    const quotedProp = q(String(prop));
    // eslint-disable-next-line @endo/no-polymorphic-call
    console.warn(
      `getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${quotedProp}`,
      TypeError().stack,
    );
    return undefined;
  },

  // See https://github.com/endojs/endo/issues/1490
  // TODO Report bug to JSC or Safari
  ownKeys(_shadow) {
    return [];
  },
};

// The scope handler's prototype is a proxy that throws if any trap other
// than get/set/has are run (like getOwnPropertyDescriptors, apply,
// getPrototypeOf).
       const strictScopeTerminatorHandler = freeze(
  create(
    alwaysThrowHandler,
    getOwnPropertyDescriptors(scopeProxyHandlerProperties),
  ),
);$h͏_once.strictScopeTerminatorHandler(strictScopeTerminatorHandler);

       const strictScopeTerminator = new Proxy(
  objTarget,
  strictScopeTerminatorHandler,
);$h͏_once.strictScopeTerminator(strictScopeTerminator);
})()
,
// === 30. ses ./src/sloppy-globals-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,create,freeze,getOwnPropertyDescriptors,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler",[$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler",[$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);











/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/*
 * createSloppyGlobalsScopeTerminator()
 * strictScopeTerminatorHandler manages a scopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals". When "sloppyGlobalsMode"
 * is true, the Proxy will perform sets on the "globalObject".
 */
       const createSloppyGlobalsScopeTerminator = globalObject => {
  const scopeProxyHandlerProperties = {
    // inherit scopeTerminator behavior
    ...strictScopeTerminatorHandler,

    // Redirect set properties to the globalObject.
    set(_shadow, prop, value) {
      return reflectSet(globalObject, prop, value);
    },

    // Always claim to have a potential property in order to be the recipient of a set
    has(_shadow, _prop) {
      return true;
    },
  };

  // The scope handler's prototype is a proxy that throws if any trap other
  // than get/set/has are run (like getOwnPropertyDescriptors, apply,
  // getPrototypeOf).
  const sloppyGlobalsScopeTerminatorHandler = freeze(
    create(
      alwaysThrowHandler,
      getOwnPropertyDescriptors(scopeProxyHandlerProperties),
    ),
  );

  const sloppyGlobalsScopeTerminator = new Proxy(
    objTarget,
    sloppyGlobalsScopeTerminatorHandler,
  );

  return sloppyGlobalsScopeTerminator;
};$h͏_once.createSloppyGlobalsScopeTerminator(createSloppyGlobalsScopeTerminator);
freeze(createSloppyGlobalsScopeTerminator);
})()
,
// === 31. ses ./src/eval-scope.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_EVAL,create,defineProperties,freeze,assert;$h͏_imports([["./commons.js", [["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);



const { Fail } = assert;

// We attempt to frustrate stack bumping attacks on the safe evaluator
// (`make-safe-evaluator.js`).
// A stack bumping attack forces an API call to throw a stack overflow
// `RangeError` at an inopportune time.
// The attacker arranges for the stack to be sufficiently deep that the API
// consumes exactly enough stack frames to throw an exception.
//
// For the safe evaluator, an exception thrown between adding and then deleting
// `eval` on `evalScope` could leak the real `eval` to an attacker's lexical
// scope.
// This would be sufficiently disastrous that we guard against it twice.
// First, we delete `eval` from `evalScope` immediately before rendering it to
// the guest program's lexical scope.
//
// If the attacker manages to arrange for `eval` to throw an exception after we
// call `allowNextEvalToBeUnsafe` but before the guest program accesses `eval`,
// it would be able to access `eval` once more in its own code.
// Although they could do no harm with a direct `eval`, they would be able to
// escape to the true global scope with an indirect `eval`.
//
//   prepareStack(depth, () => {
//     (eval)('');
//   });
//   const unsafeEval = (eval);
//   const safeEval = (eval);
//   const realGlobal = unsafeEval('globalThis');
//
// To protect against that case, we also delete `eval` from the `evalScope` in
// a `finally` block surrounding the call to the safe evaluator.
// The only way to reach this case is if `eval` remains on `evalScope` due to
// an attack, so we assume that attack would have have invalided our isolation
// and revoke all future access to the evaluator.
//
// To defeat a stack bumping attack, we must use fewer stack frames to recover
// in that `finally` block than we used in the `try` block.
// We have no reliable guarantees about how many stack frames a block of
// JavaScript will consume.
// Function inlining, tail-call optimization, variations in the size of a stack
// frame, and block scopes may affect the depth of the stack.
// The only number of acceptable stack frames to use in the finally block is
// zero.
// We only use property assignment and deletion in the safe evaluator's
// `finally` block.
// We use `delete evalScope.eval` to withhold the evaluator.
// We assign an envelope object over `evalScopeKit.revoked` to revoke the
// evaluator.
//
// This is why we supply a meaningfully named function for
// `allowNextEvalToBeUnsafe` but do not provide a corresponding
// `revokeAccessToUnsafeEval` or even simply `revoke`.
// These recovery routines are expressed inline in the safe evaluator.

       const makeEvalScopeKit = () => {
  const evalScope = create(null);
  const oneTimeEvalProperties = freeze({
    eval: {
      get() {
        delete evalScope.eval;
        return FERAL_EVAL;
      },
      enumerable: false,
      configurable: true,
    },
  });

  const evalScopeKit = {
    evalScope,
    allowNextEvalToBeUnsafe() {
      const { revoked } = evalScopeKit;
      if (revoked !== null) {
        Fail`a handler did not reset allowNextEvalToBeUnsafe ${revoked.err}`;
      }
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // We avoid defineProperty because it consumes an extra stack frame taming
      // its return value.
      defineProperties(evalScope, oneTimeEvalProperties);
    },
    /** @type {null | { err: any }} */
    revoked: null,
  };

  return evalScopeKit;
};$h͏_once.makeEvalScopeKit(makeEvalScopeKit);
})()
,
// === 32. ses ./src/get-source-url.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);

// Captures a key and value of the form #key=value or @key=value
const sourceMetaEntryRegExp =
  '\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)';
// Captures either a one-line or multi-line comment containing
// one #key=value or @key=value.
// Produces two pairs of capture groups, but the initial two may be undefined.
// On account of the mechanics of regular expressions, scanning from the end
// does not allow us to capture every pair, so getSourceURL must capture and
// trim until there are no matching comments.
const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
  `(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
);

/**
 * @param {string} src
 */
       const getSourceURL = src => {
  let sourceURL = '<unknown>';

  // Our regular expression matches the last one or two comments with key value
  // pairs at the end of the source, avoiding a scan over the entire length of
  // the string, but at the expense of being able to capture all the (key,
  // value) pair meta comments at the end of the source, which may include
  // sourceMapURL in addition to sourceURL.
  // So, we sublimate the comments out of the source until no source or no
  // comments remain.
  while (src.length > 0) {
    const match = regexpExec(sourceMetaEntriesRegExp, src);
    if (match === null) {
      break;
    }
    src = stringSlice(src, 0, src.length - match[0].length);

    // We skip $0 since it contains the entire match.
    // The match contains four capture groups,
    // two (key, value) pairs, the first of which
    // may be undefined.
    // On the off-chance someone put two sourceURL comments in their code with
    // different commenting conventions, the latter has precedence.
    if (match[3] === 'sourceURL') {
      sourceURL = match[4];
    } else if (match[1] === 'sourceURL') {
      sourceURL = match[2];
    }
  }

  return sourceURL;
};$h͏_once.getSourceURL(getSourceURL);
})()
,
// === 33. ses ./src/transforms.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,regexpReplace,sealRegexp,stringSearch,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringSearch",[$h͏_a => (stringSearch = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);













/**
 * Find the first occurence of the given pattern and return
 * the location as the approximate line number.
 *
 * @param {string} src
 * @param {RegExp} pattern
 * @returns {number}
 */
function getLineNumber(src, pattern) {
  const index = stringSearch(src, pattern);
  if (index < 0) {
    return -1;
  }

  // The importPattern incidentally captures an initial \n in
  // an attempt to reject a . prefix, so we need to offset
  // the line number in that case.
  const adjustment = src[index] === '\n' ? 1 : 0;

  return stringSplit(stringSlice(src, 0, index), '\n').length + adjustment;
}

// /////////////////////////////////////////////////////////////////////////////

const htmlCommentPattern = sealRegexp(
  new FERAL_REG_EXP(`(?:${'<'}!--|--${'>'})`, 'g'),
);

/**
 * Conservatively reject the source text if it may contain text that some
 * JavaScript parsers may treat as an html-like comment. To reject without
 * parsing, `rejectHtmlComments` will also reject some other text as well.
 *
 * https://www.ecma-international.org/ecma-262/9.0/index.html#sec-html-like-comments
 * explains that JavaScript parsers may or may not recognize html
 * comment tokens "<" immediately followed by "!--" and "--"
 * immediately followed by ">" in non-module source text, and treat
 * them as a kind of line comment. Since otherwise both of these can
 * appear in normal JavaScript source code as a sequence of operators,
 * we have the terrifying possibility of the same source code parsing
 * one way on one correct JavaScript implementation, and another way
 * on another.
 *
 * This shim takes the conservative strategy of just rejecting source
 * text that contains these strings anywhere. Note that this very
 * source file is written strangely to avoid mentioning these
 * character strings explicitly.
 *
 * We do not write the regexp in a straightforward way, so that an
 * apparennt html comment does not appear in this file. Thus, we avoid
 * rejection by the overly eager rejectDangerousSources.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectHtmlComments = src => {
  const lineNumber = getLineNumber(src, htmlCommentPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_HTML_COMMENT_REJECTED.md
  throw SyntaxError(
    `Possible HTML comment rejected at ${name}:${lineNumber}. (SES_HTML_COMMENT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectHtmlComments` to evade *that*
 * rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each alleged html comment with the space-separated
 * JavaScript operator sequence that it may mean, assuming that it appears
 * outside of a comment or literal string, in source code where the JS
 * parser makes no special case for html comments (like module source code).
 * In that case, this evasion preserves the meaning of the program, though it
 * does change the souce column numbers on each effected line.
 *
 * If the html comment appeared in a literal (a string literal, regexp literal,
 * or a template literal), then this evasion will change the meaning of the
 * program by changing the text of that literal.
 *
 * If the html comment appeared in a JavaScript comment, then this evasion does
 * not change the meaning of the program because it only changes the contents of
 * those comments.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectHtmlComments(rejectHtmlComments);
       const evadeHtmlCommentTest = src => {
  const replaceFn = match => (match[0] === '<' ? '< ! --' : '-- >');
  return regexpReplace(htmlCommentPattern, src, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeHtmlCommentTest(evadeHtmlCommentTest);
const importPattern = sealRegexp(
  new FERAL_REG_EXP('(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', 'g'),
);

/**
 * Conservatively reject the source text if it may contain a dynamic
 * import expression. To reject without parsing, `rejectImportExpressions` will
 * also reject some other text as well.
 *
 * The proposed dynamic import expression is the only syntax currently
 * proposed, that can appear in non-module JavaScript code, that
 * enables direct access to the outside world that cannot be
 * suppressed or intercepted without parsing and rewriting. Instead,
 * this shim conservatively rejects any source text that seems to
 * contain such an expression. To do this safely without parsing, we
 * must also reject some valid programs, i.e., those containing
 * apparent import expressions in literal strings or comments.
 *
 * The current conservative rule looks for the identifier "import"
 * followed by either an open paren or something that looks like the
 * beginning of a comment. We assume that we do not need to worry
 * about html comment syntax because that was already rejected by
 * rejectHtmlComments.
 *
 * this \s *must* match all kinds of syntax-defined whitespace. If e.g.
 * U+2028 (LINE SEPARATOR) or U+2029 (PARAGRAPH SEPARATOR) is treated as
 * whitespace by the parser, but not matched by /\s/, then this would admit
 * an attack like: import\u2028('power.js') . We're trying to distinguish
 * something like that from something like importnotreally('power.js') which
 * is perfectly safe.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectImportExpressions = src => {
  const lineNumber = getLineNumber(src, importPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_IMPORT_REJECTED.md
  throw SyntaxError(
    `Possible import expression rejected at ${name}:${lineNumber}. (SES_IMPORT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectImportExpressions` to evade
 * *that* rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each suspicious `import` identifier with `__import__`.
 * If the alleged import expression appears in a JavaScript comment, this
 * evasion will not change the meaning of the program. If it appears in a
 * literal (string literal, regexp literal, or a template literal), then this
 * evasion will change the contents of that literal. If it appears as code
 * where it would be parsed as an expression, then it might or might not change
 * the meaning of the program, depending on the binding, if any, of the lexical
 * variable `__import__`.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectImportExpressions(rejectImportExpressions);
       const evadeImportExpressionTest = src => {
  const replaceFn = (_, p1, p2) => `${p1}__import__${p2}`;
  return regexpReplace(importPattern, src, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeImportExpressionTest(evadeImportExpressionTest);
const someDirectEvalPattern = new FERAL_REG_EXP(
  '(^|[^.])\\beval(\\s*\\()',
  'g',
);

/**
 * Heuristically reject some text that seems to contain a direct eval
 * expression, with both false positives and false negavives. To reject without
 * parsing, `rejectSomeDirectEvalExpressions` may will also reject some other
 * text as well. It may also accept source text that contains a direct eval
 * written oddly, such as `(eval)(src)`. This false negative is not a security
 * vulnerability. Rather it is a compat hazard because it will execute as
 * an indirect eval under the SES-shim but as a direct eval on platforms that
 * support SES directly (like XS).
 *
 * The shim cannot correctly emulate a direct eval as explained at
 * https://github.com/Agoric/realms-shim/issues/12
 * If we did not reject direct eval syntax, we would
 * accidentally evaluate these with an emulation of indirect eval. To
 * prevent future compatibility problems, in shifting from use of the
 * shim to genuine platform support for the proposal, we should
 * instead statically reject code that seems to contain a direct eval
 * expression.
 *
 * As with the dynamic import expression, to avoid a full parse, we do
 * this approximately with a regexp, that will also reject strings
 * that appear safely in comments or strings. Unlike dynamic import,
 * if we miss some, this only creates future compat problems, not
 * security problems. Thus, we are only trying to catch innocent
 * occurrences, not malicious one. In particular, `(eval)(...)` is
 * direct eval syntax that would not be caught by the following regexp.
 *
 * Exported for unit tests.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectSomeDirectEvalExpressions = src => {
  const lineNumber = getLineNumber(src, someDirectEvalPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_EVAL_REJECTED.md
  throw SyntaxError(
    `Possible direct eval expression rejected at ${name}:${lineNumber}. (SES_EVAL_REJECTED)`,
  );
};

// /////////////////////////////////////////////////////////////////////////////

/**
 * A transform that bundles together the transforms that must unconditionally
 * happen last in order to ensure safe evaluation without parsing.
 *
 * @param {string} source
 * @returns {string}
 */$h͏_once.rejectSomeDirectEvalExpressions(rejectSomeDirectEvalExpressions);
       const mandatoryTransforms = source => {
  source = rejectHtmlComments(source);
  source = rejectImportExpressions(source);
  return source;
};

/**
 * Starting with `source`, apply each transform to the result of the
 * previous one, returning the result of the last transformation.
 *
 * @param {string} source
 * @param {((str: string) => string)[]} transforms
 * @returns {string}
 */$h͏_once.mandatoryTransforms(mandatoryTransforms);
       const applyTransforms = (source, transforms) => {
  for (let i = 0, l = transforms.length; i < l; i += 1) {
    const transform = transforms[i];
    source = transform(source);
  }
  return source;
};

// export all as a frozen object
$h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
  rejectHtmlComments: freeze(rejectHtmlComments),
  evadeHtmlCommentTest: freeze(evadeHtmlCommentTest),
  rejectImportExpressions: freeze(rejectImportExpressions),
  evadeImportExpressionTest: freeze(evadeImportExpressionTest),
  rejectSomeDirectEvalExpressions: freeze(rejectSomeDirectEvalExpressions),
  mandatoryTransforms: freeze(mandatoryTransforms),
  applyTransforms: freeze(applyTransforms),
});$h͏_once.transforms(transforms);
})()
,
// === 34. ses ./src/scope-constants.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpExec,Set,setHas;$h͏_imports([["./commons.js", [["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]]]);










/**
 * reservedNames
 * In JavaScript you cannot use reserved words as variable names (except for
 * "eval", which is specially reserved to prevent shadowing).
 * https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#sec-identifier-names
 */
const reservedNames = new Set([
  // 11.6.2.1 Keywords
  'await',
  'break',
  'case',
  'catch',
  'class',
  'const',
  'continue',
  'debugger',
  'default',
  'delete',
  'do',
  'else',
  'export',
  'extends',
  'finally',
  'for',
  'function',
  'if',
  'import',
  'in',
  'instanceof',
  'new',
  'return',
  'super',
  'switch',
  'this',
  'throw',
  'try',
  'typeof',
  'var',
  'void',
  'while',
  'with',
  'yield',

  // Also reserved when parsing strict mode code
  'let',
  'static',

  // 11.6.2.2 Future Reserved Words
  'enum',

  // Also reserved when parsing strict mode code
  'implements',
  'package',
  'protected',
  'interface',
  'private',
  'public',

  // Reserved but not mentioned in specs
  'await',

  'null',
  'true',
  'false',

  'this',
  'arguments',

  // Reserved by us
  'eval',
]);

/**
 * identifierPattern
 * Simplified validation of identifier names: may only contain alphanumeric
 * characters (or "$" or "_"), and may not start with a digit. This is safe
 * and does not reduces the compatibility of the shim. The motivation for
 * this limitation was to decrease the complexity of the implementation,
 * and to maintain a resonable level of performance.
 * Note: \w is equivalent [a-zA-Z_0-9]
 * See 11.6.1 Identifier Names
 */
const identifierPattern = /^[a-zA-Z_$][\w$]*$/;

/**
 * isValidIdentifierName()
 * Is a value allowed as an arbitrary identifier name?
 *
 * @param {string} name
 */
       const isValidIdentifierName = name =>
  !setHas(reservedNames, name) && !!regexpExec(identifierPattern, name);

/*
 * isImmutableDataProperty
 */$h͏_once.isValidIdentifierName(isValidIdentifierName);

function isImmutableDataProperty(obj, name) {
  const desc = getOwnPropertyDescriptor(obj, name);
  return (
    desc &&
    //
    // The getters will not have .writable, don't let the falsyness of
    // 'undefined' trick us: test with === false, not ! . However descriptors
    // inherit from the (potentially poisoned) global object, so we might see
    // extra properties which weren't really there. Accessor properties have
    // 'get/set/enumerable/configurable', while data properties have
    // 'value/writable/enumerable/configurable'.
    desc.configurable === false &&
    desc.writable === false &&
    //
    // Checks for data properties because they're the only ones we can
    // optimize (accessors are most likely non-constant). Descriptors can't
    // can't have accessors and value properties at the same time, therefore
    // this check is sufficient. Using explicit own property deal with the
    // case where Object.prototype has been poisoned.
    hasOwn(desc, 'value')
  );
}

/**
 * getScopeConstants()
 * What variable names might be brought into scope? These include all
 * property names which can be variable names, including the names
 * of inherited properties. It excludes symbols and names which are
 * keywords. We drop symbols safely. Currently, this shim refuses
 * service if any of the names are keywords or keyword-like. This is
 * safe and only affects performance optimization.
 *
 * @param {object} globalObject
 * @param {object} moduleLexicals
 */
       const getScopeConstants = (globalObject, moduleLexicals = {}) => {
  // getOwnPropertyNames() does ignore Symbols so we don't need to
  // filter them out.
  const globalObjectNames = getOwnPropertyNames(globalObject);
  const moduleLexicalNames = getOwnPropertyNames(moduleLexicals);

  // Collect all valid & immutable identifiers from the endowments.
  const moduleLexicalConstants = arrayFilter(
    moduleLexicalNames,
    name =>
      isValidIdentifierName(name) &&
      isImmutableDataProperty(moduleLexicals, name),
  );

  // Collect all valid & immutable identifiers from the global that
  // are also not present in the endowments (immutable or not).
  const globalObjectConstants = arrayFilter(
    globalObjectNames,
    name =>
      // Can't define a constant: it would prevent a
      // lookup on the endowments.
      !arrayIncludes(moduleLexicalNames, name) &&
      isValidIdentifierName(name) &&
      isImmutableDataProperty(globalObject, name),
  );

  return {
    globalObjectConstants,
    moduleLexicalConstants,
  };
};$h͏_once.getScopeConstants(getScopeConstants);
})()
,
// === 35. ses ./src/make-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]]]],["./scope-constants.js", [["getScopeConstants",[$h͏_a => (getScopeConstants = $h͏_a)]]]]]);




/**
 * buildOptimizer()
 * Given an array of identifiers, the optimizer returns a `const` declaration
 * destructuring `this.${name}`.
 *
 * @param {Array<string>} constants
 * @param {string} name
 */
function buildOptimizer(constants, name) {
  // No need to build an optimizer when there are no constants.
  if (constants.length === 0) return '';
  // Use 'this' to avoid going through the scope proxy, which is unnecessary
  // since the optimizer only needs references to the safe global.
  // Destructure the constants from the target scope object.
  return `const {${arrayJoin(constants, ',')}} = this.${name};`;
}

/**
 * makeEvaluate()
 * Create an 'evaluate' function with the correct optimizer inserted.
 *
 * @param {object} context
 * @param {object} context.evalScope
 * @param {object} context.moduleLexicals
 * @param {object} context.globalObject
 * @param {object} context.scopeTerminator
 */
       const makeEvaluate = context => {
  const { globalObjectConstants, moduleLexicalConstants } = getScopeConstants(
    context.globalObject,
    context.moduleLexicals,
  );
  const globalObjectOptimizer = buildOptimizer(
    globalObjectConstants,
    'globalObject',
  );
  const moduleLexicalOptimizer = buildOptimizer(
    moduleLexicalConstants,
    'moduleLexicals',
  );

  // Create a function in sloppy mode, so that we can use 'with'. It returns
  // a function in strict mode that evaluates the provided code using direct
  // eval, and thus in strict mode in the same scope. We must be very careful
  // to not create new names in this scope

  // 1: we use multiple nested 'with' to catch all free variable names. The
  // `this` value of the outer sloppy function holds the different scope
  // layers, from inner to outer:
  //    a) `evalScope` which must release the `FERAL_EVAL` as 'eval' once for
  //       every invocation of the inner `evaluate` function in order to
  //       trigger direct eval. The direct eval semantics is what allows the
  //       evaluated code to lookup free variable names on the other scope
  //       objects and not in global scope.
  //    b) `moduleLexicals` which provide a way to introduce free variables
  //       that are not available on the globalObject.
  //    c) `globalObject` is the global scope object of the evaluator, aka the
  //       Compartment's `globalThis`.
  //    d) `scopeTerminator` is a proxy object which prevents free variable
  //       lookups to escape to the start compartment's global object.
  // 2: `optimizer`s catch constant variable names for speed.
  // 3: The inner strict `evaluate` function should be passed two parameters:
  //    a) its arguments[0] is the source to be directly evaluated.
  //    b) its 'this' is the this binding seen by the code being
  //       directly evaluated (the globalObject).

  // Notes:
  // - The `optimizer` strings only lookup values on the `globalObject` and
  //   `moduleLexicals` objects by construct. Keywords like 'function' are
  //   reserved and cannot be used as a variable, so they are excluded from the
  //   optimizer. Furthermore to prevent shadowing 'eval', while a valid
  //   identifier, that name is also explicitly excluded.
  // - when 'eval' is looked up in the `evalScope`, the powerful unsafe eval
  //   intrinsic is returned after automatically removing it from the
  //   `evalScope`. Any further reference to 'eval' in the evaluate string will
  //   get the tamed evaluator from the `globalObject`, if any.

  // TODO https://github.com/endojs/endo/issues/816
  // The optimizer currently runs under sloppy mode, and although we doubt that
  // there is any vulnerability introduced just by running the optimizer
  // sloppy, we are much more confident in the semantics of strict mode.
  // The `evaluate` function can be and is reused across multiple evaluations.
  // Since the optimizer should not be re-evaluated every time, it cannot be
  // inside the `evaluate` closure. While we could potentially nest an
  // intermediate layer of `() => {'use strict'; ${optimizers}; ...`, it
  // doesn't seem worth the overhead and complexity.
  const evaluateFactory = FERAL_FUNCTION(`
    with (this.scopeTerminator) {
      with (this.globalObject) {
        with (this.moduleLexicals) {
          with (this.evalScope) {
            ${globalObjectOptimizer}
            ${moduleLexicalOptimizer}
            return function() {
              'use strict';
              return eval(arguments[0]);
            };
          }
        }
      }
    }
  `);

  return apply(evaluateFactory, context, []);
};$h͏_once.makeEvaluate(makeEvaluate);
})()
,
// === 36. ses ./src/make-safe-evaluator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator",[$h͏_a => (strictScopeTerminator = $h͏_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator",[$h͏_a => (createSloppyGlobalsScopeTerminator = $h͏_a)]]]],["./eval-scope.js", [["makeEvalScopeKit",[$h͏_a => (makeEvalScopeKit = $h͏_a)]]]],["./transforms.js", [["applyTransforms",[$h͏_a => (applyTransforms = $h͏_a)]],["mandatoryTransforms",[$h͏_a => (mandatoryTransforms = $h͏_a)]]]],["./make-evaluate.js", [["makeEvaluate",[$h͏_a => (makeEvaluate = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail } = assert;

/**
 * makeSafeEvaluator()
 * Build the low-level operation used by all evaluators:
 * eval(), Function(), Compartment.prototype.evaluate().
 *
 * @param {object} options
 * @param {object} options.globalObject
 * @param {object} [options.moduleLexicals]
 * @param {Array<import('./lockdown.js').Transform>} [options.globalTransforms]
 * @param {boolean} [options.sloppyGlobalsMode]
 */
       const makeSafeEvaluator = ({
  globalObject,
  moduleLexicals = {},
  globalTransforms = [],
  sloppyGlobalsMode = false,
}) => {
  const scopeTerminator = sloppyGlobalsMode
    ? createSloppyGlobalsScopeTerminator(globalObject)
    : strictScopeTerminator;
  const evalScopeKit = makeEvalScopeKit();
  const { evalScope } = evalScopeKit;

  const evaluateContext = freeze({
    evalScope,
    moduleLexicals,
    globalObject,
    scopeTerminator,
  });

  // Defer creating the actual evaluator to first use.
  // Creating a compartment should be possible in no-eval environments
  // It also allows more global constants to be captured by the optimizer
  let evaluate;
  const provideEvaluate = () => {
    if (!evaluate) {
      evaluate = makeEvaluate(evaluateContext);
    }
  };

  /**
   * @param {string} source
   * @param {object} [options]
   * @param {Array<import('./lockdown.js').Transform>} [options.localTransforms]
   */
  const safeEvaluate = (source, options) => {
    const { localTransforms = [] } = options || {};
    provideEvaluate();

    // Execute the mandatory transforms last to ensure that any rewritten code
    // meets those mandatory requirements.
    source = applyTransforms(
      source,
      arrayFlatMap(
        [localTransforms, globalTransforms, [mandatoryTransforms]],
        identity,
      ),
    );

    let err;
    try {
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // eslint-disable-next-line @endo/no-polymorphic-call
      evalScopeKit.allowNextEvalToBeUnsafe();

      // Ensure that "this" resolves to the safe global.
      return apply(evaluate, globalObject, [source]);
    } catch (e) {
      // stash the child-code error in hopes of debugging the internal failure
      err = e;
      throw e;
    } finally {
      const unsafeEvalWasStillExposed = 'eval' in evalScope;
      delete evalScope.eval;
      if (unsafeEvalWasStillExposed) {
        // Barring a defect in the SES shim, the evalScope should allow the
        // powerful, unsafe  `eval` to be used by `evaluate` exactly once, as the
        // very first name that it attempts to access from the lexical scope.
        // A defect in the SES shim could throw an exception after we set
        // `evalScope.eval` and before `evaluate` calls `eval` internally.
        // If we get here, SES is very broken.
        // This condition is one where this vat is now hopelessly confused, and
        // the vat as a whole should be aborted.
        // No further code should run.
        // All immediately reachable state should be abandoned.
        // However, that is not yet possible, so we at least prevent further
        // variable resolution via the scopeHandler, and throw an error with
        // diagnostic info including the thrown error if any from evaluating the
        // source code.
        evalScopeKit.revoked = { err };
        // TODO A GOOD PLACE TO PANIC(), i.e., kill the vat incarnation.
        // See https://github.com/Agoric/SES-shim/issues/490
        Fail`handler did not reset allowNextEvalToBeUnsafe ${err}`;
      }
    }
  };

  return { safeEvaluate };
};$h͏_once.makeSafeEvaluator(makeSafeEvaluator);
})()
,
// === 37. ses ./src/tame-function-tostring.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h͏_imports([["./commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["functionToString",[$h͏_a => (functionToString = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);










const nativeSuffix = ') { [native code] }';

// Note: Top level mutable state. Does not make anything worse, since the
// patching of `Function.prototype.toString` is also globally stateful. We
// use this top level state so that multiple calls to `tameFunctionToString` are
// idempotent, rather than creating redundant indirections.
let markVirtualizedNativeFunction;

/**
 * Replace `Function.prototype.toString` with one that recognizes
 * shimmed functions as honorary native functions.
 */
       const tameFunctionToString = () => {
  if (markVirtualizedNativeFunction === undefined) {
    const virtualizedNativeFunctions = new WeakSet();

    const tamingMethods = {
      toString() {
        const str = functionToString(this);
        if (
          stringEndsWith(str, nativeSuffix) ||
          !weaksetHas(virtualizedNativeFunctions, this)
        ) {
          return str;
        }
        return `function ${this.name}() { [native code] }`;
      },
    };

    defineProperty(functionPrototype, 'toString', {
      value: tamingMethods.toString,
    });

    markVirtualizedNativeFunction = freeze(func =>
      weaksetAdd(virtualizedNativeFunctions, func),
    );
  }
  return markVirtualizedNativeFunction;
};$h͏_once.tameFunctionToString(tameFunctionToString);
})()
,
// === 38. ses ./src/tame-domains.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);Object.defineProperty(tameDomains,'name',{value:"tameDomains"});$h͏_once.tameDomains(tameDomains);








       function tameDomains(domainTaming = 'safe') {
  if (domainTaming === 'unsafe') {
    return;
  }

  // Protect against the hazard presented by Node.js domains.
  const globalProcess = globalThis.process || undefined;
  if (typeof globalProcess === 'object') {
    // Check whether domains were initialized.
    const domainDescriptor = getOwnPropertyDescriptor(globalProcess, 'domain');
    if (domainDescriptor !== undefined && domainDescriptor.get !== undefined) {
      // The domain descriptor on Node.js initially has value: null, which
      // becomes a get, set pair after domains initialize.
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_DOMAINS.md
      throw TypeError(
        `SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)`,
      );
    }
    // Prevent domains from initializing.
    // This is clunky because the exception thrown from the domains package does
    // not direct the user's gaze toward a knowledge base about the problem.
    // The domain module merely throws an exception when it attempts to define
    // the domain property of the process global during its initialization.
    // We have no better recourse because Node.js uses defineProperty too.
    defineProperty(globalProcess, 'domain', {
      value: null,
      configurable: false,
      writable: false,
      enumerable: false,
    });
  }
}
})()
,
// === 39. ses ./src/tame-module-source.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);







       const tameModuleSource = () => {
  const newIntrinsics = {};

  const ModuleSource = globalThis.ModuleSource;
  if (ModuleSource !== undefined) {
    newIntrinsics.ModuleSource = ModuleSource;

    // We introduce ModuleSource.[[Proto]] === AbstractModuleSource
    // and ModuleSource.prototype.[[Proto]] === AbstractModuleSource.prototype
    // if that layer is absent because the permitting system can more
    // gracefully tolerate the absence of an expected prototype than the
    // presence of an unexpected prototype,.
    function AbstractModuleSource() {
      // no-op safe to super()
    }

    const ModuleSourceProto = getPrototypeOf(ModuleSource);
    if (ModuleSourceProto === functionPrototype) {
      setPrototypeOf(ModuleSource, AbstractModuleSource);
      newIntrinsics['%AbstractModuleSource%'] = AbstractModuleSource;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        AbstractModuleSource.prototype;
    } else {
      newIntrinsics['%AbstractModuleSource%'] = ModuleSourceProto;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        ModuleSourceProto.prototype;
    }

    const ModuleSourcePrototype = ModuleSource.prototype;
    if (ModuleSourcePrototype !== undefined) {
      newIntrinsics['%ModuleSourcePrototype%'] = ModuleSourcePrototype;

      // ModuleSource.prototype.__proto__ should be the
      // AbstractModuleSource.prototype.
      const ModuleSourcePrototypeProto = getPrototypeOf(ModuleSourcePrototype);
      if (ModuleSourcePrototypeProto === objectPrototype) {
        setPrototypeOf(ModuleSource.prototype, AbstractModuleSource.prototype);
      }
    }
  }

  return newIntrinsics;
};$h͏_once.tameModuleSource(tameModuleSource);
})()
,
// === 40. ses ./src/error/console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
























/**
 * @import {FilterConsole, LogSeverity, VirtualConsole} from './types.js'
 * @import {ErrorInfo, ErrorInfoKind, LogRecord, NoteCallback, LoggedErrorHandler, MakeCausalConsole, MakeLoggingConsoleKit} from "./internal-types.js";
 */

/**
 * Explicitly set a function's name, supporting use of arrow functions for which
 * source text doesn't include a name and no initial name is set by
 * NamedEvaluation
 * https://tc39.es/ecma262/multipage/syntax-directed-operations.html#sec-runtime-semantics-namedevaluation
 * Instead, we hope that tooling uses only the explicit `name` property.
 *
 * @template {Function} F
 * @param {string} name
 * @param {F} fn
 * @returns {F}
 */
const defineName = (name, fn) => defineProperty(fn, 'name', { value: name });

// For our internal debugging purposes, uncomment
// const internalDebugConsole = console;

// The permitted console methods, from:
// Whatwg "living standard" https://console.spec.whatwg.org/
// Node https://nodejs.org/dist/latest-v14.x/docs/api/console.html
// MDN https://developer.mozilla.org/en-US/docs/Web/API/Console_API
// TypeScript https://openstapps.gitlab.io/projectmanagement/interfaces/_node_modules__types_node_globals_d_.console.html
// Chrome https://developers.google.com/web/tools/chrome-devtools/console/api

// All console level methods have parameters (fmt?, ...args)
// where the argument sequence `fmt?, ...args` formats args according to
// fmt if fmt is a format string. Otherwise, it just renders them all as values
// separated by spaces.
// https://console.spec.whatwg.org/#formatter
// https://nodejs.org/docs/latest/api/util.html#util_util_format_format_args

// For the causal console, all occurrences of `fmt, ...args` or `...args` by
// itself must check for the presence of an error to ask the
// `loggedErrorHandler` to handle.
// In theory we should do a deep inspection to detect for example an array
// containing an error. We currently do not detect these and may never.

/** @typedef {keyof VirtualConsole | 'profile' | 'profileEnd'} ConsoleProps */

/**
 * Those console methods whose actual parameters are `(fmt?, ...args)`
 * even if their TypeScript types claim otherwise.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */
       const consoleLevelMethods = freeze([
  ['debug', 'debug'], // (fmt?, ...args) verbose level on Chrome
  ['log', 'log'], // (fmt?, ...args) info level on Chrome
  ['info', 'info'], // (fmt?, ...args)
  ['warn', 'warn'], // (fmt?, ...args)
  ['error', 'error'], // (fmt?, ...args)

  ['trace', 'log'], // (fmt?, ...args)
  ['dirxml', 'log'], // (fmt?, ...args)          but TS typed (...data)
  ['group', 'log'], // (fmt?, ...args)           but TS typed (...label)
  ['groupCollapsed', 'log']  // (fmt?, ...args)  but TS typed (...label)
]);

/**
 * Those console methods other than those already enumerated by
 * `consoleLevelMethods`.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */$h͏_once.consoleLevelMethods(consoleLevelMethods);
       const consoleOtherMethods = freeze([
  ['assert', 'error'], // (value, fmt?, ...args)
  ['timeLog', 'log'], // (label?, ...args) no fmt string

  // Insensitive to whether any argument is an error. All arguments can pass
  // thru to baseConsole as is.
  ['clear', undefined], // ()
  ['count', 'info'], // (label?)
  ['countReset', undefined], // (label?)
  ['dir', 'log'], // (item, options?)
  ['groupEnd', 'log'], // ()
  // In theory tabular data may be or contain an error. However, we currently
  // do not detect these and may never.
  ['table', 'log'], // (tabularData, properties?)
  ['time', 'info'], // (label?)
  ['timeEnd', 'info'], // (label?)

  // Node Inspector only, MDN, and TypeScript, but not whatwg
  ['profile', undefined], // (label?)
  ['profileEnd', undefined], // (label?)
  ['timeStamp', undefined]  // (label?)
]);

/** @type {readonly [ConsoleProps, LogSeverity | undefined][]} */$h͏_once.consoleOtherMethods(consoleOtherMethods);
const consoleMethodPermits = freeze([
  ...consoleLevelMethods,
  ...consoleOtherMethods,
]);

/**
 * consoleOmittedProperties is currently unused. I record and maintain it here
 * with the intention that it be treated like the `false` entries in the main
 * SES permits: that seeing these on the original console is expected, but
 * seeing anything else that's outside the permits is surprising and should
 * provide a diagnostic.
 *
 * const consoleOmittedProperties = freeze([
 *   'memory', // Chrome
 *   'exception', // FF, MDN
 *   '_ignoreErrors', // Node
 *   '_stderr', // Node
 *   '_stderrErrorHandler', // Node
 *   '_stdout', // Node
 *   '_stdoutErrorHandler', // Node
 *   '_times', // Node
 *   'context', // Chrome, Node
 *   'record', // Safari
 *   'recordEnd', // Safari
 *
 *   'screenshot', // Safari
 *   // Symbols
 *   '@@toStringTag', // Chrome: "Object", Safari: "Console"
 *   // A variety of other symbols also seen on Node
 * ]);
 */

// //////////////////////////// Logging Console ////////////////////////////////

/** @type {MakeLoggingConsoleKit} */
       const makeLoggingConsoleKit = (
  loggedErrorHandler,
  { shouldResetForDebugging = false } = {},
) => {
  if (shouldResetForDebugging) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    loggedErrorHandler.resetErrorTagNum();
  }

  // Not frozen!
  let logArray = [];

  const loggingConsole = fromEntries(
    arrayMap(consoleMethodPermits, ([name, _]) => {
      /**
       * @param {...any} args
       */
      const method = defineName(name, (...args) => {
        arrayPush(logArray, [name, ...args]);
      });
      return [name, freeze(method)];
    }),
  );
  freeze(loggingConsole);

  const takeLog = () => {
    const result = freeze(logArray);
    logArray = [];
    return result;
  };
  freeze(takeLog);

  const typedLoggingConsole = /** @type {VirtualConsole} */ (loggingConsole);

  return freeze({ loggingConsole: typedLoggingConsole, takeLog });
};$h͏_once.makeLoggingConsoleKit(makeLoggingConsoleKit);
freeze(makeLoggingConsoleKit);

/**
 * Makes the same calls on a `baseConsole` that were made on a
 * `loggingConsole` to produce this `log`. In this way, a logging console
 * can be used as a buffer to delay the application of these calls to a
 * `baseConsole`.
 *
 * @param {LogRecord[]} log
 * @param {VirtualConsole} baseConsole
 */
       const pumpLogToConsole = (log, baseConsole) => {
  for (const [name, ...args] of log) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[name](...args);
  }
};
// //////////////////////////// Causal Console /////////////////////////////////

/** @type {ErrorInfo} */$h͏_once.pumpLogToConsole(pumpLogToConsole);
const ErrorInfo = {
  NOTE: 'ERROR_NOTE:',
  MESSAGE: 'ERROR_MESSAGE:',
  CAUSE: 'cause:',
  ERRORS: 'errors:',
};
freeze(ErrorInfo);

/** @type {MakeCausalConsole} */
       const makeCausalConsole = (baseConsole, loggedErrorHandler) => {
  if (!baseConsole) {
    return undefined;
  }

  const { getStackString, tagError, takeMessageLogArgs, takeNoteLogArgsArray } =
    loggedErrorHandler;

  /**
   * @param {ReadonlyArray<any>} logArgs
   * @param {Array<any>} subErrorsSink
   * @returns {any}
   */
  const extractErrorArgs = (logArgs, subErrorsSink) => {
    const argTags = arrayMap(logArgs, arg => {
      if (isError(arg)) {
        arrayPush(subErrorsSink, arg);
        return `(${tagError(arg)})`;
      }
      return arg;
    });
    return argTags;
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   * @param {ErrorInfoKind} kind
   * @param {readonly any[]} logArgs
   * @param {Array<Error>} subErrorsSink
   */
  const logErrorInfo = (severity, error, kind, logArgs, subErrorsSink) => {
    const errorTag = tagError(error);
    const errorName =
      kind === ErrorInfo.MESSAGE ? `${errorTag}:` : `${errorTag} ${kind}`;
    const argTags = extractErrorArgs(logArgs, subErrorsSink);
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](errorName, ...argTags);
  };

  /**
   * Logs the `subErrors` within a group name mentioning `optTag`.
   *
   * @param {LogSeverity} severity
   * @param {Error[]} subErrors
   * @param {string | undefined} optTag
   * @returns {void}
   */
  const logSubErrors = (severity, subErrors, optTag = undefined) => {
    if (subErrors.length === 0) {
      return;
    }
    if (subErrors.length === 1 && optTag === undefined) {
      // eslint-disable-next-line no-use-before-define
      logError(severity, subErrors[0]);
      return;
    }
    let label;
    if (subErrors.length === 1) {
      label = `Nested error`;
    } else {
      label = `Nested ${subErrors.length} errors`;
    }
    if (optTag !== undefined) {
      label = `${label} under ${optTag}`;
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole.group(label);
    try {
      for (const subError of subErrors) {
        // eslint-disable-next-line no-use-before-define
        logError(severity, subError);
      }
    } finally {
      if (baseConsole.groupEnd) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole.groupEnd();
      }
    }
  };

  const errorsLogged = new WeakSet();

  /** @type {(severity: LogSeverity) => NoteCallback} */
  const makeNoteCallback = severity => (error, noteLogArgs) => {
    const subErrors = [];
    // Annotation arrived after the error has already been logged,
    // so just log the annotation immediately, rather than remembering it.
    logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    logSubErrors(severity, subErrors, tagError(error));
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   */
  const logError = (severity, error) => {
    if (weaksetHas(errorsLogged, error)) {
      return;
    }
    const errorTag = tagError(error);
    weaksetAdd(errorsLogged, error);
    const subErrors = [];
    const messageLogArgs = takeMessageLogArgs(error);
    const noteLogArgsArray = takeNoteLogArgsArray(
      error,
      makeNoteCallback(severity),
    );
    // Show the error's most informative error message
    if (messageLogArgs === undefined) {
      // If there is no message log args, then just show the message that
      // the error itself carries.
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[severity](`${errorTag}:`, error.message);
    } else {
      // If there is one, we take it to be strictly more informative than the
      // message string carried by the error, so show it *instead*.
      logErrorInfo(
        severity,
        error,
        ErrorInfo.MESSAGE,
        messageLogArgs,
        subErrors,
      );
    }
    // After the message but before any other annotations, show the stack.
    let stackString = getStackString(error);
    if (
      typeof stackString === 'string' &&
      stackString.length >= 1 &&
      !stringEndsWith(stackString, '\n')
    ) {
      stackString += '\n';
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](stackString);
    // Show the other annotations on error
    if (error.cause) {
      logErrorInfo(severity, error, ErrorInfo.CAUSE, [error.cause], subErrors);
    }
    // @ts-expect-error AggregateError has an `errors` property.
    if (error.errors) {
      // @ts-expect-error AggregateError has an `errors` property.
      logErrorInfo(severity, error, ErrorInfo.ERRORS, error.errors, subErrors);
    }
    for (const noteLogArgs of noteLogArgsArray) {
      logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    }
    // explain all the errors seen in the messages already emitted.
    logSubErrors(severity, subErrors, errorTag);
  };

  const levelMethods = arrayMap(consoleLevelMethods, ([level, _]) => {
    /**
     * @param {...any} logArgs
     */
    const levelMethod = defineName(level, (...logArgs) => {
      const subErrors = [];
      const argTags = extractErrorArgs(logArgs, subErrors);
      if (baseConsole[level]) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[level](...argTags);
      }
      // @ts-expect-error ConsoleProp vs LogSeverity mismatch
      logSubErrors(level, subErrors);
    });
    return [level, freeze(levelMethod)];
  });
  const otherMethodNames = arrayFilter(
    consoleOtherMethods,
    ([name, _]) => name in baseConsole,
  );
  const otherMethods = arrayMap(otherMethodNames, ([name, _]) => {
    /**
     * @param {...any} args
     */
    const otherMethod = defineName(name, (...args) => {
      // @ts-ignore
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[name](...args);
      return undefined;
    });
    return [name, freeze(otherMethod)];
  });

  const causalConsole = fromEntries([...levelMethods, ...otherMethods]);
  return /** @type {VirtualConsole} */ (freeze(causalConsole));
};$h͏_once.makeCausalConsole(makeCausalConsole);
freeze(makeCausalConsole);

/**
 * @typedef {(...args: unknown[]) => void} Logger
 */

/**
 * This is a rather horrible kludge to indent the output to a logger in
 * the case where some arguments are strings containing newlines. Part of
 * the problem is that console-like loggers, including the one in ava,
 * join the string arguments of the log message with a space.
 * Because of this, there's an extra space at the beginning of each of
 * the split lines. So this kludge compensated by putting an extra empty
 * string at the beginning, so that the logger will add the same extra
 * joiner.
 * TODO: Fix this horrible kludge, and indent in a sane manner.
 *
 * @param {string} str
 * @param {string} sep
 * @param {string[]} indents
 * @returns {string[]}
 */
const indentAfterAllSeps = (str, sep, indents) => {
  const [firstLine, ...restLines] = stringSplit(str, sep);
  const indentedRest = arrayFlatMap(restLines, line => [sep, ...indents, line]);
  return ['', firstLine, ...indentedRest];
};

/**
 * @param {LoggedErrorHandler} loggedErrorHandler
 */
       const defineCausalConsoleFromLogger = loggedErrorHandler => {
  /**
   * Implement the `VirtualConsole` API badly by turning all calls into
   * calls on `tlogger`. We need to do this to have `console` logging
   * turn into calls to Ava's `t.log`, so these console log messages
   * are output in the right place.
   *
   * @param {Logger} tlogger
   * @returns {VirtualConsole}
   */
  const makeCausalConsoleFromLogger = tlogger => {
    const indents = [];
    const logWithIndent = (...args) => {
      if (indents.length > 0) {
        args = arrayFlatMap(args, arg =>
          typeof arg === 'string' && stringIncludes(arg, '\n')
            ? indentAfterAllSeps(arg, '\n', indents)
            : [arg],
        );
        args = [...indents, ...args];
      }
      return tlogger(...args);
    };

    const baseConsole = fromEntries([
      ...arrayMap(consoleLevelMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(...args)),
      ]),
      ...arrayMap(consoleOtherMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(name, ...args)),
      ]),
    ]);
    // https://console.spec.whatwg.org/#grouping
    for (const name of ['group', 'groupCollapsed']) {
      if (baseConsole[name]) {
        baseConsole[name] = defineName(name, (...args) => {
          if (args.length >= 1) {
            // Prefix the logged data with "group" or "groupCollapsed".
            logWithIndent(...args);
          }
          // A single space is enough;
          // the host console will separate them with additional spaces.
          arrayPush(indents, ' ');
        });
      } else {
        baseConsole[name] = defineName(name, () => {});
      }
    }
    baseConsole.groupEnd = defineName(
      'groupEnd',
      baseConsole.groupEnd
        ? (...args) => {
            arrayPop(indents);
          }
        : () => {},
    );
    harden(baseConsole);
    const causalConsole = makeCausalConsole(
      /** @type {VirtualConsole} */ (baseConsole),
      loggedErrorHandler,
    );
    return /** @type {VirtualConsole} */ (causalConsole);
  };
  return freeze(makeCausalConsoleFromLogger);
};$h͏_once.defineCausalConsoleFromLogger(defineCausalConsoleFromLogger);
freeze(defineCausalConsoleFromLogger);

// ///////////////////////// Filter Console ////////////////////////////////////

/** @type {FilterConsole} */
       const filterConsole = (baseConsole, filter, _topic = undefined) => {
  // TODO do something with optional topic string
  const methodPermits = arrayFilter(
    consoleMethodPermits,
    ([name, _]) => name in baseConsole,
  );
  const methods = arrayMap(methodPermits, ([name, severity]) => {
    /**
     * @param {...any} args
     */
    const method = defineName(name, (...args) => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      if (severity === undefined || filter.canLog(severity)) {
        // @ts-ignore
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[name](...args);
      }
    });
    return [name, freeze(method)];
  });
  const filteringConsole = fromEntries(methods);
  return /** @type {VirtualConsole} */ (freeze(filteringConsole));
};$h͏_once.filterConsole(filterConsole);
freeze(filterConsole);
})()
,
// === 41. ses ./src/error/unhandled-rejection.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h͏_imports([["../commons.js", [["FinalizationRegistry",[$h͏_a => (FinalizationRegistry = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapDelete",[$h͏_a => (mapDelete = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["finalizationRegistryRegister",[$h͏_a => (finalizationRegistryRegister = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["mapEntries",[$h͏_a => (mapEntries = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]]]]]);














/**
 * Create rejection-tracking machinery compatible with Node.js and browsers.
 *
 * Note that modern browsers *prevent* access to the 'unhandledrejection' and
 * 'rejectionhandled' events needed:
 * - in cross-origin mode, like when served from file://
 * - in the browser console (interactively typed-in code)
 * - in the debugger
 *
 * Then, they just look like: `Uncaught (in promise) Error: ...` and don't
 * implement the machinery.
 *
 * The solution is to serve your web page from an http:// or https:// web server
 * and execute actual code.
 *
 * @param {(reason: unknown) => void} reportReason report the reason for an
 * unhandled rejection.
 */
       const makeRejectionHandlers = reportReason => {
  if (FinalizationRegistry === undefined) {
    return undefined;
  }

  /** @typedef {number} ReasonId */
  let lastReasonId = 0;

  /** @type {Map<ReasonId, unknown>} */
  const idToReason = new Map();

  /** @type {(() => void) | undefined} */
  let cancelChecking;

  const removeReasonId = reasonId => {
    mapDelete(idToReason, reasonId);
    if (cancelChecking && idToReason.size === 0) {
      // No more unhandled rejections to check, just cancel the check.
      cancelChecking();
      cancelChecking = undefined;
    }
  };

  /** @type {WeakMap<Promise, ReasonId>} */
  const promiseToReasonId = new WeakMap();

  /**
   * Clean up and report the reason for a GCed unhandled rejection.
   *
   * @param {ReasonId} heldReasonId
   */
  const finalizeDroppedPromise = heldReasonId => {
    if (mapHas(idToReason, heldReasonId)) {
      const reason = mapGet(idToReason, heldReasonId);
      removeReasonId(heldReasonId);
      reportReason(reason);
    }
  };

  /** @type {FinalizationRegistry<ReasonId>} */
  const promiseToReason = new FinalizationRegistry(finalizeDroppedPromise);

  /**
   * Track a rejected promise and its corresponding reason if there is no
   * rejection handler synchronously attached.
   *
   * @param {unknown} reason
   * @param {Promise} pr
   */
  const unhandledRejectionHandler = (reason, pr) => {
    lastReasonId += 1;
    const reasonId = lastReasonId;

    // Update bookkeeping.
    mapSet(idToReason, reasonId, reason);
    weakmapSet(promiseToReasonId, pr, reasonId);
    finalizationRegistryRegister(promiseToReason, pr, reasonId, pr);
  };

  /**
   * Deal with the addition of a handler to a previously rejected promise.
   *
   * Just remove it from our list.  Let the FinalizationRegistry or
   * processTermination report any GCed unhandled rejected promises.
   *
   * @param {Promise} pr
   */
  const rejectionHandledHandler = pr => {
    const reasonId = weakmapGet(promiseToReasonId, pr);
    removeReasonId(reasonId);
  };

  /**
   * Report all the unhandled rejections, now that we are abruptly terminating
   * the agent cluster.
   */
  const processTerminationHandler = () => {
    for (const [reasonId, reason] of mapEntries(idToReason)) {
      removeReasonId(reasonId);
      reportReason(reason);
    }
  };

  return {
    rejectionHandledHandler,
    unhandledRejectionHandler,
    processTerminationHandler,
  };
};$h͏_once.makeRejectionHandlers(makeRejectionHandlers);
})()
,
// === 42. ses ./src/error/tame-console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./assert.js", [["loggedErrorHandler",[$h͏_a => (defaultHandler = $h͏_a)]]]],["./console.js", [["makeCausalConsole",[$h͏_a => (makeCausalConsole = $h͏_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers",[$h͏_a => (makeRejectionHandlers = $h͏_a)]]]]]);













/**
 * @import {VirtualConsole} from './types.js'
 * @import {GetStackString} from './internal-types.js';
 */

const failFast = message => {
  throw TypeError(message);
};

const wrapLogger = (logger, thisArg) =>
  freeze((...args) => apply(logger, thisArg, args));

/**
 * Wrap console unless suppressed.
 * At the moment, the console is considered a host power in the start
 * compartment, and not a primordial. Hence it is absent from the whilelist
 * and bypasses the intrinsicsCollector.
 *
 * @param {"safe" | "unsafe"} consoleTaming
 * @param {"platform" | "exit" | "abort" | "report" | "none"} [errorTrapping]
 * @param {"report" | "none"} [unhandledRejectionTrapping]
 * @param {GetStackString=} optGetStackString
 */
       const tameConsole = (
  consoleTaming = 'safe',
  errorTrapping = 'platform',
  unhandledRejectionTrapping = 'report',
  optGetStackString = undefined,
) => {
  let loggedErrorHandler;
  if (optGetStackString === undefined) {
    loggedErrorHandler = defaultHandler;
  } else {
    loggedErrorHandler = {
      ...defaultHandler,
      getStackString: optGetStackString,
    };
  }

  // eslint-disable-next-line no-restricted-globals
  const originalConsole = /** @type {VirtualConsole} */ (
    // eslint-disable-next-line no-nested-ternary
    typeof globalThis.console !== 'undefined'
      ? globalThis.console
      : typeof globalThis.print === 'function'
        ? // Make a good-enough console for eshost (including only functions that
          // log at a specific level with no special argument interpretation).
          // https://console.spec.whatwg.org/#logging
          (p => freeze({ debug: p, log: p, info: p, warn: p, error: p }))(
            // eslint-disable-next-line no-undef
            wrapLogger(globalThis.print),
          )
        : undefined
  );

  // Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
  if (originalConsole && originalConsole.log) {
    for (const methodName of ['warn', 'error']) {
      if (!originalConsole[methodName]) {
        defineProperty(originalConsole, methodName, {
          value: wrapLogger(originalConsole.log, originalConsole),
        });
      }
    }
  }

  const ourConsole = /** @type {VirtualConsole} */ (
    consoleTaming === 'unsafe'
      ? originalConsole
      : makeCausalConsole(originalConsole, loggedErrorHandler)
  );

  // Attach platform-specific error traps such that any error that gets thrown
  // at top-of-turn (the bottom of stack) will get logged by our causal
  // console, revealing the diagnostic information associated with the error,
  // including the stack from when the error was created.

  // In the following Node.js and web browser cases, `process` and `window` are
  // spelled as `globalThis` properties to avoid the overweaning gaze of
  // Parcel, which dutifully installs an unnecessary `process` shim if we ever
  // utter that. That unnecessary shim forces the whole bundle into sloppy mode,
  // which in turn breaks SES's strict mode invariant.

  // Disable the polymorphic check for the rest of this file.  It's too noisy
  // when dealing with platform APIs.
  /* eslint-disable @endo/no-polymorphic-call */

  // Node.js
  const globalProcess = globalThis.process || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    let terminate;
    if (errorTrapping === 'platform' || errorTrapping === 'exit') {
      const { exit } = globalProcess;
      // If there is a function-valued process.on but no function-valued process.exit,
      // fail early without caring whether errorTrapping is "platform" only by default.
      typeof exit === 'function' || failFast('missing process.exit');
      terminate = () => exit(globalProcess.exitCode || -1);
    } else if (errorTrapping === 'abort') {
      terminate = globalProcess.abort;
      typeof terminate === 'function' || failFast('missing process.abort');
    }

    globalProcess.on('uncaughtException', error => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', error);
      if (terminate) {
        terminate();
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
      // 'platform' and 'report' just log the reason.
    };
    // Maybe track unhandled promise rejections.
    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalProcess.on('unhandledRejection', h.unhandledRejectionHandler);
      globalProcess.on('rejectionHandled', h.rejectionHandledHandler);
      globalProcess.on('exit', h.processTerminationHandler);
    }
  }

  // Browser
  const globalWindow = globalThis.window || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    globalWindow.addEventListener('error', event => {
      event.preventDefault();
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', event.error);
      // 'platform' and 'report' just log the reason.
      if (errorTrapping === 'exit' || errorTrapping === 'abort') {
        globalWindow.location.href = `about:blank`;
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
    };

    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalWindow.addEventListener('unhandledrejection', event => {
        event.preventDefault();
        h.unhandledRejectionHandler(event.reason, event.promise);
      });

      globalWindow.addEventListener('rejectionhandled', event => {
        event.preventDefault();
        h.rejectionHandledHandler(event.promise);
      });

      globalWindow.addEventListener('beforeunload', _event => {
        h.processTerminationHandler();
      });
    }
  }
  /* eslint-enable @endo/no-polymorphic-call */

  return { console: ourConsole };
};$h͏_once.tameConsole(tameConsole);
})()
,
// === 43. ses ./src/error/tame-v8-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);



















// Permit names from https://v8.dev/docs/stack-trace-api
// Permiting only the names used by error-stack-shim/src/v8StackFrames
// callSiteToFrame to shim the error stack proposal.
const safeV8CallSiteMethodNames = [
  // suppress 'getThis' definitely
  'getTypeName',
  // suppress 'getFunction' definitely
  'getFunctionName',
  'getMethodName',
  'getFileName',
  'getLineNumber',
  'getColumnNumber',
  'getEvalOrigin',
  'isToplevel',
  'isEval',
  'isNative',
  'isConstructor',
  'isAsync',
  // suppress 'isPromiseAll' for now
  // suppress 'getPromiseIndex' for now

  // Additional names found by experiment, absent from
  // https://v8.dev/docs/stack-trace-api
  'getPosition',
  'getScriptNameOrSourceURL',

  'toString'  // TODO replace to use only permitted info
];

// TODO this is a ridiculously expensive way to attenuate callsites.
// Before that matters, we should switch to a reasonable representation.
const safeV8CallSiteFacet = callSite => {
  const methodEntry = name => {
    const method = callSite[name];
    return [name, () => apply(method, callSite, [])];
  };
  const o = fromEntries(arrayMap(safeV8CallSiteMethodNames, methodEntry));
  return create(o, {});
};

const safeV8SST = sst => arrayMap(sst, safeV8CallSiteFacet);

// If it has `/node_modules/` anywhere in it, on Node it is likely
// to be a dependent package of the current package, and so to
// be an infrastructure frame to be dropped from concise stack traces.
const FILENAME_NODE_DEPENDENTS_CENSOR = /\/node_modules\//;

// If it begins with `internal/` or `node:internal` then it is likely
// part of the node infrustructre itself, to be dropped from concise
// stack traces.
const FILENAME_NODE_INTERNALS_CENSOR = /^(?:node:)?internal\//;

// Frames within SES `assert.js` should be dropped from concise stack traces, as
// these are just steps towards creating the error object in question.
const FILENAME_ASSERT_CENSOR = /\/packages\/ses\/src\/error\/assert\.js$/;

// Frames within the `eventual-send` shim should be dropped so that concise
// deep stacks omit the internals of the eventual-sending mechanism causing
// asynchronous messages to be sent.
// Note that the eventual-send package will move from agoric-sdk to
// Endo, so this rule will be of general interest.
const FILENAME_EVENTUAL_SEND_CENSOR = /\/packages\/eventual-send\/src\//;

// Frames within the `ses-ava` package should be dropped from concise stack
// traces, as they just support exposing error details to AVA.
const FILENAME_SES_AVA_CENSOR = /\/packages\/ses-ava\/src\/ses-ava-test\.js$/;

// Any stack frame whose `fileName` matches any of these censor patterns
// will be omitted from concise stacks.
// TODO Enable users to configure FILENAME_CENSORS via `lockdown` options.
const FILENAME_CENSORS = [
  FILENAME_NODE_DEPENDENTS_CENSOR,
  FILENAME_NODE_INTERNALS_CENSOR,
  FILENAME_ASSERT_CENSOR,
  FILENAME_EVENTUAL_SEND_CENSOR,
  FILENAME_SES_AVA_CENSOR,
];

// Should a stack frame with this as its fileName be included in a concise
// stack trace?
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
       const filterFileName = fileName => {
  if (fileName === null) {
    // Seems to suppress builtins like `Array.every (<anonymous>)`
    return false;
  }
  for (const filter of FILENAME_CENSORS) {
    if (regexpExec(filter, fileName)) {
      return false;
    }
  }
  return true;
};

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `/.../` is kept. Thus
// `'Object.bar (/vat-v1/.../errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (errors/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
$h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix consisting of `.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `.../` is kept. Thus
// `'Object.bar (.../errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (errors/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/` and prior to `package/` should get
// dropped.
// Anything to the left of the likely path prefix text is kept. `package/` and
// everything to its right is kept. Thus
// `'Object.bar (/Users/markmiller/src/ongithub/agoric/agoric-sdk/packages/errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (packages/errors/test/deep-send.test.js:13:21)'`.
// Note that `/packages/` is a convention for monorepos encouraged by
// lerna.
const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix of the form `file://` but not `file:///` gets
// dropped.
// Anything to the left of the likely path prefix text is kept. Everything to
// the right of `file://` is kept. Thus
// `'Object.bar (file:///Users/markmiller/src/ongithub/endojs/endo/packages/errors/test/deep-send.test.js:13:21)'` is unchanged but
// `'Object.bar (file://test/deep-send.test.js:13:21)'`

// simplifies to
// `'Object.bar (test/deep-send.test.js:13:21)'`.
// The reason is that `file:///` usually precedes an absolute path which is
// clickable without removing the `file:///`, whereas `file://` usually precedes
// a relative path which, for whatever vscode reason, is not clickable until the
// `file://` is removed.
const CALLSITE_FILE_2SLASH_PATTERN = /^((?:.*[( ])?)file:\/\/([^/].*)$/;

// The use of these callSite patterns below assumes that any match will bind
// capture groups containing the parts of the original string we want
// to keep. The parts outside those capture groups will be dropped from concise
// stacks.
// TODO Enable users to configure CALLSITE_PATTERNS via `lockdown` options.
const CALLSITE_PATTERNS = [
  CALLSITE_ELLIPSIS_PATTERN1,
  CALLSITE_ELLIPSIS_PATTERN2,
  CALLSITE_PACKAGES_PATTERN,
  CALLSITE_FILE_2SLASH_PATTERN,
];

// For a stack frame that should be included in a concise stack trace, if
// `callSiteString` is the original stringified stack frame, return the
// possibly-shorter stringified stack frame that should be shown instead.
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
/**
 * @param {string} callSiteString
 */
       const shortenCallSiteString = callSiteString => {
  for (const filter of CALLSITE_PATTERNS) {
    const match = regexpExec(filter, callSiteString);
    if (match) {
      return arrayJoin(arraySlice(match, 1), '');
    }
  }
  return callSiteString;
};$h͏_once.shortenCallSiteString(shortenCallSiteString);

       const tameV8ErrorConstructor = (
  OriginalError,
  InitialError,
  errorTaming,
  stackFiltering,
) => {
  if (errorTaming === 'unsafe-debug') {
    throw TypeError(
      'internal: v8+unsafe-debug special case should already be done',
    );
  }
  // TODO: Proper CallSite types
  /** @typedef {{}} CallSite */

  const originalCaptureStackTrace = OriginalError.captureStackTrace;

  const omitFrames =
    stackFiltering === 'concise' || stackFiltering === 'omit-frames';

  const shortenPaths =
    stackFiltering === 'concise' || stackFiltering === 'shorten-paths';

  // const callSiteFilter = _callSite => true;
  const callSiteFilter = callSite => {
    if (omitFrames) {
      // eslint-disable-next-line @endo/no-polymorphic-call
      if (callSite.getFunctionName()?.startsWith('__HIDE_')) {
        return false;
      }
      // eslint-disable-next-line @endo/no-polymorphic-call
      return filterFileName(callSite.getFileName());
    }
    return true;
  };

  const callSiteStringifier = callSite => {
    let callSiteString = `${callSite}`;
    if (shortenPaths) {
      callSiteString = shortenCallSiteString(callSiteString);
    }
    return `\n  at ${callSiteString}`;
  };

  const stackStringFromSST = (_error, sst) =>
    arrayJoin(
      arrayMap(arrayFilter(sst, callSiteFilter), callSiteStringifier),
      '',
    );

  /**
   * @typedef {object} StructuredStackInfo
   * @property {CallSite[]} callSites
   * @property {undefined} [stackString]
   */

  /**
   * @typedef {object} ParsedStackInfo
   * @property {undefined} [callSites]
   * @property {string} stackString
   */

  // Mapping from error instance to the stack for that instance.
  // The stack info is either the structured stack trace
  // or the generated tamed stack string
  /** @type {WeakMap<Error, ParsedStackInfo | StructuredStackInfo>} */
  const stackInfos = new WeakMap();

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    // The optional `optFn` argument is for cutting off the bottom of
    // the stack --- for capturing the stack only above the topmost
    // call to that function. Since this isn't the "real" captureStackTrace
    // but instead calls the real one, if no other cutoff is provided,
    // we cut this one off.
    captureStackTrace(error, optFn = tamedMethods.captureStackTrace) {
      if (typeof originalCaptureStackTrace === 'function') {
        // OriginalError.captureStackTrace is only on v8
        apply(originalCaptureStackTrace, OriginalError, [error, optFn]);
        return;
      }
      reflectSet(error, 'stack', '');
    },
    // Shim of proposed special power, to reside by default only
    // in the start compartment, for getting the stack traceback
    // string associated with an error.
    // See https://tc39.es/proposal-error-stacks/
    getStackString(error) {
      let stackInfo = weakmapGet(stackInfos, error);

      if (stackInfo === undefined) {
        // The following will call `prepareStackTrace()` synchronously
        // which will populate stackInfos
        // eslint-disable-next-line no-void
        void error.stack;
        stackInfo = weakmapGet(stackInfos, error);
        if (!stackInfo) {
          stackInfo = { stackString: '' };
          weakmapSet(stackInfos, error, stackInfo);
        }
      }

      // prepareStackTrace() may generate the stackString
      // if errorTaming === 'unsafe'

      if (stackInfo.stackString !== undefined) {
        return stackInfo.stackString;
      }

      const stackString = stackStringFromSST(error, stackInfo.callSites);
      weakmapSet(stackInfos, error, { stackString });

      return stackString;
    },
    prepareStackTrace(error, sst) {
      if (errorTaming === 'unsafe') {
        const stackString = stackStringFromSST(error, sst);
        weakmapSet(stackInfos, error, { stackString });
        return `${error}${stackString}`;
      } else {
        weakmapSet(stackInfos, error, { callSites: sst });
        return '';
      }
    },
  };

  // A prepareFn is a prepareStackTrace function.
  // An sst is a `structuredStackTrace`, which is an array of
  // callsites.
  // A user prepareFn is a prepareFn defined by a client of this API,
  // and provided by assigning to `Error.prepareStackTrace`.
  // A user prepareFn should only receive an attenuated sst, which
  // is an array of attenuated callsites.
  // A system prepareFn is the prepareFn created by this module to
  // be installed on the real `Error` constructor, to receive
  // an original sst, i.e., an array of unattenuated callsites.
  // An input prepareFn is a function the user assigns to
  // `Error.prepareStackTrace`, which might be a user prepareFn or
  // a system prepareFn previously obtained by reading
  // `Error.prepareStackTrace`.

  const defaultPrepareFn = tamedMethods.prepareStackTrace;

  OriginalError.prepareStackTrace = defaultPrepareFn;

  // A weakset branding some functions as system prepareFns, all of which
  // must be defined by this module, since they can receive an
  // unattenuated sst.
  const systemPrepareFnSet = new WeakSet([defaultPrepareFn]);

  const systemPrepareFnFor = inputPrepareFn => {
    if (weaksetHas(systemPrepareFnSet, inputPrepareFn)) {
      return inputPrepareFn;
    }
    // Use concise methods to obtain named functions without constructors.
    const systemMethods = {
      prepareStackTrace(error, sst) {
        weakmapSet(stackInfos, error, { callSites: sst });
        return inputPrepareFn(error, safeV8SST(sst));
      },
    };
    weaksetAdd(systemPrepareFnSet, systemMethods.prepareStackTrace);
    return systemMethods.prepareStackTrace;
  };

  // Note `stackTraceLimit` accessor already defined by
  // tame-error-constructor.js
  defineProperties(InitialError, {
    captureStackTrace: {
      value: tamedMethods.captureStackTrace,
      writable: true,
      enumerable: false,
      configurable: true,
    },
    prepareStackTrace: {
      get() {
        return OriginalError.prepareStackTrace;
      },
      set(inputPrepareStackTraceFn) {
        if (typeof inputPrepareStackTraceFn === 'function') {
          const systemPrepareFn = systemPrepareFnFor(inputPrepareStackTraceFn);
          OriginalError.prepareStackTrace = systemPrepareFn;
        } else {
          OriginalError.prepareStackTrace = defaultPrepareFn;
        }
      },
      enumerable: false,
      configurable: true,
    },
  });

  return tamedMethods.getStackString;
};$h͏_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
})()
,
// === 44. ses ./src/error/tame-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_ERROR,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,NativeErrors,tameV8ErrorConstructor;$h͏_imports([["../commons.js", [["FERAL_ERROR",[$h͏_a => (FERAL_ERROR = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors",[$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor",[$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);












// Present on at least FF and XS. Proposed by Error-proposal. The original
// is dangerous, so tameErrorConstructor replaces it with a safe one.
// We grab the original here before it gets replaced.
const stackDesc = getOwnPropertyDescriptor(FERAL_ERROR.prototype, 'stack');
const stackGetter = stackDesc && stackDesc.get;

// Use concise methods to obtain named functions without constructors.
const tamedMethods = {
  getStackString(error) {
    if (typeof stackGetter === 'function') {
      return apply(stackGetter, error, []);
    } else if ('stack' in error) {
      // The fallback is to just use the de facto `error.stack` if present
      return `${error.stack}`;
    }
    return '';
  },
};
let initialGetStackString = tamedMethods.getStackString;

               function tameErrorConstructor(
  errorTaming = 'safe',
  stackFiltering = 'concise',
) {
  const ErrorPrototype = FERAL_ERROR.prototype;

  const { captureStackTrace: originalCaptureStackTrace } = FERAL_ERROR;
  const platform =
    typeof originalCaptureStackTrace === 'function' ? 'v8' : 'unknown';

  const makeErrorConstructor = (_ = {}) => {
    // eslint-disable-next-line no-shadow
    const ResultError = function Error(...rest) {
      let error;
      if (new.target === undefined) {
        error = apply(FERAL_ERROR, this, rest);
      } else {
        error = construct(FERAL_ERROR, rest, new.target);
      }
      if (platform === 'v8') {
        // TODO Likely expensive!
        apply(originalCaptureStackTrace, FERAL_ERROR, [error, ResultError]);
      }
      return error;
    };
    defineProperties(ResultError, {
      length: { value: 1 },
      prototype: {
        value: ErrorPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    return ResultError;
  };
  const InitialError = makeErrorConstructor({ powers: 'original' });
  const SharedError = makeErrorConstructor({ powers: 'none' });
  defineProperties(ErrorPrototype, {
    constructor: { value: SharedError },
  });

  for (const NativeError of NativeErrors) {
    setPrototypeOf(NativeError, SharedError);
  }

  // https://v8.dev/docs/stack-trace-api#compatibility advises that
  // programmers can "always" set `Error.stackTraceLimit`
  // even on non-v8 platforms. On non-v8
  // it will have no effect, but this advice only makes sense
  // if the assignment itself does not fail, which it would
  // if `Error` were naively frozen. Hence, we add setters that
  // accept but ignore the assignment on non-v8 platforms.
  defineProperties(InitialError, {
    stackTraceLimit: {
      get() {
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          return FERAL_ERROR.stackTraceLimit;
        }
        return undefined;
      },
      set(newLimit) {
        if (typeof newLimit !== 'number') {
          // silently do nothing. This behavior doesn't precisely
          // emulate v8 edge-case behavior. But given the purpose
          // of this emulation, having edge cases err towards
          // harmless seems the safer option.
          return;
        }
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          FERAL_ERROR.stackTraceLimit = newLimit;
          // We place the useless return on the next line to ensure
          // that anything we place after the if in the future only
          // happens if the then-case does not.
          // eslint-disable-next-line no-useless-return
          return;
        }
      },
      // WTF on v8 stackTraceLimit is enumerable
      enumerable: false,
      configurable: true,
    },
  });

  if (errorTaming === 'unsafe-debug' && platform === 'v8') {
    // This case is a kludge to work around
    // https://github.com/endojs/endo/issues/1798
    // https://github.com/endojs/endo/issues/2348
    // https://github.com/Agoric/agoric-sdk/issues/8662

    defineProperties(InitialError, {
      prepareStackTrace: {
        get() {
          return FERAL_ERROR.prepareStackTrace;
        },
        set(newPrepareStackTrace) {
          FERAL_ERROR.prepareStackTrace = newPrepareStackTrace;
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: FERAL_ERROR.captureStackTrace,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });

    const descs = getOwnPropertyDescriptors(InitialError);
    defineProperties(SharedError, {
      stackTraceLimit: descs.stackTraceLimit,
      prepareStackTrace: descs.prepareStackTrace,
      captureStackTrace: descs.captureStackTrace,
    });

    return {
      '%InitialGetStackString%': initialGetStackString,
      '%InitialError%': InitialError,
      '%SharedError%': SharedError,
    };
  }

  // The default SharedError much be completely powerless even on v8,
  // so the lenient `stackTraceLimit` accessor does nothing on all
  // platforms.
  defineProperties(SharedError, {
    stackTraceLimit: {
      get() {
        return undefined;
      },
      set(_newLimit) {
        // do nothing
      },
      enumerable: false,
      configurable: true,
    },
  });

  if (platform === 'v8') {
    // `SharedError.prepareStackTrace`, if it exists, must also be
    // powerless. However, from what we've heard, depd expects to be able to
    // assign to it without the assignment throwing. It is normally a function
    // that returns a stack string to be magically added to error objects.
    // However, as long as we're adding a lenient standin, we may as well
    // accommodate any who expect to get a function they can call and get
    // a string back. This prepareStackTrace is a do-nothing function that
    // always returns the empty string.
    defineProperties(SharedError, {
      prepareStackTrace: {
        get() {
          return () => '';
        },
        set(_prepareFn) {
          // do nothing
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: (errorish, _constructorOpt) => {
          defineProperty(errorish, 'stack', {
            value: '',
          });
        },
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });
  }

  if (platform === 'v8') {
    initialGetStackString = tameV8ErrorConstructor(
      FERAL_ERROR,
      InitialError,
      errorTaming,
      stackFiltering,
    );
  } else if (errorTaming === 'unsafe' || errorTaming === 'unsafe-debug') {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8

    // Error.prototype.stack property as proposed at
    // https://tc39.es/proposal-error-stacks/
    // with the fix proposed at
    // https://github.com/tc39/proposal-error-stacks/issues/46
    // On others, this still protects from the override mistake,
    // essentially like enable-property-overrides.js would
    // once this accessor property itself is frozen, as will happen
    // later during lockdown.
    //
    // However, there is here a change from the intent in the current
    // state of the proposal. If experience tells us whether this change
    // is a good idea, we should modify the proposal accordingly. There is
    // much code in the world that assumes `error.stack` is a string. So
    // where the proposal accommodates secure operation by making the
    // property optional, we instead accommodate secure operation by
    // having the secure form always return only the stable part, the
    // stringified error instance, and omitting all the frame information
    // rather than omitting the property.
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          return initialGetStackString(this);
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  } else {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          // https://github.com/tc39/proposal-error-stacks/issues/46
          // allows this to not add an unpleasant newline. Otherwise
          // we should fix this.
          return `${this}`;
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  }

  return {
    '%InitialGetStackString%': initialGetStackString,
    '%InitialError%': InitialError,
    '%SharedError%': SharedError,
  };
}$h͏_once.default(      tameErrorConstructor);
})()
,
// === 45. ses ./src/module-load.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isPrimitive,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["generatorNext",[$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow",[$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError",[$h͏_a => (makeError = $h͏_a)]],["annotateError",[$h͏_a => (annotateError = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]],["b",[$h͏_a => (b = $h͏_a)]],["X",[$h͏_a => (X = $h͏_a)]]]]]);


























const noop = () => {};

const asyncTrampoline = async (generatorFunc, args, errorWrapper) => {
  await null;
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      // eslint-disable-next-line no-await-in-loop
      const val = await result.value;
      result = generatorNext(iterator, val);
    } catch (error) {
      result = generatorThrow(iterator, errorWrapper(error));
    }
  }
  return result.value;
};

const syncTrampoline = (generatorFunc, args) => {
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      result = generatorNext(iterator, result.value);
    } catch (error) {
      result = generatorThrow(iterator, error);
    }
  }
  return result.value;
};

// `makeAlias` constructs compartment specifier tuples for the `aliases`
// private field of compartments.
// These aliases allow a compartment to alias an internal module specifier to a
// module specifier in an external compartment, and also to create internal
// aliases.
// Both are facilitated by the moduleMap Compartment constructor option.
       const makeAlias = (compartment, specifier) =>
  freeze({ compartment, specifier });

// `resolveAll` pre-computes resolutions of all imports within the compartment
// in which a module was loaded.
$h͏_once.makeAlias(makeAlias);const resolveAll=(imports,resolveHook,fullReferrerSpecifier)=>{
  const resolvedImports = create(null);
  for (const importSpecifier of imports) {
    const fullSpecifier = resolveHook(importSpecifier, fullReferrerSpecifier);
    resolvedImports[importSpecifier] = fullSpecifier;
  }
  return freeze(resolvedImports);
};

const loadModuleSource = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  moduleSource,
  enqueueJob,
  selectImplementation,
  moduleLoads,
  importMeta,
) => {
  const { resolveHook, name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const { imports } = moduleSource;
  if (
    !isArray(imports) ||
    arraySome(imports, specifier => typeof specifier !== 'string')
  ) {
    throw makeError(
      X`Invalid module source: 'imports' must be an array of strings, got ${imports} for module ${q(moduleSpecifier)} of compartment ${q(compartmentName)}`,
    );
  }

  // resolve all imports relative to this referrer module.
  const resolvedImports = resolveAll(imports, resolveHook, moduleSpecifier);
  const moduleRecord = freeze({
    compartment,
    moduleSource,
    moduleSpecifier,
    resolvedImports,
    importMeta,
  });

  // Enqueue jobs to load this module's shallow dependencies.
  for (const fullSpecifier of values(resolvedImports)) {
    // Behold: recursion.
    // eslint-disable-next-line no-use-before-define
    enqueueJob(memoizedLoadWithErrorAnnotation, [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      fullSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ]);
  }

  return moduleRecord;
};

function* loadWithoutErrorAnnotation(
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) {
  const {
    importHook,
    importNowHook,
    moduleMap,
    moduleMapHook,
    moduleRecords,
    parentCompartment,
  } = weakmapGet(compartmentPrivateFields, compartment);

  if (mapHas(moduleRecords, moduleSpecifier)) {
    return mapGet(moduleRecords, moduleSpecifier);
  }

  // Follow moduleMap, or moduleMapHook if present.
  let moduleDescriptor = moduleMap[moduleSpecifier];
  if (moduleDescriptor === undefined && moduleMapHook !== undefined) {
    moduleDescriptor = moduleMapHook(moduleSpecifier);
  }
  if (moduleDescriptor === undefined) {
    const moduleHook = selectImplementation(importHook, importNowHook);
    if (moduleHook === undefined) {
      const moduleHookName = selectImplementation(
        'importHook',
        'importNowHook',
      );
      throw makeError(
        X`${b(moduleHookName)} needed to load module ${q(
          moduleSpecifier,
        )} in compartment ${q(compartment.name)}`,
      );
    }
    moduleDescriptor = moduleHook(moduleSpecifier);
    // Uninitialized module namespaces throw if we attempt to coerce them into
    // promises.
    if (!weakmapHas(moduleAliases, moduleDescriptor)) {
      moduleDescriptor = yield moduleDescriptor;
    }
  }

  if (typeof moduleDescriptor === 'string') {
    // eslint-disable-next-line @endo/no-polymorphic-call
    throw makeError(
      X`Cannot map module ${q(moduleSpecifier)} to ${q(
        moduleDescriptor,
      )} in parent compartment, use {source} module descriptor`,
      TypeError,
    );
  } else if (!isPrimitive(moduleDescriptor)) {
    // In this shim (and not in XS, and not in the standard we imagine), we
    // allow a module namespace object to stand in for a module descriptor that
    // describes its original {compartment, specifier} so that it can be used
    // to create a link.
    let aliasDescriptor = weakmapGet(moduleAliases, moduleDescriptor);
    if (aliasDescriptor !== undefined) {
      moduleDescriptor = aliasDescriptor;
    }

    if (moduleDescriptor.namespace !== undefined) {
      // { namespace: string, compartment?: Compartment }
      // Namespace module descriptors link to a module instance.

      if (typeof moduleDescriptor.namespace === 'string') {
        // The default compartment is the *parent*, not this child compartment.
        // This is a difference from the legacy {specifier, compartment} module
        // descriptor.
        const {
          compartment: aliasCompartment = parentCompartment,
          namespace: aliasSpecifier,
        } = moduleDescriptor;
        if (
          isPrimitive(aliasCompartment) ||
          !weakmapHas(compartmentPrivateFields, aliasCompartment)
        ) {
          throw makeError(
            X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
          );
        }
        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const aliasRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          aliasCompartment,
          aliasSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }

      // All remaining objects must either be a module namespace, or be
      // promoted into a module namespace with a virtual module source.
      if (!isPrimitive(moduleDescriptor.namespace)) {
        const { namespace } = moduleDescriptor;
        // Brand-check SES shim module exports namespaces:
        aliasDescriptor = weakmapGet(moduleAliases, namespace);
        if (aliasDescriptor !== undefined) {
          moduleDescriptor = aliasDescriptor;
          // Fall through to processing the resulting {compartment, specifier}
          // alias.
        } else {
          // Promote an arbitrary object to a module namespace with a virtual
          // module source.
          // { namespace: Object }
          const exports = getOwnPropertyNames(namespace);
          /** @type {import('../types.js').VirtualModuleSource} */
          const moduleSource = {
            imports: [],
            exports,
            execute(env) {
              for (const name of exports) {
                env[name] = namespace[name];
              }
            },
          };
          const importMeta = undefined;
          const moduleRecord = loadModuleSource(
            compartmentPrivateFields,
            moduleAliases,
            compartment,
            moduleSpecifier,
            moduleSource,
            enqueueJob,
            selectImplementation,
            moduleLoads,
            importMeta,
          );
          mapSet(moduleRecords, moduleSpecifier, moduleRecord);
          return moduleRecord;
        }
      } else {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
    }

    if (moduleDescriptor.source !== undefined) {
      // Module source descriptors create an instance from a module source.
      // The descriptor may contain the module source, or refer to a source
      // loaded in a particular compartment.

      if (typeof moduleDescriptor.source === 'string') {
        // { source: string, importMeta?, specifier?: string, compartment? }
        // A string source is the specifier for a different module source.
        // That source may come from this compartment's parent (default), or
        // from a specified compartment, and the specified compartment may be
        // this compartment to make a duplicate.

        const {
          source: loaderSpecifier,
          specifier: instanceSpecifier = moduleSpecifier,
          compartment: loaderCompartment = parentCompartment,
          importMeta = undefined,
        } = moduleDescriptor;

        // Induce the compartment, possibly a different compartment
        // to load a module source.

        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const loaderRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          loaderCompartment,
          loaderSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );

        // Extract the source of the module from the loader compartment's
        // record.
        const { moduleSource } = loaderRecord;

        // Instantiate that source in our own compartment, possibly with a
        // different specifier for resolving its own imports.
        const moduleRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          instanceSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, moduleRecord);
        return moduleRecord;
      } else {
        // { source: ModuleSource, importMeta?, specifier?: string }
        // We assume all non-string module sources are any of the supported
        // kinds of module source: PrecompiledModuleSource,
        // VirtualModuleSource, or a native ModuleSource.

        const {
          source: moduleSource,
          specifier: aliasSpecifier = moduleSpecifier,
          importMeta,
        } = moduleDescriptor;

        const aliasRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          aliasSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }
    }

    if (moduleDescriptor.archive !== undefined) {
      // { archive: Archive, path: string }
      // We do not support this XS-native module descriptor.
      throw makeError(
        X`Unsupported archive module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
      );
    }

    // { record, specifier?, compartment?, importMeta? }
    // A (legacy) module descriptor for when we find the module source (record)
    // but at a different specifier than requested.
    // Providing this {specifier, record} descriptor serves as an ergonomic
    // short-hand for stashing the record, returning a {compartment, specifier}
    // reference, bouncing the module hook, then producing the source (record)
    // when module hook receives the response specifier.
    if (moduleDescriptor.record !== undefined) {
      const {
        compartment: aliasCompartment = compartment,
        specifier: aliasSpecifier = moduleSpecifier,
        record: moduleSource,
        importMeta,
      } = moduleDescriptor;

      const aliasRecord = loadModuleSource(
        compartmentPrivateFields,
        moduleAliases,
        aliasCompartment,
        aliasSpecifier,
        moduleSource,
        enqueueJob,
        selectImplementation,
        moduleLoads,
        importMeta,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      mapSet(moduleRecords, aliasSpecifier, aliasRecord);
      return aliasRecord;
    }

    // { specifier: string, compartment: Compartment }
    // A (legacy) module descriptor that describes a link to a module instance
    // in a specified compartment.
    if (
      moduleDescriptor.compartment !== undefined &&
      moduleDescriptor.specifier !== undefined
    ) {
      if (
        isPrimitive(moduleDescriptor.compartment) ||
        !weakmapHas(compartmentPrivateFields, moduleDescriptor.compartment) ||
        typeof moduleDescriptor.specifier !== 'string'
      ) {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
      // Behold: recursion.
      // eslint-disable-next-line no-use-before-define
      const aliasRecord = yield memoizedLoadWithErrorAnnotation(
        compartmentPrivateFields,
        moduleAliases,
        moduleDescriptor.compartment,
        moduleDescriptor.specifier,
        enqueueJob,
        selectImplementation,
        moduleLoads,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      return aliasRecord;
    }

    // A (legacy) behavior: If we do not recognize the module descriptor as a
    // module descriptor, we assume that it is a module source (record):
    const moduleSource = moduleDescriptor;
    const moduleRecord = loadModuleSource(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      moduleSource,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    );
    // Memoize.
    mapSet(moduleRecords, moduleSpecifier, moduleRecord);
    return moduleRecord;
  } else {
    throw makeError(
      X`module descriptor must be a string or object for specifier ${q(
        moduleSpecifier,
      )} in compartment ${q(compartment.name)}`,
    );
  }
}

const memoizedLoadWithErrorAnnotation = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  // Prevent data-lock from recursion into branches visited in dependent loads.
  let compartmentLoading = mapGet(moduleLoads, compartment);
  if (compartmentLoading === undefined) {
    compartmentLoading = new Map();
    mapSet(moduleLoads, compartment, compartmentLoading);
  }
  let moduleLoading = mapGet(compartmentLoading, moduleSpecifier);
  if (moduleLoading !== undefined) {
    return moduleLoading;
  }

  moduleLoading = selectImplementation(asyncTrampoline, syncTrampoline)(
    loadWithoutErrorAnnotation,
    [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ],
    error => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      annotateError(
        error,
        X`${error.message}, loading ${q(moduleSpecifier)} in compartment ${q(
          compartmentName,
        )}`,
      );
      throw error;
    },
  );

  mapSet(compartmentLoading, moduleSpecifier, moduleLoading);

  return moduleLoading;
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the fulfilled object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const asyncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  /** @type {Set<Promise<undefined>>} */
  const pendingJobs = new Set();

  /**
   * Enqueues a job that starts immediately but won't be awaited until drainQueue is called.
   *
   * @template {(...args: any[]) => Promise<void>} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    setAdd(
      pendingJobs,
      promiseThen(func(...args), noop, error => {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }),
    );
  };
  /**
   * Sequentially awaits pending jobs and returns an array of errors
   */
  const drainQueue = async () => {
    await null;
    for (const job of pendingJobs) {
      // eslint-disable-next-line no-await-in-loop
      await job;
    }
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the returned object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const syncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  let current = [];
  let next = [];

  /**
   * Enqueues a job
   *
   * @template {(...args: any[]) => void} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    arrayPush(next, [func, args]);
  };
  const drainQueue = () => {
    // Attention: load bearing flow order. Calling another enqueued function in the
    // synchronous usecase must happen after the one that enqueued it has finished.
    // Jobs enqueued in one pass do not interleave with jobs resulting from them.
    // It's necessary for efficient memoization and to break cycles.
    for (const [func, args] of current) {
      try {
        func(...args);
      } catch (error) {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }
    }
    current = next;
    next = [];
    if (current.length > 0) drainQueue();
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * @param {object} options
 * @param {Array<Error>} options.errors
 * @param {string} options.errorPrefix
 */
const throwAggregateError = ({ errors, errorPrefix }) => {
  // Throw an aggregate error if there were any errors.
  if (errors.length > 0) {
    const verbose =
      /** @type {'' | 'verbose'} */
      (getenv('COMPARTMENT_LOAD_ERRORS', '', ['verbose'])) === 'verbose';
    throw TypeError(
      `${errorPrefix} (${errors.length} underlying failures: ${arrayJoin(
        arrayMap(errors, error => error.message + (verbose ? error.stack : '')),
        ', ',
      )}`,
    );
  }
};

const preferSync = (_asyncImpl, syncImpl) => syncImpl;
const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;

/**
 * `load` asynchronously gathers the module records for a module and its
 * transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */
       const load = async (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = asyncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferAsync,
    moduleLoads,
  ]);

  await drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};

/**
 * `loadNow` synchronously gathers the module records for a specified module
 * and its transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */$h͏_once.load(load);

       const loadNow = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = syncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferSync,
    moduleLoads,
  ]);

  drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};$h͏_once.loadNow(loadNow);
})()
,
// === 46. ses ./src/module-proxy.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,weakmapSet,assert;$h͏_imports([["./module-load.js", [["makeAlias",[$h͏_a => (makeAlias = $h͏_a)]]]],["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["reflectGet",[$h͏_a => (reflectGet = $h͏_a)]],["reflectGetOwnPropertyDescriptor",[$h͏_a => (reflectGetOwnPropertyDescriptor = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["reflectIsExtensible",[$h͏_a => (reflectIsExtensible = $h͏_a)]],["reflectPreventExtensions",[$h͏_a => (reflectPreventExtensions = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);































const { quote: q } = assert;

// `deferExports` creates a module's exports proxy, proxied exports, and
// activator.
// A `Compartment` can create a module for any module specifier, regardless of
// whether it is loadable or executable, and use that object as a token that
// can be fed into another compartment's module map.
// Only after the specified module has been analyzed is it possible for the
// module namespace proxy to behave properly, so it throws exceptions until
// after the compartment has begun executing the module.
// The module instance must freeze the proxied exports and activate the exports
// proxy before executing the module.
//
// The module exports proxy's behavior differs from the ECMAScript 262
// specification for "module namespace exotic objects" only in that according
// to the specification value property descriptors have a non-writable "value"
// and this implementation models all properties with accessors.
//
// https://tc39.es/ecma262/#sec-module-namespace-exotic-objects
//
       const deferExports = () => {
  let active = false;
  const exportsTarget = create(null, {
    // Make this appear like an ESM module namespace object.
    [toStringTagSymbol]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });
  return freeze({
    activate() {
      active = true;
    },
    exportsTarget,
    exportsProxy: new Proxy(exportsTarget, {
      get(_target, name, receiver) {
        if (!active) {
          throw TypeError(
            `Cannot get property ${q(
              name,
            )} of module exports namespace, the module has not yet begun to execute`,
          );
        }
        return reflectGet(exportsTarget, name, receiver);
      },
      set(_target, name, _value) {
        throw TypeError(
          `Cannot set property ${q(name)} of module exports namespace`,
        );
      },
      has(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot check property ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectHas(exportsTarget, name);
      },
      deleteProperty(_target, name) {
        throw TypeError(
          `Cannot delete property ${q(name)}s of module exports namespace`,
        );
      },
      ownKeys(_target) {
        if (!active) {
          throw TypeError(
            'Cannot enumerate keys, the module has not yet begun to execute',
          );
        }
        return ownKeys(exportsTarget);
      },
      getOwnPropertyDescriptor(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot get own property descriptor ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectGetOwnPropertyDescriptor(exportsTarget, name);
      },
      preventExtensions(_target) {
        if (!active) {
          throw TypeError(
            'Cannot prevent extensions of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectPreventExtensions(exportsTarget);
      },
      isExtensible() {
        if (!active) {
          throw TypeError(
            'Cannot check extensibility of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectIsExtensible(exportsTarget);
      },
      getPrototypeOf(_target) {
        return null;
      },
      setPrototypeOf(_target, _proto) {
        throw TypeError('Cannot set prototype of module exports namespace');
      },
      defineProperty(_target, name, _descriptor) {
        throw TypeError(
          `Cannot define property ${q(name)} of module exports namespace`,
        );
      },
      apply(_target, _thisArg, _args) {
        throw TypeError(
          'Cannot call module exports namespace, it is not a function',
        );
      },
      construct(_target, _args) {
        throw TypeError(
          'Cannot construct module exports namespace, it is not a constructor',
        );
      },
    }),
  });
};

/**
 * @typedef {object} DeferredExports
 * @property {Record<string, any>} exportsTarget - The object to which a
 * module's exports will be added.
 * @property {Record<string, any>} exportsProxy - A proxy over the `exportsTarget`,
 * used to expose its "exports" to other compartments.
 * @property {() => void} activate - Activate the `exportsProxy` such that it can
 * be used as a module namespace object.
 */

/**
 * Memoizes the creation of a deferred module exports namespace proxy for any
 * arbitrary full specifier in a compartment. It also records the compartment
 * and specifier affiliated with that module exports namespace proxy so it
 * can be used as an alias into another compartment when threaded through
 * a compartment's `moduleMap` argument.
 *
 * @param {*} compartment - The compartment to retrieve deferred exports from.
 * @param {*} compartmentPrivateFields - The private fields of the compartment.
 * @param {*} moduleAliases - The module aliases of the compartment.
 * @param {string} specifier - The module specifier to retrieve deferred exports for.
 * @returns {DeferredExports} - The deferred exports for the module specifier of
 * the compartment.
 */$h͏_once.deferExports(deferExports);
       const getDeferredExports = (
  compartment,
  compartmentPrivateFields,
  moduleAliases,
  specifier,
) => {
  const { deferredExports } = compartmentPrivateFields;
  if (!mapHas(deferredExports, specifier)) {
    const deferred = deferExports();
    weakmapSet(
      moduleAliases,
      deferred.exportsProxy,
      makeAlias(compartment, specifier),
    );
    mapSet(deferredExports, specifier, deferred);
  }
  return mapGet(deferredExports, specifier);
};$h͏_once.getDeferredExports(getDeferredExports);
})()
,
// === 47. ses ./src/compartment-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,arrayPush,create,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./transforms.js", [["evadeHtmlCommentTest",[$h͏_a => (evadeHtmlCommentTest = $h͏_a)]],["evadeImportExpressionTest",[$h͏_a => (evadeImportExpressionTest = $h͏_a)]],["rejectSomeDirectEvalExpressions",[$h͏_a => (rejectSomeDirectEvalExpressions = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);













       const provideCompartmentEvaluator = (compartmentFields, options) => {
  const { sloppyGlobalsMode = false, __moduleShimLexicals__ = undefined } =
    options;

  let safeEvaluate;

  if (__moduleShimLexicals__ === undefined && !sloppyGlobalsMode) {
    ({ safeEvaluate } = compartmentFields);
  } else {
    // The scope proxy or global lexicals are different from the
    // shared evaluator so we need to build a new one

    let { globalTransforms } = compartmentFields;
    const { globalObject } = compartmentFields;

    let moduleLexicals;
    if (__moduleShimLexicals__ !== undefined) {
      // When using `evaluate` for ESM modules, as should only occur from the
      // module-shim's module-instance.js, we do not reveal the SES-shim's
      // module-to-program translation, as this is not standardizable behavior.
      // However, the `localTransforms` will come from the `__shimTransforms__`
      // Compartment option in this case, which is a non-standardizable escape
      // hatch so programs designed specifically for the SES-shim
      // implementation may opt-in to use the same transforms for `evaluate`
      // and `import`, at the expense of being tightly coupled to SES-shim.
      globalTransforms = undefined;

      moduleLexicals = create(
        null,
        getOwnPropertyDescriptors(__moduleShimLexicals__),
      );
    }

    ({ safeEvaluate } = makeSafeEvaluator({
      globalObject,
      moduleLexicals,
      globalTransforms,
      sloppyGlobalsMode,
    }));
  }

  return { safeEvaluate };
};$h͏_once.provideCompartmentEvaluator(provideCompartmentEvaluator);

       const compartmentEvaluate = (compartmentFields, source, options) => {
  // Perform this check first to avoid unnecessary sanitizing.
  // TODO Maybe relax string check and coerce instead:
  // https://github.com/tc39/proposal-dynamic-code-brand-checks
  if (typeof source !== 'string') {
    throw TypeError('first argument of evaluate() must be a string');
  }

  // Extract options, and shallow-clone transforms.
  const {
    transforms = [],
    __evadeHtmlCommentTest__ = false,
    __evadeImportExpressionTest__ = false,
    __rejectSomeDirectEvalExpressions__ = true  // Note default on
  } = options;
  const localTransforms = [...transforms];
  if (__evadeHtmlCommentTest__ === true) {
    arrayPush(localTransforms, evadeHtmlCommentTest);
  }
  if (__evadeImportExpressionTest__ === true) {
    arrayPush(localTransforms, evadeImportExpressionTest);
  }
  if (__rejectSomeDirectEvalExpressions__ === true) {
    arrayPush(localTransforms, rejectSomeDirectEvalExpressions);
  }

  const { safeEvaluate } = provideCompartmentEvaluator(
    compartmentFields,
    options,
  );

  return safeEvaluate(source, {
    localTransforms,
  });
};$h͏_once.compartmentEvaluate(compartmentEvaluate);
})()
,
// === 48. ses ./src/module-instance.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./commons.js", [["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]]]);

























const { quote: q } = assert;

       const makeVirtualModuleInstance = (
  compartmentPrivateFields,
  moduleSource,
  compartment,
  moduleAliases,
  moduleSpecifier,
  resolvedImports,
) => {
  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    weakmapGet(compartmentPrivateFields, compartment),
    moduleAliases,
    moduleSpecifier,
  );

  const notifiers = create(null);

  if (moduleSource.exports) {
    if (
      !isArray(moduleSource.exports) ||
      arraySome(moduleSource.exports, name => typeof name !== 'string')
    ) {
      throw TypeError(
        `SES virtual module source "exports" property must be an array of strings for module ${moduleSpecifier}`,
      );
    }
    arrayForEach(moduleSource.exports, name => {
      let value = exportsTarget[name];
      const updaters = [];

      const get = () => value;

      const set = newValue => {
        value = newValue;
        for (const updater of updaters) {
          updater(newValue);
        }
      };

      defineProperty(exportsTarget, name, {
        get,
        set,
        enumerable: true,
        configurable: false,
      });

      notifiers[name] = update => {
        arrayPush(updaters, update);
        update(value);
      };
    });
    // This is enough to support import * from cjs - the '*' field doesn't need to be in exports nor exportsTarget because import will only ever access it via notifiers
    notifiers['*'] = update => {
      update(exportsTarget);
    };
  }

  const localState = {
    activated: false,
  };
  return freeze({
    notifiers,
    exportsProxy,
    execute() {
      if (reflectHas(localState, 'errorFromExecute')) {
        throw localState.errorFromExecute;
      }
      if (!localState.activated) {
        activate();
        localState.activated = true;
        try {
          // eslint-disable-next-line @endo/no-polymorphic-call
          moduleSource.execute(exportsTarget, compartment, resolvedImports);
        } catch (err) {
          localState.errorFromExecute = err;
          throw err;
        }
      }
    },
  });
};

// `makeModuleInstance` takes a module's compartment record, the live import
// namespace, and a global object; and produces a module instance.
// The module instance carries the proxied module exports namespace (the
// "exports"), notifiers to update the module's internal import namespace, and
// an idempotent execute function.
// The module exports namespace is a proxy to the proxied exports namespace
// that the execution of the module instance populates.
$h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleInstance=(
  privateFields,
  moduleAliases,
  moduleRecord,
  importedInstances,
) => {
  const {
    compartment,
    moduleSpecifier,
    moduleSource,
    importMeta: moduleRecordMeta,
  } = moduleRecord;
  const {
    reexports: exportAlls = [],
    __syncModuleProgram__: functorSource,
    __fixedExportMap__: fixedExportMap = {},
    __liveExportMap__: liveExportMap = {},
    __reexportMap__: reexportMap = {},
    __needsImport__: needsImport = false,
    __needsImportMeta__: needsImportMeta = false,
    __syncModuleFunctor__,
  } = moduleSource;

  const compartmentFields = weakmapGet(privateFields, compartment);

  const { __shimTransforms__, resolveHook, importMetaHook, compartmentImport } =
    compartmentFields;

  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    compartmentFields,
    moduleAliases,
    moduleSpecifier,
  );

  // {_exportName_: getter} module exports namespace
  // object (eventually proxied).
  const exportsProps = create(null);

  // {_localName_: accessor} proxy traps for moduleLexicals and live bindings.
  // The moduleLexicals object is frozen and the corresponding properties of
  // moduleLexicals must be immutable, so we copy the descriptors.
  const moduleLexicals = create(null);

  // {_localName_: init(initValue) -> initValue} used by the
  // rewritten code to initialize exported fixed bindings.
  const onceVar = create(null);

  // {_localName_: update(newValue)} used by the rewritten code to
  // both initialize and update live bindings.
  const liveVar = create(null);

  const importMeta = create(null);
  if (moduleRecordMeta) {
    assign(importMeta, moduleRecordMeta);
  }
  if (needsImportMeta && importMetaHook) {
    importMetaHook(moduleSpecifier, importMeta);
  }

  /** @type {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} */
  let dynamicImport;
  if (needsImport) {
    /** @param {string} importSpecifier */
    dynamicImport = async importSpecifier =>
      compartmentImport(resolveHook(importSpecifier, moduleSpecifier));
  }

  // {_localName_: [{get, set, notify}]} used to merge all the export updaters.
  const localGetNotify = create(null);

  // {[importName: string]: notify(update(newValue))} Used by code that imports
  // one of this module's exports, so that their update function will
  // be notified when this binding is initialized or updated.
  const notifiers = create(null);

  arrayForEach(entries(fixedExportMap), ([fixedExportName, [localName]]) => {
    let fixedGetNotify = localGetNotify[localName];
    if (!fixedGetNotify) {
      // fixed binding state
      let value;
      let tdz = true;
      /** @type {null | Array<(value: any) => void>} */
      let optUpdaters = [];

      // tdz sensitive getter
      const get = () => {
        if (tdz) {
          throw ReferenceError(`binding ${q(localName)} not yet initialized`);
        }
        return value;
      };

      // leave tdz once
      const init = freeze(initValue => {
        // init with initValue of a declared const binding, and return
        // it.
        if (!tdz) {
          throw TypeError(
            `Internal: binding ${q(localName)} already initialized`,
          );
        }
        value = initValue;
        const updaters = optUpdaters;
        optUpdaters = null;
        tdz = false;
        for (const updater of updaters || []) {
          updater(initValue);
        }
        return initValue;
      });

      // If still tdz, register update for notification later.
      // Otherwise, update now.
      const notify = updater => {
        if (updater === init) {
          // Prevent recursion.
          return;
        }
        if (tdz) {
          arrayPush(optUpdaters || [], updater);
        } else {
          updater(value);
        }
      };

      // Need these for additional exports of the local variable.
      fixedGetNotify = {
        get,
        notify,
      };
      localGetNotify[localName] = fixedGetNotify;
      onceVar[localName] = init;
    }

    exportsProps[fixedExportName] = {
      get: fixedGetNotify.get,
      set: undefined,
      enumerable: true,
      configurable: false,
    };

    notifiers[fixedExportName] = fixedGetNotify.notify;
  });

  arrayForEach(
    entries(liveExportMap),
    ([liveExportName, [localName, setProxyTrap]]) => {
      let liveGetNotify = localGetNotify[localName];
      if (!liveGetNotify) {
        // live binding state
        let value;
        let tdz = true;
        const updaters = [];

        // tdz sensitive getter
        const get = () => {
          if (tdz) {
            throw ReferenceError(
              `binding ${q(liveExportName)} not yet initialized`,
            );
          }
          return value;
        };

        // This must be usable locally for the translation of initializing
        // a declared local live binding variable.
        //
        // For reexported variable, this is also an update function to
        // register for notification with the downstream import, which we
        // must assume to be live. Thus, it can be called independent of
        // tdz but always leaves tdz. Such reexporting creates a tree of
        // bindings. This lets the tree be hooked up even if the imported
        // module instance isn't initialized yet, as may happen in cycles.
        const update = freeze(newValue => {
          value = newValue;
          tdz = false;
          for (const updater of updaters) {
            updater(newValue);
          }
        });

        // tdz sensitive setter
        const set = newValue => {
          if (tdz) {
            throw ReferenceError(`binding ${q(localName)} not yet initialized`);
          }
          value = newValue;
          for (const updater of updaters) {
            updater(newValue);
          }
        };

        // Always register the updater function.
        // If not in tdz, also update now.
        const notify = updater => {
          if (updater === update) {
            // Prevent recursion.
            return;
          }
          arrayPush(updaters, updater);
          if (!tdz) {
            updater(value);
          }
        };

        liveGetNotify = {
          get,
          notify,
        };

        localGetNotify[localName] = liveGetNotify;
        if (setProxyTrap) {
          defineProperty(moduleLexicals, localName, {
            get,
            set,
            enumerable: true,
            configurable: false,
          });
        }
        liveVar[localName] = update;
      }

      exportsProps[liveExportName] = {
        get: liveGetNotify.get,
        set: undefined,
        enumerable: true,
        configurable: false,
      };

      notifiers[liveExportName] = liveGetNotify.notify;
    },
  );

  const notifyStar = update => {
    update(exportsTarget);
  };
  notifiers['*'] = notifyStar;

  const wireUpExportNotifier = (exportName, notify) => {
    if (!notifiers[exportName] && notify !== false) {
      notifiers[exportName] = notify;

      // exported live binding state
      let value;
      const update = newValue => (value = newValue);
      notify(update);
      exportsProps[exportName] = {
        get() {
          return value;
        },
        set: undefined,
        enumerable: true,
        configurable: false,
      };
    }
  };

  // Per the calling convention for the moduleFunctor generated from
  // an ESM, the `imports` function gets called once up front
  // to populate or arrange the population of imports and reexports.
  // The generated code produces an `updateRecord`: the means for
  // the linker to update the imports and exports of the module.
  // The updateRecord must conform to moduleAnalysis.imports
  // updateRecord = Map<specifier, importUpdaters>
  // importUpdaters = Map<importName, [update(newValue)*]>
  function imports(updateRecord) {
    // By the time imports is called, the importedInstances should already be
    // initialized with module instances that satisfy
    // imports.
    // importedInstances = Map[_specifier_, { notifiers, module, execute }]
    // notifiers = { [importName: string]: notify(update(newValue))}

    // export * cannot export default.
    const candidateAll = create(null);
    candidateAll.default = false;
    for (const [specifier, importUpdaters] of updateRecord) {
      const instance = mapGet(importedInstances, specifier);
      // The module instance object is an internal literal, does not bind this,
      // and never revealed outside the SES shim.
      // There are two instantiation sites for instances and they are both in
      // this module.
      // eslint-disable-next-line @endo/no-polymorphic-call
      instance.execute(); // bottom up cycle tolerant
      const { notifiers: importNotifiers } = instance;
      for (const [importName, updaters] of importUpdaters) {
        const importNotify = importNotifiers[importName];
        if (!importNotify) {
          throw SyntaxError(
            `The requested module '${specifier}' does not provide an export named '${importName}'`,
          );
        }
        for (const updater of updaters) {
          importNotify(updater);
        }
      }
      if (arrayIncludes(exportAlls, specifier)) {
        // Make all these imports candidates.
        // Note names don't change in reexporting all
        for (const [importAndExportName, importNotify] of entries(
          importNotifiers,
        )) {
          if (candidateAll[importAndExportName] === undefined) {
            candidateAll[importAndExportName] = importNotify;
          } else {
            // Already a candidate: remove ambiguity.
            candidateAll[importAndExportName] = false;
          }
        }
      }
      if (reexportMap[specifier]) {
        // Set up reexport notifiers instantly so they are available in cycles.
        for (const [localName, exportedName] of reexportMap[specifier]) {
          wireUpExportNotifier(exportedName, importNotifiers[localName]);
        }
      }
    }

    for (const [exportName, notify] of entries(candidateAll)) {
      wireUpExportNotifier(exportName, notify);
    }

    // Sort the module exports namespace as per spec.
    // The module exports namespace will be wrapped in a module namespace
    // exports proxy which will serve as a "module exports namespace exotic
    // object".
    // Sorting properties is not generally reliable because some properties may
    // be symbols, and symbols do not have an inherent relative order, but
    // since all properties of the exports namespace must be keyed by a string
    // and the string must correspond to a valid identifier, sorting these
    // properties works for this specific case.
    arrayForEach(arraySort(keys(exportsProps)), k =>
      defineProperty(exportsTarget, k, exportsProps[k]),
    );

    freeze(exportsTarget);
    activate();
  }

  let optFunctor;
  if (__syncModuleFunctor__ !== undefined) {
    optFunctor = __syncModuleFunctor__;
  } else {
    optFunctor = compartmentEvaluate(compartmentFields, functorSource, {
      globalObject: compartment.globalThis,
      transforms: __shimTransforms__,
      __moduleShimLexicals__: moduleLexicals,
    });
  }
  let didThrow = false;
  let thrownError;
  function execute() {
    if (optFunctor) {
      // uninitialized
      const functor = optFunctor;
      optFunctor = null;
      // initializing - call with `this` of `undefined`.
      try {
        functor(
          freeze({
            imports: freeze(imports),
            onceVar: freeze(onceVar),
            liveVar: freeze(liveVar),
            import: dynamicImport,
            importMeta,
          }),
        );
      } catch (e) {
        didThrow = true;
        thrownError = e;
      }
      // initialized
    }
    if (didThrow) {
      throw thrownError;
    }
  }

  return freeze({
    notifiers,
    exportsProxy,
    execute,
  });
};$h͏_once.makeModuleInstance(makeModuleInstance);
})()
,
// === 49. ses ./src/module-link.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,makeModuleInstance,makeVirtualModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isPrimitive,mapGet,mapHas,mapSet,weakmapGet;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-instance.js", [["makeModuleInstance",[$h͏_a => (makeModuleInstance = $h͏_a)]],["makeVirtualModuleInstance",[$h͏_a => (makeVirtualModuleInstance = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]]]]]);



















const { Fail, quote: q } = assert;

// `link` creates `ModuleInstances` and `ModuleNamespaces` for a module and its
// transitive dependencies and connects their imports and exports.
// After linking, the resulting working set is ready to be executed.
// The linker only concerns itself with module namespaces that are objects with
// property descriptors for their exports, which the Compartment proxies with
// the actual `ModuleNamespace`.
       const link = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
) => {
  const { name: compartmentName, moduleRecords } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const moduleRecord = mapGet(moduleRecords, moduleSpecifier);
  if (moduleRecord === undefined) {
    throw ReferenceError(
      `Missing link to module ${q(moduleSpecifier)} from compartment ${q(
        compartmentName,
      )}`,
    );
  }

  // Mutual recursion so there's no confusion about which
  // compartment is in context: the module record may be in another
  // compartment, denoted by moduleRecord.compartment.
  // eslint-disable-next-line no-use-before-define
  return instantiate(compartmentPrivateFields, moduleAliases, moduleRecord);
};$h͏_once.link(link);

function mayBePrecompiledModuleSource(moduleSource) {
  return typeof moduleSource.__syncModuleProgram__ === 'string';
}

function validatePrecompiledModuleSource(moduleSource, moduleSpecifier) {
  const { __fixedExportMap__, __liveExportMap__ } = moduleSource;
  !isPrimitive(__fixedExportMap__) ||
    Fail`Property '__fixedExportMap__' of a precompiled module source must be an object, got ${q(
      __fixedExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
  !isPrimitive(__liveExportMap__) ||
    Fail`Property '__liveExportMap__' of a precompiled module source must be an object, got ${q(
      __liveExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
}

function mayBeVirtualModuleSource(moduleSource) {
  return typeof moduleSource.execute === 'function';
}

function validateVirtualModuleSource(moduleSource, moduleSpecifier) {
  const { exports } = moduleSource;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' of a virtual module source must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
}

function validateModuleSource(moduleSource, moduleSpecifier) {
  !isPrimitive(moduleSource) ||
    Fail`Invalid module source: must be of type object, got ${q(
      moduleSource,
    )}, for module ${q(moduleSpecifier)}`;
  const { imports, exports, reexports = [] } = moduleSource;
  isArray(imports) ||
    Fail`Invalid module source: 'imports' must be an array, got ${q(
      imports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(reexports) ||
    Fail`Invalid module source: 'reexports' must be an array if present, got ${q(
      reexports,
    )}, for module ${q(moduleSpecifier)}`;
}

       const instantiate = (
  compartmentPrivateFields,
  moduleAliases,
  moduleRecord,
) => {
  const { compartment, moduleSpecifier, resolvedImports, moduleSource } =
    moduleRecord;
  const { instances } = weakmapGet(compartmentPrivateFields, compartment);

  // Memoize.
  if (mapHas(instances, moduleSpecifier)) {
    return mapGet(instances, moduleSpecifier);
  }

  validateModuleSource(moduleSource, moduleSpecifier);

  const importedInstances = new Map();
  let moduleInstance;
  if (mayBePrecompiledModuleSource(moduleSource)) {
    validatePrecompiledModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeModuleInstance(
      compartmentPrivateFields,
      moduleAliases,
      moduleRecord,
      importedInstances,
    );
  } else if (mayBeVirtualModuleSource(moduleSource)) {
    validateVirtualModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeVirtualModuleInstance(
      compartmentPrivateFields,
      moduleSource,
      compartment,
      moduleAliases,
      moduleSpecifier,
      resolvedImports,
    );
  } else {
    throw TypeError(`Invalid module source, got ${q(moduleSource)}`);
  }

  // Memoize.
  mapSet(instances, moduleSpecifier, moduleInstance);

  // Link dependency modules.
  for (const [importSpecifier, resolvedSpecifier] of entries(resolvedImports)) {
    const importedInstance = link(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      resolvedSpecifier,
    );
    mapSet(importedInstances, importSpecifier, importedInstance);
  }

  return moduleInstance;
};$h͏_once.instantiate(instantiate);
})()
,
// === 50. ses ./src/compartment.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables",[$h͏_a => (setGlobalObjectSymbolUnscopables = $h͏_a)]],["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["assertEqual",[$h͏_a => (assertEqual = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load",[$h͏_a => (load = $h͏_a)]],["loadNow",[$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link",[$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);




































































/**
 * @import {ImportHook, ImportMetaHook, ImportNowHook, ModuleDescriptor, ModuleExportsNamespace, ModuleMap, ModuleMapHook, ResolveHook, ModuleSource, CompartmentOptions} from '../types.js'
 * @import {Transform} from './lockdown.js'
 * @import {DeferredExports} from './module-proxy.js'
 */

/**
 * Associates every public module exports namespace with its corresponding
 * compartment and specifier so they can be used to link modules across
 * compartments. The mechanism to thread an alias is to use the
 * {@link Compartment.module} function to obtain the exports namespace of a foreign
 * module and pass it into another compartment's `moduleMap` constructor option
 * @type {WeakMap<ModuleExportsNamespace, Compartment>}
 *
 */
const moduleAliases = new WeakMap();

/**
 * Private fields for `Compartment` instances
 * @typedef {object} CompartmentFields
 * @property {string} name
 * @property {object} globalObject
 * @property {Array<Transform>} globalTransforms
 * @property {(source: string, options?: {localTransforms?: Array<Transform>}) => void} safeEvaluate
 * @property {ResolveHook} resolveHook
 * @property {ImportHook} importHook
 * @property {ImportNowHook} importNowHook
 * @property {ModuleMap} moduleMap
 * @property {ModuleMapHook} moduleMapHook
 * @property {ImportMetaHook} importMetaHook
 * @property {Map<string, ModuleSource>} moduleRecords
 * @property {Array<Transform>} __shimTransforms__
 * @property {DeferredExports} deferredExports
 * @property {Map<string, ModuleDescriptor>} instances
 * @property {Compartment} [parentCompartment]
 * @property {boolean} noNamespaceBox
 * @property {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} compartmentImport
 * @property {boolean} [noAggregateLoadErrors]
 */

/**
 * Captures the private state for each {@link Compartment}
 * @type {WeakMap<Compartment, CompartmentFields>}
 */
const privateFields = new WeakMap();

       const InertCompartment = function Compartment(
  _endowments = {},
  _modules = {},
  _options = {},
) {
  throw TypeError(
    'Compartment.prototype.constructor is not a valid constructor.',
  );
};

/**
 * @param {Compartment} compartment
 * @param {string} specifier
 * @returns {{namespace: ModuleExportsNamespace}}
 */$h͏_once.InertCompartment(InertCompartment);
const compartmentImportNow = (compartment, specifier) => {
  const { execute, exportsProxy } = link(
    privateFields,
    moduleAliases,
    compartment,
    specifier,
  );
  execute();
  return exportsProxy;
};

/** @type {Compartment & {constructor: typeof InertCompartment}} */
       const CompartmentPrototype = {
  constructor: InertCompartment,

  get globalThis() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .globalObject;
  },

  get name() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .name;
  },

  evaluate(source, options = {}) {
    const compartmentFields = weakmapGet(privateFields, this);
    return compartmentEvaluate(compartmentFields, source, options);
  },

  module(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of module() must be a string');
    }

    const { exportsProxy } = getDeferredExports(
      this,
      weakmapGet(privateFields, this),
      moduleAliases,
      specifier,
    );

    return exportsProxy;
  },

  async import(specifier) {
    const { noNamespaceBox, noAggregateLoadErrors } =
      /** @type {CompartmentFields} */ (weakmapGet(privateFields, this));

    if (typeof specifier !== 'string') {
      throw TypeError('first argument of import() must be a string');
    }

    return promiseThen(
      load(privateFields, moduleAliases, this, specifier, {
        noAggregateErrors: noAggregateLoadErrors,
      }),
      () => {
        // The namespace box is a contentious design and likely to be a breaking
        // change in an appropriately numbered future version.
        const namespace = compartmentImportNow(
          /** @type {Compartment} */ (this),
          specifier,
        );
        if (noNamespaceBox) {
          return namespace;
        }
        // Legacy behavior: box the namespace object so that thenable modules
        // do not get coerced into a promise accidentally.
        return { namespace };
      },
    );
  },

  async load(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of load() must be a string');
    }

    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    return load(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
  },

  importNow(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of importNow() must be a string');
    }
    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    loadNow(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
    return compartmentImportNow(/** @type {Compartment} */ (this), specifier);
  },
};

// This causes `String(new Compartment())` to evaluate to `[object Compartment]`.
// The descriptor follows the conventions of other globals with @@toStringTag
// properties, e.g. Math.
$h͏_once.CompartmentPrototype(CompartmentPrototype);defineProperties(CompartmentPrototype,{
  [toStringTagSymbol]: {
    value: 'Compartment',
    writable: false,
    enumerable: false,
    configurable: true,
  },
});

defineProperties(InertCompartment, {
  prototype: { value: CompartmentPrototype },
});

/**
 * @callback MakeCompartmentConstructor
 * @param {MakeCompartmentConstructor} targetMakeCompartmentConstructor
 * @param {Record<string, any>} intrinsics
 * @param {(object: object) => void} markVirtualizedNativeFunction
 * @param {object} [options]
 * @param {Compartment} [options.parentCompartment]
 * @param {boolean} [options.enforceNew]
 * @returns {Compartment['constructor']}
 */

/**
 * "Options bag"-style `Compartment` constructor arguments.
 * @typedef {[options?: CompartmentOptions & { __options__: true }]} CompartmentOptionsArgs
 */

/**
 * Legacy `Compartment` constructor arguments.
 *
 * @deprecated
 * @typedef {[globals?: Map<string, any>, modules?: Map<string, ModuleDescriptor>, options?: CompartmentOptions]} LegacyCompartmentOptionsArgs
 */

/**
 * In order to facilitate migration from the deprecated signature of the
 * compartment constructor,
 *
 * `new Compartent(globals?, modules?, options?)`
 *
 * to the new signature:
 *
 * `new Compartment(options?)`
 *
 * ...where globals and modules are expressed in the options bag instead of
 * positional arguments, this function detects the temporary sigil __options__
 * on the first argument and coerces compartments arguments into a single
 * compartments object.
 * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
 * @returns {CompartmentOptions}
 */
       const compartmentOptions = (...args) => {
  if (args.length === 0) {
    return {};
  }
  if (
    args.length === 1 &&
    typeof args[0] === 'object' &&
    args[0] !== null &&
    '__options__' in args[0]
  ) {
    const { __options__, ...options } = args[0];
    assert(
      __options__ === true,
      `Compartment constructor only supports true __options__ sigil, got ${__options__}`,
    );
    return options;
  } else {
    const [
      globals = /** @type {Map<string, any>} */ ({}),
      modules = /** @type {Map<string, ModuleDescriptor>} */ ({}),
      options = {},
    ] = /** @type {LegacyCompartmentOptionsArgs} */ (args);
    assertEqual(
      options.modules,
      undefined,
      `Compartment constructor must receive either a module map argument or modules option, not both`,
    );
    assertEqual(
      options.globals,
      undefined,
      `Compartment constructor must receive either globals argument or option, not both`,
    );
    return {
      ...options,
      globals,
      modules,
    };
  }
};

/** @type {MakeCompartmentConstructor} */$h͏_once.compartmentOptions(compartmentOptions);
       const makeCompartmentConstructor = (
  targetMakeCompartmentConstructor,
  intrinsics,
  markVirtualizedNativeFunction,
  { parentCompartment = undefined, enforceNew = false } = {},
) => {
  /**
   *
   * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
   */
  function Compartment(...args) {
    if (enforceNew && new.target === undefined) {
      throw TypeError(
        "Class constructor Compartment cannot be invoked without 'new'",
      );
    }

    // Extract options, and shallow-clone transforms.
    const {
      name = '<unknown>',
      transforms = [],
      __shimTransforms__ = [],
      globals: endowmentsOption = {},
      modules: moduleMapOption = {},
      resolveHook,
      importHook,
      importNowHook,
      moduleMapHook,
      importMetaHook,
      __noNamespaceBox__: noNamespaceBox = false,
      noAggregateLoadErrors = false,
    } = compartmentOptions(...args);
    const globalTransforms = arrayFlatMap(
      [transforms, __shimTransforms__],
      identity,
    );
    const endowments = { __proto__: null, ...endowmentsOption };
    const moduleMap = { __proto__: null, ...moduleMapOption };

    // Map<FullSpecifier, ModuleCompartmentRecord>
    const moduleRecords = new Map();
    // Map<FullSpecifier, ModuleInstance>
    const instances = new Map();
    // Map<FullSpecifier, {ExportsProxy, ProxiedExports, activate()}>
    const deferredExports = new Map();

    const globalObject = {};

    const compartment = this;

    setGlobalObjectSymbolUnscopables(globalObject);

    // We must initialize all constant properties first because
    // `makeSafeEvaluator` may use them to create optimized bindings
    // in the evaluator.
    // TODO: consider merging into a single initialization if internal
    // evaluator is no longer eagerly created
    setGlobalObjectConstantProperties(globalObject);

    const { safeEvaluate } = makeSafeEvaluator({
      globalObject,
      globalTransforms,
      sloppyGlobalsMode: false,
    });

    setGlobalObjectMutableProperties(globalObject, {
      intrinsics,
      newGlobalPropertyNames: sharedGlobalPropertyNames,
      makeCompartmentConstructor: targetMakeCompartmentConstructor,
      parentCompartment: this,
      markVirtualizedNativeFunction,
    });

    // TODO: maybe add evalTaming to the Compartment constructor 3rd options?
    setGlobalObjectEvaluators(
      globalObject,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );

    assign(globalObject, endowments);

    /**
     * In support dynamic import in a module source loaded by this compartment,
     * like `await import(importSpecifier)`, induces this compartment to import
     * a module, returning a promise for the resulting module exports
     * namespace.
     * Unlike `compartment.import`, never creates a box object for the
     * namespace as that behavior is deprecated and inconsistent with the
     * standard behavior of dynamic import.
     * Obliges the caller to resolve import specifiers to their corresponding
     * full specifier.
     * That is, every module must have its own dynamic import function that
     * closes over the surrounding module's full module specifier and calls
     * through to this function.
     * @param {string} fullSpecifier - A full specifier is a key in the
     * compartment's module memo.
     * The method `compartment.import` accepts a full specifier, but dynamic
     * import accepts an import specifier and resolves it to a full specifier
     * relative to the calling module's full specifier.
     * @returns {Promise<ModuleExportsNamespace>}
     */
    const compartmentImport = async fullSpecifier => {
      if (typeof resolveHook !== 'function') {
        throw TypeError(
          `Compartment does not support dynamic import: no configured resolveHook for compartment ${q(name)}`,
        );
      }
      await load(privateFields, moduleAliases, compartment, fullSpecifier, {
        noAggregateErrors: noAggregateLoadErrors,
      });
      const { execute, exportsProxy } = link(
        privateFields,
        moduleAliases,
        compartment,
        fullSpecifier,
      );
      execute();
      return exportsProxy;
    };

    weakmapSet(privateFields, this, {
      name: `${name}`,
      globalTransforms,
      globalObject,
      safeEvaluate,
      resolveHook,
      importHook,
      importNowHook,
      moduleMap,
      moduleMapHook,
      importMetaHook,
      moduleRecords,
      __shimTransforms__,
      deferredExports,
      instances,
      parentCompartment,
      noNamespaceBox,
      compartmentImport,
      noAggregateLoadErrors,
    });
  }

  Compartment.prototype = CompartmentPrototype;

  return Compartment;
};$h͏_once.makeCompartmentConstructor(makeCompartmentConstructor);
})()
,
// === 51. ses ./src/get-anonymous-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,assign,AsyncGeneratorFunctionInstance,ArrayBuffer,InertCompartment;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["Float32Array",[$h͏_a => (Float32Array = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["iterateArray",[$h͏_a => (iterateArray = $h͏_a)]],["iterateMap",[$h͏_a => (iterateMap = $h͏_a)]],["iterateSet",[$h͏_a => (iterateSet = $h͏_a)]],["iterateString",[$h͏_a => (iterateString = $h͏_a)]],["matchAllRegExp",[$h͏_a => (matchAllRegExp = $h͏_a)]],["matchAllSymbol",[$h͏_a => (matchAllSymbol = $h͏_a)]],["regexpPrototype",[$h͏_a => (regexpPrototype = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]],["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]]]],["./compartment.js", [["InertCompartment",[$h͏_a => (InertCompartment = $h͏_a)]]]]]);





















/**
 * Object.getConstructorOf()
 * Helper function to improve readability, similar to Object.getPrototypeOf().
 *
 * @param {object} obj
 */
function getConstructorOf(obj) {
  return getPrototypeOf(obj).constructor;
}

// getAnonymousIntrinsics uses a utility function to construct an arguments
// object, since it cannot have one of its own and also be a const export.
function makeArguments() {
  // eslint-disable-next-line prefer-rest-params
  return arguments;
}

/**
 * getAnonymousIntrinsics()
 * Get the intrinsics not otherwise reachable by named own property
 * traversal from the global object.
 *
 * @returns {object}
 */
       const getAnonymousIntrinsics = () => {
  const InertFunction = FERAL_FUNCTION.prototype.constructor;

  // 9.2.4.1 %ThrowTypeError%

  const argsCalleeDesc = getOwnPropertyDescriptor(makeArguments(), 'callee');
  const ThrowTypeError = argsCalleeDesc && argsCalleeDesc.get;

  // 21.1.5.2 The %StringIteratorPrototype% Object

  // eslint-disable-next-line no-new-wrappers
  const StringIteratorObject = iterateString(new String());
  const StringIteratorPrototype = getPrototypeOf(StringIteratorObject);

  // 21.2.7.1 The %RegExpStringIteratorPrototype% Object
  const RegExpStringIterator =
    regexpPrototype[matchAllSymbol] && matchAllRegExp(/./);
  const RegExpStringIteratorPrototype =
    RegExpStringIterator && getPrototypeOf(RegExpStringIterator);

  // 22.1.5.2 The %ArrayIteratorPrototype% Object

  // eslint-disable-next-line no-array-constructor
  const ArrayIteratorObject = iterateArray([]);
  const ArrayIteratorPrototype = getPrototypeOf(ArrayIteratorObject);

  // 22.2.1 The %TypedArray% Intrinsic Object

  const TypedArray = getPrototypeOf(Float32Array);

  // 23.1.5.2 The %MapIteratorPrototype% Object

  const MapIteratorObject = iterateMap(new Map());
  const MapIteratorPrototype = getPrototypeOf(MapIteratorObject);

  // 23.2.5.2 The %SetIteratorPrototype% Object

  const SetIteratorObject = iterateSet(new Set());
  const SetIteratorPrototype = getPrototypeOf(SetIteratorObject);

  // 25.1.2 The %IteratorPrototype% Object

  const IteratorPrototype = getPrototypeOf(ArrayIteratorPrototype);

  // 25.2.1 The GeneratorFunction Constructor

  // eslint-disable-next-line no-empty-function
  function* GeneratorFunctionInstance() {}
  const GeneratorFunction = getConstructorOf(GeneratorFunctionInstance);

  // 25.2.3 Properties of the GeneratorFunction Prototype Object

  const Generator = GeneratorFunction.prototype;

  // 25.7.1 The AsyncFunction Constructor

  // eslint-disable-next-line no-empty-function
  async function AsyncFunctionInstance() {}
  const AsyncFunction = getConstructorOf(AsyncFunctionInstance);

  const intrinsics = {
    '%InertFunction%': InertFunction,
    '%ArrayIteratorPrototype%': ArrayIteratorPrototype,
    '%InertAsyncFunction%': AsyncFunction,
    '%Generator%': Generator,
    '%InertGeneratorFunction%': GeneratorFunction,
    '%IteratorPrototype%': IteratorPrototype,
    '%MapIteratorPrototype%': MapIteratorPrototype,
    '%RegExpStringIteratorPrototype%': RegExpStringIteratorPrototype,
    '%SetIteratorPrototype%': SetIteratorPrototype,
    '%StringIteratorPrototype%': StringIteratorPrototype,
    '%ThrowTypeError%': ThrowTypeError,
    '%TypedArray%': TypedArray,
    '%InertCompartment%': InertCompartment,
  };

  if (AsyncGeneratorFunctionInstance !== undefined) {
    // 25.3.1 The AsyncGeneratorFunction Constructor

    const AsyncGeneratorFunction = getConstructorOf(
      AsyncGeneratorFunctionInstance,
    );

    // 25.3.2.2 AsyncGeneratorFunction.prototype
    const AsyncGenerator = AsyncGeneratorFunction.prototype;
    // 25.5.1 Properties of the AsyncGenerator Prototype Object
    const AsyncGeneratorPrototype = AsyncGenerator.prototype;
    const AsyncIteratorPrototype = getPrototypeOf(AsyncGeneratorPrototype);

    assign(intrinsics, {
      '%AsyncGenerator%': AsyncGenerator,
      '%InertAsyncGeneratorFunction%': AsyncGeneratorFunction,
      '%AsyncGeneratorPrototype%': AsyncGeneratorPrototype,
      '%AsyncIteratorPrototype%': AsyncIteratorPrototype,
    });
  }

  if (globalThis.Iterator) {
    intrinsics['%IteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from([]).take(0),
    );
    intrinsics['%WrapForValidIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from({
        next() {
          return { value: undefined };
        },
      }),
    );
  }

  if (globalThis.AsyncIterator) {
    intrinsics['%AsyncIteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from([]).take(0),
    );
    intrinsics['%WrapForValidAsyncIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from({ next() {} }),
    );
  }

  const ab = new ArrayBuffer(0);
  // eslint-disable-next-line @endo/no-polymorphic-call
  const iab = ab.sliceToImmutable();
  const iabProto = getPrototypeOf(iab);
  if (iabProto !== ArrayBuffer.prototype) {
    // In a native implementation, these will be the same prototype
    intrinsics['%ImmutableArrayBufferPrototype%'] = iabProto;
  }

  return intrinsics;
};$h͏_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
})()
,
// === 52. ses ./src/tame-harden.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]]]]]);


/** @import {Harden} from '../types.js'; */

/** @type {(safeHarden: Harden, hardenTaming: 'safe' | 'unsafe') => Harden} */
       const tameHarden = (safeHarden, hardenTaming) => {
  if (hardenTaming === 'safe') {
    return safeHarden;
  }

  // In on the joke
  Object.isExtensible = () => false;
  Object.isFrozen = () => true;
  Object.isSealed = () => true;
  Reflect.isExtensible = () => false;

  // @ts-expect-error secret property
  if (safeHarden.isFake) {
    // The "safe" hardener is already a fake hardener.
    // Just use it.
    return safeHarden;
  }

  const fakeHarden = arg => arg;
  fakeHarden.isFake = true;
  return freeze(fakeHarden);
};$h͏_once.tameHarden(tameHarden);
freeze(tameHarden);
})()
,
// === 53. ses ./src/tame-symbol-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["functionBind",[$h͏_a => (functionBind = $h͏_a)]]]]]);









/**
 * This taming provides a tamed alternative to the original `Symbol` constructor
 * that starts off identical, except that all its properties are "temporarily"
 * configurable. The original `Symbol` constructor remains unmodified on
 * the start compartment's global. The tamed alternative is used as the shared
 * `Symbol` constructor on constructed compartments.
 *
 * Starting these properties as configurable assumes two succeeding phases of
 * processing: A permit enforcement phase, that
 * removes all properties not on the permits (which requires them to be
 * configurable) and a global hardening step that freezes all primordials,
 * returning these properties to their expected non-configurable status.
 *
 * The ses shim is constructed to eventually enable vetted shims to run between
 * repair and global hardening. However, such vetted shims would normally
 * run in the start compartment, which continues to use the original unmodified
 * `Symbol`, so they should not normally be affected by the temporary
 * configurability of these properties.
 *
 * Note that the spec refers to the global `Symbol` function as the
 * ["Symbol Constructor"](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-symbol-constructor)
 * even though it has a call behavior (can be called as a function) and does not
 * not have a construct behavior (cannot be called with `new`). Accordingly,
 * to tame it, we must replace it with a function without a construct
 * behavior.
 */
       const tameSymbolConstructor = () => {
  const OriginalSymbol = Symbol;
  const SymbolPrototype = OriginalSymbol.prototype;

  // Bypass Hermes bug, fixed in: https://github.com/facebook/hermes/commit/00f18c89c720e1c34592bb85a1a8d311e6e99599
  // Make a "copy" of the primordial [Symbol "constructor"](https://tc39.es/ecma262/#sec-symbol-description) which maintains all observable behavior. The primordial explicitly throws on `[[Construct]]` and has a `[[Call]]` which ignores the receiver. Binding also maintains the `toString` source as a native function. The `name` is restored below when copying own properties.
  const SharedSymbol = functionBind(Symbol, undefined);

  defineProperties(SymbolPrototype, {
    constructor: {
      value: SharedSymbol
      // leave other `constructor` attributes as is
    },
  });

  const originalDescsEntries = entries(
    getOwnPropertyDescriptors(OriginalSymbol),
  );
  const descs = fromEntries(
    arrayMap(originalDescsEntries, ([name, desc]) => [
      name,
      { ...desc, configurable: true },
    ]),
  );
  defineProperties(SharedSymbol, descs);

  return { '%SharedSymbol%': SharedSymbol };
};$h͏_once.tameSymbolConstructor(tameSymbolConstructor);
})()
,
// === 54. ses ./src/tame-faux-data-properties.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






const throws = thunk => {
  try {
    thunk();
    return false;
  } catch (er) {
    return true;
  }
};

/**
 * Exported for convenience of unit testing. Harmless, but not expected
 * to be useful by itself.
 *
 * @param {any} obj
 * @param {string|symbol} prop
 * @param {any} expectedValue
 * @returns {boolean}
 * Returns whether `tameFauxDataProperty` turned the property in question
 * from an apparent faux data property into the actual data property it
 * seemed to emulate.
 * If this function returns `false`, then we hope no effects happened.
 * However, sniffing out if an accessor property seems to be a faux data
 * property requires invoking the getter and setter functions that might
 * possibly have side effects.
 * `tameFauxDataProperty` is not in a position to tell.
 */
       const tameFauxDataProperty = (obj, prop, expectedValue) => {
  if (obj === undefined) {
    // The object does not exist in this version of the platform
    return false;
  }
  const desc = getOwnPropertyDescriptor(obj, prop);
  if (!desc || 'value' in desc) {
    // The property either doesn't exist, or is already an actual data property.
    return false;
  }
  const { get, set } = desc;
  if (typeof get !== 'function' || typeof set !== 'function') {
    // A faux data property has both a getter and a setter
    return false;
  }
  if (get() !== expectedValue) {
    // The getter called by itself should produce the expectedValue
    return false;
  }
  if (apply(get, obj, []) !== expectedValue) {
    // The getter called with `this === obj` should also return the
    // expectedValue.
    return false;
  }
  const testValue = 'Seems to be a setter';
  const subject1 = { __proto__: null };
  apply(set, subject1, [testValue]);
  if (subject1[prop] !== testValue) {
    // The setter called with an unrelated object as `this` should
    // set the property on the object.
    return false;
  }
  const subject2 = { __proto__: obj };
  apply(set, subject2, [testValue]);
  if (subject2[prop] !== testValue) {
    // The setter called on an object that inherits from `obj` should
    // override the property from `obj` as if by assignment.
    return false;
  }
  if (!throws(() => apply(set, obj, [expectedValue]))) {
    // The setter called with `this === obj` should throw without having
    // caused any effect.
    // This is the test that has the greatest danger of leaving behind some
    // persistent side effect. The most obvious one is to emulate a
    // successful assignment to the property. That's why this test
    // uses `expectedValue`, so that case is likely not to actually
    // change anything.
    return false;
  }
  if ('originalValue' in get) {
    // The ses-shim uniquely, as far as we know, puts an `originalValue`
    // property on the getter, so that reflect property tranversal algorithms,
    // like `harden`, will traverse into the enulated value without
    // calling the getter. That does not happen until `permits-intrinsics.js`
    // which is much later. So if we see one this early, we should
    // not assume we understand what's going on.
    return false;
  }

  // We assume that this code runs before any untrusted code runs, so
  // we do not need to worry about the above conditions passing because of
  // malicious intent. In fact, it runs even before vetted shims are supposed
  // to run, between repair and hardening. Given that, after all these tests
  // pass, we have adequately validated that the property in question is
  // an accessor function whose purpose is suppressing the override mistake,
  // i.e., enabling a non-writable property to be overridden by assignment.
  // In that case, here we *temporarily* turn it into the data property
  // it seems to emulate, but writable so that it does not trigger the
  // override mistake while in this temporary state.

  // For those properties that are also listed in `enablements.js`,
  // that phase will re-enable override for these properties, but
  // via accessor functions that SES controls, so we know what they are
  // doing. In addition, the getter functions installed by
  // `enable-property-overrides.js` have an `originalValue` field
  // enabling meta-traversal code like harden to visit the original value
  // without calling the getter.

  if (desc.configurable === false) {
    // Even though it seems to be a faux data property, we're unable to fix it.
    return false;
  }

  // Many of the `return false;` cases above plausibly should be turned into
  // errors, or an least generate warnings. However, for those, the checks
  // following this phase are likely to signal an error anyway.

  // At this point, we have passed all our sniff checks for validating that
  // it seems to be a faux data property with the expected value. Turn
  // it into the actual data property it emulates, but writable so there is
  // not yet an override mistake problem.

  defineProperty(obj, prop, {
    value: expectedValue,
    writable: true,
    enumerable: desc.enumerable,
    configurable: true,
  });

  return true;
};

/**
 * In JavaScript, the so-called "override mistake" is the inability to
 * override an inherited non-writable data property by assignment. A common
 * workaround is to instead define an accessor property that acts like
 * a non-writable data property, except that it allows an object that
 * inherits this property to override it by assignment. Let's call
 * an access property that acts this way a "faux data property". In this
 * ses-shim, `enable-property-overrides.js` makes the properties listed in
 * `enablements.js` into faux data properties.
 *
 * But the ses-shim is not alone in use of this trick. Starting with the
 * [Iterator Helpers proposal](https://github.com/tc39/proposal-iterator-helpers),
 * some properties are defined as (what we call) faux data properties.
 * Some of these are new properties (`Interator.prototype.constructor`) and
 * some are old data properties converted to accessor properties
 * (`Iterator.prototype[String.toStringTag]`). So the ses-shim needs to be
 * prepared for some enumerated set of properties to already be faux data
 * properties in the platform prior to our initialization.
 *
 * For these possible faux data properties, it is important that
 * `permits.js` describe each as a data property, so that it can further
 * constrain the apparent value (that allegedly would be returned by the
 * getter) according to its own permits.
 *
 * However, at the time of this writing, the precise behavior specified
 * by the iterator-helpers proposal for these faux data properties is
 * novel. We should not be too confident that all further such platform
 * additions do what we would now expect. So, for each of these possible
 * faux data properties, we do some sniffing to see if it behaves as we
 * currently expect a faux data property to act. If not, then
 * `tameFauxDataProperties` tries not to modify it, leaving it to later
 * checks, especially `permits-intrinsics.js`, to error when it sees an
 * unexpected accessor.
 *
 * If one of these enumerated accessor properties does seem to be
 * a faithful faux data property, then `tameFauxDataProperties` itself
 * *tempoarily* turns it into the actual data property that it seems to emulate.
 * This data property starts as writable, so that in this state it will
 * not trigger the override mistake, i.e., assignment to an object inheriting
 * this property is allowed to succeed at overriding this property.
 *
 * For those properties that should be a faux data property rather than an
 * actual one, such as those from the iterator-helpers proposal,
 * they should be listed as such in `enablements.js`, so
 * `enable-property-overrides.js` will turn it back into a faux data property.
 * But one controlled by the ses-shim, whose behavior we understand.
 *
 * `tameFauxDataProperties`, which turns these into actual data properties,
 * happens during the `repairIntrinsics` phase
 * of `lockdown`, before even vetted shim are supposed to run.
 * `enable-property-overrides.js` runs after vetted shims, turning the
 * appropriate ones back into faux data properties. Thus vetted shims
 * can observe the possibly non-conforming state where these are temporarily
 * actual data properties, rather than faux data properties.
 *
 * Coordinate the property enumeration here
 * with `enablements.js`, so the appropriate properties are
 * turned back to faux data properties.
 *
 * @param {Record<any,any>} intrinsics
 */$h͏_once.tameFauxDataProperty(tameFauxDataProperty);
       const tameFauxDataProperties = intrinsics => {
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    'constructor',
    intrinsics.Iterator,
  );
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    toStringTagSymbol,
    'Iterator',
  );
};$h͏_once.tameFauxDataProperties(tameFauxDataProperties);
})()
,
// === 55. ses ./src/tame-regenerator-runtime.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let defineProperty,iteratorPrototype,iteratorSymbol,hasOwn;$h͏_imports([["./commons.js", [["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype",[$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);






       const tameRegeneratorRuntime = () => {
  const iter = iteratorPrototype[iteratorSymbol];
  defineProperty(iteratorPrototype, iteratorSymbol, {
    configurable: true,
    get() {
      return iter;
    },
    set(value) {
      // ignore the assignment on IteratorPrototype
      if (this === iteratorPrototype) return;
      if (hasOwn(this, iteratorSymbol)) {
        this[iteratorSymbol] = value;
      }
      defineProperty(this, iteratorSymbol, {
        value,
        writable: true,
        enumerable: true,
        configurable: true,
      });
    },
  });
};$h͏_once.tameRegeneratorRuntime(tameRegeneratorRuntime);
})()
,
// === 56. ses ./src/shim-arraybuffer-transfer.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype",[$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice",[$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength",[$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array",[$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet",[$h͏_a => (typedArraySet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);











       const shimArrayBufferTransfer = () => {
  if (typeof arrayBufferPrototype.transfer === 'function') {
    // Assume already exists so does not need to be shimmed.
    // Such conditional shimming is ok in this case since ArrayBuffer.p.transfer
    // is already officially part of JS.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
  }
  const clone = globalThis.structuredClone;
  if (typeof clone !== 'function') {
    // On a platform with neither `Array.prototype.transfer`
    // nor `structuredClone`, this shim does nothing.
    // For example, Node <= 16 has neither.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
    // TODO Rather than doing nothing, should the endo ses-shim throw
    // in this case?
    // throw TypeError(
    //   `Can only shim missing ArrayBuffer.prototype.transfer on a platform with "structuredClone"`,
    // );
    // For example, endo no longer supports Node <= 16. All browsers have
    // `structuredClone`. XS has `Array.prototype.transfer`. Are there still
    // any platforms without both that Endo should still support?
    // What about Hermes?
  }

  /**
   * @type {ThisType<ArrayBuffer>}
   */
  const methods = {
    /**
     * @param {number} [newLength]
     */
    transfer(newLength = undefined) {
      // Using this builtin getter also ensures that `this` is a genuine
      // ArrayBuffer.
      const oldLength = arrayBufferGetByteLength(this);
      if (newLength === undefined || newLength === oldLength) {
        return clone(this, { transfer: [this] });
      }
      if (typeof newLength !== 'number') {
        throw TypeError(`transfer newLength if provided must be a number`);
      }
      if (newLength > oldLength) {
        const result = new ArrayBuffer(newLength);
        const taOld = new Uint8Array(this);
        const taNew = new Uint8Array(result);
        typedArraySet(taNew, taOld);
        // Using clone only to detach, and only after the copy succeeds
        clone(this, { transfer: [this] });
        return result;
      } else {
        const result = arrayBufferSlice(this, 0, newLength);
        // Using clone only to detach, and only after the slice succeeds
        clone(this, { transfer: [this] });
        return result;
      }
    },
  };

  defineProperty(arrayBufferPrototype, 'transfer', {
    // @ts-expect-error
    value: methods.transfer,
    writable: true,
    enumerable: false,
    configurable: true,
  });

  // Empty object because this shim has nothing for `addIntrinsics` to add.
  return {};
};$h͏_once.shimArrayBufferTransfer(shimArrayBufferTransfer);
})()
,
// === 57. ses ./src/reporting.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);


/**
 * @import {Reporter, GroupReporter} from './reporting-types.js'
 */

/* eslint-disable @endo/no-polymorphic-call */
/**
 * To address https://github.com/endojs/endo/issues/2908,
 * the `consoleReporter` uses the current `console` rather
 * than the original one.
 *
 * @type {GroupReporter}
 */
const consoleReporter = {
  warn(...args) {
    globalThis.console.warn(...args);
  },
  error(...args) {
    globalThis.console.error(...args);
  },
  ...(globalThis.console?.groupCollapsed
    ? {
        groupCollapsed(...args) {
          globalThis.console.groupCollapsed(...args);
        },
      }
    : undefined),
  ...(globalThis.console?.groupEnd
    ? {
        groupEnd() {
          globalThis.console.groupEnd();
        },
      }
    : undefined),
};
/* eslint-enable @endo/no-polymorphic-call */

/**
 * Creates a suitable reporter for internal errors and warnings out of the
 * Node.js console.error to ensure all messages go to stderr, including the
 * group label.
 * Accounts for the extra space introduced by console.error as a delimiter
 * between the indent and subsequent arguments.
 *
 * @param {(...message: Array<any>) => void} print
 */
const makeReportPrinter = print => {
  let indent = false;
  /** @param {Array<any>} args */
  const printIndent = (...args) => {
    if (indent) {
      print(' ', ...args);
    } else {
      print(...args);
    }
  };
  return /** @type {GroupReporter} */ ({
    warn(...args) {
      printIndent(...args);
    },
    error(...args) {
      printIndent(...args);
    },
    groupCollapsed(...args) {
      assert(!indent);
      print(...args);
      indent = true;
    },
    groupEnd() {
      indent = false;
    },
  });
};

const mute = () => {};

/**
 * @param {"platform" | "console" | "none"} reporting
 */
       const chooseReporter = reporting => {
  if (reporting === 'none') {
    return makeReportPrinter(mute);
  }
  if (globalThis.console !== undefined) {
    if (
      reporting === 'console' || // asks for console explicitly
      globalThis.window === globalThis || // likely on browser
      globalThis.importScripts !== undefined // likely on worker
    ) {
      // reporter just delegates directly to the current console
      return consoleReporter;
    }
    assert(reporting === 'platform');
    // On Node.js, we send all feedback to stderr, regardless of purported level.
    // This uses `consoleReporter.error` instead of `console.error` because we
    // want the constructed reporter to use the `console.error` of the current
    // `console`, not the `console` that was installed when the reporter
    // was created.
    return makeReportPrinter(consoleReporter.error);
  }
  if (globalThis.print !== undefined) {
    return makeReportPrinter(globalThis.print);
  }
  return makeReportPrinter(mute);
};

/**
 * @param {string} groupLabel
 * @param {GroupReporter} console
 * @param {(internalConsole: Reporter) => void} callback
 */$h͏_once.chooseReporter(chooseReporter);
       const reportInGroup = (groupLabel, console, callback) => {
  const { warn, error, groupCollapsed, groupEnd } = console;
  const grouping = groupCollapsed && groupEnd;
  let groupStarted = false;
  try {
    return callback({
      warn(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        warn(...args);
      },
      error(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        error(...args);
      },
    });
  } finally {
    if (grouping && groupStarted) {
      groupEnd();
      groupStarted = false;
    }
  }
};$h͏_once.reportInGroup(reportInGroup);
})()
,
// === 58. ses ./src/lockdown.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);































































/** @import {LockdownOptions} from '../types.js' */

const { Fail, details: X, quote: q } = assert;

/** @type {Error=} */
let priorRepairIntrinsics;

/** @type {Error=} */
let priorHardenIntrinsics;

// Build a harden() with an empty fringe.
// Gate it on lockdown.
/**
 * @template T
 * @param {T} ref
 * @returns {T}
 */
const safeHarden = makeHardener();

/**
 * @callback Transform
 * @param {string} source
 * @returns {string}
 */

/**
 * @callback CompartmentConstructor
 * @param {object} endowments
 * @param {object} moduleMap
 * @param {object} [options]
 * @param {Array<Transform>} [options.transforms]
 * @param {Array<Transform>} [options.__shimTransforms__]
 */

// TODO https://github.com/endojs/endo/issues/814
// Lockdown currently allows multiple calls provided that the specified options
// of every call agree.  With experience, we have observed that lockdown should
// only ever need to be called once and that simplifying lockdown will improve
// the quality of audits.

const probeHostEvaluators = () => {
  let functionAllowed;
  try {
    functionAllowed = FERAL_FUNCTION('return true')();
  } catch (_error) {
    // We reach here if the Function() constructor is outright forbidden by a
    // strict Content Security Policy (containing either a `default-src` or a
    // `script-src` directive), not been implemented in the host, or the host
    // is configured to throw an exception instead of `new Function`.
    functionAllowed = false;
  }

  let evalAllowed;
  try {
    evalAllowed = FERAL_EVAL('true');
  } catch (_error) {
    // We reach here if `eval` is outright forbidden by a strict Content Security Policy,
    // not implemented in the host, or the host is configured to throw an exception.
    // We allow this for SES usage that delegates the responsibility to isolate
    // guest code to production code generation.
    evalAllowed = false;
  }

  let directEvalAllowed;
  if (functionAllowed && evalAllowed) {
    directEvalAllowed = FERAL_FUNCTION(
      'eval',
      'SES_changed',
      `\
        eval("SES_changed = true");
        return SES_changed;
      `,
    )(FERAL_EVAL, false);
    // If we get here and SES_changed stayed false, that means the eval was sloppy
    // and indirect, which generally creates a new global.
    // We are going to throw an exception for failing to initialize SES, but
    // good neighbors clean up.
    if (!directEvalAllowed) {
      delete globalThis.SES_changed;
    }
  }

  return { functionAllowed, evalAllowed, directEvalAllowed };
};

/**
 * @param {LockdownOptions} [options]
 */
       const repairIntrinsics = (options = {}) => {
  // First time, absent options default to 'safe'.
  // Subsequent times, absent options default to first options.
  // Thus, all present options must agree with first options.
  // Reconstructing `option` here also ensures that it is a well
  // behaved record, with only own data properties.
  //
  // The `overrideTaming` is not a safety issue. Rather it is a tradeoff
  // between code compatibility, which is better with the `'moderate'`
  // setting, and tool compatibility, which is better with the `'min'`
  // setting. See
  // https://github.com/Agoric/SES-shim/blob/master/packages/ses/README.md#enabling-override-by-assignment)
  // for an explanation of when to use which.
  //
  // The `stackFiltering` is not a safety issue. Rather it is a tradeoff
  // between relevance and completeness of the stack frames shown on the
  // console. Setting`stackFiltering` to `'verbose'` applies no filters, providing
  // the raw stack frames that can be quite verbose. Setting
  // `stackFrameFiltering` to`'concise'` limits the display to the stack frame
  // information most likely to be relevant, eliminating distracting frames
  // such as those from the infrastructure. However, the bug you're trying to
  // track down might be in the infrastructure, in which case the `'verbose'` setting
  // is useful. See
  // [`stackFiltering` options](https://github.com/Agoric/SES-shim/blob/master/packages/ses/docs/lockdown.md#stackfiltering-options)
  // for an explanation.

  const {
    errorTaming = /** @type {'safe' | 'unsafe' | 'unsafe-debug'} */ (
      getenv('LOCKDOWN_ERROR_TAMING', 'safe', ['unsafe', 'unsafe-debug'])
    ),
    errorTrapping = /** @type {'platform' | 'none' | 'report' | 'abort' | 'exit'} */ (
      getenv('LOCKDOWN_ERROR_TRAPPING', 'platform', [
        'none',
        'report',
        'abort',
        'exit',
      ])
    ),
    reporting = /** @type {'platform' | 'console' | 'none'} */ (
      getenv('LOCKDOWN_REPORTING', 'platform', ['console', 'none'])
    ),
    unhandledRejectionTrapping = /** @type {'none' | 'report'} */ (
      getenv('LOCKDOWN_UNHANDLED_REJECTION_TRAPPING', 'report', ['none'])
    ),
    regExpTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_REGEXP_TAMING', 'safe', ['unsafe'])
    ),
    localeTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_LOCALE_TAMING', 'safe', ['unsafe'])
    ),
    consoleTaming = /** @type {'unsafe' | 'safe'} */ (
      getenv('LOCKDOWN_CONSOLE_TAMING', 'safe', ['unsafe'])
    ),
    overrideTaming = /** @type {'moderate' | 'min' | 'severe'} */ (
      getenv('LOCKDOWN_OVERRIDE_TAMING', 'moderate', ['min', 'severe'])
    ),
    stackFiltering = /** @type {'concise' | 'omit-frames' | 'shorten-paths' | 'verbose'} */ (
      getenv('LOCKDOWN_STACK_FILTERING', 'concise', [
        'omit-frames',
        'shorten-paths',
        'verbose',
      ])
    ),
    domainTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_DOMAIN_TAMING', 'safe', ['unsafe'])
    ),
    evalTaming = /** @type {'safe-eval' | 'unsafe-eval' | 'no-eval'} */ (
      getenv('LOCKDOWN_EVAL_TAMING', 'safe-eval', [
        'unsafe-eval',
        'no-eval',
        // deprecated
        'safeEval',
        'unsafeEval',
        'noEval',
      ])
    ),
    overrideDebug = /** @type {string[]} */ (
      arrayFilter(
        stringSplit(getenv('LOCKDOWN_OVERRIDE_DEBUG', ''), ','),
        /** @param {string} debugName */
        debugName => debugName !== '',
      )
    ),
    legacyRegeneratorRuntimeTaming = /** @type {'safe' | 'unsafe-ignore'} */ (
      getenv('LOCKDOWN_LEGACY_REGENERATOR_RUNTIME_TAMING', 'safe', [
        'unsafe-ignore',
      ])
    ),
    __hardenTaming__ = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_HARDEN_TAMING', 'safe', ['unsafe'])
    ),
    dateTaming, // deprecated
    mathTaming, // deprecated
    ...extraOptions
  } = options;

  // Assert that only supported options were passed.
  // Use Reflect.ownKeys to reject symbol-named properties as well.
  const extraOptionsNames = ownKeys(extraOptions);
  extraOptionsNames.length === 0 ||
    Fail`lockdown(): non supported option ${q(extraOptionsNames)}`;

  const reporter = chooseReporter(reporting);
  const { warn } = reporter;

  if (dateTaming !== undefined) {
    warn(
      `SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }
  if (mathTaming !== undefined) {
    warn(
      `SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }

  priorRepairIntrinsics === undefined ||
    // eslint-disable-next-line @endo/no-polymorphic-call
    assert.fail(
      X`Already locked down at ${priorRepairIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
      TypeError,
    );
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
  priorRepairIntrinsics = TypeError('Prior lockdown (SES_ALREADY_LOCKED_DOWN)');
  // Tease V8 to generate the stack string and release the closures the stack
  // trace retained:
  priorRepairIntrinsics.stack;

  const { functionAllowed, evalAllowed, directEvalAllowed } =
    probeHostEvaluators();

  if (
    directEvalAllowed === false &&
    evalTaming === 'safe-eval' &&
    (functionAllowed || evalAllowed)
  ) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DIRECT_EVAL.md
    throw TypeError(
      "SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct eval (dynamically scoped eval) (SES_DIRECT_EVAL)",
    );
  }

  /**
   * Because of packagers and bundlers, etc, multiple invocations of lockdown
   * might happen in separate instantiations of the source of this module.
   * In that case, each one sees its own `firstOptions` variable, so the test
   * above will not detect that lockdown has already happened. We
   * unreliably test some telltale signs that lockdown has run, to avoid
   * trying to lock down a locked down environment. Although the test is
   * unreliable, this is consistent with the SES threat model. SES provides
   * security only if it runs first in a given realm, or if everything that
   * runs before it is SES-aware and cooperative. Neither SES nor anything
   * can protect itself from corrupting code that runs first. For these
   * purposes, code that turns a realm into something that passes these
   * tests without actually locking down counts as corrupting code.
   *
   * The specifics of what this tests for may change over time, but it
   * should be consistent with any setting of the lockdown options.
   */
  const seemsToBeLockedDown = () => {
    return (
      globalThis.Function.prototype.constructor !== globalThis.Function &&
      // @ts-ignore harden is absent on globalThis type def.
      typeof globalThis.harden === 'function' &&
      // @ts-ignore lockdown is absent on globalThis type def.
      typeof globalThis.lockdown === 'function' &&
      globalThis.Date.prototype.constructor !== globalThis.Date &&
      typeof globalThis.Date.now === 'function' &&
      // @ts-ignore does not recognize that Date constructor is a special
      // Function.
      // eslint-disable-next-line @endo/no-polymorphic-call
      is(globalThis.Date.prototype.constructor.now(), NaN)
    );
  };

  if (seemsToBeLockedDown()) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_MULTIPLE_INSTANCES.md
    throw TypeError(
      `Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)`,
    );
  }

  /**
   * 1. TAME powers & gather intrinsics first.
   */

  tameDomains(domainTaming);

  // Replace Function.prototype.toString with one that recognizes
  // shimmed functions as honorary native functions.
  const markVirtualizedNativeFunction = tameFunctionToString();

  const { addIntrinsics, completePrototypes, finalIntrinsics } =
    makeIntrinsicsCollector(reporter);

  const tamedHarden = tameHarden(safeHarden, __hardenTaming__);
  addIntrinsics({ harden: tamedHarden });

  addIntrinsics(tameFunctionConstructors());

  addIntrinsics(tameDateConstructor());
  addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
  addIntrinsics(tameMathObject());
  addIntrinsics(tameRegExpConstructor(regExpTaming));
  addIntrinsics(tameSymbolConstructor());
  addIntrinsics(shimArrayBufferTransfer());
  addIntrinsics(tameModuleSource());

  addIntrinsics(getAnonymousIntrinsics());

  completePrototypes();

  const intrinsics = finalIntrinsics();

  // Install Object[@harden] or abort.
  const symbolForHarden = symbolFor('harden');
  const priorHarden = intrinsics.Object[symbolForHarden];
  if (priorHarden) {
    // By convention, if a module like @endo/harden gets used before lockdown,
    // it will install itself as a non-configurable, non-writable property over
    // Object[@harden] so that versions of SES predating the introduction of
    // Object[@harden] will fail to lockdown because they cannot remove an
    // unknown intrinsic.
    // All newer versions explicitly check for Object[@harden] (here).
    // The @endo/harden implementation additionally captures a stack trace
    // where harden was first used to assist developers in tracking down the
    // hardened module that was initialized before lockdown.
    if (priorHarden.lockdownError) {
      throw priorHarden.lockdownError;
    }
    // And in the event a library installs Object[@harden] without leaving a
    // hint, we fall back to a generic lockdown error.
    throw new TypeError(
      'Cannot lockdown (repairIntrinsics) if a prior harden implementation has been used and installed. Check for libraries using @endo/harden before lockdown.',
    );
  }
  intrinsics.Object[symbolForHarden] = tamedHarden;

  const hostIntrinsics = { __proto__: null };

  // The Node.js Buffer is a derived class of Uint8Array, and as such is often
  // passed around where a Uint8Array is expected.
  if (typeof globalThis.Buffer === 'function') {
    hostIntrinsics.Buffer = globalThis.Buffer;
  }

  /**
   * Wrap console unless suppressed.
   * At the moment, the console is considered a host power in the start
   * compartment, and not a primordial. Hence it is absent from the whilelist
   * and bypasses the intrinsicsCollector.
   *
   * @type {((error: any) => string | undefined) | undefined}
   */
  let optGetStackString;
  if (errorTaming === 'safe') {
    optGetStackString = intrinsics['%InitialGetStackString%'];
  }
  const consoleRecord = tameConsole(
    consoleTaming,
    errorTrapping,
    unhandledRejectionTrapping,
    optGetStackString,
  );
  globalThis.console = /** @type {Console} */ (consoleRecord.console);

  // The untamed Node.js console cannot itself be hardened as it has mutable
  // internal properties, but some of these properties expose internal versions
  // of classes from node's "primordials" concept.
  // eslint-disable-next-line no-underscore-dangle
  if (typeof (/** @type {any} */ (consoleRecord.console)._times) === 'object') {
    // SafeMap is a derived Map class used internally by Node
    // There doesn't seem to be a cleaner way to reach it.
    hostIntrinsics.SafeMap = getPrototypeOf(
      // eslint-disable-next-line no-underscore-dangle
      /** @type {any} */ (consoleRecord.console)._times,
    );
  }

  // The default `assert` installed by `assert-shim.js` does not redact errors,
  // leaving `lockdown` or `repairIntrinsics` with the obligation to replace it
  // with a redacting version, unless the caller opts-out with errorTaming set
  // to `unsafe` or `unsafe-debug`.
  // The inverse was true through version 1.13.0, except the configuration
  // was disregarded and the redacting `assert` left in place if lexical
  // `assert` differed from `globalThis.assert`.
  // @ts-ignore assert is absent on globalThis type def.
  if (errorTaming !== 'unsafe' && errorTaming !== 'unsafe-debug') {
    globalThis.assert = makeAssert();
  }

  // Replace *Locale* methods with their non-locale equivalents
  tameLocaleMethods(intrinsics, localeTaming);

  tameFauxDataProperties(intrinsics);

  /**
   * 2. Enforce PERMITS on shared intrinsics
   */

  // Remove non-standard properties.
  // All remaining functions encountered during whitelisting are
  // branded as honorary native functions.
  reportInGroup(
    'SES Removing unpermitted intrinsics',
    reporter,
    groupReporter =>
      removeUnpermittedIntrinsics(
        intrinsics,
        markVirtualizedNativeFunction,
        groupReporter,
      ),
  );

  // Initialize the powerful initial global, i.e., the global of the
  // start compartment, from the intrinsics.

  setGlobalObjectConstantProperties(globalThis);

  setGlobalObjectMutableProperties(globalThis, {
    intrinsics,
    newGlobalPropertyNames: initialGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
  });

  if (
    evalTaming === 'no-eval' ||
    // deprecated
    evalTaming === 'noEval'
  ) {
    setGlobalObjectEvaluators(
      globalThis,
      noEvalEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'safe-eval' ||
    // deprecated
    evalTaming === 'safeEval'
  ) {
    const { safeEvaluate } = makeSafeEvaluator({ globalObject: globalThis });
    setGlobalObjectEvaluators(
      globalThis,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'unsafe-eval' ||
    // deprecated
    evalTaming === 'unsafeEval'
  ) {
    // Leave eval function and Function constructor of the initial
    // compartment intact.
    // Other compartments will not have access to these evaluators unless a
    // guest program escapes containment.
  }

  /**
   * 3. HARDEN to share the intrinsics.
   *
   * We define hardenIntrinsics here so that options are in scope, but return
   * it to the caller because we intend to eventually allow vetted shims to run
   * between repairs and the hardening of intrinsics and so we can benchmark
   * repair separately from hardening.
   */

  const hardenIntrinsics = () => {
    priorHardenIntrinsics === undefined ||
      // eslint-disable-next-line @endo/no-polymorphic-call
      assert.fail(
        X`Already locked down at ${priorHardenIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
        TypeError,
      );
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
    priorHardenIntrinsics = TypeError(
      'Prior lockdown (SES_ALREADY_LOCKED_DOWN)',
    );
    // Tease V8 to generate the stack string and release the closures the stack
    // trace retained:
    priorHardenIntrinsics.stack;

    // Circumvent the override mistake.
    // TODO consider moving this to the end of the repair phase, and
    // therefore before vetted shims rather than afterwards. It is not
    // clear yet which is better.
    // @ts-ignore enablePropertyOverrides does its own input validation
    reportInGroup('SES Enabling property overrides', reporter, groupReporter =>
      enablePropertyOverrides(
        intrinsics,
        overrideTaming,
        groupReporter,
        overrideDebug,
      ),
    );
    if (legacyRegeneratorRuntimeTaming === 'unsafe-ignore') {
      tameRegeneratorRuntime();
    }

    // Finally register and optionally freeze all the intrinsics. This
    // must be the operation that modifies the intrinsics.
    const toHarden = {
      intrinsics,
      hostIntrinsics,
      globals: {
        // Harden evaluators
        Function: globalThis.Function,
        eval: globalThis.eval,
        // @ts-ignore Compartment does exist on globalThis
        Compartment: globalThis.Compartment,

        // Harden Symbol
        Symbol: globalThis.Symbol,
      },
    };

    // Harden Symbol and properties for initialGlobalPropertyNames in the host realm
    for (const prop of getOwnPropertyNames(initialGlobalPropertyNames)) {
      toHarden.globals[prop] = globalThis[prop];
    }

    tamedHarden(toHarden);

    return tamedHarden;
  };

  return hardenIntrinsics;
};$h͏_once.repairIntrinsics(repairIntrinsics);
})()
,
// === 59. ses ./src/lockdown-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics",[$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);








/** @import {LockdownOptions} from '../types.js' */

/**
 * @param {LockdownOptions} [options]
 */
globalThis.lockdown = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  globalThis.harden = hardenIntrinsics();
};

/**
 * @param {LockdownOptions} [options]
 */
globalThis.repairIntrinsics = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  // Reveal hardenIntrinsics after repairs.
  globalThis.hardenIntrinsics = () => {
    // Reveal harden after hardenIntrinsics.
    // Harden is dangerous before hardenIntrinsics because hardening just
    // about anything will inadvertently render intrinsics irreparable.
    // Also, for modules that must work both before or after lockdown (code
    // that is portable between JS and SES), the existence of harden in global
    // scope signals whether such code should attempt to use harden in the
    // defense of its own API.
    // @ts-ignore harden not yet recognized on globalThis.
    globalThis.harden = hardenIntrinsics();
  };
};
})()
,
// === 60. ses ./src/compartment-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics",[$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);





const markVirtualizedNativeFunction = tameFunctionToString();

const muteReporter = chooseReporter('none');

// @ts-ignore Compartment is definitely on globalThis.
globalThis.Compartment = makeCompartmentConstructor(
  makeCompartmentConstructor,
  // Any reporting that would need to be done should have already been done
  // during `lockdown()`.
  // See https://github.com/endojs/endo/pull/2624#discussion_r1840979770
  getGlobalIntrinsics(globalThis, muteReporter),
  markVirtualizedNativeFunction,
  {
    enforceNew: true,
  },
);
})()
,
// === 61. ses ./src/assert-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeAssert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]]]);


globalThis.assert = makeAssert(undefined, true);
})()
,
// === 62. ses ./src/console-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger",[$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler",[$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);



// TODO possible additional exports. Some are privileged.
// export { loggedErrorHandler };
// export {
//   makeCausalConsole,
//   consoleLevelMethods,
//   consoleOtherMethods,
//   makeLoggingConsoleKit,
//   filterConsole,
//   pumpLogToConsole,
// } from './src/error/console.js';
// export { assertLogs, throwsAndLogs } from './src/error/throws-and-logs.js';

/**
 * Makes a Console like the
 * [SES causal `console`](https://github.com/endojs/endo/blob/master/packages/ses/src/error/README.md)
 * but whose output is redirected to the supplied `logger` function.
 */
const makeCausalConsoleFromLoggerForSesAva =
  defineCausalConsoleFromLogger(loggedErrorHandler);

/**
 *`makeCausalConsoleFromLoggerForSesAva` is privileged because it exposes
 * unredacted error info onto the `Logger` provided by the caller. It
 * should not be made available to non-privileged code.
 *
 * Further, we consider this particular API choice to be experimental
 * and may change in the future. It is currently only intended for use by
 * `@endo/ses-ava`, with which it will be co-maintained.
 *
 * Thus, this `console-shim.js` makes `makeCausalConsoleFromLoggerForSesAva`
 * available on `globalThis` which it *assumes* is the global of the start
 * compartment and is therefore allowed to hold powers that should not be
 * available in constructed compartments. It makes it available as the value of
 * a global property named by a registered symbol named
 * `MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA`.
 *
 * Anyone accessing this, including `@endo/ses-ava`, should feature test for
 * this and be tolerant of its absence. It may indeed disappear from later
 * versions of the ses-shim.
 */
const MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA = symbolFor(
  'MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA',
);

globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA] =
  makeCausalConsoleFromLoggerForSesAva;
})()
,
// === 63. ses ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
})()
,
])()
;/*! end SES */
(()=>{var __webpack_modules__={2033(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>y});var e=__webpack_require__(123532);var t=__webpack_require__(577102);var r=__webpack_require__(848294);var n=__webpack_require__(15505);var s=__webpack_require__(18898);var i=__webpack_require__(603373);var a=__webpack_require__(118840);var o=__webpack_require__(396102);var l=__webpack_require__(392316);var c=__webpack_require__(546155);var u=__webpack_require__(180121);var h=__webpack_require__(925075);var d=__webpack_require__(71337);var f=__webpack_require__(662925);var m=__webpack_require__(993671);var p=__webpack_require__(484413);var g=__webpack_require__(994398);let y=(0,t._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,i.P)(k(e)),t.dom&&(0,d.i)(b(e,t.dom)),t.xhr&&(0,m.Mn)(_(e)),t.fetch&&(0,a.ur)(w(e)),t.history&&(0,f._)(S(e)),t.sentry&&e.on("beforeSendEvent",v(e))}}});function v(t){return function(n){if((0,e.KU)()!==t)return;(0,r.Z)({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:(0,l.$X)(n)},{event:n})}}function b(t,n){return function(i){if((0,e.KU)()!==t)return;let a;let l;let c=typeof n=="object"?n.serializeAttribute:undefined;let u=typeof n=="object"&&typeof n.maxStringLength=="number"?n.maxStringLength:undefined;u&&u>1024&&(p.T&&o.Yz.warn(`\`dom.maxStringLength\` cannot exceed ${"1024"}, but a value of ${u} was configured. Sentry will use ${"1024"} instead.`),u=1024),typeof c=="string"&&(c=[c]);try{let e=i.event;let t=T(e)?e.target:e;a=(0,s.Hd)(t,{keyAttrs:c,maxStringLength:u}),l=(0,s.xE)(t)}catch{a="<unknown>"}if(a.length===0)return;let h={category:`ui.${i.name}`,message:a};l&&(h.data={"ui.component_name":l}),(0,r.Z)(h,{event:i.event,name:i.name,global:i.global})}}function k(t){return function(n){if((0,e.KU)()!==t)return;let s={category:"console",data:{arguments:n.args,logger:"console"},level:(0,c.t)(n.level),message:(0,u.gt)(n.args," ")};if(n.level==="assert"){if(n.args[0]!==!1)return;s.message=`Assertion failed: ${(0,u.gt)(n.args.slice(1)," ")||"console.assert"}`,s.data.arguments=n.args.slice(1)}(0,r.Z)(s,{input:n.args,level:n.level})}}function _(t){return function(s){if((0,e.KU)()!==t)return;let{startTimestamp:i,endTimestamp:a}=s;let o=s.xhr[m.Er];if(!i||!a||!o)return;let{method:l,url:c,status_code:u,body:h}=o;let d={xhr:s.xhr,input:h,startTimestamp:i,endTimestamp:a};let f={category:"xhr",data:{method:l,url:c,status_code:u},type:"http",level:(0,n.X)(u)};t.emit("beforeOutgoingRequestBreadcrumb",f,d),(0,r.Z)(f,d)}}function w(t){return function(s){if((0,e.KU)()!==t)return;let{startTimestamp:i,endTimestamp:a}=s;if(!a||s.fetchData.url.match(/sentry_key/)&&s.fetchData.method==="POST")return;if(s.fetchData.method,s.fetchData.url,s.error){let e=s.fetchData;let n={data:s.error,input:s.args,startTimestamp:i,endTimestamp:a};let o={category:"fetch",data:e,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",o,n),(0,r.Z)(o,n)}else{let e=s.response;let o={...s.fetchData,status_code:e?.status};s.fetchData.request_body_size,s.fetchData.response_body_size,e?.status;let l={input:s.args,response:e,startTimestamp:i,endTimestamp:a};let c={category:"fetch",data:o,type:"http",level:(0,n.X)(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,l),(0,r.Z)(c,l)}}}function S(t){return function(n){if((0,e.KU)()!==t)return;let s=n.from;let i=n.to;let a=(0,h.Dl)(g.jf.location.href);let o=s?(0,h.Dl)(s):undefined;let l=(0,h.Dl)(i);!o?.path&&(o=a),a.protocol===l.protocol&&a.host===l.host&&(i=l.relative),a.protocol===o.protocol&&a.host===o.host&&(s=o.relative),(0,r.Z)({category:"navigation",data:{from:s,to:i}})}}function T(e){return!!e&&!!e.target}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},3321(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>r});var e=__webpack_require__(676979);let t=0;class r{constructor(){r.prototype.__init.call(this),r.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){t=(0,e.O)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let r=Math.min(this._longestInteractionList.length-1,Math.floor(((0,e.O)()-t)/50));return this._longestInteractionList[r]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType==="first-input"))return;let t=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},5152(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{rB:()=>l});var e=__webpack_require__(577102);var t=__webpack_require__(632356);var r=__webpack_require__(180121);function n(e){return(0,t.bJ)(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):undefined,keys:"keys"in e?JSON.stringify(e.keys):undefined,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):undefined}}function i(e){return e.map(e=>{return typeof e=="number"?"<array>":(0,e)}).join(".")}function a(e){let t=new Set;for(let r of e.issues){let e=i(r.path);e.length>0&&t.add(e)}let n=Array.from(t);if(n.length===0){let t="variable";if(e.issues.length>0){let r=e.issues[0];r!==undefined&&"expected"in r&&typeof r.expected=="string"&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,r.xv)(n.join(", "),100)}`}function o(e,t=!1,r,i){if(!r.exception?.values||!i.originalException||!n(i.originalException)||i.originalException.issues.length===0)return r;try{let n=(t?i.originalException.issues:i.originalException.issues.slice(0,e)).map(s);return t&&(!Array.isArray(i.attachments)&&(i.attachments=[]),i.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:n})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:a(i.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":n.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
${e.stack}`:"unknown"}}}}}let l=(0,e._C)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent(r,n){return o(t,e.saveZodIssuesAsAttachment,r,n)}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},6929(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{RV:()=>c,Wt:()=>h,gd:()=>n,nY:()=>u,qQ:()=>l,vk:()=>s,yF:()=>e});let e="?";let t=/\(error: (.*)\)/;let r=/captureMessage|captureException/;function n(...e){let r=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,s=0)=>{let a=[];let o=e.split(`
`);for(let e=n;e<o.length;e++){let n=o[e];n.length>1024&&(n=n.slice(0,1024));let i=t.test(n)?n.replace(t,"$1"):n;if(i.match(/\S*Error: /))continue;for(let e of r){let t=e(i);if(t){a.push(t);break}}if(a.length>=50+s)break}return i(a.slice(s))}}function s(e){return Array.isArray(e)?n(...e):(0,e)}function i(t){if(!t.length)return[];let n=Array.from(t);return/sentryWrapped/.test(a(n).function||"")&&n.pop(),n.reverse(),r.test(a(n).function||"")&&(n.pop(),r.test(a(n).function||"")&&n.pop()),n.slice(0,50).map(t=>({...t,filename:t.filename||a(n).filename,function:t.function||e}))}function a(e){return e[e.length-1]||{}}let o="<anonymous>";function l(e){try{if(!e||typeof e!=="function")return o;return e.name||o}catch{return o}}function c(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return undefined}}return undefined}function u(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function h(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},13623(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>o});var e=__webpack_require__(78463);var t=__webpack_require__(123532);var r=__webpack_require__(682631);var n=__webpack_require__(396102);var s=__webpack_require__(484413);var i=__webpack_require__(994398);let a="sentry_previous_trace";function o(n,{linkPreviousTrace:s,consistentTraceSampling:i}){let a=s==="session-storage";let o=a?u():undefined;n.on("spanStart",e=>{if((0,r.zU)(e)!==e)return;let n=(0,t.o5)().getPropagationContext();o=l(o,e,n),a&&c(o)});let d=!0;i&&n.on("beforeSampling",r=>{if(!o)return;let n=(0,t.o5)();let s=n.getPropagationContext();if(d&&s.parentSpanId){d=!1;return}n.setPropagationContext({...s,dsc:{...s.dsc,sample_rate:String(o.sampleRate),sampled:String(h(o.spanContext))},sampleRand:o.sampleRand}),r.parentSampled=h(o.spanContext),r.parentSampleRate=o.sampleRate,r.spanAttributes={...r.spanAttributes,[e.Ef]:o.sampleRate}})}function l(t,i,a){let o=(0,r.et)(i);function l(){try{return Number(a.dsc?.sample_rate)??Number(o.data?.[e.sy])}catch{return 0}}let c={spanContext:i.spanContext(),startTimestamp:o.start_timestamp,sampleRate:l(),sampleRand:a.sampleRand};if(!t)return c;let u=t.spanContext;return u.traceId===o.trace_id?t:(Date.now()/1e3-t.startTimestamp<=3600&&(s.T&&n.Yz.log(`Adding previous_trace \`${JSON.stringify(u)}\` link to span \`${JSON.stringify({op:o.op,...i.spanContext()})}\``),i.addLink({context:u,attributes:{[e.Lc]:"previous_trace"}}),i.setAttribute("sentry.previous_trace",`${u.traceId}-${u.spanId}-${h(u)?1:0}`)),c)}function c(e){try{i.jf.sessionStorage.setItem(a,JSON.stringify(e))}catch(e){s.T&&n.Yz.warn("Could not store previous trace in sessionStorage",e)}}function u(){try{let e=i.jf.sessionStorage?.getItem(a);return JSON.parse(e)}catch{return undefined}}function h(e){return e.traceFlags===1}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},14072(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>l});var e=__webpack_require__(931263);var t=__webpack_require__(276435);var r=__webpack_require__(377271);var n=__webpack_require__(427581);var s=__webpack_require__(658257);function i(e,t){for(let r of e){let e=r.index;if(e===undefined||!r.function)continue;if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}function a(e,t,r){for(let n of(t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens),e.choices??[]))r&&(n.delta?.content&&t.responseTexts.push(n.delta.content),n.delta?.tool_calls&&i(n.delta.tool_calls,t)),n.finish_reason&&t.finishReasons.push(n.finish_reason)}function o(r,s,i,a){if(!(r&&typeof r=="object")){s.eventTypes.push("unknown:non-object");return}if(r instanceof Error){a.setStatus({code:t.TJ,message:"internal_error"}),(0,e.Cp)(r,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in r))return;if(!n.Rb.includes(r.type)){s.eventTypes.push(r.type);return}if(i){if(r.type==="response.output_item.done"&&"item"in r&&s.responsesApiToolCalls.push(r.item),r.type==="response.output_text.delta"&&"delta"in r&&r.delta){s.responseTexts.push(r.delta);return}}if("response"in r){let{response:e}=r;s.responseId=e.id??s.responseId,s.responseModel=e.model??s.responseModel,s.responseTimestamp=e.created_at??s.responseTimestamp,e.usage&&(s.promptTokens=e.usage.input_tokens,s.completionTokens=e.usage.output_tokens,s.totalTokens=e.usage.total_tokens),e.status&&s.finishReasons.push(e.status),i&&e.output_text&&s.responseTexts.push(e.output_text)}}async function*l(e,t,n){let i={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:undefined,completionTokens:undefined,totalTokens:undefined,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let r of e)(0,s.i1)(r)?a(r,i,n):(0,s.T8)(r)&&o(r,i,n,t),yield r}finally{(0,s.Ku)(t,i.responseId,i.responseModel,i.responseTimestamp),(0,s.kw)(t,i.promptTokens,i.completionTokens,i.totalTokens),t.setAttributes({[r.Ii]:!0}),i.finishReasons.length&&t.setAttributes({[r.Bm]:JSON.stringify(i.finishReasons)}),n&&i.responseTexts.length&&t.setAttributes({[r.LO]:i.responseTexts.join("")});let e=[...Object.values(i.chatCompletionToolCalls),...i.responsesApiToolCalls];e.length>0&&t.setAttributes({[r.u2]:JSON.stringify(e)}),t.end()}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},14631(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>e});class e{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:(0,this.reason)}}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},15505(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return e===undefined?undefined:(0,e>=400&&e<500)?"warning":(0,e>=500)?"error":(0,undefined)}__webpack_require__.d(__webpack_exports__,{X:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},15797(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>e});let e="production"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},16478(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(923533);let t=function(t){return typeof t=="string"&&e.A.test(t)}}}).call(__webpack_require__._LM_("uuid",{__webpack_require__,__webpack_exports__}))()},16905(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>e,z:()=>t});let e={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};let t={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},"4001":{standard:"EIP-1193",message:"User rejected the request."},"4100":{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},"4200":{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},"4900":{standard:"EIP-1193",message:"The provider is disconnected from all chains."},"4901":{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_exports__,__webpack_require__}))()},17072(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{BP:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(260516);var n=__webpack_require__(486023);function s(s){function i(...r){e.T&&t.Yz.log("[Offline]:",...r)}return e=>{let t=s(e);if(!e.createStore)throw new Error("No `createStore` function was provided");let a=e.createStore(e);let o=5e3;let l;function c(t,n,s){return(0,r.hP)(t,["client_report"])?!1:(0,e.shouldStore)?e.shouldStore(t,n,s):(0,!0)}function u(e){l&&clearTimeout(l),typeof(l=setTimeout(async()=>{l=undefined;let e=await a.shift();e&&(i("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),d(e,!0).catch(e=>{i("Failed to retry sending",e)}))},e))!=="number"&&l.unref&&l.unref()}function h(){if(l)return;u(o),o=Math.min(o*2,36e5)}async function d(s,l=!1){if(!l&&(0,r.hP)(s,["replay_event","replay_recording"]))return await a.push(s),u(100),{};try{if(e.shouldSend&&await e.shouldSend(s)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");let r=await t.send(s);let i=100;if(r){if(r.headers?.["retry-after"])i=(0,n.FA)(r.headers["retry-after"]);else if(r.headers?.["x-sentry-rate-limits"])i=6e4;else if((r.statusCode||0)>=400)return r}return u(i),o=5e3,r}catch(e){if(await c(s,e,o))return l?await a.unshift(s):await a.push(s),h(),i("Error sending. Event queued.",e),{};throw e}}return e.flushAtStartup&&h(),{send:d,flush:e=>{return e===undefined&&(o=5e3,u(100)),t.flush(e)}}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},18898(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$N:()=>s,Hd:()=>r,xE:()=>i});var e=__webpack_require__(632356);let t=__webpack_require__(901889).O;function r(e,t={}){if(!e)return"<unknown>";try{let r=e;let s=[];let i=0;let a=0;let o=" > ".length;let l;let c=Array.isArray(t)?t:t.keyAttrs;let u=!Array.isArray(t)&&t.maxStringLength||80;while(r&&i++<5){if((l=n(r,c))==="html"||i>1&&a+s.length*o+l.length>=u)break;s.push(l),a+=l.length,r=r.parentNode}return s.reverse().join(" > ")}catch{return"<unknown>"}}function n(r,n){let s=[];if(!r?.tagName)return"";if(t.HTMLElement){if(r instanceof HTMLElement&&r.dataset){if(r.dataset["sentryComponent"])return r.dataset["sentryComponent"];if(r.dataset["sentryElement"])return r.dataset["sentryElement"]}}s.push(r.tagName.toLowerCase());let i=n?.length?n.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&s.push(`#${r.id}`);let t=r.className;if(t&&(0,e.Kg)(t))for(let e of t.split(/\s+/))s.push(`.${e}`)}for(let e of["aria-label","type","name","title","alt"]){let t=r.getAttribute(e);t&&s.push(`[${e}="${t}"]`)}return s.join("")}function s(){try{return t.document.location.href}catch{return""}}function i(e){if(!t.HTMLElement)return null;let r=e;for(let e=0;e<5;e++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset["sentryComponent"])return r.dataset["sentryComponent"];if(r.dataset["sentryElement"])return r.dataset["sentryElement"]}r=r.parentNode}return null}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},19467(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>u});var e=__webpack_require__(57324);var t=__webpack_require__(978802);var r=__webpack_require__(314408);var n=__webpack_require__(793419);var s=__webpack_require__(3321);var i=__webpack_require__(515400);var a=__webpack_require__(676979);var o=__webpack_require__(768571);var l=__webpack_require__(944117);let c=[200,500];let u=(u,h={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let d=(0,t.N)();(0,o.I)(()=>{(0,a.D)();let t=(0,r.X)("INP");let o;let f=(0,n.C)(h,s.G);let m=e=>{(0,l.k)(()=>{for(let t of e)f._processEntry(t);let r=f._estimateP98LongestInteraction();r&&r._latency!==t.value&&(t.value=r._latency,t.entries=r.entries,o())})};let p=(0,i.l)("event",m,{durationThreshold:h.durationThreshold??40});o=(0,e.R)(u,t,c,h.reportAllChanges),p&&(p.observe({type:"first-input",buffered:!0}),d.onHidden(()=>{m(p.takeRecords()),o(!0)}))})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},19727(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Bj:()=>U,DE:()=>V,Dg:()=>q,TD:()=>z,WK:()=>O,c4:()=>M,ee:()=>H,ex:()=>W,gy:()=>B,hY:()=>F,lV:()=>R,ow:()=>J,r0:()=>j,r3:()=>A,ws:()=>Y});var e=__webpack_require__(123532);var t=__webpack_require__(682631);var r=__webpack_require__(15797);var n=__webpack_require__(901889);var s=__webpack_require__(396102);var i=__webpack_require__(392316);var a=__webpack_require__(306981);var o=__webpack_require__(260516);var l=__webpack_require__(294970);var c=__webpack_require__(484413);var u=__webpack_require__(994398);let h="window"in n.O&&n.O.window===n.O&&typeof importScripts=="undefined";let d=String(0);let f=h?"main":"worker";let m=u.jf.navigator;let p="";let g="";let y="";let v=m?.userAgent||"";let b="";let k=m?.language||m?.languages?.[0]||"";function _(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}let w=m?.userAgentData;function S(e){return!("thread_metadata"in e)}function T(e){return!S(e)?e:(0,I(e))}function x(e){let t=e.contexts?.trace?.trace_id;return(typeof t=="string"&&t.length!==32&&c.T&&s.Yz.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!=="string")?"":(0,t)}function E(e,t,n,s){if(s.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n===undefined||n===null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=x(s);let l=T(n);let c=t||(typeof s.start_timestamp=="number"?s.start_timestamp*1e3:(0,a.zf)()*1e3);let h=typeof s.timestamp=="number"?s.timestamp*1e3:(0,a.zf)()*1e3;return{event_id:e,timestamp:new Date(c).toISOString(),platform:"javascript",version:"1",release:s.release||"",environment:s.environment||r.U,runtime:{name:"javascript",version:u.jf.navigator.userAgent},os:{name:p,version:g,build_number:v},device:{locale:k,model:b,manufacturer:v,architecture:y,is_emulator:!1},debug_meta:{images:L(n.resources)},profile:l,transactions:[{name:s.transaction||"",id:s.event_id||(0,i.eJ)(),trace_id:o,active_thread_id:d,relative_start_ns:"0",relative_end_ns:((h-c)*1e6).toFixed(0)}]}}function j(e,t,r){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=C(e);let s=t.getOptions();let a=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,i.eJ)(),client_sdk:{name:a?.name??"sentry.javascript.browser",version:a?.version??"0.0.0"},profiler_id:r||(0,i.eJ)(),platform:"javascript",version:"2",release:s.release??"",environment:s.environment??"production",debug_meta:{images:L(e.resources)},profile:n}}function A(e){try{if(!e||typeof e!=="object")return{reason:"chunk is not an object"};let t=e=>typeof e=="string"&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}function C(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];if(!n)continue;t[r]={function:n.name,abs_path:typeof n.resourceId=="number"?e.resources[n.resourceId]:undefined,lineno:n.line,colno:n.column}}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let s=[];let i=n;while(i)s.push(i.frameId),i=i.parentId===undefined?undefined:e.stacks[i.parentId];r[t]=s}let n=(0,a.k3)();let s=typeof performance.timeOrigin=="number"?performance.timeOrigin:n||0;let i=s-(n||s);let o=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(s+(r.timestamp-i))/1e3;o[t]={stack_id:r.stackId??0,thread_id:d,timestamp:n}}return{frames:t,stacks:r,samples:o,thread_metadata:{[d]:{name:f}}}}function M(e){return(0,t.et)(e).op==="pageload"}function I(e){let t;let r=0;let n={samples:[],stacks:[],frames:[],thread_metadata:{[d]:{name:f}}};let s=e.samples[0];if(!s)return n;let i=s.timestamp;let o=(0,a.k3)();let l=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0;let c=l-(o||l);return e.samples.forEach((s,a)=>{if(s.stackId===undefined){t===undefined&&(t=r,n.stacks[t]=[],r++),n["samples"][a]={elapsed_since_start_ns:((s.timestamp+c-i)*1e6).toFixed(0),stack_id:t,thread_id:d};return}let o=e.stacks[s.stackId];let l=[];while(o){l.push(o.frameId);let t=e.frames[o.frameId];t&&n.frames[o.frameId]===undefined&&(n.frames[o.frameId]={function:t.name,abs_path:typeof t.resourceId=="number"?e.resources[t.resourceId]:undefined,lineno:t.line,colno:t.column}),o=o.parentId===undefined?undefined:e.stacks[o.parentId]}let u={elapsed_since_start_ns:((s.timestamp+c-i)*1e6).toFixed(0),stack_id:r,thread_id:d};n["stacks"][r]=l,n["samples"][a]=u,r++}),n}function R(e,t){if(!t.length)return e;for(let r of t)e[1].push([{type:"profile"},r]);return e}function O(e){let t=[];return(0,o.yH)(e,(e,r)=>{if(r!=="transaction")return;for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t}function L(t){let r=(0,e.KU)();let n=r?.getOptions();let s=n?.stackParser;return!s?[]:(0,(0,l.i)(s,t))}function D(e){return typeof e!=="number"&&typeof e!=="boolean"||typeof e=="number"&&isNaN(e)?(c.T&&s.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):(0,e===!0||e===!1)?!0:(0,e<0||e>1)?(c.T&&s.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):(0,!0)}function N(e){return e.samples.length<2?(c.T&&s.Yz.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):(0,!e.frames.length)?(c.T&&s.Yz.log("[Profiling] Discarding profile because it contains no frames"),!1):(0,!0)}_(w)&&w.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(p=e.platform||"",y=e.architecture||"",b=e.model||"",g=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];v=`${t.brand} ${t.version}`}}).catch(e=>void 0);let P=!1;let z=3e4;function $(e){return typeof e=="function"}function q(){let e=u.jf.Profiler;if(!$(e)){c.T&&s.Yz.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(z/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){c.T&&(s.Yz.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.Yz.log("[Profiling] Disabling profiling for current user session.")),P=!0}return}function H(t){if(P)return c.T&&s.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return c.T&&s.Yz.log("[Profiling] Discarding profile because root span was not sampled."),!1;let r=(0,e.KU)();let n=r?.getOptions();if(!n)return c.T&&s.Yz.log("[Profiling] Profiling disabled, no options found."),!1;let i=n.profilesSampleRate;return!D(i)?(c.T&&s.Yz.warn("[Profiling] Discarding profile because of invalid sample rate."),!1):(0,!i)?(c.T&&s.Yz.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(0,!(i===!0?!0:Math.random()<i))?(c.T&&s.Yz.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1):(0,!0)}function F(e){if(P)return c.T&&s.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return c.T&&s.Yz.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return!D(t)?(c.T&&s.Yz.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1):(0,!t)?(c.T&&s.Yz.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(0,Math.random()<=t)}function B(e){return e.profilesSampleRate!==void 0}function U(e,t,r,n){return!N(r)?null:(0,E(e,t,r,n))}let G=new Map;function W(){return G.size}function Y(e){let t=G.get(e);return t&&G.delete(e),t}function V(e,t){if(G.set(e,t),G.size>30){let e=G.keys().next().value;e!==undefined&&G.delete(e)}}function J(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},["thread.id"]:d,["thread.name"]:f}},e.spans?.forEach(e=>{e.data={...e.data||{},["thread.id"]:d,["thread.name"]:f}})),e}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},19891(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];n==="."?e.splice(t,1):n===".."?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}__webpack_require__.d(__webpack_exports__,{P8:()=>o,V8:()=>i});let t=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function r(e){let r=e.length>1024?`<truncated>${e.slice(-1024)}`:e;let n=t.exec(r);return n?n.slice(1):[]}function n(...t){let r="";let s=!1;for(let e=t.length-1;e>=-1&&!s;e--){let n=e>=0?t[e]:"/";if(!n)continue;r=`${n}/${r}`,s=n.charAt(0)==="/"}return r=e(r.split("/").filter(e=>!!e),!s).join("/"),(s?"/":"")+r||"."}function s(e){let t=0;for(;t<e.length;t++)if(e[t]!=="")break;let r=e.length-1;for(;r>=0;r--)if(e[r]!=="")break;return t>r?[]:(0,e.slice(t,r-t+1))}function i(e,t){e=n(e).slice(1),t=n(t).slice(1);let r=s(e.split("/"));let i=s(t.split("/"));let a=Math.min(r.length,i.length);let o=a;for(let e=0;e<a;e++)if(r[e]!==i[e]){o=e;break}let l=[];for(let e=o;e<r.length;e++)l.push("..");return(l=l.concat(i.slice(o))).join("/")}function a(e){return e.charAt(0)==="/"}function o(e,t){let n=r(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},29947(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>c,s:()=>f});var e=__webpack_require__(552558);var t=undefined||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var r=undefined||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var n,s,i,a,o;let l=["clearState","addSubjectMetadata","getSubjectMetadata","trimMetadataState"];var c;var u;(u=c||(c={}))["Extension"]="extension",u["Internal"]="internal",u["Unknown"]="unknown",u["Website"]="website",u["Snap"]="snap";let h={subjectMetadata:{includeInStateLogs:!0,persist:!0,includeInDebugSnapshot:!1,usedInUi:!0}};let d={subjectMetadata:{}};class f extends e.w{constructor({messenger:e,subjectCacheLimit:c,state:u={}}){if(!Number.isInteger(c)||c<1)throw new Error(`subjectCacheLimit must be a positive integer. Received: "${c}"`);let d=t=>{return e.call("PermissionController:hasPermissions",t)};super({name:"SubjectMetadataController",metadata:h,messenger:e,state:{...t(n,n,"m",o).call(n,u,d)}}),s.set(this,void 0),i.set(this,void 0),a.set(this,void 0),r(this,a,d,"f"),r(this,s,c,"f"),r(this,i,new Set,"f"),this.messenger.registerMethodActionHandlers(this,l)}clearState(){t(this,i,"f").clear(),this.update(e=>{return{...d}})}addSubjectMetadata(e){let{origin:r}=e;let n={...e,extensionId:e.extensionId??null,iconUrl:e.iconUrl??null,name:e.name??null,subjectType:e.subjectType??null};let o=null;if(t(this,i,"f").size>=t(this,s,"f")){let e=t(this,i,"f").values().next().value;t(this,i,"f").delete(e),!t(this,a,"f").call(this,e)&&(o=e)}t(this,i,"f").add(r),this.update(e=>{e.subjectMetadata[r]=n,typeof o=="string"&&delete e.subjectMetadata[o]})}getSubjectMetadata(e){return this.state.subjectMetadata[e]}trimMetadataState(){this.update(()=>{return t(n,n,"m",o).call(n,this.state,t(this,a,"f"))})}}n=f,s=new WeakMap,i=new WeakMap,a=new WeakMap,o=function(e,t){let{subjectMetadata:r={}}=e;return{subjectMetadata:Object.keys(r).reduce((e,n)=>{return t(n)&&(e[n]=r[n]),e},{})}}}}).call(__webpack_require__._LM_("@metamask/permission-controller",{__webpack_require__,__webpack_exports__}))()},33040(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>l,Ep:()=>u,Jy:()=>h,Kk:()=>i,Tn:()=>a,WF:()=>d,kD:()=>o,rv:()=>c});var e=__webpack_require__(827284);var t=__webpack_require__(123532);var r=__webpack_require__(682631);var n=__webpack_require__(765698);var s=__webpack_require__(975431);function i(e){return typeof e=="number"&&isFinite(e)}function a(t,n,s,{...i}){let a=(0,r.et)(t).start_timestamp;return a&&a>n&&typeof t.updateStartTime=="function"&&t.updateStartTime(n),(0,e.hb)(t,()=>{let t=(0,e.Uk)({startTime:n,...i});return t&&t.end(s),t})}function o(r){let s=(0,t.KU)();if(!s)return;let{name:i,transaction:a,attributes:o,startTime:l}=r;let{release:c,environment:u,sendDefaultPii:h}=s.getOptions();let d=s.getIntegrationByName("Replay");let f=d?.getReplayId();let m=(0,t.o5)();let p=m.getUser();let g=p!==undefined?p.email||p.id||p.ip_address:undefined;let y;try{y=m.getScopeData().contexts.profile.profile_id}catch{}let v={release:c,environment:u,user:g||undefined,profile_id:y||undefined,replay_id:f||undefined,transaction:a,"user_agent.original":n.j.navigator?.userAgent,"client.address":h?"{{auto}}":undefined,...o};return(0,e.Uk)({name:i,attributes:v,startTime:l,experimental:{standalone:!0}})}function l(){return n.j.addEventListener&&n.j.performance}function c(e){return e/1e3}function u(e){let t="unknown";let r="unknown";let n="";for(let s of e){if(s==="/"){[t,r]=e.split("/");break}if(!isNaN(Number(s))){t=n==="h"?"http":n,r=e.split(n)[1];break}n+=s}return n===e&&(t=n),{name:t,version:r}}function h(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function d(e,t){let r;let n=!1;function i(e){!n&&r&&t(e,r),n=!0}(0,s.Q)(()=>{i("pagehide")});let a=e.on("beforeStartNavigationSpan",(e,t)=>{!t?.isRedirect&&(i("navigation"),a(),o())});let o=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,o()})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},39859(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>c});var e=__webpack_require__(671480);var t=__webpack_require__(665016);var r=__webpack_require__(632356);var n=__webpack_require__(943924);class s{constructor(e,r){let n;n=e||new t.H;let s;s=r||new t.H,this._stack=[{scope:n}],this._isolationScope=s}withScope(e){let t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return(0,r.Qg)(n)?n.then(e=>{return this._popScope(),e},e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:(0,!!this._stack.pop())}}function i(){let t=(0,n.EU)();let r=(0,n.Se)(t);return r.stack=r.stack||new s((0,e.r)(),(0,e.q)())}function a(e){return i().withScope(e)}function o(e,t){let r=i();return r.withScope(()=>{return r.getStackTop().scope=e,t(e)})}function l(e){return i().withScope(()=>{return e(i().getIsolationScope())})}function c(){return{withIsolationScope:l,withScope:a,withSetScope:o,withSetIsolationScope:(e,t)=>{return l(t)},getCurrentScope:()=>i().getScope(),getIsolationScope:()=>i().getIsolationScope()}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},43701(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{NG:()=>p,g:()=>m});var e=__webpack_require__(576883);var t=__webpack_require__(943924);var r=__webpack_require__(123532);var n=__webpack_require__(352158);var s=__webpack_require__(396102);var i=__webpack_require__(525162);var a=__webpack_require__(466737);var o=__webpack_require__(306981);var l=__webpack_require__(358496);var c=__webpack_require__(444284);function u(e,t,r,n=!0){r&&(n||!(t in e))&&(e[t]=r)}function h(e,t){let r=y();let n=g(e);n===undefined?r.set(e,[t]):n.length>=1e3?(p(e,n),r.set(e,[t])):r.set(e,[...n,t])}function d(e,t,r){let{release:n,environment:s}=t.getOptions();let i={...e.attributes};u(i,"user.id",r.id,!1),u(i,"user.email",r.email,!1),u(i,"user.name",r.username,!1),u(i,"sentry.release",n),u(i,"sentry.environment",s);let{name:a,version:o}=t.getSdkMetadata()?.sdk??{};u(i,"sentry.sdk.name",a),u(i,"sentry.sdk.version",o);let l=t.getIntegrationByName("Replay");let c=l?.getReplayId(!0);return u(i,"sentry.replay_id",c),c&&l?.getRecordingMode()==="buffer"&&u(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function f(t,r,n,s){let[,i]=(0,l.V)(r,n);let c=(0,a.f)(n);let u=c?c.spanContext().traceId:i?.trace_id;let h=c?c.spanContext().spanId:undefined;return{timestamp:(0,o.zf)(),trace_id:u??"",span_id:h,name:t.name,type:t.type,unit:t.unit,value:t.value,attributes:{...(0,e.SY)(s),...(0,e.SY)(t.attributes,"skip-undefined")}}}function m(e,t){let a=t?.scope??(0,r.o5)();let o=t?.captureSerializedMetric??h;let l=a?.getClient()??(0,r.KU)();if(!l){n.T&&s.Yz.warn("No client available to capture metric.");return}let{_experiments:c,enableMetrics:u,beforeSendMetric:m}=l.getOptions();if(!(u??c?.enableMetrics??!0)){n.T&&s.Yz.warn("metrics option not enabled, metric will not be captured.");return}let{user:p,attributes:g}=(0,i.Om)((0,r.rm)(),a);let y=d(e,l,p);l.emit("processMetric",y);let v=m||c?.beforeSendMetric;let b=v?v(y):y;if(!b){n.T&&s.Yz.log("`beforeSendMetric` returned `null`, will not send metric.");return}let k=f(b,l,a,g);n.T&&s.Yz.log("[Metric]",k),o(l,k),l.emit("afterCaptureMetric",b)}function p(e,t){let r=t??g(e)??[];if(r.length===0)return;let n=e.getOptions();let s=(0,c.Z)(r,n._metadata,n.tunnel,e.getDsn());y().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function g(e){return y().get(e)}function y(){return(0,t.BY)("clientToMetricBufferMap",()=>new WeakMap)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},45217(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{t:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let s=(0,t.kp)(n.Wu,(0,e.Ik)({type:(0,r.eu)(n.Z6.Spinner)}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},51450(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>t});var e=__webpack_require__(234512);let t=()=>{let t=(0,e.z)();return t?.activationStart??0}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},52018(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>d});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(713966);var n=__webpack_require__(78463);var s=__webpack_require__(396102);var i=__webpack_require__(858481);var a=__webpack_require__(682631);var o=__webpack_require__(306981);var l=__webpack_require__(98154);var c=__webpack_require__(664746);var u=__webpack_require__(468417);var h=__webpack_require__(709356);class d{constructor(e={}){this._traceId=e.traceId||(0,i.e)(),this._spanId=e.spanId||(0,i.Z)(),this._startTime=e.startTimestamp||(0,o.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[n.JD]:"manual",[n.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?a.aO:a.CC}}setAttribute(e,t){return t===undefined?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,a.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(n.i_,"custom"),this}end(e){if(this._endTime)return;this._endTime=(0,a.cI)(e),(0,c.U)(this),this._onSpanEnded()}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[n.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,a.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[n.JD],profile_id:this._attributes[n.E1],exclusive_time:this._attributes[n.jG],measurements:(0,u.$)(this._events),is_segment:this._isStandaloneSpan&&(0,a.zU)(this)===this||undefined,segment_id:this._isStandaloneSpan?(0,a.zU)(this).spanContext().spanId:undefined,links:(0,a.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,r,n){t.T&&s.Yz.log("[Tracing] Adding an event to span:",e);let i=f(r)?r:n||(0,o.zf)();let l=f(r)?{}:r||{};let c={name:e,time:(0,a.cI)(i),attributes:l};return this._events.push(c),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let n=(0,e.KU)();if(n&&n.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,a.zU)(this)))return;if(this._isStandaloneSpan){this._sampled?g((0,r.lu)([this],n)):(t.T&&s.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","span"));return}let i=this._convertSpanToTransaction();i&&((0,h.L)(this).scope||(0,e.o5)()).captureEvent(i)}_convertSpanToTransaction(){if(!m((0,a.et)(this)))return undefined;!this._name&&(t.T&&s.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:r}=(0,h.L)(this);let i=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return undefined;let o=(0,a.xO)(this).filter(e=>e!==this&&!p(e)).map(e=>(0,a.et)(e)).filter(m);let c=this._attributes[n.i_];delete this._attributes[n.Le],o.forEach(e=>{delete e.data[n.Le]});let d={contexts:{trace:(0,a.Ck)(this)},spans:o.length>1e3?o.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:r,dynamicSamplingContext:(0,l.k1)(this)},request:i,...c&&{transaction_info:{source:c}}};let f=(0,u.$)(this._events);return f&&Object.keys(f).length&&(t.T&&s.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(f,undefined,2)),d.measurements=f),d}}function f(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function m(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function p(e){return e instanceof d&&e.isStandaloneSpan()}function g(t){let r=(0,e.KU)();if(!r)return;let n=t[1];if(!n||n.length===0){r.recordDroppedEvent("before_send","span");return}r.sendEnvelope(t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},56680(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>e});let e=e=>{let t=!1;return()=>{!t&&(e(),t=!0)}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},57324(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>e});let e=(e,t,r,n)=>{let s;let i;return a=>{if(t.value>=0){if(a||n){if((i=t.value-(s??0))||s===undefined){var o;s=t.value,t.delta=i,o=t.value,t.rating=o>r[1]?"poor":(0,o>r[0])?"needs-improvement":(0,"good"),e(t)}}}}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},59824(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>o});var e=__webpack_require__(352158);var t=__webpack_require__(577102);var r=__webpack_require__(396102);var n=__webpack_require__(632356);var s=__webpack_require__(590041);var i=__webpack_require__(563023);var a=__webpack_require__(180121);let o=(0,t._C)((e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,s){let{maxValueLength:i}=s.getOptions();return l(e,n,t,r,i)}}});function l(e,t={},r,a,o){if(!t.originalException||!(0,n.bJ)(t.originalException))return e;let u=t.originalException.name||t.originalException.constructor.name;let h=c(t.originalException,a,o);if(h){let t={...e.contexts};let a=(0,s.S8)(h,r);return(0,n.Qd)(a)&&((0,i.my)(a,"__sentry_skip_normalization__",!0),t[u]=a),{...e,contexts:t}}return e}function c(t,s,i){try{let e=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"];let r={};for(let s of Object.keys(t)){if(e.indexOf(s)!==-1)continue;let o=t[s];r[s]=(0,n.bJ)(o)||typeof o=="string"?i?(0,a.xv)(`${o}`,i):`${o}`:o}if(s&&t.cause!==undefined&&((0,n.bJ)(t.cause)?r.cause={[t.cause.name||t.cause.constructor.name]:c(t.cause,!1,i)}:r.cause=t.cause),typeof t.toJSON=="function"){let e=t.toJSON();for(let t of Object.keys(e)){let s=e[t];r[t]=(0,n.bJ)(s)?s.toString():s}}return r}catch(t){e.T&&r.Yz.error("Unable to extract extra data from the Error object:",t)}return null}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},64329(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>i});var e=__webpack_require__(276435);var t=__webpack_require__(682631);var r=__webpack_require__(396102);var n=__webpack_require__(484413);var s=__webpack_require__(994398);function i(){s.jf.document?s.jf.document.addEventListener("visibilitychange",()=>{let i=(0,t.Bk)();if(!i)return;let a=(0,t.zU)(i);if(s.jf.document.hidden&&a){let s="cancelled";let{op:i,status:o}=(0,t.et)(a);n.T&&r.Yz.log(`[Tracing] Transaction: ${s} -> since tab moved to the background, op: ${i}`),!o&&a.setStatus({code:e.TJ,message:s}),a.setAttribute("sentry.cancellation_reason","document.hidden"),a.end()}}):n.T&&r.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},67912(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{w:()=>r});var e=__webpack_require__(484945);var t=__webpack_require__(378326);function r(){return!(0,e.Z)()&&Object.prototype.toString.call(t!==void 0?t:0)==="[object process]"}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},71337(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>o});var e=__webpack_require__(545407);var t=__webpack_require__(392316);var r=__webpack_require__(563023);var n=__webpack_require__(765698);let s;let i;let a;function o(t){(0,e.s5)("dom",t),(0,e.AS)("dom",l)}function l(){if(!n.j.document)return;let t=e.aj.bind(null,"dom");let s=h(t,!0);n.j.document.addEventListener("click",s,!1),n.j.document.addEventListener("keypress",s,!1),["EventTarget","Node"].forEach(e=>{let s=n.j;let i=s[e]?.prototype;if(!i?.hasOwnProperty?.("addEventListener"))return;(0,r.GS)(i,"addEventListener",function(e){return function(r,n,s){if(r==="click"||r=="keypress")try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{};let i=n[r]=n[r]||{refCount:0};if(!i.handler){let n=h(t);i.handler=n,e.call(this,r,n,s)}i.refCount++}catch{}return e.call(this,r,n,s)}}),(0,r.GS)(i,"removeEventListener",function(e){return function(t,r,n){if(t==="click"||t=="keypress")try{let r=this.__sentry_instrumentation_handlers__||{};let s=r[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,n),s.handler=undefined,delete r[t]),Object.keys(r).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}})})}function c(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}function u(e,t){return e!=="keypress"?!1:(0,!t?.tagName)?!0:(0,t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)?!1:(0,!0)}function h(e,o=!1){return l=>{if(!l||l["_sentryCaptured"])return;let h=d(l);if(u(l.type,h))return;(0,r.my)(l,"_sentryCaptured",!0),h&&!h._sentryId&&(0,r.my)(h,"_sentryId",(0,t.eJ)());let f=l.type==="keypress"?"input":l.type;!c(l)&&(e({event:l,name:f,global:o}),i=l.type,a=h?h._sentryId:undefined),clearTimeout(s),s=n.j.setTimeout(()=>{a=undefined,i=undefined},1e3)}}function d(e){try{return e.target}catch{return null}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},74342(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{qd:()=>i,wg:()=>o,y7:()=>a});var e=__webpack_require__(396102);var t=__webpack_require__(153836);var r=__webpack_require__(814601);var n=__webpack_require__(765698);let s={};function i(i){let a=s[i];if(a)return a;let o=n.j[i];if((0,t.a3)(o))return s[i]=o.bind(n.j);let l=n.j.document;if(l&&typeof l.createElement=="function")try{let e=l.createElement("iframe");e.hidden=!0,l.head.appendChild(e);let t=e.contentWindow;t?.[i]&&(o=t[i]),l.head.removeChild(e)}catch(t){r.T&&e.Yz.warn(`Could not create sandbox iframe for ${i} check, bailing to window.${i}: `,t)}return!o?o:(0,s[i]=o.bind(n.j))}function a(e){s[e]=undefined}function o(...e){return i("setTimeout")(...e)}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},78463(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E1:()=>c,Ef:()=>r,Fy:()=>m,JD:()=>s,Lc:()=>f,Le:()=>l,Sn:()=>a,Ts:()=>h,c9:()=>d,fs:()=>i,i_:()=>e,jG:()=>u,sy:()=>t,uT:()=>n,xc:()=>o});let e="sentry.source";let t="sentry.sample_rate";let r="sentry.previous_trace_sample_rate";let n="sentry.op";let s="sentry.origin";let i="sentry.idle_span_finish_reason";let a="sentry.measurement_unit";let o="sentry.measurement_value";let l="sentry.custom_span_name";let c="sentry.profile_id";let u="sentry.exclusive_time";let h="http.request.method";let d="url.full";let f="sentry.link.type";let m="gen_ai.conversation.id"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},78565(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(600473);function t(t,r){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(r)-n(t);return Math.floor(e.Ay.fromMillis(s).as("days"))}function r(e,r,n){let s={};let i=e;let a,o;for(let[l,c]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,r)=>{let n=t(e,r);return(n-n%7)/7}],["days",t]])n.indexOf(l)>=0&&(a=l,s[l]=c(e,r),(o=i.plus(s))>r?(s[l]--,(e=i.plus(s))>r&&(o=e,s[l]--,e=i.plus(s))):e=o);return[e,s,o,a]}function n(t,n,s,i){let[a,o,l,c]=r(t,n,s);let u=n-a;let h=s.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);h.length===0&&(l<n&&(l=a.plus({[c]:1})),l!==a&&(o[c]=(o[c]||0)+u/(l-a)));let d=e.Ay.fromObject(o,i);return h.length>0?e.Ay.fromMillis(u,i).shiftTo(...h).plus(d):(0,d)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},79203(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{PJ:()=>a,sg:()=>i});var e=__webpack_require__(377271);var t=__webpack_require__(663834);function r(e){if(!e||e.length===0)return null;let t=[];for(let r of e)if(r&&typeof r=="object"){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function n(e){let t=0;let r=0;let n=0;if(e.usage_metadata&&typeof e.usage_metadata=="object"){let s=e.usage_metadata;return typeof s.input_tokens=="number"&&(t=s.input_tokens),typeof s.output_tokens=="number"&&(r=s.output_tokens),typeof s.total_tokens=="number"&&(n=s.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}if(e.response_metadata&&typeof e.response_metadata=="object"){let s=e.response_metadata;if(s.tokenUsage&&typeof s.tokenUsage=="object"){let e=s.tokenUsage;typeof e.promptTokens=="number"&&(t=e.promptTokens),typeof e.completionTokens=="number"&&(r=e.completionTokens),typeof e.totalTokens=="number"&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}function s(t,r){if(r.response_metadata&&typeof r.response_metadata=="object"){let n=r.response_metadata;n.model_name&&typeof n.model_name=="string"&&t.setAttribute(e.jK,n.model_name),n.finish_reason&&typeof n.finish_reason=="string"&&t.setAttribute(e.Bm,[n.finish_reason])}}function i(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:(0,t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})))}function a(i,a,o){let l=o?.messages;if(!l||!Array.isArray(l))return;let c=a?.length??0;let u=l.length>c?l.slice(c):[];if(u.length===0)return;let h=r(u);h&&i.setAttribute(e.u2,JSON.stringify(h));let d=(0,t.B)(u);i.setAttribute(e.LO,JSON.stringify(d));let f=0;let m=0;let p=0;for(let e of u){let t=n(e);f+=t.inputTokens,m+=t.outputTokens,p+=t.totalTokens,s(i,e)}f>0&&i.setAttribute(e.v7,f),m>0&&i.setAttribute(e.kF,m),p>0&&i.setAttribute(e.$M,p)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},79931(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{zP:()=>a});var e=__webpack_require__(577102);var t=__webpack_require__(396102);var r=__webpack_require__(260516);var n=__webpack_require__(74342);var s=__webpack_require__(484413);function i(e,s){let i=(0,n.qd)("fetch");let a=0;e.on("beforeEnvelope",e=>{if(a>3){t.Yz.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",a);return}i(s,{method:"POST",body:(0,r.bN)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(a=0)},e=>{a++,t.Yz.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}let a=(0,e._C)((e={})=>{let r=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{s.T&&t.Yz.log("Using Sidecar URL",r)},processEvent:e=>o(e)?null:e,afterAllSetup:e=>{i(e,r)}}});function o(e){return Boolean(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight")))}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},87776(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{debug:()=>s,error:()=>o,fatal:()=>l,fmt:()=>t.S,info:()=>i,trace:()=>n,warn:()=>a});var e=__webpack_require__(646093);var t=__webpack_require__(598723);function r(t,r,n,s,i){(0,e.KG)({level:t,message:r,attributes:n,severityNumber:i},s)}function n(e,t,{scope:s}={}){r("trace",e,t,s)}function s(e,t,{scope:n}={}){r("debug",e,t,n)}function i(e,t,{scope:n}={}){r("info",e,t,n)}function a(e,t,{scope:n}={}){r("warn",e,t,n)}function o(e,t,{scope:n}={}){r("error",e,t,n)}function l(e,t,{scope:n}={}){r("fatal",e,t,n)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},89899(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Qb:()=>_,h$:()=>k});var e=__webpack_require__(911216);var t=__webpack_require__(276435);var r=__webpack_require__(827284);var n=__webpack_require__(78463);var s=__webpack_require__(123532);var i=__webpack_require__(676108);var a=__webpack_require__(682631);var o=__webpack_require__(944887);var l=__webpack_require__(704776);var c=__webpack_require__(18898);var u=__webpack_require__(118840);var h=__webpack_require__(180121);var d=__webpack_require__(925075);var f=__webpack_require__(821396);var m=__webpack_require__(993671);var p=__webpack_require__(847768);var g=__webpack_require__(913111);var y=__webpack_require__(453827);let v=new WeakMap;let b=new Map;let k={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function _(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:c,onRequestSpanEnd:h}={...k,...t};let f=typeof i=="function"?i:e=>!0;let p=e=>S(e,o);let g={};let _=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>{return e.type==="transaction"&&e.spans&&e.spans.forEach(e=>{if(e.op==="http.client"){let t=b.get(e.span_id);t&&(e.timestamp=t/1e3,b.delete(e.span_id))}}),e}),s&&(0,u.B$)(e=>{if(e.response){let t=v.get(e.response);t&&e.endTimestamp&&b.set(t,e.endTimestamp)}}),(0,u.ur)(e=>{let t=(0,l.v5)(e,f,p,g,{propagateTraceparent:_,onRequestSpanEnd:h});if(e.response&&e.fetchData.__span&&v.set(e.response,e.fetchData.__span),t){let r=(0,y.VZ)(e.fetchData.url);let n=r?(0,d.Dl)(r).host:undefined;t.setAttributes({"http.url":r?(0,d.zm)(r):undefined,"server.address":n}),a&&w(t),c?.(t,{headers:e.headers})}})),n&&(0,m.Mn)(e=>{let t=T(e,f,p,g,_,h);t&&(a&&w(t),c?.(t,{headers:(0,y.jy)(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function w(e){let{url:t}=(0,a.et)(e).data;if(!t||typeof t!=="string")return;let r=(0,f.wv)("resource",({entries:n})=>{n.forEach(n=>{(0,y.tB)(n)&&n.name.endsWith(t)&&(e.setAttributes((0,g.v)(n)),setTimeout(r))})})}function S(e,t){let r=(0,c.$N)();if(r){let n;let s;try{n=new URL(e,r),s=new URL(r).origin}catch{return!1}let i=n.origin===s;return!t?i:(0,(0,h.Xr)(n.toString(),t)||i&&(0,h.Xr)(n.pathname,t))}{let r=!!e.match(/^\/(?!\/)/);return!t?r:(0,(0,h.Xr)(e,t))}}function T(o,l,c,u,h,f){let g=o.xhr;let v=g?.[m.Er];if(!g||g.__sentry_own_request__||!v)return undefined;let{url:b,method:k}=v;let _=(0,i.f)()&&l(b);if(o.endTimestamp&&_){let e=g.__sentry_xhr_span_id__;if(!e)return;let r=u[e];return r&&v.status_code!==undefined&&((0,t.N8)(r,v.status_code),r.end(),f?.(r,{headers:(0,y.jy)((0,p.ti)(g)),error:o.error}),delete u[e]),undefined}let w=(0,y.VZ)(b);let S=w?(0,d.Dl)(w):(0,d.Dl)(b);let T=(0,d.zm)((0,d.f)(b));let E=!!(0,a.Bk)();let j=_&&E?(0,r.Uk)({name:`${k} ${T}`,attributes:{url:(0,d.zm)(b),type:"xhr","http.method":k,"http.url":w?(0,d.zm)(w):undefined,"server.address":S?.host,[n.JD]:"auto.http.browser",[n.uT]:"http.client",...S?.search&&{"http.query":S?.search},...S?.hash&&{"http.fragment":S?.hash}}}):new e.w;g.__sentry_xhr_span_id__=j.spanContext().spanId,u[g.__sentry_xhr_span_id__]=j,c(b)&&x(g,(0,i.f)()&&E?j:undefined,h);let A=(0,s.KU)();return A&&A.emit("beforeOutgoingRequestSpan",j,o),j}function x(e,t,r){let{"sentry-trace":n,baggage:s,traceparent:i}=(0,o.i)({span:t,propagateTraceparent:r});n&&E(e,n,s,i)}function E(e,t,r,n){let s=e.__sentry_xhr_v3__?.request_headers;if(s?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),n&&!s?.["traceparent"]&&e.setRequestHeader("traceparent",n),r){let t=s?.["baggage"];(!t||!(0,y.rb)(t))&&e.setRequestHeader("baggage",r)}}catch{}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},98154(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{HW:()=>m,LZ:()=>u,ao:()=>d,k1:()=>f});var e=__webpack_require__(15797);var t=__webpack_require__(123532);var r=__webpack_require__(78463);var n=__webpack_require__(620772);var s=__webpack_require__(381699);var i=__webpack_require__(676108);var a=__webpack_require__(563023);var o=__webpack_require__(682631);var l=__webpack_require__(709356);let c="_frozenDsc";function u(e,t){(0,a.my)(e,c,t)}function h(t,r){let n=r.getOptions();let{publicKey:i}=r.getDsn()||{};let a={environment:n.environment||e.U,release:n.release,public_key:i,trace_id:t,org_id:(0,s.ul)(r)};return r.emit("createDsc",a),a}function d(e,t){let r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function f(e){let s=(0,t.KU)();if(!s)return{};let a=(0,o.zU)(e);let u=(0,o.et)(a);let d=u.data;let f=a.spanContext().traceState;let m=f?.get("sentry.sample_rate")??d[r.sy]??d[r.Ef];function p(e){return(typeof m=="number"||typeof m=="string")&&(e.sample_rate=`${m}`),e}let g=a[c];if(g)return p(g);let y=f?.get("sentry.dsc");let v=y&&(0,n.yD)(y);if(v)return p(v);let b=h(e.spanContext().traceId,s);let k=d[r.i_];let _=u.description;return k!=="url"&&_&&(b.transaction=_),(0,i.f)()&&(b.sampled=String((0,o.pK)(a)),b.sample_rand=f?.get("sentry.sample_rand")??(0,l.L)(a).scope?.getPropagationContext().sampleRand.toString()),p(b),s.emit("createDsc",b,a),b}function m(e){let t=f(e);return(0,n.De)(t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},100209(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>a,w:()=>i});var e=__webpack_require__(115691);var t=undefined||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var r=undefined||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var n,s;(0,e.YT)();class i{constructor({messenger:i,metadata:a,name:o,state:l}){n.set(this,void 0),s.set(this,void 0),t(this,s,i,"f"),this.messenger=i,this.name=o,t(this,n,(0,e.CN)(l,!0),"f"),this.metadata=a,r(this,s,"f").registerActionHandler(`${o}:getState`,()=>this.state),r(this,s,"f").registerInitialEventPayload({eventType:`${o}:stateChange`,getPayload:()=>[this.state,[]]}),r(this,s,"f").registerInitialEventPayload({eventType:`${o}:stateChanged`,getPayload:()=>[this.state,[]]})}get state(){return r(this,n,"f")}set state(e){throw new Error(`Controller state cannot be directly mutated; use 'update' method instead.`)}update(i){let[a,o,l]=(0,e.vI)(r(this,n,"f"),i);return o.length>0&&(t(this,n,a,"f"),r(this,s,"f").publish(`${this.name}:stateChange`,a,o),r(this,s,"f").publish(`${this.name}:stateChanged`,a,o)),{nextState:a,patches:o,inversePatches:l}}applyPatches(i){let a=(0,e.$i)(r(this,n,"f"),i);t(this,n,a,"f"),r(this,s,"f").publish(`${this.name}:stateChange`,a,i),r(this,s,"f").publish(`${this.name}:stateChanged`,a,i)}destroy(){this.messenger.clearEventSubscriptions(`${this.name}:stateChange`),this.messenger.clearEventSubscriptions(`${this.name}:stateChanged`)}}function a(e,t,r,n){return Object.keys(e).reduce((s,i)=>{try{let n=t[i];if(!n)throw new Error(`No metadata found for '${String(i)}'`);let a=n[r];let o=e[i];return typeof a=="function"?s[i]=a(o):a&&(s[i]=o),s}catch(e){if(n)try{n(e instanceof Error?e:new Error(String(e)))}catch(t){console.error(new Error(`Error thrown when calling 'captureException'`),t),console.error(e)}else console.error(e);return s}},{})}n=new WeakMap,s=new WeakMap}}).call(__webpack_require__._LM_("@metamask/base-controller",{__webpack_require__,__webpack_exports__}))()},100873(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ee:()=>a,Nf:()=>i,si:()=>l});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(396102);var n=__webpack_require__(682631);let s="flag.evaluation.";function i(t){let r=(0,e.o5)().getScopeData().contexts.flags;let n=r?r.values:[];return!n.length||(t.contexts===undefined&&(t.contexts={}),t.contexts.flags={values:[...n]}),t}function a(t,r,n=100){let s=(0,e.o5)().getScopeData().contexts;!s.flags&&(s.flags={values:[]}),o(s.flags.values,t,r,n)}function o(e,n,s,i){if(typeof s!=="boolean")return;if(e.length>i){t.T&&r.Yz.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${i}`);return}let a=e.findIndex(e=>e.flag===n);a!==-1&&e.splice(a,1),e.length===i&&e.shift(),e.push({flag:n,result:s})}function l(e,t,r=10){if(typeof t!=="boolean")return;let i=(0,n.Bk)();if(!i)return;let a=(0,n.et)(i).data;if(`${s}${e}`in a){i.setAttribute(`${s}${e}`,t);return}Object.keys(a).filter(e=>e.startsWith(s)).length<r&&i.setAttribute(`${s}${e}`,t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},105557(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e({getAnalyticsState:e,log:t}){return{name:"MetaMetrics",processEvent:async(r,n,s)=>{let i=await e();return!i?.completedMetaMetricsOnboarding||!i.optedIn?(t("Event dropped as metrics disabled"),null):(i.analyticsId&&(r.user={...r.user,id:i.analyticsId}),r)}}}__webpack_require__.d(__webpack_exports__,{t:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},108120(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>r});var e=__webpack_require__(413279);var t=__webpack_require__.n(e);function r(){return!1||!t().runtime.getManifest?{}:(0,t().runtime.getManifest()._flags||{})}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},112471(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(16478);var t=[];for(var r=0;r<256;++r)t.push((r+256).toString(16).substr(1));let n=function(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var s=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!(0,e.A)(s))throw TypeError("Stringified UUID is invalid");return s}}}).call(__webpack_require__._LM_("uuid",{__webpack_require__,__webpack_exports__}))()},114765(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}__webpack_require__.d(__webpack_exports__,{G:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},115691(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw!1,Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(e){return!!e&&!!e[G]}function r(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Y}(e)||Array.isArray(e)||!!e[U]||!!((t=e.constructor)==null?void 0:t[U])||c(e)||u(e))}function n(e,t,r){void 0===r&&(r=!1),0===s(e)?(r?Object.keys:V)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function s(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:u(e)?3:0}function i(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a(e,t){return 2===s(e)?e.get(t):e[t]}function o(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e){return q&&e instanceof Map}function u(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function d(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=J(e);delete t[G];for(var r=V(t),n=0;n<r.length;n++){var s=r[n],i=t[s];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function f(e,i){return void 0===i&&(i=!1),p(e)||t(e)||!r(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),i&&n(e,function(e,t){return f(t,!0)},!0)),e}function m(){e(2)}function p(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(t){var r=K[t];return r||e(18,t),r}function y(e,t){K[e]||(K[e]=t)}function v(){return!0,z}function b(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){_(e),e.p.forEach(S),e.p=null}function _(e){e===z&&(z=e.l)}function w(e){return z={p:[],l:z,h:e,m:!0,_:0}}function S(e){var t=e[G];0===t.i||1===t.i?t.j():t.g=!0}function T(t,n){n._=n.p.length;var s=n.p[0],i=void 0!==t&&t!==s;return n.h.O||g("ES5").S(n,t,i),i?(s[G].P&&(k(n),e(4)),r(t)&&(t=x(n,t),n.l||j(n,t)),n.u&&g("Patches").M(s[G].t,t,n.u,n.s)):t=x(n,s,[]),k(n),n.u&&n.v(n.u,n.s),t!==B?t:void 0}function x(e,t,r){if(p(t))return t;var s=t[G];if(!s)return n(t,function(n,i){return E(e,s,t,n,i,r)},!0),t;if(s.A!==e)return t;if(!s.P)return j(e,s.t,!0),s.t;if(!s.I){s.I=!0,s.A._--;var i=4===s.i||5===s.i?s.o=d(s.k):s.o,a=i,o=!1;3===s.i&&(a=new Set(i),i.clear(),o=!0),n(a,function(t,n){return E(e,s,i,t,n,r,o)}),j(e,i,!1),r&&e.u&&g("Patches").N(s,r,e.u,e.s)}return s.o}function E(e,n,s,a,l,c,u){if(!1,t(l)){var h=x(e,l,c&&n&&3!==n.i&&!i(n.R,a)?c.concat(a):void 0);if(o(s,a,h),!t(h))return;e.m=!1}else u&&s.add(l);if(r(l)&&!p(l)){if(!e.h.D&&e._<1)return;x(e,l),n&&n.A.l||j(e,l)}}function j(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&f(t,r)}function A(e,t){var r=e[G];return(r?h(r):e)[t]}function C(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function I(e){e.o||(e.o=d(e.t))}function R(e,t,r){;var n,s,i,a;var o,l,h;var d=c(t)?g("MapSet").F(t,r):u(t)?g("MapSet").T(t,r):e.O?(t,r,i=s={i:(n=Array.isArray(t))?1:0,A:r?r.A:v(),P:!1,I:!1,R:{},l:r,t:t,k:null,o:null,j:null,C:!1},a=Z,n&&(i=[s],a=Q),l=(o=Proxy.revocable(i,a)).revoke,s.k=h=o.proxy,s.j=l,h):g("ES5").J(t,r);return(r?r.A:v()).p.push(d),d}function O(i){return t(i)||e(22,i),function e(t){if(!r(t))return t;var i,l=t[G],c=s(t);if(l){if(!l.P&&(l.i<4||!g("ES5").K(l)))return l.t;l.I=!0,i=L(t,c),l.I=!1}else i=L(t,c);return n(i,function(t,r){l&&a(l.t,t)===r||o(i,t,e(r))}),3===c?new Set(i):i}(i)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return d(e)}__webpack_require__.d(__webpack_exports__,{$i:()=>er,CN:()=>f,YT:()=>D,h4:()=>N,jM:()=>ee,vI:()=>et});function D(){function o(e){if(!r(e))return e;if(Array.isArray(e))return e.map(o);if(c(e))return new Map(Array.from(e.entries()).map(function(e){return[e[0],o(e[1])]}));if(u(e))return new Set(Array.from(e).map(o));var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=o(e[n]);return i(e,U)&&(t[U]=e[U]),t}function l(e){return t(e)?o(e):e}y("Patches",{$:function(t,r){return r.forEach(function(r){for(var n=r.path,i=r.op,l=t,c=0;c<n.length-1;c++){var u=s(l),h=n[c];"string"!=typeof h&&"number"!=typeof h&&(h=""+h),0!==u&&1!==u||"__proto__"!==h&&"constructor"!==h||e(24),"function"==typeof l&&"prototype"===h&&e(24),"object"!=typeof(l=a(l,h))&&e(15,n.join("/"))}var d=s(l),f=o(r.value),m=n[n.length-1];switch(i){case"replace":switch(d){case 2:return l.set(m,f);case 3:e(16);default:return l[m]=f}case"add":switch(d){case 1:return"-"===m?l.push(f):l.splice(m,0,f);case 2:return l.set(m,f);case 3:return l.add(f);default:return l[m]=f}case"remove":switch(d){case 1:return l.splice(m,1);case 2:return l.delete(m);case 3:return l.delete(r.value);default:return delete l[m]}default:e(17,i)}}),t},N:function(e,t,r,s){switch(e.i){case 0:case 4:case 2:;var o,c;return e,t,r,s,o=e.t,c=e.o,void n(e.R,function(e,n){var u=a(o,e),h=a(c,e),d=n?i(o,e)?"replace":"add":"remove";if(u!==h||"replace"!==d){var f=t.concat(e);r.push("remove"===d?{op:d,path:f}:{op:d,path:f,value:h}),s.push(d==="add"?{op:"remove",path:f}:"remove"===d?{op:"add",path:f,value:l(u)}:{op:"replace",path:f,value:l(u)})}});case 5:case 1:return function(e,t,r,n){var s=e.t,i=e.R,a=e.o;if(a.length<s.length){var o=[a,s];s=o[0],a=o[1];var c=[n,r];r=c[0],n=c[1]}for(var u=0;u<s.length;u++)if(i[u]&&a[u]!==s[u]){var h=t.concat([u]);r.push({op:"replace",path:h,value:l(a[u])}),n.push({op:"replace",path:h,value:l(s[u])})}for(var d=s.length;d<a.length;d++){var f=t.concat([d]);r.push({op:"add",path:f,value:l(a[d])})}s.length<a.length&&n.push({op:"replace",path:t.concat(["length"]),value:s.length})}(e,t,r,s);case 3:;var u,h,d;return e,t,r,s,u=e.t,h=e.o,d=0,void(u.forEach(function(e){if(!h.has(e)){var n=t.concat([d]);r.push({op:"remove",path:n,value:e}),s.unshift({op:"add",path:n,value:e})}d++}),d=0,h.forEach(function(e){if(!u.has(e)){var n=t.concat([d]);r.push({op:"add",path:n,value:e}),s.unshift({op:"remove",path:n,value:e})}d++}))}},M:function(e,t,r,n){r.push({op:"replace",path:[],value:t===B?void 0:t}),n.push({op:"replace",path:[],value:e})}})}function N(e){return e}var P,z,$="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),q="undefined"!=typeof Map,H="undefined"!=typeof Set,F="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,B=$?Symbol.for("immer-nothing"):((P={})["immer-nothing"]=!0,P),U=$?Symbol.for("immer-draftable"):"__$immer_draftable",G=$?Symbol.for("immer-state"):"__$immer_state",W="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y=""+Object.prototype.constructor,V="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,J=Object.getOwnPropertyDescriptors||function(e){var t={};return V(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},K={},Z={get:function(e,t){if(t===G)return e;var n=h(e);if(!i(n,t)){;var s,a;return e,(a=C(n,t))?"value"in a?a.value:(s=a.get)==null?void 0:s.call(e.k):void 0}var o=n[t];return e.I||!r(o)?o:o===A(e.t,t)?(I(e),e.o[t]=R(e.A.h,o,e)):o},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,r){var n=C(h(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var s=A(h(e),t),a=null==s?void 0:s[G];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(l(r,s)&&(void 0!==r||i(e.t,t)))return!0;I(e),M(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==A(e.t,t)||t in e.t?(e.R[t]=!1,I(e),M(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=h(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){e(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){e(12)}},Q={};n(Z,function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Q.deleteProperty=function(e,t){return!1,Q.set.call(this,e,t,void 0)},Q.set=function(e,t,r){return!1,Z.set.call(this,e[0],t,r,e[0])};var X=new(function(){function n(t){var n=this;this.O=F,this.D=!0,this.produce=function(t,s,i){if("function"==typeof t&&"function"!=typeof s){var a=s;return(s=t),function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.produce(e,function(e){var r;return(r=s).call.apply(r,[t,e].concat(i))})}}var o;if("function"!=typeof s&&e(6),void 0!==i&&"function"!=typeof i&&e(7),r(t)){var l=w(n),c=R(n,t,void 0),u=!0;try{o=s(c),u=!1}finally{u?k(l):_(l)}return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return b(l,i),T(e,l)},function(e){throw k(l),e}):(b(l,i),T(o,l))}if(!t||"object"!=typeof t){if(void 0===(o=s(t))&&(o=t),o===B&&(o=void 0),n.D&&f(o,!0),i){var h=[],d=[];g("Patches").M(t,o,h,d),i(h,d)}return o}e(21,t)},this.produceWithPatches=function(e,t){if("function"==typeof e)return function(t){for(var r=arguments.length,s=Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return n.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(s))})};var r,s,i=n.produce(e,t,function(e,t){r=e,s=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,s]}):[i,r,s]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var s=n.prototype;return s.createDraft=function(n){r(n)||e(8),t(n)&&(n=O(n));var s=w(this),i=R(this,n,void 0);return i[G].C=!0,_(s),i},s.finishDraft=function(e,t){var r=(e&&e[G]).A;return b(r,t),T(void 0,r)},s.setAutoFreeze=function(e){this.D=e},s.setUseProxies=function(t){t&&!F&&e(20),this.O=t},s.applyPatches=function(e,r){var n;for(n=r.length-1;n>=0;n--){var s=r[n];if(0===s.path.length&&"replace"===s.op){e=s.value;break}}n>-1&&(r=r.slice(n+1));var i=g("Patches").$;return t(e)?i(e,r):this.produce(e,function(e){return i(e,r)})},n}()),ee=X.produce,et=X.produceWithPatches.bind(X),er=(X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X));X.createDraft.bind(X),X.finishDraft.bind(X)}}).call(__webpack_require__._LM_("immer",{__webpack_exports__,__webpack_require__}))()},115726(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>M});var e=__webpack_require__(549140);var t=__webpack_require__(928751);var r=__webpack_require__(410710);var n=__webpack_require__(179687);var s=__webpack_require__(931263);var i=__webpack_require__(123532);var a=__webpack_require__(548502);var o=__webpack_require__(960767);var l=__webpack_require__(59824);var c=__webpack_require__(87776);var u=__webpack_require__(456895);__webpack_require__.n(u);var h=__webpack_require__(413279);var d=__webpack_require__.n(h);var f=__webpack_require__(480021);var m=__webpack_require__(650710);__webpack_require__.n(m);var p=__webpack_require__(108120);var g=__webpack_require__(942566);var y=__webpack_require__(659212);var v=__webpack_require__(105557);var b=__webpack_require__(735641);var k=__webpack_require__(787631);var _=__webpack_require__(499985);var w=__webpack_require__(964451);let S=(0,e.X)(f.wQ,"internal");let T="pull-request";let x=(0,g.n)(T,"13.41.0-beta.0");let E="https://3567c198f8a8412082d32655da2961d0@sentry.io/273505";let j="https://17e6db85bd66517e7c828d36f53e2f26@sentry.io/4510302346608640";let A=!!1;let C={CRYPTOCOMPARE:"cryptocompare.com",COINGECKO:"coingecko.com",ETHERSCAN:"etherscan.io",CODEFI:"codefi.network",SEGMENT:"segment.io"};function M(){if(!x)throw new Error("Missing release");return!N()?((0,f.wQ)("Skipped initialization"),undefined):((0,f.wQ)("Initializing"),(0,w.I)(),es(),P(),{...t})}function I(e){try{return(0,u.cloneDeep)(e)}catch(t){return(0,f.wQ)("Failed to clone Sentry event, using original reference",t),e}}function R(){let e=D();let t=N();return{beforeBreadcrumb:$(),beforeSend:e=>W(I(e)),beforeSendTransaction:e=>{let t=G(I(e));return U(t),t},debug:!1,dist:m.isManifestV3?"mv3":"mv2",dsn:t,environment:e,integrations:[o.s(),l.X(),a.dp({enableLongAnimationFrame:!0,shouldCreateSpanForRequest:q}),(0,v.t)({getAnalyticsState:k.kS,log:f.wQ}),...A?[(0,b.Vu)({log:f.wQ})]:[]],release:x,...A&&{tracePropagationTargets:b.dm,propagateTraceparent:!0},sendClientReports:!1,tracesSampleRate:O(t),ignoreErrors:t===j?[/.*/u]:undefined,transport:_._}}function O(e){if(e==="https://fake@sentry.io/0000000")return 1;let t=(0,p.P)();return t.sentry?.tracesSampleRate!==undefined?t.sentry.tracesSampleRate:(0,t.ci)?t.ci.branch==="main"?.015:(0,.001):(0,!1?1:(0,.005))}function L(){let{ci:e}=(0,p.P)();e?.enabled&&(s.NA("ci.enabled",e.enabled),s.NA("ci.branch",e.branch),s.NA("ci.commitHash",e.commitHash),s.NA("ci.job",e.job),s.NA("ci.matrixIndex",e.matrixIndex),s.NA("ci.prNumber",e.prNumber),e.persona&&s.NA("ci.persona",e.persona),e.testTitle&&s.NA("ci.testTitle",e.testTitle))}function D(){return"beta"=="main"?T:(0,`${T}-${"beta"}`)}function N(){let e=(0,p.P)();if(!1,e.ci?.enabled&&j)return j;if("pull-request"!=="production")return"https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/273496";if(!E)throw new Error(`Missing SENTRY_DSN environment variable in production environment`);return E}function P(){let e=R();let{dsn:t,environment:s,release:i,tracesSampleRate:a}=e;return globalThis.history??={},(0,f.wQ)("Updating client",{environment:s,dsn:t,release:i,tracesSampleRate:a}),r.s(),n.Ts(e),L(),ei(),!0}function z(e){return!e.match(/^(chrome-extension|moz-extension):\/\//u)?"":(0,e)}function $(){return e=>{if(!k.Gu)return null;let t=(0,k.Gu)();let r=(0,k.eR)(t);return!r?.completedMetaMetricsOnboarding||!r?.optedIn||e?.category==="ui.input"?null:(0,e)}}function q(e){return/^https?:\/\/(?:[\w\d.@-]+\.)?(?:sentry\.io|segment\.io|chainid\.network|acl\.execution\.metamask\.io)(?:\/|$)/u.test(e)||/^(?:chrome|moz)-extension:\/\/[^/]+\/(?:(?:snaps|_locales)\/|[0-9a-f]{8,}\.json$)/u.test(e)?!1:(0,!0)}function H(e){return e?.data?.url&&(e.data.url=z(e.data.url)),e?.data?.to&&(e.data.to=z(e.data.to)),e?.data?.from&&(e.data.from=z(e.data.from)),typeof e?.message=="string"&&(e.message=Z(e.message)),e?.data&&(e.data=Q(e.data)),e}function F(e){if(!Array.isArray(e.breadcrumbs))return;for(let t=0;t<e.breadcrumbs.length;t++)H(e.breadcrumbs[t])}let B=new Set(["sentry-tracing-init","mm-hero-painted"]);function U(e){if(!Array.isArray(e.spans))return;e.spans=e.spans.filter(e=>{let t=e?.description??e?.name;return!(e?.op==="mark"&&B.has(t))})}function G(e){return F(e),e}function W(e){try{ee(e),Y(e),V(e),F(e),X(e),er(e);let t=(0,k.Gu)();!e.extra&&(e.extra={}),!e.tags&&(e.tags={});let r=(0,w.K)();Object.assign(e.extra,{appState:t,installType:r,extensionId:d().runtime?.id}),e.tags.installType=r,e.tags.storageKind=globalThis.stateHooks?.getStorageKind?.()??"unknown"}catch(e){(0,f.wQ)("Error rewriting report",e)}return e}function Y(e){et(e,e=>{let t=e;return(t.match(/(([-.+a-zA-Z]+:\/\/)|(www\.))\S+[@:.]\S+/gu)||[]).forEach(e=>{try{let{hostname:r}=new URL(e);!Object.values(C).some(e=>r===e||r.endsWith(`.${e}`))&&(t=t.replace(e,"**"))}catch(r){t=t.replace(e,"**")}}),t})}function V(e){et(e,e=>Z(e))}let J=/0x[A-Fa-f0-9]{40}/gu;let K=[/\bT[1-9A-HJ-NP-Za-km-z]{33}\b/gu,/\bG[A-Z2-7]{55}\b/gu,/\bbc1[02-9ac-hj-np-z]{6,87}\b/gu,/\b[13][1-9A-HJ-NP-Za-km-z]{25,34}\b/gu,/\b[1-9A-HJ-NP-Za-km-z]{32,44}\b/gu];function Z(e){let t=e.replace(J,"0x**");for(let e of K)t=t.replace(e,"**");return t}function Q(e,t=new WeakMap){if(typeof e=="string")return Z(e);if(e===null||typeof e!=="object")return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=[];t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Q(e[n],t);return r}let r={};for(let n of(t.set(e,r),e instanceof Error&&(typeof e.message=="string"&&(r.message=Z(e.message)),typeof e.stack=="string"&&(r.stack=Z(e.stack))),Object.keys(e)))r[n]=Q(e[n],t);return r}function X(e){e.extra&&(e.extra=Q(e.extra)),e.contexts&&(e.contexts=Q(e.contexts))}function ee(e){et(e,e=>{let t=(0,y.A)(e);return t.indexOf("Transaction Failed: known transaction")===0&&(t="Transaction Failed: known transaction"),t})}function et(e,t){typeof e.message=="string"&&(e.message=t(e.message)),e.exception&&e.exception.values&&e.exception.values.forEach(e=>{typeof e.value=="string"&&(e.value=t(e.value))})}function er(e){e.request?.url&&(e.request.url=en(e.request.url)),e.exception&&e.exception.values&&e.exception.values.forEach(e=>{e.stacktrace&&e.stacktrace.frames.forEach(e=>{e.filename=en(e.filename)})})}function en(e){if(!globalThis.location?.origin)return e;let t=e?.split(globalThis.location.origin)[1];return!t?e:(0,`/metamask${t}`)}function es(){if(!!1)return;for(let e of["log","error"])c[e]=(...t)=>{S(t[0].replace(`Sentry Logger [${e}]: `,""),...t.slice(1))};(0,f.wQ)("Integrated logging")}function ei(){if(!!1)return;let e=i.KU();e?.on("beforeEnvelope",e=>{ea(e)&&(0,f.wQ)("Completed session",e)}),e?.on("afterSendEvent",e=>{let t=eo(e);(0,f.wQ)(t,e)}),(0,f.wQ)("Added debug listeners")}function ea(e){let t=e?.[1]?.[0]?.[0]?.type;let r=e?.[1]?.[0]?.[1]??{};return t==="session"&&r.status==="exited"}function eo(e){return e.type==="transaction"?"Trace":(0,e.level==="error")?"Error":(0,"Event")}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},118644(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>b});var e=__webpack_require__(123532);var t=__webpack_require__(931263);var r=__webpack_require__(78463);var n=__webpack_require__(276435);var s=__webpack_require__(827284);var i=__webpack_require__(187474);var a=__webpack_require__(377271);var o=__webpack_require__(550664);var l=__webpack_require__(788241);var c=__webpack_require__(166105);var u=__webpack_require__(571268);var h=__webpack_require__(736733);function d(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){if("model"in t&&typeof t.model=="string")return t.model;if("modelVersion"in t&&typeof t.modelVersion=="string")return t.modelVersion}return"unknown"}function f(e){let t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[a.qO]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[a.Sh]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[a.jO]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[a.DL]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[a.gU]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[a.FP]=e.presencePenalty),t}function m(e,t,n){let s={[a.fe]:c.bQ,[a.Rf]:(0,l.FS)(e),[r.JD]:"auto.ai.google_genai"};if(t){if(s[a.nK]=d(t,n),"config"in t&&typeof t.config=="object"&&t.config){let e=t.config;if(Object.assign(s,f(e)),"tools"in e&&Array.isArray(e.tools)){let t=e.tools.flatMap(e=>e.functionDeclarations);s[a.nn]=JSON.stringify(t)}}}else s[a.nK]=d({},n);return s}function p(e,t){let r=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&r.push(...(0,h.Qp)(t.config.systemInstruction,"system")),"history"in t&&r.push(...(0,h.Qp)(t.history,"user")),"contents"in t&&r.push(...(0,h.Qp)(t.contents,"user")),"message"in t&&r.push(...(0,h.Qp)(t.message,"user")),Array.isArray(r)&&r.length){let{systemInstructions:t,filteredMessages:n}=(0,l.oW)(r);t&&e.setAttribute(a.J9,t);let s=Array.isArray(n)?n.length:0;e.setAttributes({[a.on]:s,[a.BD]:JSON.stringify((0,o.Hz)(n))})}}function g(e,t,r){if(!t||typeof t!=="object")return;if(t.modelVersion&&e.setAttribute(a.jK,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){let r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[a.v7]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[a.kF]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[a.$M]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(e=>{return e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>typeof e.text=="string"?e.text:"").filter(e=>e.length>0).join(""):(0,"")}).filter(e=>e.length>0);r.length>0&&e.setAttributes({[a.LO]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[a.u2]:JSON.stringify(r)})}}function y(e,r,o,d){let f=r===c.HO;return new Proxy(e,{apply(e,c,y){let v=y[0];let b=m(r,v,o);let k=b[a.nK]??"unknown";let _=(0,l.FS)(r);return(0,h.g8)(r)?(0,s.nV)({name:`${_} ${k} stream-response`,op:(0,l.IT)(r),attributes:b},async s=>{try{d.recordInputs&&v&&p(s,v);let t=await e.apply(o,y);return(0,u.G)(t,s,Boolean(d.recordOutputs))}catch(e){throw s.setStatus({code:n.TJ,message:"internal_error"}),(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:r}}}),s.end(),e}}):(0,(0,s.Lk)({name:f?`${_} ${k} create`:`${_} ${k}`,op:(0,l.IT)(r),attributes:b},n=>{return d.recordInputs&&v&&p(n,v),(0,i.x)(()=>e.apply(o,y),e=>{(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:r}}})},()=>{},e=>{!f&&g(n,e,d.recordOutputs)})}))}})}function v(e,t="",r){return new Proxy(e,{get:(e,n,s)=>{let i=Reflect.get(e,n,s);let a=(0,l.Z)(t,String(n));if(typeof i=="function"&&(0,h.zW)(a)){if(a===c.HO){let t=y(i,a,e,r);return function(...e){let n=t(...e);return n&&typeof n=="object"?v(n,c.v6,r):(0,n)}}return y(i,a,e,r)}return typeof i=="function"?i.bind(e):(0,i&&typeof i=="object")?v(i,a,r):(0,i)}})}function b(t,r){let n=Boolean((0,e.KU)()?.getOptions().sendDefaultPii);return v(t,"",{recordInputs:n,recordOutputs:n,...r})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},118840(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B$:()=>l,ur:()=>o});var e=__webpack_require__(123532);var t=__webpack_require__(632356);var r=__webpack_require__(563023);var n=__webpack_require__(153836);var s=__webpack_require__(306981);var i=__webpack_require__(901889);var a=__webpack_require__(545407);function o(e,t){let r="fetch";(0,a.s5)(r,e),(0,a.AS)(r,()=>c(undefined,t))}function l(e){let t="fetch-body-resolved";(0,a.s5)(t,e),(0,a.AS)(t,()=>c(h))}function c(o,l=!1){if(l&&!(0,n.m7)())return;(0,r.GS)(i.O,"fetch",function(n){return function(...l){let c=new Error;let{method:u,url:h}=m(l);let d={args:l,fetchData:{method:u,url:h},startTimestamp:(0,s.zf)()*1e3,virtualError:c,headers:p(l)};return!o&&(0,a.aj)("fetch",{...d}),n.apply(i.O,l).then(async e=>{return o?o(e):(0,a.aj)("fetch",{...d,endTimestamp:(0,s.zf)()*1e3,response:e}),e},n=>{(0,a.aj)("fetch",{...d,endTimestamp:(0,s.zf)()*1e3,error:n}),(0,t.bJ)(n)&&n.stack===undefined&&(n.stack=c.stack,(0,r.my)(n,"framesToPop",1));let i=(0,e.KU)();let o=i?.getOptions().enhanceFetchErrorMessages??"always";if(o!==!1&&n instanceof TypeError&&(n.message==="Failed to fetch"||n.message==="Load failed"||n.message==="NetworkError when attempting to fetch resource."))try{let e=new URL(d.fetchData.url).host;o==="always"?n.message=`${n.message} (${e})`:(0,r.my)(n,"__sentry_fetch_url_host__",e)}catch{}throw n})}})}async function u(e,t){if(e?.body){let r=e.body;let n=r.getReader();let s=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3);let i=!0;while(i){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:s}=await n.read();clearTimeout(e),s&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(s),n.releaseLock(),r.cancel().then(null,()=>{})}}function h(e){let t;try{t=e.clone()}catch{return}u(t,()=>{(0,a.aj)("fetch-body-resolved",{endTimestamp:(0,s.zf)()*1e3,response:e})})}function d(e,t){return!!e&&typeof e=="object"&&!!e[t]}function f(e){return typeof e=="string"?e:(0,!e)?"":(0,d(e,"url"))?e.url:(0,e.toString)?e.toString():(0,"")}function m(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[r,n]=e;return{url:f(r),method:d(n,"method")?String(n.method).toUpperCase():(0,t.ks)(r)&&d(r,"method")?String(r.method).toUpperCase():"GET"}}let r=e[0];return{url:f(r),method:d(r,"method")?String(r.method).toUpperCase():"GET"}}function p(e){let[r,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,t.ks)(r))return new Headers(r.headers)}catch{}return}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},122411(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>c});var e=__webpack_require__(123532);var t=__webpack_require__(931263);var r=__webpack_require__(603373);var n=__webpack_require__(577102);var s=__webpack_require__(396102);var i=__webpack_require__(392316);var a=__webpack_require__(546155);var o=__webpack_require__(180121);var l=__webpack_require__(901889);let c=(0,n._C)((t={})=>{let n=t.levels||s.Ow;let i=t.handled??!0;return{name:"CaptureConsole",setup(t){if(!("console"in l.O))return;(0,r.P)(({args:r,level:s})=>{if((0,e.KU)()!==t||!n.includes(s))return;u(r,s,i)})}}});function u(r,n,s){let l=(0,a.t)(n);let c=new Error;let u={level:(0,a.t)(n),extra:{arguments:r}};(0,e.v4)(e=>{if(e.addEventProcessor(e=>{return e.logger="console",(0,i.M6)(e,{handled:s,type:"auto.core.capture_console"}),e}),n==="assert"){if(!r[0]){let t=`Assertion failed: ${(0,o.gt)(r.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",r.slice(1)),e.captureMessage(t,l,{captureContext:u,syntheticException:c})}return}let a=r.find(e=>e instanceof Error);if(a){(0,t.Cp)(a,u);return}let h=(0,o.gt)(r," ");e.captureMessage(h,l,{captureContext:u,syntheticException:c})})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},122552(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ci:()=>i,DJ:()=>m,US:()=>n,fw:()=>y,mx:()=>o,qH:()=>d,s$:()=>t,s7:()=>s,tz:()=>f,us:()=>l,xS:()=>g,zH:()=>p}),__webpack_require__(891728),__webpack_require__(512986);let e=["January","February","March","April","May","June","July","August","September","October","November","December"];let t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];let r=["J","F","M","A","M","J","J","A","S","O","N","D"];function n(n){switch(n){case"narrow":return[...r];case"short":return[...t];case"long":return[...e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let s=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];let i=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];let a=["M","T","W","T","F","S","S"];function o(e){switch(e){case"narrow":return[...a];case"short":return[...i];case"long":return[...s];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let l=["AM","PM"];let c=["Before Christ","Anno Domini"];let u=["BC","AD"];let h=["B","A"];function d(e){switch(e){case"narrow":return[...h];case"short":return[...u];case"long":return[...c];default:return null}}function f(e){return l[e.hour<12?0:1]}function m(e,t){return o(t)[e.weekday-1]}function p(e,t){return n(t)[e.month-1]}function g(e,t){return d(t)[e.year<0?0:1]}function y(e,t,r="always",n=!1){let s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};let i=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&i){let r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}let a=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=s[e],u=n?l?c[1]:c[2]||c[1]:l?s[e][0]:e;return a?`${o} ${u} ago`:`in ${o} ${u}`}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},123532(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{KU:()=>c,m6:()=>a,o5:()=>s,rB:()=>l,rm:()=>i,v4:()=>o,vn:()=>u});var e=__webpack_require__(920938);var t=__webpack_require__(943924);var r=__webpack_require__(665016);var n=__webpack_require__(858481);function s(){let r=(0,t.EU)();return(0,e.h)(r).getCurrentScope()}function i(){let r=(0,t.EU)();return(0,e.h)(r).getIsolationScope()}function a(){return(0,t.BY)("globalScope",()=>new r.H)}function o(...r){let n=(0,t.EU)();let s=(0,e.h)(n);if(r.length===2){let[e,t]=r;return!e?s.withScope(t):(0,s.withSetScope(e,t))}return s.withScope(r[0])}function l(...r){let n=(0,t.EU)();let s=(0,e.h)(n);if(r.length===2){let[e,t]=r;return!e?s.withIsolationScope(t):(0,s.withSetIsolationScope(e,t))}return s.withIsolationScope(r[0])}function c(){return s().getClient()}function u(e){let{traceId:t,parentSpanId:r,propagationSpanId:s}=e.getPropagationContext();let i={trace_id:t,span_id:s||(0,n.Z)()};return r&&(i.parent_span_id=r),i}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},124675(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>r});var e=__webpack_require__(381699);var t=__webpack_require__(260516);function r(r,{metadata:s,tunnel:i,dsn:a}){let o={event_id:r.event_id,sent_at:new Date().toISOString(),...s?.sdk&&{sdk:{name:s.sdk.name,version:s.sdk.version}},...!!i&&!!a&&{dsn:(0,e.SB)(a)}};let l=n(r);return(0,t.h4)(o,[l])}function n(e){return[{type:"user_report"},e]}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},134281(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=1e3*60;var t=1e3*60*60;var r=1e3*60*60*24;var n=1e3*60*60*24*7;var s=1e3*60*60*24*365.25;function i(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*s;case"weeks":case"week":case"w":return o*n;case"days":case"day":case"d":return o*r;case"hours":case"hour":case"hrs":case"hr":case"h":return o*t;case"minutes":case"minute":case"mins":case"min":case"m":return o*e;case"seconds":case"second":case"secs":case"sec":case"s":return o*1e3;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return undefined}}function a(n){var s=Math.abs(n);return s>=r?Math.round(n/r)+"d":(0,s>=t)?Math.round(n/t)+"h":(0,s>=e)?Math.round(n/e)+"m":(0,s>=1e3)?Math.round(n/1e3)+"s":(0,n+"ms")}function o(n){var s=Math.abs(n);return s>=r?l(n,s,r,"day"):(0,s>=t)?l(n,s,t,"hour"):(0,s>=e)?l(n,s,e,"minute"):(0,s>=1e3)?l(n,s,1e3,"second"):(0,n+" ms")}function l(e,t,r,n){return Math.round(e/r)+" "+n+(t>=r*1.5?"s":"")}module.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return i(e);if(r==="number"&&isFinite(e))return t.long?o(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}).call(__webpack_require__._LM_("mocha>ms",{module,__webpack_require__}))()},138292(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{dO:()=>a,o_:()=>n,wO:()=>i});let e={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};let t={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};let r=e.hanidec.replace(/[\[|\]]/g,"").split("");function n(n){let s=parseInt(n,10);if(!isNaN(s))return s;{s="";for(let i=0;i<n.length;i++){let a=n.charCodeAt(i);if(n[i].search(e.hanidec)!==-1)s+=r.indexOf(n[i]);else for(let e in t){let[r,n]=t[e];a>=r&&a<=n&&(s+=a-r)}}return parseInt(s,10)}}let s={};function i(){s={}}function a({numberingSystem:t},r=""){let n=t||"latn";return!s[n]&&(s[n]={}),!s[n][r]&&(s[n][r]=new RegExp(`${e[n]}${r}`)),s[n][r]}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},138716(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{DI:()=>T,QU:()=>A,U$:()=>S,bk:()=>_,c8:()=>w});var e=__webpack_require__(468417);var t=__webpack_require__(78463);var r=__webpack_require__(682631);var n=__webpack_require__(18898);var s=__webpack_require__(632356);var i=__webpack_require__(180121);var a=__webpack_require__(306981);var o=__webpack_require__(925075);var l=__webpack_require__(765698);var c=__webpack_require__(903217);var u=__webpack_require__(821396);var h=__webpack_require__(945582);var d=__webpack_require__(913111);var f=__webpack_require__(33040);var m=__webpack_require__(51450);var p=__webpack_require__(234512);var g=__webpack_require__(978802);let y=0;let v={};let b;let k;function _({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=(0,f.D)();if(n&&(0,a.k3)()){n.mark&&l.j.performance.mark("sentry-tracing-init");let s=t?(0,h.Q)(r):E();let i=j();let a=e?(0,c.D)(r):x();return()=>{s?.(),i(),a?.()}}return()=>undefined}function w(){(0,u.wv)("longtask",({entries:e})=>{let n=(0,r.Bk)();if(!n)return;let{op:s,start_timestamp:i}=(0,r.et)(n);for(let r of e){let e=(0,f.rv)((0,a.k3)()+r.startTime);let o=(0,f.rv)(r.duration);if(s==="navigation"&&i&&e<i)continue;(0,f.Tn)(n,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[t.JD]:"auto.ui.browser.metrics"}})}})}function S(){new PerformanceObserver(e=>{let n=(0,r.Bk)();if(!n)return;for(let s of e.getEntries()){if(!s.scripts[0])continue;let e=(0,f.rv)((0,a.k3)()+s.startTime);let{start_timestamp:i,op:o}=(0,r.et)(n);if(o==="navigation"&&i&&e<i)continue;let l=(0,f.rv)(s.duration);let c={[t.JD]:"auto.ui.browser.metrics"};let{invoker:u,invokerType:h,sourceURL:d,sourceFunctionName:m,sourceCharPosition:p}=s.scripts[0];c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=h,d&&(c["code.filepath"]=d),m&&(c["code.function"]=m),p!==-1&&(c["browser.script.source_char_position"]=p),(0,f.Tn)(n,e,e+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function T(){(0,u.wv)("event",({entries:e})=>{let s=(0,r.Bk)();if(!s)return;for(let r of e)if(r.name==="click"){let e=(0,f.rv)((0,a.k3)()+r.startTime);let i=(0,f.rv)(r.duration);let o={name:(0,n.Hd)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[t.JD]:"auto.ui.browser.metrics"}};let l=(0,n.xE)(r.target);l&&(o.attributes["ui.component_name"]=l),(0,f.Tn)(s,e,e+i,o)}})}function x(){return(0,u.a9)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;v["cls"]={value:e.value,unit:""},k=t},!0)}function E(){return(0,u.Pt)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;v["lcp"]={value:e.value,unit:"millisecond"},b=t},!0)}function j(){return(0,u.YG)(({metric:e})=>{if(!e.entries[e.entries.length-1])return;v["ttfb"]={value:e.value,unit:"millisecond"}})}function A(t,n){let s=(0,f.D)();let i=(0,a.k3)();if(!s?.getEntries||!i)return;let o=(0,f.rv)(i);let l=s.getEntries();let{op:c,start_timestamp:u}=(0,r.et)(t);l.slice(y).forEach(e=>{let r=(0,f.rv)(e.startTime);let s=(0,f.rv)(Math.max(0,e.duration));if(c==="navigation"&&u&&o+r<u)return;switch(e.entryType){case"navigation":{R(t,e,o);break}case"mark":case"paint":case"measure":{M(t,e,r,s,o,n.ignorePerformanceApiSpans);let i=(0,g.N)();let a=e.startTime<i.firstHiddenTime;e.name==="first-paint"&&a&&(v["fp"]={value:e.startTime,unit:"millisecond"}),e.name==="first-contentful-paint"&&a&&(v["fcp"]={value:e.startTime,unit:"millisecond"});break}case"resource":{N(t,e,e.name,r,s,o,n.ignoreResourceSpans);break}}}),y=Math.max(l.length-1,0),P(t),c==="pageload"&&(q(v),!n.recordClsOnPageloadSpan&&delete v.cls,!n.recordLcpOnPageloadSpan&&delete v.lcp,Object.entries(v).forEach(([t,r])=>{(0,e.X)(t,r.value,r.unit)}),t.setAttribute("performance.timeOrigin",o),t.setAttribute("performance.activationStart",(0,m.b)()),z(t,n)),b=undefined,k=undefined,v={}}function C(e){if(e?.entryType!=="measure")return;try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function M(e,r,n,s,a,o){if(C(r)||["mark","measure"].includes(r.entryType)&&(0,i.Xr)(r.name,o))return;let l=(0,p.z)(!1);let c=a+Math.max(n,(0,f.rv)(l?l.requestStart:0));let u=a+n;let h=u+s;let d={[t.JD]:"auto.resource.browser.metrics"};c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),I(d,r),c<=h&&(0,f.Tn)(e,c,h,{name:r.name,op:r.entryType,attributes:d})}function I(e,t){try{let r=t.detail;if(!r)return;if(typeof r=="object"){for(let[t,n]of Object.entries(r))if(n&&(0,s.sO)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(n!==undefined)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,s.sO)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}function R(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{O(e,t,n,r)}),O(e,t,"secureConnection",r,"TLS/SSL"),O(e,t,"fetch",r,"cache"),O(e,t,"domainLookup",r,"DNS"),D(e,t,r)}function O(e,r,n,s,i=n){let a=r[L(n)];let o=r[`${n}Start`];if(!o||!a)return;(0,f.Tn)(e,s+(0,f.rv)(o),s+(0,f.rv)(a),{op:`browser.${i}`,name:r.name,attributes:{[t.JD]:"auto.ui.browser.metrics",...n==="redirect"&&r.redirectCount!=null?{"http.redirect_count":r.redirectCount}:{}}})}function L(e){return e==="secureConnection"?"connectEnd":(0,e==="fetch")?"domainLookupStart":(0,`${e}End`)}function D(e,r,n){let s=n+(0,f.rv)(r.requestStart);let i=n+(0,f.rv)(r.responseEnd);let a=n+(0,f.rv)(r.responseStart);r.responseEnd&&((0,f.Tn)(e,s,i,{op:"browser.request",name:r.name,attributes:{[t.JD]:"auto.ui.browser.metrics"}}),(0,f.Tn)(e,a,i,{op:"browser.response",name:r.name,attributes:{[t.JD]:"auto.ui.browser.metrics"}}))}function N(e,r,n,s,i,a,c){if(r.initiatorType==="xmlhttprequest"||r.initiatorType==="fetch")return;let u=r.initiatorType?`resource.${r.initiatorType}`:"resource.other";if(c?.includes(u))return;let h={[t.JD]:"auto.resource.browser.metrics"};let m=(0,o.Dl)(n);m.protocol&&(h["url.scheme"]=m.protocol.split(":").pop()),m.host&&(h["server.address"]=m.host),h["url.same_origin"]=n.includes(l.j.location.origin),$(r,h,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let p={...h,...(0,d.v)(r)};let g=a+s;(0,f.Tn)(e,g,g+i,{name:n.replace(l.j.location.origin,""),op:u,attributes:p})}function P(e){let t=l.j.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),(0,f.Kk)(r.rtt)&&(v["connection.rtt"]={value:r.rtt,unit:"millisecond"})),(0,f.Kk)(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),(0,f.Kk)(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function z(e,t){b&&t.recordLcpOnPageloadSpan&&(b.element&&e.setAttribute("lcp.element",(0,n.Hd)(b.element)),b.id&&e.setAttribute("lcp.id",b.id),b.url&&e.setAttribute("lcp.url",b.url.trim().slice(0,200)),b.loadTime!=null&&e.setAttribute("lcp.loadTime",b.loadTime),b.renderTime!=null&&e.setAttribute("lcp.renderTime",b.renderTime),e.setAttribute("lcp.size",b.size)),k?.sources&&t.recordClsOnPageloadSpan&&k.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,n.Hd)(t.node)))}function $(e,t,r){r.forEach(([r,n])=>{let s=e[r];s!=null&&(typeof s=="number"&&s<0x7fffffff||typeof s=="string")&&(t[n]=s)})}function q(e){let t=(0,p.z)(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},142282(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A9:()=>x,Dz:()=>j,FX:()=>d,K4:()=>v,SY:()=>m,Ts:()=>A,dg:()=>h,e9:()=>C,h$:()=>R,jx:()=>f,nW:()=>b,pI:()=>I,qH:()=>_,rW:()=>E,vZ:()=>k,vg:()=>M,wV:()=>g,x2:()=>p});var e=__webpack_require__(705025);let t=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u;let r=/^[-a-z0-9]{3,8}$/u;let n=/^[-_a-zA-Z0-9]{1,32}$/u;let s=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u;let i=/^[-.%a-zA-Z0-9]{1,128}$/u;let a=/^[-a-z0-9]{3,8}$/u;let o=/^[-.%a-zA-Z0-9]{1,128}$/u;let l=/^[-.%a-zA-Z0-9]{1,78}$/u;let c=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u;let u=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u;let h=(0,e.s)("CaipChainId",t);(0,e.s)("CaipNamespace",r),(0,e.s)("CaipReference",n);let d=(0,e.s)("CaipAccountId",s);(0,e.s)("CaipAccountAddress",i),(0,e.s)("CaipAssetNamespace",a),(0,e.s)("CaipAssetReference",o),(0,e.s)("CaipTokenId",l);let f=(0,e.s)("CaipAssetType",c);let m=(0,e.s)("CaipAssetId",u);let p=(0,e.s)("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u);var g;var y;function v(e){return typeof e=="string"&&t.test(e)}function b(e){return typeof e=="string"&&r.test(e)}function k(e){return typeof e=="string"&&n.test(e)}function _(e){return typeof e=="string"&&s.test(e)}function w(e){return typeof e=="string"&&i.test(e)}function S(e){return typeof e=="string"&&a.test(e)}function T(e){return typeof e=="string"&&o.test(e)}function x(e){return typeof e=="string"&&c.test(e)}function E(e){let r=t.exec(e);if(!r?.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:r.groups.namespace,reference:r.groups.reference}}function j(e){let t=s.exec(e);if(!t?.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}function A(e){let t=c.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset type.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}function C(e){let t=u.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset ID.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,tokenId:t.groups.tokenId,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}function M(e,t){if(!b(e))throw new Error(`Invalid "namespace", must match: ${r.toString()}`);if(!k(t))throw new Error(`Invalid "reference", must match: ${n.toString()}`);return`${e}:${t}`}function I(e,t,s){if(!b(e))throw new Error(`Invalid "namespace", must match: ${r.toString()}`);if(!k(t))throw new Error(`Invalid "reference", must match: ${n.toString()}`);if(!w(s))throw new Error(`Invalid "accountAddress", must match: ${i.toString()}`);return`${e}:${t}:${s}`}function R(e,t,s,i){if(!b(e))throw new Error(`Invalid "namespace", must match: ${r.toString()}`);if(!k(t))throw new Error(`Invalid "reference", must match: ${n.toString()}`);if(!S(s))throw new Error(`Invalid "assetNamespace", must match: ${a.toString()}`);if(!T(i))throw new Error(`Invalid "assetReference", must match: ${o.toString()}`);return`${e}:${t}/${s}:${i}`}(y=g=g||(g={}))["Bip122"]="bip122",y["Solana"]="solana",y["Stellar"]="stellar",y["Tron"]="tron",y["Eip155"]="eip155",y["Wallet"]="wallet"}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},142827(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E8:()=>n,RZ:()=>s,cJ:()=>i,kp:()=>r});var e=__webpack_require__(356583);var t=__webpack_require__(342672);function r(...e){let n=e[0]?.type==="type";let s=Object.assign({},...e.map(({schema:e})=>e));return n?(0,t.NW)(s):(0,t.Ik)(s)}function n(t,r){return new e._k({type:t,schema:null,validator:r})}function s(t){let r;return new e._k({type:"lazy",schema:null,*entries(e,n){r??(r=t()),yield*r.entries(e,n)},validator(e,n){return r??(r=t()),r.validator(e,n)},coercer(e,n){return r??(r=t()),r.coercer(e,n)},refiner(e,n){return r??(r=t()),r.refiner(e,n)}})}function i(e,r){let{schema:n}=e;let s={...n};for(let e of r)delete s[e];switch(e.type){case"type":return(0,t.NW)(s);default:return(0,t.Ik)(s)}}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},144008(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{DW:()=>i,P5:()=>o,_K:()=>h,el:()=>f});var e=__webpack_require__(908743);var t=__webpack_require__(745085);var r=__webpack_require__(16905);let n=r.f.rpc.internal;let s={code:n,message:i(n)};function i(e,n="Unspecified error message. This is a bug, please report it."){if(a(e)){let n=e.toString();if((0,t.i5)(r.z,n))return r.z[n].message;if(u(e))return"Unspecified server error."}return n}function a(e){return Number.isInteger(e)}function o(t,{fallbackError:r=s,shouldIncludeStack:n=!0,shouldPreserveMessage:i=!0}={}){if(!(0,e.U$)(r))throw new Error("Must provide fallback error with integer number code and string message.");let a=l(t,r,i);return!n&&delete a.stack,a}function l(t,r,n){if(t&&typeof t=="object"&&"serialize"in t&&typeof t.serialize=="function")return t.serialize();if((0,e.U$)(t))return t;let s=c(t);let i=h(t);return{...r,...n&&s&&{message:s},data:{cause:i}}}function c(e){return(0,t.Gv)(e)&&(0,t.i5)(e,"message")&&typeof e.message=="string"&&e.message.length>0?e.message:(0,undefined)}function u(e){return e>=-32099&&e<=-32e3}function h(r){return Array.isArray(r)?r.map(r=>{return(0,e.jU)(r)?r:(0,(0,t.Gv)(r))?d(r):(0,null)}):(0,(0,t.Gv)(r))?d(r):(0,(0,e.jU)(r))?r:(0,null)}function d(t){return Object.getOwnPropertyNames(t).reduce((r,n)=>{let s=t[n];return(0,e.jU)(s)&&(r[n]=s),r},{})}function f(e){return(0,t.Gv)(e)&&(0,t.i5)(e,"cause")&&(0,t.Gv)(e.cause)}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},144770(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(t,r,n=2){if(!r||typeof r!=="object"||n<=0)return r;if(t&&Object.keys(r).length===0)return t;let s={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(s[t]=e(s[t],r[t],n-1));return s}__webpack_require__.d(__webpack_exports__,{h:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},147687(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Qw:()=>r,Wk:()=>s,hY:()=>n});var e=__webpack_require__(901889);let t;function r(r){if(t!==undefined)return t?t(r):r();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");let s=e.O;return n in s&&typeof s[n]=="function"?(t=s[n])(r):(t=null,r())}function n(){return r(()=>Math.random())}function s(){return r(()=>Date.now())}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},152198(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{XW:()=>t,xg:()=>r});var e=__webpack_require__(632356);function t(e){return new n(t=>{t(e)})}function r(e){return new n((t,r)=>{r(e)})}class n{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new n((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new n((t,r)=>{let n;let s;return this.then(t=>{s=!1,n=t,e&&e()},t=>{s=!0,n=t,e&&e()}).then(()=>{if(s){r(n);return}t(n)})})}_executeHandlers(){if(this._state===0)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{if(e[0])return;this._state===1&&e[1](this._value),this._state===2&&e[2](this._value),e[0]=!0})}_runExecutor(t){let r=(t,r)=>{if(this._state!==0)return;if((0,e.Qg)(r)){r.then(n,s);return}this._state=t,this._value=r,this._executeHandlers()};let n=e=>{r(1,e)};let s=e=>{r(2,e)};try{t(n,s)}catch(e){s(e)}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},152254(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{e:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(396102);var r=__webpack_require__(484413);let n={startProfiler:function(){let n=(0,e.KU)();if(!n){r.T&&t.Yz.warn("No Sentry client available, profiling is not started");return}if(!n.getIntegrationByName("BrowserProfiling")){r.T&&t.Yz.warn("BrowserProfiling integration is not available");return}n.emit("startUIProfiler")},stopProfiler:function(){let n=(0,e.KU)();if(!n){r.T&&t.Yz.warn("No Sentry client available, profiling is not started");return}if(!n.getIntegrationByName("BrowserProfiling")){r.T&&t.Yz.warn("ProfilingIntegration is not available");return}n.emit("stopUIProfiler")}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},152660(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>c});var e=__webpack_require__(577102);var t=__webpack_require__(676108);var r=__webpack_require__(682631);var n=__webpack_require__(396102);var s=__webpack_require__(484413);var i=__webpack_require__(994398);var a=__webpack_require__(747170);var o=__webpack_require__(444971);var l=__webpack_require__(19727);let c=(0,e._C)(()=>{return{name:"BrowserProfiling",setup(e){let c=e.getOptions();let u=new o.c;if(!(0,l.gy)(c)&&!c.profileLifecycle&&(c.profileLifecycle="manual"),(0,l.gy)(c)&&!c.profilesSampleRate){s.T&&n.Yz.log("[Profiling] Profiling disabled, no profiling options found.");return}let h=(0,r.Bk)();let d=h&&(0,r.zU)(h);if((0,l.gy)(c)&&c.profileSessionSampleRate!==undefined&&s.T&&n.Yz.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),(0,l.gy)(c))d&&(0,l.c4)(d)&&(0,l.ee)(d)&&(0,a.H)(d),e.on("spanStart",e=>{e===(0,r.zU)(e)&&(0,l.ee)(e)&&(0,a.H)(e)}),e.on("beforeEnvelope",e=>{if(!(0,l.ex)())return;let t=(0,l.WK)(e);if(!t.length)return;let r=[];for(let e of t){let t=e?.contexts;let i=t?.profile?.["profile_id"];let a=t?.profile?.["start_timestamp"];if(typeof i!=="string"||!i){s.T&&n.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let o=(0,l.ws)(i);if(!o){s.T&&n.Yz.log(`[Profiling] Could not retrieve profile for span: ${i}`);continue}let c=(0,l.Bj)(i,a,o,e);c&&r.push(c)}(0,l.lV)(e,r)});else{let a=c.profileLifecycle;if(e.on("startUIProfiler",()=>u.start()),e.on("stopUIProfiler",()=>u.stop()),a==="manual")u.initialize(e);else if(a==="trace"){if(!(0,t.f)(c)){s.T&&n.Yz.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}u.initialize(e),d&&u.notifyRootSpanActive(d),i.jf.setTimeout(()=>{let e=(0,r.Bk)();let t=e&&(0,r.zU)(e);t&&u.notifyRootSpanActive(t)},0)}}},processEvent(e){return(0,l.ow)(e)}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},153836(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{NJ:()=>n,a3:()=>i,m7:()=>a,vQ:()=>o});var e=__webpack_require__(352158);var t=__webpack_require__(396102);let r=__webpack_require__(901889).O;function n(){return"history"in r&&!!r.history}function s(){if(!("fetch"in r))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function i(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(typeof EdgeRuntime=="string")return!0;if(!s())return!1;if(i(r.fetch))return!0;let n=!1;let a=r.document;if(a&&typeof a.createElement=="function")try{let e=a.createElement("iframe");e.hidden=!0,a.head.appendChild(e),e.contentWindow?.fetch&&(n=i(e.contentWindow.fetch)),a.head.removeChild(e)}catch(r){e.T&&t.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return n}function o(){return"ReportingObserver"in r}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},156081(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>i});var e=__webpack_require__(577102);var t=__webpack_require__(901889);var r=__webpack_require__(392316);var n=__webpack_require__(925075);let s=t.O;let i=(0,e._C)((e={})=>{let t=e.frameContextLines!=null?e.frameContextLines:7;return{name:"ContextLines",processEvent(e){return a(e,t)}}});function a(e,t){let r=s.document;let i=s.location&&(0,n.f)(s.location.href);if(!r||!i)return e;let a=e.exception?.values;if(!a?.length)return e;let l=r.documentElement.innerHTML;if(!l)return e;let c=["<!DOCTYPE html>","<html>",...l.split(`
`),"</html>"];return a.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>o(e,c,i,t)))}),e}function o(e,t,n,s){return e.filename!==n||!e.lineno||!t.length||(0,(0,r.db)(t,e,s)),e}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},156398(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(100873);var r=__webpack_require__(563023);let n=(0,e._C)(({growthbookClass:e})=>{return{name:"GrowthBook",setupOnce(){let t=e.prototype;typeof t.isOn=="function"&&(0,r.GS)(t,"isOn",s),typeof t.getFeatureValue=="function"&&(0,r.GS)(t,"getFeatureValue",s)},processEvent(e,r,n){return(0,t.Nf)(e)}}});function s(e){return function(...r){let n=r[0];let s=e.apply(this,r);return typeof n=="string"&&typeof s=="boolean"&&((0,t.Ee)(n,s),(0,t.si)(n,s)),s}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},166105(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{HO:()=>r,Lq:()=>e,bQ:()=>t,v6:()=>n});let e=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"];let t="google_genai";let r="chats.create";let n="chat"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},167467(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>t});var e=__webpack_require__(178066);let t=(0,e.aD)({getModalIntegration:()=>e.j0,getScreenshotIntegration:()=>e.U$})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},169869(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>r,a:()=>t});var e=__webpack_require__(152198);let t=Symbol.for("SentryBufferFullError");function r(n=100){let s=new Set;function i(){return s.size<n}function a(e){s.delete(e)}return{get $(){return Array.from(s)},add:function(r){if(!i())return(0,e.xg)(t);let n=r();return s.add(n),n.then(()=>a(n),()=>a(n)),n},drain:function(t){if(!s.size)return(0,e.XW)(!0);let r=Promise.allSettled(Array.from(s)).then(()=>!0);return!t?r:(0,Promise.race([r,new Promise(e=>setTimeout(()=>e(!1),t))]))}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},172900(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Vu:()=>s,fj:()=>r,qO:()=>n});var e=__webpack_require__(392316);var t=__webpack_require__(306981);function r(r){let s=(0,t.zf)();let a={sid:(0,e.eJ)(),init:!0,timestamp:s,started:s,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>i(a)};return r&&n(a,r),a}function n(r,s={}){if(s.user&&(!r.ipAddress&&s.user.ip_address&&(r.ipAddress=s.user.ip_address),!r.did&&!s.did&&(r.did=s.user.id||s.user.email||s.user.username)),r.timestamp=s.timestamp||(0,t.zf)(),s.abnormal_mechanism&&(r.abnormal_mechanism=s.abnormal_mechanism),s.ignoreDuration&&(r.ignoreDuration=s.ignoreDuration),s.sid&&(r.sid=s.sid.length===32?s.sid:(0,e.eJ)()),s.init!==undefined&&(r.init=s.init),!r.did&&s.did&&(r.did=`${s.did}`),typeof s.started=="number"&&(r.started=s.started),r.ignoreDuration)r.duration=undefined;else if(typeof s.duration=="number")r.duration=s.duration;else{let e=r.timestamp-r.started;r.duration=e>=0?e:0}s.release&&(r.release=s.release),s.environment&&(r.environment=s.environment),!r.ipAddress&&s.ipAddress&&(r.ipAddress=s.ipAddress),!r.userAgent&&s.userAgent&&(r.userAgent=s.userAgent),typeof s.errors=="number"&&(r.errors=s.errors),s.status&&(r.status=s.status)}function s(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),n(e,r)}function i(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:undefined,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},173368(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>l});var e=__webpack_require__(303065);var t=__webpack_require__(342741);var r=__webpack_require__(939543);var n=__webpack_require__(646093);var s=__webpack_require__(43701);var i=__webpack_require__(484945);var a=__webpack_require__(691576);var o=__webpack_require__(994398);class l extends e.K{constructor(e){let a=c(e);let l=o.jf.SENTRY_SDK_SOURCE||(0,i.e)();(0,r.K)(a,"browser",["browser"],l),a._metadata?.sdk&&(a._metadata.sdk.settings={infer_ip:a.sendDefaultPii?"auto":"never",...a._metadata.sdk.settings}),super(a);let{sendDefaultPii:u,sendClientReports:h,enableLogs:d,_experiments:f,enableMetrics:m}=this._options;let p=m??f?.enableMetrics??!0;o.jf.document&&(h||d||p)&&o.jf.document.addEventListener("visibilitychange",()=>{o.jf.document.visibilityState==="hidden"&&(h&&this._flushOutcomes(),d&&(0,n.lt)(this),p&&(0,s.NG)(this))}),u&&this.on("beforeSendSession",t.N)}eventFromException(e,t){return(0,a.u)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,a.qv)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}function c(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:o.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},174638(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>i});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(760184);var n=__webpack_require__(879771);var s=__webpack_require__(676358);let i=(0,t.kp)(s.Tl,(0,e.Ik)({type:(0,n.eu)(s.Z6.Address),value:r.UG}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},175384(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>i});var e=__webpack_require__(123532);var t=__webpack_require__(577102);var r=__webpack_require__(563023);let n;let s=new WeakMap;let i=(0,t._C)(()=>{return{name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...t){let i=(0,r.sp)(this);let a=s.has((0,e.KU)())&&i!==undefined?i:this;return n.apply(a,t)}}catch{}},setup(e){s.set(e,!0)}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},178061(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(925075);function t(e,t){let s=t?.getDsn();let i=t?.getOptions().tunnel;return n(e,s)||r(e,i)}function r(e,t){return!t?!1:(0,s(e)===s(t))}function n(t,r){let n=(0,e.kg)(t);return!n||(0,e.nt)(n)?!1:(0,r?n.host.includes(r.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1)}function s(e){return e[e.length-1]==="/"?e.slice(0,-1):e}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},178066(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Sq:()=>A,U$:()=>tw,aD:()=>H,e4:()=>F,j0:()=>td});var e=__webpack_require__(123532);var t=__webpack_require__(577102);var r=__webpack_require__(902309);var n=__webpack_require__(18898);var s=__webpack_require__(901889);var i=__webpack_require__(920942);var a=__webpack_require__(396102);let o=s.O;let l=o.document;let c=o.navigator;let u="Report a Bug";let h="Cancel";let d="Send Bug Report";let f="Confirm";let m="Report a Bug";let p="your.email@example.org";let g="Email";let y="What's the bug? What did you expect?";let v="Description";let b="Your Name";let k="Name";let _="Thank you for your report!";let w="(required)";let S="Add a screenshot";let T="Remove screenshot";let x="Highlight";let E="Hide";let j="Remove";let A=(t,s={includeReplay:!0})=>{if(!t.message)throw new Error("Unable to submit feedback with empty message");let i=(0,e.KU)();if(!i)throw new Error("No client setup, cannot send feedback.");t.tags&&Object.keys(t.tags).length&&(0,e.o5)().setTags(t.tags);let a=(0,r.q)({source:"api",url:(0,n.$N)(),...t},s);return new Promise((e,t)=>{let r=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4);let n=i.on("afterSendEvent",(s,i)=>{return s.event_id!==a?void 0:(clearTimeout(r),n(),i?.statusCode&&i.statusCode>=200&&i.statusCode<300)?e(a):(0,i?.statusCode===403)?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):(0,t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker."))})})};let C=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function M(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c.userAgent)||/Macintosh/i.test(c.userAgent)&&c.maxTouchPoints&&c.maxTouchPoints>1||!isSecureContext?!1:(0,!0)}function I(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function R(e){let t=l.createElement("style");return t.textContent=`
.widget__actor {
  position: fixed;
  z-index: var(--z-index);
  margin: var(--page-margin);
  inset: var(--actor-inset);

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;

  font-family: inherit;
  font-size: var(--font-size);
  font-weight: 600;
  line-height: 1.14em;
  text-decoration: none;

  background: var(--actor-background, var(--background));
  border-radius: var(--actor-border-radius, 1.7em/50%);
  border: var(--actor-border, var(--border));
  box-shadow: var(--actor-box-shadow, var(--box-shadow));
  color: var(--actor-color, var(--foreground));
  fill: var(--actor-color, var(--foreground));
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease-in-out;
  transform: translate(0, 0) scale(1);
}
.widget__actor[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(0, 16px) scale(0.98);
}

.widget__actor:hover {
  background: var(--actor-hover-background, var(--background));
  filter: var(--interactive-filter);
}

.widget__actor svg {
  width: 1.14em;
  height: 1.14em;
}

@media (max-width: 600px) {
  .widget__actor span {
    display: none;
  }
}
`,e&&t.setAttribute("nonce",e),t}function O(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}function L(){let e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e);let t=O(e("svg"),{width:`${"20"}`,height:`${"20"}`,viewBox:`0 0 ${"20"} ${"20"}`,fill:"var(--actor-color, var(--foreground))"});let r=O(e("g"),{clipPath:"url(#clip0_57_80)"});let n=O(e("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(n);let s=e("defs");let i=O(e("clipPath"),{id:"clip0_57_80"});let a=O(e("rect"),{width:`${"20"}`,height:`${"20"}`,fill:"white"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}function D({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let s=l.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||u,s.appendChild(L()),e){let t=l.createElement("span");t.appendChild(l.createTextNode(e)),s.appendChild(t)}let i=R(n);return{el:s,appendToDom(){r.appendChild(i),r.appendChild(s)},removeFromDom(){s.remove(),i.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}let N="rgba(88, 74, 192, 1)";let P={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:N,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"};let z={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:N,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function $(e){return`
  --foreground: ${e.foreground};
  --background: ${e.background};
  --accent-foreground: ${e.accentForeground};
  --accent-background: ${e.accentBackground};
  --success-color: ${e.successColor};
  --error-color: ${e.errorColor};
  --border: ${e.border};
  --box-shadow: ${e.boxShadow};
  --outline: ${e.outline};
  --interactive-filter: ${e.interactiveFilter};
  `}function q({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let s=l.createElement("style");return s.textContent=`
:host {
  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-size: 14px;
  --z-index: 100000;

  --page-margin: 16px;
  --inset: auto 0 0 auto;
  --actor-inset: var(--inset);

  font-family: var(--font-family);
  font-size: var(--font-size);

  ${e!=="system"?`color-scheme: only ${e};`:""}

  ${$(e==="dark"?{...z,...t}:{...P,...r})}
}

${e==="system"?`
@media (prefers-color-scheme: dark) {
  :host {
    color-scheme: only dark;

    ${$({...z,...t})}
  }
}`:""}
`,n&&s.setAttribute("nonce",n),s}let H=({lazyLoadIntegration:e,getModalIntegration:r,getScreenshotIntegration:n})=>{return({id:s="sentry-feedback",autoInject:o=!0,showBranding:c=!0,isEmailRequired:R=!1,isNameRequired:O=!1,showEmail:L=!0,showName:N=!0,enableScreenshot:P=!0,useSentryUser:z={email:"email",name:"username"},tags:$,styleNonce:H,scriptNonce:F,colorScheme:B="system",themeLight:U={},themeDark:G={},addScreenshotButtonLabel:W=S,cancelButtonLabel:Y=h,confirmButtonLabel:V=f,emailLabel:J=g,emailPlaceholder:K=p,formTitle:Z=m,isRequiredLabel:Q=w,messageLabel:X=v,messagePlaceholder:ee=y,nameLabel:et=k,namePlaceholder:er=b,removeScreenshotButtonLabel:en=T,submitButtonLabel:es=d,successMessageText:ei=_,triggerLabel:ea=u,triggerAriaLabel:eo="",highlightToolText:el=x,hideToolText:ec=E,removeHighlightText:eu=j,onFormOpen:eh,onFormClose:ed,onSubmitSuccess:ef,onSubmitError:em,onFormSubmitted:ep}={})=>{let eg={id:s,autoInject:o,showBranding:c,isEmailRequired:R,isNameRequired:O,showEmail:L,showName:N,enableScreenshot:P,useSentryUser:z,tags:$,styleNonce:H,scriptNonce:F,colorScheme:B,themeDark:G,themeLight:U,triggerLabel:ea,triggerAriaLabel:eo,cancelButtonLabel:Y,submitButtonLabel:es,confirmButtonLabel:V,formTitle:Z,emailLabel:J,emailPlaceholder:K,messageLabel:X,messagePlaceholder:ee,nameLabel:et,namePlaceholder:er,successMessageText:ei,isRequiredLabel:Q,addScreenshotButtonLabel:W,removeScreenshotButtonLabel:en,highlightToolText:el,hideToolText:ec,removeHighlightText:eu,onFormClose:ed,onFormOpen:eh,onSubmitError:em,onSubmitSuccess:ef,onFormSubmitted:ep};let ey=null;let ev=[];let eb=e=>{if(!ey){let t=l.createElement("div");t.id=String(e.id),l.body.appendChild(t),(ey=t.attachShadow({mode:"open"})).appendChild(q(e))}return ey};let ek=async s=>{let i=s.enableScreenshot&&M();let o;let l;try{o=(r?r():await e("feedbackModalIntegration",F))(),(0,t.Q8)(o)}catch{throw C&&a.Yz.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{let r=i?n?n():await e("feedbackScreenshotIntegration",F):undefined;r&&(l=r(),(0,t.Q8)(l))}catch{C&&a.Yz.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let c=o.createDialog({options:{...s,onFormClose:()=>{c?.close(),s.onFormClose?.()},onFormSubmitted:()=>{c?.close(),s.onFormSubmitted?.()}},screenshotIntegration:l,sendFeedback:A,shadow:eb(s)});return c};let e_=(e,t={})=>{let r=I(eg,t);let n=typeof e=="string"?l.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!n)throw C&&a.Yz.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let s=null;let i=async()=>{!s&&(s=await ek({...r,onFormSubmitted:()=>{s?.removeFromDom(),r.onFormSubmitted?.()}})),s.appendToDom(),s.open()};n.addEventListener("click",i);let o=()=>{ev=ev.filter(e=>e!==o),s?.removeFromDom(),s=null,n.removeEventListener("click",i)};return ev.push(o),o};let ew=(e={})=>{let t=I(eg,e);let r=eb(t);let n=D({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:H});return e_(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){if(!(0,i.B)()||!eg.autoInject)return;l.readyState==="loading"?l.addEventListener("DOMContentLoaded",()=>ew().appendToDom()):ew().appendToDom()},attachTo:e_,createWidget(e={}){let t=ew(I(eg,e));return t.appendToDom(),t},async createForm(e={}){return ek(I(eg,e))},remove(){ey&&(ey.parentElement?.remove(),ey=null),ev.forEach(e=>e()),ev=[]}}}};function F(){let t=(0,e.KU)();return t?.getIntegrationByName("Feedback")}var B,U,G,W,Y,V,J,K={},Z=[],Q=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function ee(e,t){for(var r in t)e[r]=t[r];return e}function et(e){var t=e.parentNode;t&&t.removeChild(e)}function er(e,t,r){var n,s,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?B.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return en(e,a,n,s,null)}function en(e,t,r,n,s){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++G:s,__i:-1,__u:0};return null==s&&null!=U.vnode&&U.vnode(i),i}function es(e){return e.children}function ei(e,t){this.props=e,this.context=t}function ea(e,t){if(null==t)return e.__?ea(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?ea(e):null}function eo(e,t,r){var n,s=e.__v,i=s.__e,a=e.__P;if(a)return(n=ee({},s)).__v=s.__v+1,U.vnode&&U.vnode(n),eb(a,n,s,e.__n,void 0!==a.ownerSVGElement,32&s.__u?[i]:null,t,null==i?ea(s):i,!!(32&s.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=i&&el(n),n}function el(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return el(e)}}function ec(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!eu.__r++||Y!==U.debounceRendering)&&((Y=U.debounceRendering)||V)(eu)}function eu(){var e,t,r,n=[],s=[];for(W.sort(J);e=W.shift();)e.__d&&(r=W.length,t=eo(e,n,s)||t,0===r||W.length>r?(ek(n,t,s),s.length=n.length=0,t=void 0,W.sort(J)):t&&U.__c&&U.__c(t,Z));t&&ek(n,t,s),eu.__r=0}function eh(e,t,r,n,s,i,a,o,l,c,u){var h,d,f,m,p,g=n&&n.__k||Z,y=t.length;for(r.__d=l,ed(r,t,g),l=r.__d,h=0;h<y;h++)null!=(f=r.__k[h])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?K:g[f.__i]||K,f.__i=h,eb(e,f,d,s,i,a,o,l,c,u),m=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&ew(d.ref,null,f),u.push(f.ref,f.__c||m,f)),null==p&&null!=m&&(p=m),65536&f.__u||d.__k===f.__k?l=ef(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=p}function ed(e,t,r){var n,s,i,a,o,l=t.length,c=r.length,u=c,h=0;for(e.__k=[],n=0;n<l;n++)null!=(s=e.__k[n]=null==(s=t[n])||"boolean"==typeof s||"function"==typeof s?null:"string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?en(null,s,null,null,s):X(s)?en(es,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?en(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,o=em(s,r,a=n+h,u),s.__i=o,i=null,-1!==o&&(u--,(i=r[o])&&(i.__u|=131072)),null==i||null===i.__v?(-1==o&&h--,"function"!=typeof s.type&&(s.__u|=65536)):o!==a&&(o===a+1?h++:o>a?u>l-a?h+=o-a:h--:h=o<a&&o==a-1?o-a:0,o!==n+h&&(s.__u|=65536))):(i=r[n])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=ea(i)),eS(i,i,!1),r[n]=null,u--);if(u)for(n=0;n<c;n++)null!=(i=r[n])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=ea(i)),eS(i,i))}function ef(e,t,r){var n,s;if("function"==typeof e.type){for(n=e.__k,s=0;n&&s<n.length;s++)n[s]&&(n[s].__=e,t=ef(n[s],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8===t.nodeType)return t}function em(e,t,r,n){var s=e.key,i=e.type,a=r-1,o=r+1,l=t[r];if(null===l||l&&s==l.key&&i===l.type)return r;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||o<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&s==l.key&&i===l.type)return a;a--}if(o<t.length){if((l=t[o])&&0==(131072&l.__u)&&s==l.key&&i===l.type)return o;o++}}return-1}function ep(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Q.test(t)?r:r+"px"}function eg(e,t,r,n,s){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ep(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ep(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,i?ev:ey,i)):e.removeEventListener(t,i?ev:ey,i);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function ey(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(U.event?U.event(e):e)}}function ev(e){if(this.l)return this.l[e.type+!0](U.event?U.event(e):e)}function eb(e,t,r,n,s,i,a,o,l,c){var u,h,d,f,m,p,g,y,v,b,k,_,w,S,T,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[o=t.__e=r.__e]),(u=U.__b)&&u(t);e:if("function"==typeof x)try{if(y=t.props,v=(u=x.contextType)&&n[u.__c],b=u?v?v.props.value:u.__:n,r.__c?g=(h=t.__c=r.__c).__=h.__E:("prototype"in x&&x.prototype.render?t.__c=h=new x(y,b):(t.__c=h=new ei(y,b),h.constructor=x,h.render=eT),v&&v.sub(h),h.props=y,h.state||(h.state={}),h.context=b,h.__n=n,d=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=x.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=ee({},h.__s)),ee(h.__s,x.getDerivedStateFromProps(y,h.__s))),f=h.props,m=h.state,h.__v=t,d)null==x.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,b),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(h.props=y,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),k=0;k<h._sb.length;k++)h.__h.push(h._sb[k]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,b),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(f,m,p)})}if(h.context=b,h.props=y,h.__P=e,h.__e=!1,_=U.__r,w=0,"prototype"in x&&x.prototype.render){for(h.state=h.__s,h.__d=!1,_&&_(t),u=h.render(h.props,h.state,h.context),S=0;S<h._sb.length;S++)h.__h.push(h._sb[S]);h._sb=[]}else do h.__d=!1,_&&_(t),u=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++w<25)h.state=h.__s,null!=h.getChildContext&&(n=ee(ee({},n),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(p=h.getSnapshotBeforeUpdate(f,m)),eh(e,X(T=null!=u&&u.type===es&&null==u.key?u.props.children:u)?T:[T],t,r,n,s,i,a,o,l,c),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),g&&(h.__E=h.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=o,t.__u|=l?160:32,i[i.indexOf(o)]=null):(t.__e=r.__e,t.__k=r.__k),U.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=e_(r.__e,t,r,n,s,i,a,l,c);(u=U.diffed)&&u(t)}function ek(e,t,r){for(var n=0;n<r.length;n++)ew(r[n],r[++n],r[++n]);U.__c&&U.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){U.__e(e,t.__v)}})}function e_(e,t,r,n,s,i,a,o,l){var c,u,h,d,f,m,p,g=r.props,y=t.props,v=t.type;if("svg"===v&&(s=!0),null!=i){for(c=0;c<i.length;c++)if((f=i[c])&&"setAttribute"in f==!!v&&(v?f.localName===v:3===f.nodeType)){e=f,i[c]=null;break}}if(null==e){if(null===v)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,o=!1}if(null===v)g===y||o&&e.data===y||(e.data=y);else{if(i=i&&B.call(e.childNodes),g=r.props||K,!o&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)f=g[c],"children"==c||("dangerouslySetInnerHTML"==c?h=f:"key"===c||c in y||eg(e,c,null,f,s));for(c in y)f=y[c],"children"==c?d=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?m=f:"checked"==c?p=f:"key"===c||o&&"function"!=typeof f||g[c]===f||eg(e,c,f,g[c],s);if(u)o||h&&(u.__html===h.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(h&&(e.innerHTML=""),eh(e,X(d)?d:[d],t,r,n,s&&"foreignObject"!==v,i,a,i?i[0]:r.__k&&ea(r,0),o,l),null!=i)for(c=i.length;c--;)null!=i[c]&&et(i[c]);o||(c="value",void 0!==m&&(m!==e[c]||"progress"===v&&!m||"option"===v&&m!==g[c])&&eg(e,c,m,g[c],!1),c="checked",void 0!==p&&p!==e[c]&&eg(e,c,p,g[c],!1))}return e}function ew(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){U.__e(e,r)}}function eS(e,t,r){var n,s;if(U.unmount&&U.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ew(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){U.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&eS(n[s],t,r||"function"!=typeof e.type);r||null==e.__e||et(e.__e),e.__=e.__e=e.__d=void 0}function eT(e,t,r){return this.constructor(e,r)}function ex(e,t,r){var n,s,i,a;U.__&&U.__(e,t),s=(n="function"=="undefined")?null:t.__k,i=[],a=[],eb(t,e=t.__k=er(es,null,[e]),s||K,K,void 0!==t.ownerSVGElement,s?null:t.firstChild?B.call(t.childNodes):null,i,s?s.__e:t.firstChild,n,a),e.__d=void 0,ek(i,e,a)}B=Z.slice,U={__e:function(e,t,r,n){for(var s,i,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&null!=i.getDerivedStateFromError&&(s.setState(i.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,n||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},G=0,ei.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ee({},this.state),"function"==typeof e&&(e=e(ee({},r),this.props)),e&&ee(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),ec(this))},ei.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ec(this))},ei.prototype.render=es,W=[],V="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J=function(e,t){return e.__v.__b-t.__v.__b},eu.__r=0;var eE,ej,eA,eC,eM=0,eI=[],eR=[],eO=U,eL=eO.__b,eD=eO.__r,eN=eO.diffed,eP=eO.__c,ez=eO.unmount,e$=eO.__;function eq(e,t){eO.__h&&eO.__h(ej,e,eM||t),eM=0;var r=ej.__H||(ej.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:eR}),r.__[e]}function eH(e){return eM=1,eF(e5,e)}function eF(e,t,r){var n=eq(eE++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):e5(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ej,!ej.u)){var s=function(e,t,r){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter(function(e){return!!e.__c});if(s.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var a=!1;return s.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&n.__c.props===e)&&(!i||i.call(this,e,t,r))};ej.u=!0;var i=ej.shouldComponentUpdate,a=ej.componentWillUpdate;ej.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,s(e,t,r),i=n}a&&a.call(this,e,t,r)},ej.shouldComponentUpdate=s}return n.__N||n.__}function eB(e,t){var r=eq(eE++,3);!eO.__s&&e6(r.__H,t)&&(r.__=e,r.i=t,ej.__H.__h.push(r))}function eU(e,t){var r=eq(eE++,4);!eO.__s&&e6(r.__H,t)&&(r.__=e,r.i=t,ej.__h.push(r))}function eG(e){return eM=5,eY(function(){return{current:e}},[])}function eW(e,t,r){eM=6,eU(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))}function eY(e,t){var r=eq(eE++,7);return e6(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function eV(e,t){return eM=8,eY(function(){return e},t)}function eJ(e){var t=ej.context[e.__c],r=eq(eE++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ej)),t.props.value):e.__}function eK(e,t){eO.useDebugValue&&eO.useDebugValue(t?t(e):e)}function eZ(e){var t=eq(eE++,10),r=eH();return t.__=e,ej.componentDidCatch||(ej.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function eQ(){var e=eq(eE++,11);if(!e.__){for(var t=ej.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function eX(){for(var e;e=eI.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(e3),e.__H.__h.forEach(e2),e.__H.__h=[]}catch(t){e.__H.__h=[],eO.__e(t,e.__v)}}eO.__b=function(e){ej=null,eL&&eL(e)},eO.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),e$&&e$(e,t)},eO.__r=function(e){eD&&eD(e),eE=0;var t=(ej=e.__c).__H;t&&(eA===ej?(t.__h=[],ej.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=eR,e.__N=e.i=void 0})):(t.__h.forEach(e3),t.__h.forEach(e2),t.__h=[],eE=0)),eA=ej},eO.diffed=function(e){eN&&eN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==eI.push(t)&&eC===eO.requestAnimationFrame||((eC=eO.requestAnimationFrame)||e1)(eX)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==eR&&(e.__=e.__V),e.i=void 0,e.__V=eR})),eA=ej=null},eO.__c=function(e,t){t.some(function(e){try{e.__h.forEach(e3),e.__h=e.__h.filter(function(e){return!e.__||e2(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],eO.__e(r,e.__v)}}),eP&&eP(e,t)},eO.unmount=function(e){ez&&ez(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{e3(e)}catch(e){t=e}}),r.__H=void 0,t&&eO.__e(t,r.__v))};var e0="function"==typeof requestAnimationFrame;function e1(e){var t,r=function(){clearTimeout(n),e0&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);e0&&(t=requestAnimationFrame(r))}function e3(e){var t=ej,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ej=t}function e2(e){var t=ej;e.__c=e.__(),ej=t}function e6(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function e5(e,t){return"function"==typeof t?t(e):t}let e8=Object.defineProperty({__proto__:null,useCallback:eV,useContext:eJ,useDebugValue:eK,useEffect:eB,useErrorBoundary:eZ,useId:eQ,useImperativeHandle:eW,useLayoutEffect:eU,useMemo:eY,useReducer:eF,useRef:eG,useState:eH},Symbol.toStringTag,{value:"Module"});function e4(){let e=e=>l.createElementNS("http://www.w3.org/2000/svg",e);let t=O(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"});let r=O(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(r),t}function e7({options:e}){let t=eY(()=>({__html:e4().outerHTML}),[]);return er("h2",{class:"dialog__header"},er("span",{class:"dialog__title"},e.formTitle),e.showBranding?er("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function e9(e,t){let r=[];return t.isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),!e.message&&r.push(t.messageLabel),r}function te(e,t){let r=e.get(t);return typeof r=="string"?r.trim():(0,"")}function tt({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:s,onSubmitSuccess:i,onSubmitError:o,showEmail:l,showName:c,screenshotInput:u}){let{tags:h,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:m,emailLabel:p,emailPlaceholder:g,isEmailRequired:y,isNameRequired:v,messageLabel:b,messagePlaceholder:k,nameLabel:_,namePlaceholder:w,submitButtonLabel:S,isRequiredLabel:T}=e;let[x,E]=eH(!1);let[j,A]=eH(null);let[M,I]=eH(!1);let R=u?.input;let[O,L]=eH(null);let D=eV(e=>{L(e),I(!1)},[]);let N=eV(e=>{let t=e9(e,{emailLabel:p,isEmailRequired:y,isNameRequired:v,messageLabel:b,nameLabel:_});return t.length>0?A(`Please enter in the following required fields: ${t.join(", ")}`):A(null),t.length===0},[p,y,v,b,_]);return er("form",{class:"form",onSubmit:eV(async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target);let r=await (u&&M?u.value():undefined);let n={name:te(t,"name"),email:te(t,"email"),message:te(t,"message"),attachments:r?[r]:undefined};if(!N(n))return;try{let e=await s({name:n.name,email:n.email,message:n.message,source:"widget",tags:h},{attachments:n.attachments});i(n,e)}catch(e){C&&a.Yz.error(e),A(e),o(e)}}finally{E(!1)}},[u&&M,i,o])},R&&M?er(R,{onError:D}):null,er("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},er("div",{class:"form__top"},j?er("div",{class:"form__error-container"},j):null,c?er("label",{for:"name",class:"form__label"},er(tr,{label:_,isRequiredLabel:T,isRequired:v}),er("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:w,required:v,type:"text"})):er("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),l?er("label",{for:"email",class:"form__label"},er(tr,{label:p,isRequiredLabel:T,isRequired:y}),er("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:y,type:"email"})):er("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),er("label",{for:"message",class:"form__label"},er(tr,{label:b,isRequiredLabel:T,isRequired:!0}),er("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:k,required:!0,rows:5})),R?er("label",{for:"screenshot",class:"form__label"},er("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{L(null),I(e=>!e)}},M?f:d),O?er("div",{class:"form__error-container"},O.message):null):null),er("div",{class:"btn-group"},er("button",{class:"btn btn--primary",disabled:x,type:"submit"},S),er("button",{class:"btn btn--default",disabled:x,type:"button",onClick:n},m))))}function tr({label:e,isRequired:t,isRequiredLabel:r}){return er("span",{class:"form__label__text"},e,t&&er("span",{class:"form__label__text--required"},r))}function tn(){let e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e);let t=O(e("svg"),{width:`${"16"}`,height:`${"17"}`,viewBox:`0 0 ${"16"} ${"17"}`,fill:"inherit"});let r=O(e("g"),{clipPath:"url(#clip0_57_156)"});let n=O(e("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"});let s=O(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(s,n);let i=e("defs");let a=O(e("clipPath"),{id:"clip0_57_156"});let l=O(e("rect"),{width:`${"16"}`,height:`${"16"}`,fill:"white",transform:"translate(0 0.5)"});return a.appendChild(l),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(l),t}function ts({open:e,onFormSubmitted:t,...r}){let n=r.options;let s=eY(()=>({__html:tn().outerHTML}),[]);let[i,a]=eH(null);let o=eV(()=>{i&&(clearTimeout(i),a(null)),t()},[i]);let l=eV((e,n)=>{r.onSubmitSuccess(e,n),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return er(es,null,i?er("div",{class:"success__position",onClick:o},er("div",{class:"success__content"},n.successMessageText,er("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):er("dialog",{class:"dialog",onClick:n.onFormClose,open:e},er("div",{class:"dialog__position"},er("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},er(e7,{options:n}),er(tt,{...r,onSubmitSuccess:l})))))}let ti=`
.dialog {
  position: fixed;
  z-index: var(--z-index);
  margin: 0;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100vh;
  width: 100vw;

  color: var(--dialog-color, var(--foreground));
  fill: var(--dialog-color, var(--foreground));
  line-height: 1.75em;

  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  inset: 0;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.dialog__position {
  position: fixed;
  z-index: var(--z-index);
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  display: flex;
  max-height: calc(100vh - (2 * var(--page-margin)));
}
@media (max-width: 600px) {
  .dialog__position {
    inset: var(--page-margin);
    padding: 0;
  }
}

.dialog__position:has(.editor) {
  inset: var(--page-margin);
  padding: 0;
}

.dialog:not([open]) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.dialog:not([open]) .dialog__content {
  transform: translate(0, -16px) scale(0.98);
}

.dialog__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--dialog-padding, 24px);
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  overflow: auto;

  background: var(--dialog-background, var(--background));
  border-radius: var(--dialog-border-radius, 20px);
  border: var(--dialog-border, var(--border));
  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
  transform: translate(0, 0) scale(1);
  transition: transform 0.2s ease-in-out;
}

`;let ta=`
.dialog__header {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  font-weight: var(--dialog-header-weight, 600);
  margin: 0;
}
.dialog__title {
  align-self: center;
  width: var(--form-width, 272px);
}

@media (max-width: 600px) {
  .dialog__title {
    width: auto;
  }
}

.dialog__position:has(.editor) .dialog__title {
  width: auto;
}


.brand-link {
  display: inline-flex;
}
.brand-link:focus-visible {
  outline: var(--outline);
}
`;let to=`
.form {
  display: flex;
  overflow: auto;
  flex-direction: row;
  gap: 16px;
  flex: 1 0;
}

.form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form__right {
  flex: 0 0 auto;
  display: flex;
  overflow: auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: var(--form-width, 100%);
}

.dialog__position:has(.editor) .form__right {
  width: var(--form-width, 272px);
}

.form__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__error-container {
  color: var(--error-color);
  fill: var(--error-color);
}

.form__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0px;
}

.form__label__text {
  display: flex;
  gap: 4px;
  align-items: center;
}

.form__label__text--required {
  font-size: 0.85em;
}

.form__input {
  font-family: inherit;
  line-height: inherit;
  background: transparent;
  box-sizing: border-box;
  border: var(--input-border, var(--border));
  border-radius: var(--input-border-radius, 6px);
  color: var(--input-color, inherit);
  fill: var(--input-color, inherit);
  font-size: var(--input-font-size, inherit);
  font-weight: var(--input-font-weight, 500);
  padding: 6px 12px;
}

.form__input::placeholder {
  opacity: 0.65;
  color: var(--input-placeholder-color, inherit);
  filter: var(--interactive-filter);
}

.form__input:focus-visible {
  outline: var(--input-focus-outline, var(--outline));
}

.form__input--textarea {
  font-family: inherit;
  resize: vertical;
}

.error {
  color: var(--error-color);
  fill: var(--error-color);
}
`;let tl=`
.btn-group {
  display: grid;
  gap: 8px;
}

.btn {
  line-height: inherit;
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--button-font-size, inherit);
  font-weight: var(--button-font-weight, 600);
  padding: var(--button-padding, 6px 16px);
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn--primary {
  color: var(--button-primary-color, var(--accent-foreground));
  fill: var(--button-primary-color, var(--accent-foreground));
  background: var(--button-primary-background, var(--accent-background));
  border: var(--button-primary-border, var(--border));
  border-radius: var(--button-primary-border-radius, 6px);
  font-weight: var(--button-primary-font-weight, 500);
}
.btn--primary:hover {
  color: var(--button-primary-hover-color, var(--accent-foreground));
  fill: var(--button-primary-hover-color, var(--accent-foreground));
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
}
.btn--primary:focus-visible {
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
  outline: var(--button-primary-focus-outline, var(--outline));
}

.btn--default {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-background, var(--background));
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  font-weight: var(--button-font-weight, 500);
}
.btn--default:hover {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
}
.btn--default:focus-visible {
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
  outline: var(--button-focus-outline, var(--outline));
}
`;let tc=`
.success__position {
  position: fixed;
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  z-index: var(--z-index);
}
.success__content {
  background: var(--success-background, var(--background));
  border: var(--success-border, var(--border));
  border-radius: var(--success-border-radius, 1.7em/50%);
  box-shadow: var(--success-box-shadow, var(--box-shadow));
  font-weight: var(--success-font-weight, 600);
  color: var(--success-color);
  fill: var(--success-color);
  padding: 12px 24px;
  line-height: 1.75em;

  display: grid;
  align-items: center;
  grid-auto-flow: column;
  gap: 6px;
  cursor: default;
}

.success__icon {
  display: flex;
}
`;function tu(e){let t=l.createElement("style");return t.textContent=`
:host {
  --dialog-inset: var(--inset);
}

${ti}
${ta}
${to}
${tl}
${tc}
`,e&&t.setAttribute("nonce",e),t}function th(){let t=(0,e.o5)().getUser();let r=(0,e.rm)().getUser();let n=(0,e.m6)().getUser();return t&&Object.keys(t).length?t:(0,r&&Object.keys(r).length)?r:(0,n)}let td=()=>{return{name:"FeedbackModal",setupOnce(){},createDialog:({options:t,screenshotIntegration:r,sendFeedback:n,shadow:s})=>{let i=t.useSentryUser;let a=th();let o=l.createElement("div");let c=tu(t.styleNonce);let u="";let h={get el(){return o},appendToDom(){!s.contains(c)&&!s.contains(o)&&(s.appendChild(c),s.appendChild(o))},removeFromDom(){o.remove(),c.remove(),l.body.style.overflow=u},open(){f(!0),t.onFormOpen?.(),(0,e.KU)()?.emit("openFeedbackWidget"),u=l.body.style.overflow,l.body.style.overflow="hidden"},close(){f(!1),l.body.style.overflow=u}};let d=r?.createInput({h:er,hooks:e8,dialog:h,options:t});let f=e=>{ex(er(ts,{options:t,screenshotInput:d,showName:t.showName||t.isNameRequired,showEmail:t.showEmail||t.isEmailRequired,defaultName:String(i&&a?.[i.name]||""),defaultEmail:String(i&&a?.[i.email]||""),onFormClose:()=>{f(!1),t.onFormClose?.()},onSubmit:n,onSubmitSuccess:(e,r)=>{f(!1),t.onSubmitSuccess?.(e,r)},onSubmitError:e=>{t.onSubmitError?.(e)},onFormSubmitted:()=>{t.onFormSubmitted?.()},open:e}),o)};return h}}};function tf({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function tm(e){let t=l.createElement("style");let r="#1A141F";let n="#302735";return t.textContent=`
.editor {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

.editor__image-container {
  justify-items: center;
  padding: 15px;
  position: relative;
  height: 100%;
  border-radius: var(--menu-border-radius, 6px);

  background-color: ${r};
  background-image: repeating-linear-gradient(
      -145deg,
      transparent,
      transparent 8px,
      ${r} 8px,
      ${r} 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      ${n} 15px,
      ${n} 16px
    );
}

.editor__canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor__canvas-container > * {
  object-fit: contain;
  position: absolute;
}

.editor__tool-container {
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.editor__tool-bar {
  display: flex;
  gap: 8px;
}

.editor__tool {
  display: flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  background: var(--button-background, var(--background));
  color: var(--button-color, var(--foreground));
}

.editor__tool--active {
  background: var(--button-primary-background, var(--accent-background));
  color: var(--button-primary-color, var(--accent-foreground));
}

.editor__rect {
  position: absolute;
  z-index: 2;
}

.editor__rect button {
  opacity: 0;
  position: absolute;
  top: -12px;
  right: -12px;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  border: none;
  background: none;
}

.editor__rect:hover button {
  opacity: 1;
}
`,e&&t.setAttribute("nonce",e),t}function tp({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${t==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(t==="highlight"?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${t==="hide"?"editor__tool--active":""}`,onClick:()=>{r(t==="hide"?"":"hide")}},n.hideToolText)))}}function tg({hooks:e}){function t(){let[t,r]=e.useState(o.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(o.devicePixelRatio)};let t=matchMedia(`(resolution: ${o.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}return function({onBeforeScreenshot:r,onScreenshot:n,onAfterScreenshot:s,onError:i}){let a=t();e.useEffect(()=>{(async()=>{r();let e=await c.mediaDevices.getDisplayMedia({video:{width:o.innerWidth*a,height:o.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"});let t=l.createElement("video");await new Promise((r,s)=>{t.srcObject=e,t.onloadedmetadata=()=>{n(t,a),e.getTracks().forEach(e=>e.stop()),r()},t.play().catch(s)}),s()})().catch(i)},[])}}function ty(e,t,r){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=r,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function tv(e,t,r){if(!e)return;let n=e.getContext("2d",t);if(!n)return;r(e,n)}function tb(e,t){tv(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function tk(e,t,r){tv(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{ty(e,n,t)})})}function t_({h:e,hooks:t,outputBuffer:r,dialog:n,options:s}){let i=tg({hooks:t});let a=tp({h:e});let c=tf({h:e});let u={__html:tm(s.styleNonce).innerText};let h=n.el.style;let d=({screenshot:n})=>{let[i,h]=t.useState("highlight");let[d,f]=t.useState([]);let m=t.useRef(null);let p=t.useRef(null);let g=t.useRef(null);let y=t.useRef(null);let[v,b]=t.useState(1);let k=t.useMemo(()=>{let e=l.getElementById(s.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{let e=()=>{let t=m.current;if(!t)return;tv(n.canvas,{alpha:!1},e=>{b(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(t.clientHeight===0||t.clientWidth===0)&&setTimeout(e,0)};return e(),o.addEventListener("resize",e),()=>{o.removeEventListener("resize",e)}},[n]);let _=t.useCallback((e,t)=>{tv(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{_(p.current,n.dpi),tb(p.current,n.canvas)},[n]),t.useEffect(()=>{_(g.current,n.dpi),tv(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tk(g.current,k,d)},[d,k]),t.useEffect(()=>{_(r,n.dpi),tb(r,n.canvas),tv(l.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,tk(e,k,d),tb(r,e)})},[d,n,k]);let w=t.useCallback(e=>{return t=>{t.preventDefault(),t.stopPropagation(),f(t=>{let r=[...t];return r.splice(e,1),r})}},[]);let S={width:`${n.canvas.width*v}px`,height:`${n.canvas.height*v}px`};let T=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:u}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:m},e("canvas",{ref:p,id:"background",style:S}),e("canvas",{ref:g,id:"foreground",style:S}),e("div",{ref:y,onMouseDown:e=>{if(!i||!y.current)return;let t=y.current.getBoundingClientRect();let r={type:i,x:e.offsetX/v,y:e.offsetY/v};let n=(e,r)=>{let n=(r.clientX-t.x)/v;let s=(r.clientY-t.y)/v;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,s),w:Math.abs(n-e.x),h:Math.abs(s-e.y)}};let s=e=>{tv(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tk(g.current,k,[...d,n(r,e)])};let a=e=>{let t=n(r,e);t.w*v>=1&&t.h*v>=1&&f(e=>[...e,t]),l.removeEventListener("mousemove",s),l.removeEventListener("mouseup",a)};l.addEventListener("mousemove",s),l.addEventListener("mouseup",a)},style:S},d.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:`${t.y*v}px`,left:`${t.x*v}px`,width:`${t.w*v}px`,height:`${t.h*v}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:w(r),onMouseDown:T,onMouseUp:T,type:"button"},e(c,null))))))),e(a,{options:s,action:i,setAction:h}))};return function({onError:n}){let[s,a]=t.useState();return(i({onBeforeScreenshot:t.useCallback(()=>{h.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{tv(l.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),a({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{h.display="block"},[]),onError:t.useCallback(e=>{h.display="block",n(e)},[])}),s)?e(d,{screenshot:s}):(0,e("div",null))}}let tw=()=>{return{name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let s=l.createElement("canvas");return{input:t_({h:e,hooks:t,outputBuffer:s,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>{s.toBlob(e,"image/png")});return e?{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}:(0,undefined)}}}}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/feedback",{__webpack_require__,__webpack_exports__}))()},178430(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";class e extends Error{constructor(t,{cause:r}={}){super(t),this.name=e.name,r&&(this.cause=r),this.message=t}}}}).call(__webpack_require__._LM_("@metamask/utils>pony-cause",{__webpack_exports__,__webpack_require__}))()},179687(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>v,kF:()=>k,nI:()=>y,w7:()=>b});var e=__webpack_require__(295088);var t=__webpack_require__(577102);var r=__webpack_require__(175384);var n=__webpack_require__(848795);var s=__webpack_require__(960767);var i=__webpack_require__(902470);var a=__webpack_require__(6929);var o=__webpack_require__(173368);var l=__webpack_require__(2033);var c=__webpack_require__(361508);var u=__webpack_require__(889843);var h=__webpack_require__(404809);var d=__webpack_require__(841456);var f=__webpack_require__(805677);var m=__webpack_require__(855790);var p=__webpack_require__(956902);var g=__webpack_require__(972991);function y(e){return[(0,n.D)(),(0,r.Z)(),(0,i.H)(),(0,c.G)(),(0,l.F)(),(0,h.LO)(),(0,f.p)(),(0,s.s)(),(0,d.M)(),(0,u.p)()]}function v(r={}){let n=!r.skipBrowserExtensionCheck&&(0,g.E)();let s=r.defaultIntegrations==null?y():r.defaultIntegrations;let i={...r,enabled:n?!1:r.enabled,stackParser:(0,a.vk)(r.stackParser||m.lG),integrations:(0,t.mH)({integrations:r.integrations,defaultIntegrations:s}),transport:r.transport||p._};return(0,e.J)(o.y,i)}function b(){}function k(e){e()}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},180121(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Xr:()=>a,_c:()=>i,gt:()=>s,nC:()=>n,xv:()=>r});var e=__webpack_require__(632356);var t=__webpack_require__(6929);function r(e,t=0){return typeof e!=="string"||t===0?e:(0,e.length<=t?e:`${e.slice(0,t)}...`)}function n(e,t){let r=e;let n=r.length;if(n<=150)return r;t>n&&(t=n);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,n);return i>n-5&&(i=n),i===n&&(s=Math.max(i-140,0)),r=r.slice(s,i),s>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function s(r,n){if(!Array.isArray(r))return"";let s=[];for(let n=0;n<r.length;n++){let i=r[n];try{(0,e.L2)(i)?s.push((0,t.nY)(i)):s.push(String(i))}catch{s.push("[value cannot be serialized]")}}return s.join(n)}function i(t,r,n=!1){return!(0,e.Kg)(t)?!1:(0,(0,e.gd)(r))?r.test(t):(0,(0,e.Kg)(r))?n?t===r:t.includes(r):(0,!1)}function a(e,t=[],r=!1){return t.some(t=>i(e,t,r))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},186119(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_g:()=>i,j6:()=>n,s1:()=>s});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(142282);let n=(0,e.YP)((0,t.YO)(r.FX),"Non-EIP-155 Matching Addresses Account ID List",e=>{let t=e.map(e=>(0,r.Dz)(e));return!t.every(({address:e,chain:{namespace:r}})=>e===t[0].address&&r===t[0].chain.namespace)?"All account IDs must have the same address and namespace.":(0,t.some(({chain:{namespace:e}})=>{return e===r.wV.Eip155}))?"All account IDs must have non-EIP-155 namespaces.":(0,!0)});let s=(0,e.YP)(r.dg,"Non-EIP-155 Chain ID",e=>{let{namespace:t}=(0,r.rW)(e);return t===r.wV.Eip155?"Chain ID must not be an EIP-155 chain ID.":(0,!0)});let i=(0,e.YP)(r.jx,"Non-EIP-155 Asset Type",e=>{let{chain:{namespace:t}}=(0,r.Ts)(e);return t===r.wV.Eip155?"Asset type must not be an EIP-155 asset type.":(0,!0)})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},187474(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>t});var e=__webpack_require__(632356);function t(e,n,s=()=>{},i=()=>{}){let a;try{a=e()}catch(e){throw n(e),s(),e}return r(a,n,s,i)}function r(t,r,n,s){return(0,e.Qg)(t)?t.then(e=>{return n(),s(e),e},e=>{throw r(e),n(),e}):(n(),s(t),t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},188320(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>t});var e=__webpack_require__(818365);var t;var r;(r=t||(t={}))["Accessibility"]="accessibility",r["Activity"]="activity",r["AddCard"]="add-card",r["AddCircle"]="add-circle",r["AddSquare"]="add-square",r["Add"]="add",r["Ai"]="ai",r["AlternateEmail"]="alternate-email",r["Apple"]="apple",r["Apps"]="apps",r["Arrow2Down"]="arrow-2-down",r["Arrow2Left"]="arrow-2-left",r["Arrow2Right"]="arrow-2-right",r["Arrow2UpRight"]="arrow-2-up-right",r["Arrow2Up"]="arrow-2-up",r["ArrowCircleDown"]="arrow-circle-down",r["ArrowCircleUp"]="arrow-circle-up",r["ArrowDoubleLeft"]="arrow-double-left",r["ArrowDoubleRight"]="arrow-double-right",r["ArrowDown"]="arrow-down",r["ArrowDropDownCircle"]="arrow-drop-down-circle",r["ArrowLeft"]="arrow-left",r["ArrowRight"]="arrow-right",r["ArrowUp"]="arrow-up",r["Attachment"]="attachment",r["Ban"]="ban",r["BankAssured"]="bank-assured",r["Bank"]="bank",r["Bold"]="bold",r["Book"]="book",r["Bookmark"]="bookmark",r["Bridge"]="bridge",r["Briefcase"]="briefcase",r["Bulb"]="bulb",r["BuySell"]="buy-sell",r["Cake"]="cake",r["Calculator"]="calculator",r["Calendar"]="calendar",r["Call"]="call",r["Camera"]="camera",r["Campaign"]="campaign",r["CardPos"]="card-pos",r["Card"]="card",r["Cash"]="cash",r["Category"]="category",r["Chart"]="chart",r["CheckBold"]="check-bold",r["Check"]="check",r["CircleX"]="circle-x",r["ClockFilled"]="clock-filled",r["Clock"]="clock",r["Close"]="close",r["CloudDownload"]="cloud-download",r["CloudUpload"]="cloud-upload",r["Cloud"]="cloud",r["CodeCircle"]="code-circle",r["Code"]="code",r["Coin"]="coin",r["Collapse"]="collapse",r["Confirmation"]="confirmation",r["Connect"]="connect",r["CopySuccess"]="copy-success",r["Copy"]="copy",r["CreditCheck"]="credit-check",r["CurrencyFranc"]="currency-franc",r["CurrencyLira"]="currency-lira",r["CurrencyPound"]="currency-pound",r["CurrencyYuan"]="currency-yuan",r["Customize"]="customize",r["Danger"]="danger",r["DarkFilled"]="dark-filled",r["Dark"]="dark",r["Data"]="data",r["Description"]="description",r["Details"]="details",r["Diagram"]="diagram",r["DocumentCode"]="document-code",r["Download"]="download",r["Draft"]="draft",r["EcoLeaf"]="eco-leaf",r["EditSquare"]="edit-square",r["Edit"]="edit",r["EncryptedAdd"]="encrypted-add",r["Eraser"]="eraser",r["Error"]="error",r["Ethereum"]="ethereum",r["Exchange"]="exchange",r["ExpandVertical"]="expand-vertical",r["Expand"]="expand",r["ExploreFilled"]="explore-filled",r["Explore"]="explore",r["Export"]="export",r["Extension"]="extension",r["EyeSlash"]="eye-slash",r["Eye"]="eye",r["FaceId"]="face-id",r["Feedback"]="feedback",r["File"]="file",r["Filter"]="filter",r["Fingerprint"]="fingerprint",r["Fire"]="fire",r["FirstPage"]="first-page",r["Flag"]="flag",r["FlashSlash"]="flash-slash",r["Flash"]="flash",r["Flask"]="flask",r["Flower"]="flower",r["Folder"]="folder",r["Forest"]="forest",r["FullCircle"]="full-circle",r["Gas"]="gas",r["Gift"]="gift",r["GlobalSearch"]="global-search",r["Global"]="global",r["Graph"]="graph",r["Hardware"]="hardware",r["HashTag"]="hash-tag",r["HeartFilled"]="heart-filled",r["Heart"]="heart",r["Hierarchy"]="hierarchy",r["HomeFilled"]="home-filled",r["Home"]="home",r["Image"]="image",r["Info"]="info",r["Inventory"]="inventory",r["Joystick"]="joystick",r["KeepFilled"]="keep-filled",r["Keep"]="keep",r["Key"]="key",r["LastPage"]="last-page",r["LightFilled"]="light-filled",r["Light"]="light",r["Link"]="link",r["Loading"]="loading",r["Location"]="location",r["LockSlash"]="lock-slash",r["Lock"]="lock",r["LockedFilled"]="locked-filled",r["Login"]="login",r["Logout"]="logout",r["Mail"]="mail",r["Map"]="map",r["Menu"]="menu",r["MessageQuestion"]="message-question",r["Messages"]="messages",r["Mic"]="mic",r["MinusBold"]="minus-bold",r["MinusSquare"]="minus-square",r["Minus"]="minus",r["Mobile"]="mobile",r["MoneyBag"]="money-bag",r["Money"]="money",r["Monitor"]="monitor",r["MoreHorizontal"]="more-horizontal",r["MoreVertical"]="more-vertical",r["MountainFlag"]="mountain-flag",r["MusicNote"]="music-note",r["Notification"]="notification",r["PageInfo"]="page-info",r["Palette"]="palette",r["PasswordCheck"]="password-check",r["Pending"]="pending",r["People"]="people",r["PersonCancel"]="person-cancel",r["Pin"]="pin",r["Plant"]="plant",r["Plug"]="plug",r["PlusAndMinus"]="plus-and-minus",r["PolicyAlert"]="policy-alert",r["Print"]="print",r["PriorityHigh"]="priority-high",r["PrivacyTip"]="privacy-tip",r["ProgrammingArrows"]="programming-arrows",r["Publish"]="publish",r["QrCode"]="qr-code",r["Question"]="question",r["Receive"]="receive",r["Received"]="received",r["Refresh"]="refresh",r["RemoveMinus"]="remove-minus",r["Report"]="report",r["Rocket"]="rocket",r["SaveFilled"]="save-filled",r["Save"]="save",r["Saving"]="saving",r["ScanBarcode"]="scan-barcode",r["ScanFocus"]="scan-focus",r["Scan"]="scan",r["Search"]="search",r["SecurityAlert"]="security-alert",r["SecurityCross"]="security-cross",r["SecurityKey"]="security-key",r["SecuritySearch"]="security-search",r["SecuritySlash"]="security-slash",r["SecurityTick"]="security-tick",r["SecurityTime"]="security-time",r["SecurityUser"]="security-user",r["Security"]="security",r["Send"]="send",r["SentimentDissatisfied"]="sentiment-dissatisfied",r["SentimentNeutral"]="sentiment-neutral",r["SentimentSatisfied"]="sentiment-satisfied",r["SentimentVerySatisfied"]="sentiment-very-satisfied",r["SettingFilled"]="setting-filled",r["Setting"]="setting",r["Share"]="share",r["ShieldLock"]="shield-lock",r["ShoppingBag"]="shopping-bag",r["ShoppingCart"]="shopping-cart",r["SignalCellular"]="signal-cellular",r["Slash"]="slash",r["Sms"]="sms",r["SnapsMobile"]="snaps-mobile",r["SnapsPlus"]="snaps-plus",r["SnapsRound"]="snaps-round",r["Snaps"]="snaps",r["SortByAlpha"]="sort-by-alpha",r["Sort"]="sort",r["Sparkle"]="sparkle",r["Speed"]="speed",r["Speedometer"]="speedometer",r["Square"]="square",r["Stake"]="stake",r["StarFilled"]="star-filled",r["Star"]="star",r["Start"]="start",r["Storefront"]="storefront",r["Student"]="student",r["SwapHorizontal"]="swap-horizontal",r["SwapVertical"]="swap-vertical",r["TabClose"]="tab-close",r["TableRow"]="table-row",r["Tablet"]="tablet",r["Tag"]="tag",r["ThumbDownFilled"]="thumb-down-filled",r["ThumbDown"]="thumb-down",r["ThumbUpFilled"]="thumb-up-filled",r["ThumbUp"]="thumb-up",r["Tint"]="tint",r["Tooltip"]="tooltip",r["Translate"]="translate",r["Trash"]="trash",r["TrendDown"]="trend-down",r["TrendUp"]="trend-up",r["TriangleUp"]="triangle-up",r["TriangleDown"]="triangle-down",r["Undo"]="undo",r["Unfold"]="unfold",r["UnlockedFilled"]="unlocked-filled",r["Unpin"]="unpin",r["UploadFile"]="upload-file",r["Upload"]="upload",r["Usb"]="usb",r["UserCheck"]="user-check",r["UserCircleAdd"]="user-circle-add",r["UserCircleRemove"]="user-circle-remove",r["UserCircle"]="user-circle",r["User"]="user",r["VerifiedFilled"]="verified-filled",r["Verified"]="verified",r["Videocam"]="videocam",r["ViewColumn"]="view-column",r["ViewInAr"]="view-in-ar",r["VolumeOff"]="volume-off",r["VolumeUp"]="volume-up",r["WalletFilled"]="wallet-filled",r["Wallet"]="wallet",r["Warning"]="warning",r["WebTraffic"]="web-traffic",r["Widgets"]="widgets",r["WifiOff"]="wifi-off",r["Wifi"]="wifi",r["X"]="x",(0,e.K)("Icon")}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},189193(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{j:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(632356);var n=__webpack_require__(152198);function s(e,t,a,o=0){try{let s=i(t,a,e,o);return(0,r.Qg)(s)?s:(0,n.XW)(s)}catch(e){return(0,n.xg)(e)}}function i(n,s,a,o){let l=a[o];if(!n||!l)return n;let c=l({...n},s);return(e.T&&c===null&&t.Yz.log(`Event processor "${l.id||"?"}" dropped event`),(0,r.Qg)(c))?c.then(e=>i(e,s,a,o+1)):(0,i(c,s,a,o+1))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},200019(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>b});var e=__webpack_require__(123532);var t=__webpack_require__(931263);var r=__webpack_require__(78463);var n=__webpack_require__(276435);var s=__webpack_require__(827284);var i=__webpack_require__(187474);var a=__webpack_require__(377271);var o=__webpack_require__(788241);var l=__webpack_require__(864807);var c=__webpack_require__(425294);function u(e,t){let n={[a.fe]:"anthropic",[a.Rf]:(0,o.FS)(t),[r.JD]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[a.nn]=JSON.stringify(t.tools)),n[a.nK]=t.model??"unknown","temperature"in t&&(n[a.qO]=t.temperature),"top_p"in t&&(n[a.Sh]=t.top_p),"stream"in t&&(n[a.yc]=t.stream),"top_k"in t&&(n[a.jO]=t.top_k),"frequency_penalty"in t&&(n[a.gU]=t.frequency_penalty),"max_tokens"in t&&(n[a.DL]=t.max_tokens)}else t==="models.retrieve"||t==="models.get"?n[a.nK]=e[0]:n[a.nK]="unknown";return n}function h(e,t){let r=(0,c.fE)(t);(0,c.vv)(e,r),"prompt"in t&&e.setAttributes({[a.y]:JSON.stringify(t.prompt)})}function d(e,t){if("content"in t){if(Array.isArray(t.content)){e.setAttributes({[a.LO]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)(e.type==="tool_use"||e.type==="server_tool_use")&&r.push(e);r.length>0&&e.setAttributes({[a.u2]:JSON.stringify(r)})}}"completion"in t&&e.setAttributes({[a.LO]:t.completion}),"input_tokens"in t&&e.setAttributes({[a.LO]:JSON.stringify(t.input_tokens)})}function f(e,t){"id"in t&&"model"in t&&(e.setAttributes({[a.PX]:t.id,[a.jK]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[a.mo]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[a.mo]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&(0,o.kw)(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function m(e,t,r){if(!t||typeof t!=="object")return;if("type"in t&&t.type==="error"){(0,c.gQ)(e,t);return}r&&d(e,t),f(e,t)}function p(e,r,s){throw(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),r.isRecording()&&(r.setStatus({code:n.TJ,message:"internal_error"}),r.end()),e}function g(e,t,r,n,i,c,u,d,f,m,g){let y=i[a.nK]??"unknown";let v={name:`${c} ${y} stream-response`,op:(0,o.IT)(u),attributes:i};return m&&!g?(0,s.nV)(v,async t=>{try{f.recordInputs&&d&&h(t,d);let s=await e.apply(r,n);return(0,l.o)(s,t,f.recordOutputs??!1)}catch(e){return p(e,t,u)}}):(0,(0,s.nV)(v,e=>{try{f.recordInputs&&d&&h(e,d);let s=t.apply(r,n);return(0,l.r)(s,e,f.recordOutputs??!1)}catch(t){return p(t,e,u)}}))}function y(e,r,n,l){return new Proxy(e,{apply(c,d,f){let p=u(f,r);let y=p[a.nK]??"unknown";let v=(0,o.FS)(r);let b=typeof f[0]=="object"?f[0]:undefined;let k=Boolean(b?.stream);let _=r==="messages.stream";return k||_?g(e,c,n,f,p,v,r,b,l,k,_):(0,(0,s.Lk)({name:`${v} ${y}`,op:(0,o.IT)(r),attributes:p},e=>{return l.recordInputs&&b&&h(e,b),(0,i.x)(()=>c.apply(n,f),e=>{(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}})},()=>{},t=>m(e,t,l.recordOutputs))}))}})}function v(e,t="",r){return new Proxy(e,{get(e,n){let s=e[n];let i=(0,o.Z)(t,String(n));return typeof s=="function"&&(0,c.zW)(i)?y(s,i,e,r):(0,typeof s=="function")?s.bind(e):(0,s&&typeof s=="object")?v(s,i,r):(0,s)}})}function b(t,r){let n=Boolean((0,e.KU)()?.getOptions().sendDefaultPii);return v(t,"",{recordInputs:n,recordOutputs:n,...r})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},208554(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>u});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(174638);var n=__webpack_require__(861913);var s=__webpack_require__(955187);var i=__webpack_require__(879771);var a=__webpack_require__(676358);var o;var l;(l=o||(o={}))["Default"]="default",l["Critical"]="critical",l["Warning"]="warning";let c=(0,e.KC)([n.x,s.z,r.A]);let u=(0,t.kp)(a.Tl,(0,e.Ik)({type:(0,i.eu)(a.Z6.Row),variant:(0,e.lq)((0,e.KC)([(0,i.$9)(o.Default),(0,i.$9)(o.Critical),(0,i.$9)(o.Warning)])),label:(0,e.Yj)(),value:c}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},210164(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J5:()=>G,QE:()=>J,_E:()=>X,a8:()=>W,lA:()=>U,rB:()=>Y});var e=__webpack_require__(512986);var t=__webpack_require__(122552);var r=__webpack_require__(774810);var n=__webpack_require__(750628);let s=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function i(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function a(...e){return t=>e.reduce(([e,r,n],s)=>{let[i,a,o]=s(t,n);return[{...e,...i},a||r,o]},[{},null,1]).slice(0,2)}function o(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let t=r.exec(e);if(t)return n(t)}return[null,null]}function l(...t){return(r,n)=>{let s={};let i;for(i=0;i<t.length;i++)s[t[i]]=(0,e.cG)(r[n+i]);return[s,null,n+i]}}let c=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/;let u=`(?:${c.source}?(?:\\[(${s.source})\\])?)?`;let h=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/;let d=RegExp(`${h.source}${u}`);let f=RegExp(`(?:T${d.source})?`);let m=l("weekYear","weekNumber","weekDay");let p=l("year","ordinal");let g=RegExp(`${h.source} ?(?:${c.source}|(${s.source}))?`);let y=RegExp(`(?: ${g.source})?`);function v(t,r,n){let s=t[r];return(0,e.b0)(s)?n:(0,e.cG)(s)}function b(e,t){return[{year:v(e,t),month:v(e,t+1,1),day:v(e,t+2,1)},null,t+3]}function k(t,r){return[{hours:v(t,r,0),minutes:v(t,r+1,0),seconds:v(t,r+2,0),milliseconds:(0,e.m3)(t[r+3])},null,r+4]}function _(t,n){let s=!t[n]&&!t[n+1],i=(0,e.gu)(t[n+1],t[n+2]);return[{},s?null:r.A.instance(i),n+3]}function w(e,t){return[{},e[t]?n.A.create(e[t]):null,t+1]}let S=RegExp(`^T?${h.source}$`);let T=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function x(t){let[r,n,s,i,a,o,l,c,u]=t;let h=r[0]==="-";let d=c&&c[0]==="-";let f=(e,t=!1)=>e!==undefined&&(t||e&&h)?-e:e;return[{years:f((0,e.mp)(n)),months:f((0,e.mp)(s)),weeks:f((0,e.mp)(i)),days:f((0,e.mp)(a)),hours:f((0,e.mp)(o)),minutes:f((0,e.mp)(l)),seconds:f((0,e.mp)(c),c==="-0"),milliseconds:f((0,e.m3)(u),d)}]}let E={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function j(r,n,s,i,a,o,l){let c={year:n.length===2?(0,e.fT)((0,e.cG)(n)):(0,e.cG)(n),month:t.s$.indexOf(s)+1,day:(0,e.cG)(i),hour:(0,e.cG)(a),minute:(0,e.cG)(o)};return l&&(c.second=(0,e.cG)(l)),r&&(c.weekday=r.length>3?t.s7.indexOf(r)+1:t.Ci.indexOf(r)+1),c}let A=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function C(t){let[,n,s,i,a,o,l,c,u,h,d,f]=t,m=j(n,a,i,s,o,l,c);let p;return p=u?E[u]:h?0:(0,e.gu)(d,f),[m,new r.A(p)]}function M(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}let I=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,R=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,O=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function L(e){let[,t,n,s,i,a,o,l]=e;return[j(t,i,s,n,a,o,l),r.A.utcInstance]}function D(e){let[,t,n,s,i,a,o,l]=e;return[j(t,l,n,s,i,a,o),r.A.utcInstance]}let N=i(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,f);let P=i(/(\d{4})-?W(\d\d)(?:-?(\d))?/,f);let z=i(/(\d{4})-?(\d{3})/,f);let $=i(d);let q=a(b,k,_,w);let H=a(m,k,_,w);let F=a(p,k,_,w);let B=a(k,_,w);function U(e){return o(e,[N,q],[P,H],[z,F],[$,B])}function G(e){return o(M(e),[A,C])}function W(e){return o(e,[I,L],[R,L],[O,D])}function Y(e){return o(e,[T,x])}let V=a(k);function J(e){return o(e,[S,V])}let K=i(/(\d{4})-(\d\d)-(\d\d)/,y);let Z=i(g);let Q=a(k,_,w);function X(e){return o(e,[K,q],[Z,Q])}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},232712(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>a});var e=__webpack_require__(835203);var t=__webpack_require__(750628);var r=__webpack_require__(774810);var n=__webpack_require__(948972);var s=__webpack_require__(512986);var i=__webpack_require__(597054);function a(a,o){if((0,s.b0)(a)||a===null)return o;if(a instanceof e.A)return a;if((0,s.Kg)(a)){let e=a.toLowerCase();return e==="default"?o:(0,e==="local"||e==="system")?i.A.instance:(0,e==="utc"||e==="gmt")?r.A.utcInstance:r.A.parseSpecifier(e)||t.A.create(a)}if((0,s.Et)(a))return r.A.instance(a);if(typeof a=="object"&&"offset"in a&&typeof a.offset=="function")return a;else return new n.A(a)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},234512(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>t});var e=__webpack_require__(765698);let t=(t=!0)=>{let r=e.j.performance?.getEntriesByType?.("navigation")[0];if(!t||r&&r.responseStart>0&&r.responseStart<performance.now())return r}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},241361(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Fy:()=>t,_d:()=>r,eZ:()=>n,wb:()=>i});var e=__webpack_require__(531589);function t(t){let{caveats:r=null,invoker:n,target:s}=t;return{id:(0,e.Ak)(),parentCapability:s,invoker:n,caveats:r,date:new Date().getTime()}}function r(e,t){return e.caveats?.find(e=>e.type===t)}var n;var s;function i(e,t){return e.permissionType===t}(s=n||(n={}))["RestrictedMethod"]="RestrictedMethod",s["Endowment"]="Endowment"}}).call(__webpack_require__._LM_("@metamask/permission-controller",{__webpack_require__,__webpack_exports__}))()},244231(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return t(e)&&typeof e[Symbol.iterator]=="function"}function t(e){return typeof e=="object"&&e!==null}function r(e){return typeof e=="symbol"?e.toString():(0,typeof e=="string"?JSON.stringify(e):`${e}`)}function n(e){let{done:t,value:r}=e.next();return t?undefined:r}function s(e,t,n,s){if(e===!0)return undefined;e===!1?e={}:typeof e=="string"&&(e={message:e});let{path:i,branch:a}=t;let{type:o}=n;let{refinement:l,message:c=`Expected a value of type \`${o}\`${l?` with refinement \`${l}\``:""}, but received: \`${r(s)}\``}=e;return{value:s,type:o,refinement:l,key:i[i.length-1],path:i,branch:a,...e,message:c}}function*i(t,r,n,i){for(let a of(!e(t)&&(t=[t]),t)){let e=s(a,r,n,i);e&&(yield e)}}function*a(e,r,n={}){let{path:s=[],branch:i=[e],coerce:o=!1,mask:l=!1}=n;let c={path:s,branch:i};if(o){if(e=r.coercer(e,c),l&&r.type!=="type"&&t(r.schema)&&t(e)&&!Array.isArray(e))for(let t in e)r.schema[t]===undefined&&delete e[t]}let u="valid";for(let t of r.validator(e,c))t.explanation=n.message,u="not_valid",yield[t,undefined];for(let[h,d,f]of r.entries(e,c))for(let r of a(d,f,{path:h===undefined?s:[...s,h],branch:h===undefined?i:[...i,d],coerce:o,mask:l,message:n.message}))r[0]?(u=r[0].refinement===null||r[0].refinement===undefined?"not_valid":"not_refined",yield[r[0],undefined]):o&&(d=r[1],h===undefined?e=d:e instanceof Map?e.set(h,d):e instanceof Set?e.add(d):t(e)&&(d!==undefined||h in e)&&(e[h]=d));if(u!=="not_valid")for(let t of r.refiner(e,c))t.explanation=n.message,u="not_refined",yield[t,undefined];u==="valid"&&(yield[undefined,e])}__webpack_require__.d(__webpack_exports__,{Gv:()=>t,RF:()=>i,eF:()=>a,jT:()=>n,yy:()=>r})}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_exports__,__webpack_require__}))()},260516(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cj:()=>y,W3:()=>i,bN:()=>u,bm:()=>m,h4:()=>s,hP:()=>o,mE:()=>d,n2:()=>v,y5:()=>f,yH:()=>a,zk:()=>g});var e=__webpack_require__(943924);var t=__webpack_require__(381699);var r=__webpack_require__(590041);var n=__webpack_require__(901889);function s(e,t=[]){return[e,t]}function i(e,t){let[r,n]=e;return[r,[...n,t]]}function a(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function o(e,t){return a(e,(e,r)=>t.includes(r))}function l(t){let r=(0,e.Se)(n.O);return r.encodePolyfill?r.encodePolyfill(t):new TextEncoder().encode(t)}function c(t){let r=(0,e.Se)(n.O);return r.decodePolyfill?r.decodePolyfill(t):new TextDecoder().decode(t)}function u(e){let[t,n]=e;let s=JSON.stringify(t);function i(e){typeof s=="string"?s=typeof e=="string"?s+e:[l(s),e]:s.push(typeof e=="string"?l(e):e)}for(let e of n){let[t,n]=e;if(i(`
${JSON.stringify(t)}
`),typeof n=="string"||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,r.S8)(n))}i(e)}}return typeof s=="string"?s:h(s)}function h(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));let r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function d(e){let t=typeof e=="string"?l(e):e;function r(e){let r=t.subarray(0,e);return t=t.subarray(e+1),r}function n(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(c(r(e)))}let s=n();let i=[];while(t.length){let e=n();let t=typeof e.length=="number"?e.length:undefined;i.push([e,t?r(t):n()])}return[s,i]}function f(e){return[{type:"span"},e]}function m(e){let t=typeof e.data=="string"?l(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let p={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function g(e){return p[e]}function y(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function v(e,r,n,s){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...r&&{sdk:r},...!!n&&s&&{dsn:(0,t.SB)(s)},...i&&{trace:i}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},276435(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AJ:()=>n,F3:()=>t,N8:()=>s,TJ:()=>r,a3:()=>e});let e=0;let t=1;let r=2;function n(e){if(e<400&&e>=100)return{code:t};if(e>=400&&e<500)switch(e){case 401:return{code:r,message:"unauthenticated"};case 403:return{code:r,message:"permission_denied"};case 404:return{code:r,message:"not_found"};case 409:return{code:r,message:"already_exists"};case 413:return{code:r,message:"failed_precondition"};case 429:return{code:r,message:"resource_exhausted"};case 499:return{code:r,message:"cancelled"};default:return{code:r,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:r,message:"unimplemented"};case 503:return{code:r,message:"unavailable"};case 504:return{code:r,message:"deadline_exceeded"};default:return{code:r,message:"internal_error"}}return{code:r,message:"internal_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);let r=n(t);r.message!=="unknown_error"&&e.setStatus(r)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},276880(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>r,g:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(100873);let r=(0,e._C)(()=>{return{name:"LaunchDarkly",processEvent(e,r,n){return(0,t.Nf)(e)}}});function n(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,r,n)=>{(0,t.Ee)(e,r.value),(0,t.si)(e,r.value)}}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},285459(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{I8:()=>i,fF:()=>a,wU:()=>n});var e=__webpack_require__(632356);var t=__webpack_require__(590041);var r=__webpack_require__(901889);function n(e,t,n){return"util"in r.O&&typeof r.O.util.format=="function"?r.O.util.format(...e):s(e,t,n)}function s(r,n,s){return r.map(r=>(0,e.sO)(r)?String(r):JSON.stringify((0,t.S8)(r,n,s))).join(" ")}function i(e){return/%[sdifocO]/.test(e)}function a(e,t){let r={};let n=new Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},294970(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>o,z:()=>a});var e=__webpack_require__(6929);var t=__webpack_require__(901889);let r;let n;let s;let i;function a(e){let a=t.O._sentryDebugIds;let o=t.O._debugIds;if(!a&&!o)return{};let l=a?Object.keys(a):[];let c=o?Object.keys(o):[];if(i&&l.length===n&&c.length===s)return i;n=l.length,s=c.length,i={},!r&&(r={});let u=(t,n)=>{for(let s of t){let t=n[s];let a=r?.[s];if(a&&i&&t)i[a[0]]=t,r&&(r[s]=[a[0],t]);else if(t){let n=e(s);for(let e=n.length-1;e>=0;e--){let a=n[e];let o=a?.filename;if(o&&i&&r){i[o]=t,r[s]=[o,t];break}}}}};return a&&u(l,a),o&&u(c,o),i}function o(t,r){let n=a(t);if(!n)return[];let s=[];for(let t of r){let r=(0,e.Wt)(t);r&&n[r]&&s.push({type:"sourcemap",code_file:t,debug_id:n[r]})}return s}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},295088(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>s,J:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(396102);function n(n,i){i.debug===!0&&(t.T?r.Yz.enable():(0,r.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,e.o5)().update(i.initialScope);let a=new n(i);return s(a),a.init(),a}function s(t){(0,e.o5)().setClient(t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},298556(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>s,k:()=>i});var e=__webpack_require__(381699);function t(e){let t=e.protocol?`${e.protocol}:`:"";let r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function r(e){return`${t(e)}${e.projectId}/envelope/`}function n(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function s(e,t,s){return t||`${r(e)}?${n(e,s)}`}function i(r,n){let s=(0,e.AD)(r);if(!s)return"";let i=`${t(s)}embed/error-page/`;let a=`dsn=${(0,e.SB)(s)}`;for(let e in n){if(e==="dsn"||e==="onClose")continue;if(e==="user"){let e=n.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`}return`${i}?${a}`}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},301170(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>r});var e=__webpack_require__(485791);var t=__webpack_require__(112471);let r=function(r,n,s){var i=(r=r||{}).random||(r.rng||e.A)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){s=s||0;for(var a=0;a<16;++a)n[s+a]=i[a];return n}return(0,t.A)(i)}}}).call(__webpack_require__._LM_("uuid",{__webpack_require__,__webpack_exports__}))()},303065(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{K:()=>N});var e=__webpack_require__(298556);var t=__webpack_require__(15797);var r=__webpack_require__(123532);var n=__webpack_require__(352158);var s=__webpack_require__(713966);var i=__webpack_require__(577102);var a=__webpack_require__(646093);var o=__webpack_require__(43701);var l=__webpack_require__(172900);var c=__webpack_require__(98154);var u=__webpack_require__(513234);var h=__webpack_require__(837113);var d=__webpack_require__(396102);var f=__webpack_require__(381699);var m=__webpack_require__(260516);var p=__webpack_require__(114765);var g=__webpack_require__(632356);var y=__webpack_require__(144770);var v=__webpack_require__(392316);var b=__webpack_require__(865961);var k=__webpack_require__(612717);var _=__webpack_require__(169869);var w=__webpack_require__(147687);var S=__webpack_require__(504855);var T=__webpack_require__(682631);var x=__webpack_require__(152198);var E=__webpack_require__(357180);let j="Not capturing exception because it's already been captured.";let A="Discarded session because of missing or non-string release";let C=Symbol.for("SentryInternalError");let M=Symbol.for("SentryDoNotSendEventError");function I(e){return{message:e,[C]:!0}}function R(e){return{message:e,[M]:!0}}function O(e){return!!e&&typeof e=="object"&&C in e}function L(e){return!!e&&typeof e=="object"&&M in e}function D(e,t,r,n,s){let i=0;let a;let o=!1;e.on(r,()=>{i=0,clearTimeout(a),o=!1}),e.on(t,t=>{(i+=n(t))>=8e5?s(e):!o&&(o=!0,a=setTimeout(()=>{s(e)},5e3))}),e.on("flush",()=>{s(e)})}class N{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,_.C)(t.transportOptions?.bufferSize??u.$),t.dsn?this._dsn=(0,f.AD)(t.dsn):n.T&&d.Yz.warn("No DSN provided, client will not send events."),this._dsn){let r=(0,e.Z)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:undefined);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&D(this,"afterCaptureLog","flushLogs",B,a.lt),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&D(this,"afterCaptureMetric","flushMetrics",F,o.NG)}captureException(e,t,r){let s=(0,v.eJ)();if((0,v.GR)(e))return n.T&&d.Yz.log(j),s;let i={event_id:s,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let s={event_id:(0,v.eJ)(),...r};let i=(0,g.NF)(e)?e:String(e);let a=(0,g.sO)(e);let o=a?this.eventFromMessage(i,t,s):this.eventFromException(e,s);return this._process(()=>o.then(e=>this._captureEvent(e,s,n)),a?"unknown":"error"),s.event_id}captureEvent(e,t,r){let s=(0,v.eJ)();if(t?.originalException&&(0,v.GR)(t.originalException))return n.T&&d.Yz.log(j),s;let i={event_id:s,...t};let a=e.sdkProcessingMetadata||{};let o=a.capturedSpanScope;let l=a.capturedSpanIsolationScope;let c=P(e.type);return this._process(()=>this._captureEvent(e,i,o||r,l),c),i.event_id}captureSession(e){this.sendSession(e),(0,l.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e);let n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,i.qm)(this,e,this._integrations),!t&&(0,i.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,s.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,m.W3)(r,(0,m.bm)(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:r,environment:i=t.U}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!r){n.T&&d.Yz.warn(A);return}t.release=t.release||r,t.environment=t.environment||i,e.attrs=t}else{if(!e.release&&!r){n.T&&d.Yz.warn(A);return}e.release=e.release||r,e.environment=e.environment||i}this.emit("beforeSendSession",e);let a=(0,s.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(a)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let s=`${e}:${t}`;n.T&&d.Yz.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set;let n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return n.T&&d.Yz.error("Error while sending envelope:",e),{}}return n.T&&d.Yz.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,i.P$)(this,e),(0,i.lc)(this,e)}_updateSessionFromEvent(e,t){let r=t.level==="fatal";let n=!1;let s=t.exception?.values;if(s){for(let e of(n=!0,r=!1,s))if(e.mechanism?.handled===!1){r=!0;break}}let i=e.status==="ok";(i&&e.errors===0||i&&r)&&((0,l.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;while(!e||t<e){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==undefined}_prepareEvent(e,t,n,s){let i=this.getOptions();let a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),!e.type&&s.setLastEventId(e.event_id||t.event_id),(0,k.mG)(i,e,t,n,this,s).then(e=>{return e===null||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,r.vn)(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,c.ao)(this,n),...e.sdkProcessingMetadata}),e})}_captureEvent(e,t={},s=(0,r.o5)(),i=(0,r.rm)()){return n.T&&q(e)&&d.Yz.log(`Captured error event \`${(0,p.G)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,s,i).then(e=>{return e.event_id},e=>{return n.T&&(L(e)?d.Yz.log(e.message):O(e)?d.Yz.warn(e.message):d.Yz.warn(e)),undefined})}_processEvent(e,t,r,n){let s=this.getOptions();let{sampleRate:i}=s;let a=H(e);let o=q(e);let l=e.type||"error";let c=`before send for type \`${l}\``;let u=i===void 0?undefined:(0,b.i)(i);if(o&&typeof u=="number"&&(0,w.hY)()>u)return this.recordDroppedEvent("sample_rate","error"),(0,x.xg)(R(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let h=P(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(e===null)throw this.recordDroppedEvent("event_processor",h),R("An event processor returned `null`, will not send event.");return t.data&&t.data.__sentry__===!0?e:(0,z($(this,s,e,t),c))}).then(s=>{if(s===null){if(this.recordDroppedEvent("before_send",h),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw R(`${c} returned \`null\`, will not send event.`)}let i=r.getSession()||n.getSession();if(o&&i&&this._updateSessionFromEvent(i,s),a){let e=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=s.transaction_info;return a&&l&&s.transaction!==e.transaction&&(s.transaction_info={...l,source:"custom"}),this.sendEvent(s,t),s}).then(null,e=>{if(L(e)||O(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),I(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>{return this._numProcessing--,e},e=>{return this._numProcessing--,e===_.a&&this.recordDroppedEvent("queue_overflow",t),e})}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){n.T&&d.Yz.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){n.T&&d.Yz.log("No outcomes to send");return}if(!this._dsn){n.T&&d.Yz.log("No dsn provided, will not send outcomes");return}n.T&&d.Yz.log("Sending outcomes:",e);let t=(0,h.m)(e,this._options.tunnel&&(0,f.SB)(this._dsn));this.sendEnvelope(t)}}function P(e){return e==="replay_event"?"replay":e||"error"}function z(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,g.Qg)(e))return e.then(e=>{if(!(0,g.Qd)(e)&&e!==null)throw I(r);return e},e=>{throw I(`${t} rejected with ${e}`)});if(!(0,g.Qd)(e)&&e!==null)throw I(r);return e}function $(e,t,r,n){let{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:a,ignoreSpans:o}=t;let l=r;if(q(l)&&s)return s(l,n);if(H(l)){if(a||o){let t=(0,E.R)(l);if(o?.length&&(0,S.e)(t,o))return null;if(a){let e=a(t);e?l=(0,y.h)(r,(0,E.L)(e)):(0,T.xl)()}if(l.spans){let t=[];let r=l.spans;for(let e of r){if(o?.length&&(0,S.e)(e,o)){(0,S.R)(r,e);continue}if(a){let r=a(e);r?t.push(r):((0,T.xl)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,n)}}return l}function q(e){return e.type===undefined}function H(e){return e.type==="transaction"}function F(e){let t=0;return e.name&&(t+=e.name.length*2),(t+=8)+U(e.attributes)}function B(e){let t=0;return e.message&&(t+=e.message.length*2),t+U(e.attributes)}function U(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*G(e[0]):(0,g.sO)(e)?t+=G(e):t+=100}),t}function G(e){return typeof e=="string"?e.length*2:(0,typeof e=="number")?8:(0,typeof e=="boolean")?4:(0,0)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},306981(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{k3:()=>l,lu:()=>r,zf:()=>i});var e=__webpack_require__(147687);var t=__webpack_require__(901889);function r(){return(0,e.Wk)()/1e3}function n(){let{performance:n}=t.O;if(!n?.now||!n.timeOrigin)return r;let s=n.timeOrigin;return()=>{return(s+(0,e.Qw)(()=>n.now()))/1e3}}let s;function i(){return(s??(s=n()))()}let a=null;function o(){let{performance:r}=t.O;if(!r?.now)return undefined;let n=(0,e.Qw)(()=>r.now());let s=(0,e.Wk)();let i=r.timeOrigin;if(typeof i=="number"){if(Math.abs(i+n-s)<3e5)return i}let a=r.timing?.navigationStart;if(typeof a=="number"){if(Math.abs(a+n-s)<3e5)return a}return s-n}function l(){return a===null&&(a=o()),a}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},314408(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>s});var e=__webpack_require__(765698);var t=__webpack_require__(621827);var r=__webpack_require__(51450);var n=__webpack_require__(234512);let s=(s,i=-1)=>{let a=(0,n.z)();let o="navigate";return(a&&(e.j.document?.prerendering||(0,r.b)()>0?o="prerender":e.j.document?.wasDiscarded?o="restore":a.type&&(o=a.type.replace(/_/g,"-")))),{name:s,value:i,rating:"good",delta:0,entries:[],id:(0,t.W)(),navigationType:o}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},317588(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>c});var e=__webpack_require__(835060);var t=__webpack_require__(600473);var r=__webpack_require__(603476);var n=__webpack_require__(695358);var s=__webpack_require__(14631);var i=__webpack_require__(868766);var a=__webpack_require__(891728);let o="Invalid Interval";function l(e,t){return!e||!e.isValid?c.invalid("missing or invalid start"):(0,!t||!t.isValid)?c.invalid("missing or invalid end"):(0,t<e)?c.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):(0,null)}class c{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new n.Di("need to specify a reason the Interval is invalid");let i=e instanceof s.A?e:new s.A(e,t);if(!r.A.throwOnInvalid)return new c({invalid:i});throw new n.hq(i)}static fromDateTimes(t,r){let n=(0,e.R)(t),s=(0,e.R)(r);let i=l(n,s);return i==null?new c({start:n,end:s}):(0,i)}static after(r,n){let s=t.Ay.fromDurationLike(n),i=(0,e.R)(r);return c.fromDateTimes(i,i.plus(s))}static before(r,n){let s=t.Ay.fromDurationLike(n),i=(0,e.R)(r);return c.fromDateTimes(i.minus(s),i)}static fromISO(r,n){let[s,i]=(r||"").split("/",2);if(s&&i){let r,a;try{a=(r=e.A.fromISO(s,n)).isValid}catch(e){a=!1}let o,l;try{l=(o=e.A.fromISO(i,n)).isValid}catch(e){l=!1}if(a&&l)return c.fromDateTimes(r,o);if(a){let e=t.Ay.fromISO(i,n);if(e.isValid)return c.after(r,e)}else if(l){let e=t.Ay.fromISO(s,n);if(e.isValid)return c.before(o,e)}}return c.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(...[e]).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let r=this.start.startOf(e,t);let n;return Math.floor((n=(n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end).startOf(e,t)).diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!this.isValid?!1:(0,this.s>e)}isBefore(e){return!this.isValid?!1:(0,this.e<=e)}contains(e){return!this.isValid?!1:(0,this.s<=e&&this.e>e)}set({start:e,end:t}={}){return!this.isValid?this:(0,c.fromDateTimes(e||this.s,t||this.e))}splitAt(...t){if(!this.isValid)return[];let r=t.map(e.R).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s}=this,i=0;while(s<this.e){let e=r[i]||this.e,t=+e>+this.e?this.e:e;n.push(c.fromDateTimes(s,t)),s=t,i+=1}return n}splitBy(e){let r=t.Ay.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;let a=[];while(n<this.e){let e=this.start.plus(r.mapUnits(e=>e*s));i=+e>+this.e?this.e:e,a.push(c.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return!this.isValid?[]:(0,this.splitBy(this.length()/e).slice(0,e))}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!this.isValid?!1:(0,+this.e==+e.s)}abutsEnd(e){return!this.isValid?!1:(0,+e.e==+this.s)}engulfs(e){return!this.isValid?!1:(0,this.s<=e.s&&this.e>=e.e)}equals(e){return!this.isValid||!e.isValid?!1:(0,this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:(0,c.fromDateTimes(t,r))}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return c.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>{return!t?[e,r]:(0,t.overlaps(r)||t.abutsStart(r))?[e,t.union(r)]:[e.concat([t]),r]},[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;let n=[],s=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...s).sort((e,t)=>e.time-t.time))(r+=e.type==="s"?1:-1)===1?t=e.time:(t&&+t!==+e.time&&n.push(c.fromDateTimes(t,e.time)),t=null);return c.merge(n)}difference(...e){return c.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return!this.isValid?o:(0,`[${this.s.toISO()} – ${this.e.toISO()})`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:(0,`Interval { Invalid, reason: ${this.invalidReason} }`)}toLocaleString(e=a.aY,t={}){return this.isValid?i.A.create(this.s.loc.clone(t),e).formatInterval(this):o}toISO(e){return!this.isValid?o:(0,`${this.s.toISO(e)}/${this.e.toISO(e)}`)}toISODate(){return!this.isValid?o:(0,`${this.s.toISODate()}/${this.e.toISODate()}`)}toISOTime(e){return!this.isValid?o:(0,`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`)}toFormat(e,{separator:t=" – "}={}){return!this.isValid?o:(0,`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`)}toDuration(e,r){return!this.isValid?t.Ay.invalid(this.invalidReason):(0,this.e.diff(this.s,e,r))}mapEndpoints(e){return c.fromDateTimes(e(this.s),e(this.e))}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},329055(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{n:()=>o});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(577102);var n=__webpack_require__(901889);var s=__webpack_require__(153836);let i=n.O;let a=new WeakMap;let o=(0,r._C)((r={})=>{let n=r.types||["crash","deprecation","intervention"];function o(r){if(!a.has((0,t.KU)()))return;for(let n of r)(0,t.v4)(t=>{t.setExtra("url",n.url);let r=`ReportingObserver [${n.type}]`;let s="No details available";if(n.body){let e={};for(let t in n.body)e[t]=n.body[t];if(t.setExtra("body",e),n.type==="crash"){let e=n.body;s=[e.crashId||"",e.reason||""].join(" ").trim()||s}else s=n.body.message||s}(0,e.wd)(`${r}: ${s}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,s.vQ)())return;new i.ReportingObserver(o,{buffered:!0,types:n}).observe()},setup(e){a.set(e,!0)}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},335562(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);var s;var i;(i=s||(s={}))["Text"]="text",i["Number"]="number",i["Password"]="password";let a=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Input),value:(0,e.lq)((0,e.Yj)()),name:(0,e.Yj)(),inputType:(0,e.lq)((0,e.KC)([(0,r.$9)(s.Text),(0,r.$9)(s.Password),(0,r.$9)(s.Number)])),placeholder:(0,e.lq)((0,e.Yj)()),label:(0,e.lq)((0,e.Yj)()),error:(0,e.lq)((0,e.Yj)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},339535(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_:()=>e});class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0];let r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},342672(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E$:()=>c,Ik:()=>m,KC:()=>_,L5:()=>w,NW:()=>k,PV:()=>b,Pc:()=>o,YO:()=>s,Yj:()=>v,ai:()=>f,bz:()=>n,eu:()=>u,g1:()=>y,lq:()=>p,me:()=>d,nd:()=>l,vP:()=>a,yq:()=>g,zM:()=>i});var e=__webpack_require__(356583);var t=__webpack_require__(244231);var r=__webpack_require__(142827);function n(){return(0,r.E8)("any",()=>!0)}function s(r){return new e._k({type:"array",schema:r,*entries(e){if(r&&Array.isArray(e))for(let[t,n]of e.entries())yield[t,n,r]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${(0,t.yy)(e)}`}})}function i(){return(0,r.E8)("boolean",e=>{return typeof e=="boolean"})}function a(r){let n={};let s=r.map(e=>(0,t.yy)(e)).join();for(let e of r)n[e]=e;return new e._k({type:"enums",schema:n,validator(e){return r.includes(e)||`Expected one of \`${s}\`, but received: ${(0,t.yy)(e)}`}})}function o(){return(0,r.E8)("func",e=>{return typeof e=="function"||`Expected a function, but received: ${(0,t.yy)(e)}`})}function l(){return(0,r.E8)("integer",e=>{return typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${(0,t.yy)(e)}`})}function c(t){return new e._k({type:"intersection",schema:null,*entries(e,r){for(let{entries:n}of t)yield*n(e,r)},*validator(e,r){for(let{validator:n}of t)yield*n(e,r)},*refiner(e,r){for(let{refiner:n}of t)yield*n(e,r)}})}function u(r){let n=(0,t.yy)(r);let s=typeof r;return new e._k({type:"literal",schema:s==="string"||s==="number"||s==="boolean"?r:null,validator(e){return e===r||`Expected the literal \`${n}\`, but received: ${(0,t.yy)(e)}`}})}function h(){return(0,r.E8)("never",()=>!1)}function d(t){return new e._k({...t,validator:(e,r)=>e===null||t.validator(e,r),refiner:(e,r)=>e===null||t.refiner(e,r)})}function f(){return(0,r.E8)("number",e=>{return typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${(0,t.yy)(e)}`})}function m(r){let n=r?Object.keys(r):[];let s=h();return new e._k({type:"object",schema:r??null,*entries(i){if(r&&(0,t.Gv)(i)){let t=new Set(Object.keys(i));for(let s of n){t.delete(s);let n=r[s];if(e.P$.isExactOptional(n)&&!Object.prototype.hasOwnProperty.call(i,s))continue;yield[s,i[s],r[s]]}for(let e of t)yield[e,i[e],s]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`},coercer(e){return(0,t.Gv)(e)?{...e}:e}})}function p(t){return new e._k({...t,validator:(e,r)=>e===undefined||t.validator(e,r),refiner:(e,r)=>e===undefined||t.refiner(e,r)})}function g(t){return new e.P$(t)}function y(r,n){return new e._k({type:"record",schema:null,*entries(e){if((0,t.Gv)(e))for(let t in e){let s=e[t];yield[t,t,r],yield[t,s,n]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`}})}function v(){return(0,r.E8)("string",e=>{return typeof e=="string"||`Expected a string, but received: ${(0,t.yy)(e)}`})}function b(r){let n=h();return new e._k({type:"tuple",schema:null,*entries(e){if(Array.isArray(e)){let t=Math.max(r.length,e.length);for(let s=0;s<t;s++)yield[s,e[s],r[s]||n]}},validator(e){return Array.isArray(e)||`Expected an array, but received: ${(0,t.yy)(e)}`}})}function k(r){let n=Object.keys(r);return new e._k({type:"type",schema:r,*entries(s){if((0,t.Gv)(s))for(let t of n){if(e.P$.isExactOptional(r[t])&&!Object.prototype.hasOwnProperty.call(s,t))continue;yield[t,s[t],r[t]]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`},coercer(e){return(0,t.Gv)(e)?{...e}:e}})}function _(r){let n=r.map(e=>e.type).join(" | ");return new e._k({type:"union",schema:null,coercer(e){for(let t of r){let[r,n]=t.validate(e,{coerce:!0});if(!r)return n}return e},validator(e,s){let i=[];for(let n of r){let[...r]=(0,t.eF)(e,n,s);let[a]=r;if(!a?.[0])return[];for(let[e]of r)e&&i.push(e)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${(0,t.yy)(e)}`,...i]}})}function w(){return(0,r.E8)("unknown",()=>!0)}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},342741(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){"aggregates"in e?e.attrs?.["ip_address"]===undefined&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===undefined&&(e.ipAddress="{{auto}}")}__webpack_require__.d(__webpack_exports__,{N:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},352158(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{T:()=>e});let e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},355608(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{au:()=>t});var e=__webpack_require__(356583);function t(t,r,n){return new e._k({...t,coercer:(s,i)=>{return(0,e.is)(s,r)?t.coercer(n(s,i),i):t.coercer(s,i)}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},356583(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P$:()=>s,_k:()=>r,dK:()=>o,is:()=>l,tf:()=>c,vA:()=>i,vt:()=>a});var e=__webpack_require__(449070);var t=__webpack_require__(244231);class r{constructor(e){let{type:r,schema:n,validator:s,refiner:i,coercer:a=e=>e,entries:o=function*(){}}=e;this.type=r,this.schema=n,this.entries=o,this.coercer=a,s?this.validator=(e,r)=>{let n=s(e,r);return(0,t.RF)(n,r,this,e)}:this.validator=()=>[],i?this.refiner=(e,r)=>{let n=i(e,r);return(0,t.RF)(n,r,this,e)}:this.refiner=()=>[]}assert(e,t){return i(e,this,t)}create(e,t){return a(e,this,t)}is(e){return l(e,this)}mask(e,t){return o(e,this,t)}validate(e,t={}){return c(e,this,t)}}let n="EXACT_OPTIONAL";class s extends r{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=n}static isExactOptional(e){return(0,t.Gv)(e)&&"brand"in e&&e.brand===n}}function i(e,t,r){let n=c(e,t,{message:r});if(n[0])throw n[0]}function a(e,t,r){let n=c(e,t,{coerce:!0,message:r});if(!n[0])return n[1];throw n[0]}function o(e,t,r){let n=c(e,t,{coerce:!0,mask:!0,message:r});if(!n[0])return n[1];throw n[0]}function l(e,t){return!c(e,t)[0]}function c(r,n,s={}){let i=(0,t.eF)(r,n,s);let a=(0,t.jT)(i);return a[0]?[new e.C(a[0],function*(){for(let e of i)e[0]&&(yield e[0])}),undefined]:(0,[undefined,a[1]])}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},357180(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>r,R:()=>t});var e=__webpack_require__(78463);function t(t){let{trace_id:r,parent_span_id:n,span_id:s,status:i,origin:a,data:o,op:l}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:l,parent_span_id:n,span_id:s??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:r??"",origin:a,profile_id:o?.[e.E1],exclusive_time:o?.[e.jG],measurements:t.measurements,is_segment:!0}}function r(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[e.E1]:t.profile_id},...t.exclusive_time&&{[e.jG]:t.exclusive_time}}}},measurements:t.measurements}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},358496(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{V:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(98154);var r=__webpack_require__(682631);function n(n,s){return!s?[undefined,undefined]:(0,(0,e.v4)(s,()=>{let i=(0,r.Bk)();let a=i?(0,r.kX)(i):(0,e.vn)(s);return[i?(0,t.k1)(i):(0,t.ao)(n,s),a]}))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},361508(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>i});var e=__webpack_require__(577102);var t=__webpack_require__(563023);var r=__webpack_require__(6929);var n=__webpack_require__(994398);let s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];let i=(0,e._C)((e={})=>{let r={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){r.setTimeout&&(0,t.GS)(n.jf,"setTimeout",a),r.setInterval&&(0,t.GS)(n.jf,"setInterval",a),r.requestAnimationFrame&&(0,t.GS)(n.jf,"requestAnimationFrame",o),r.XMLHttpRequest&&"XMLHttpRequest"in n.jf&&(0,t.GS)(XMLHttpRequest.prototype,"send",l);let e=r.eventTarget;e&&(Array.isArray(e)?e:s).forEach(e=>c(e,r))}}});function a(e){return function(...t){let s=t[0];return t[0]=(0,n.LV)(s,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,r.qQ)(e)}`}}),e.apply(this,t)}}function o(e){return function(t){return e.apply(this,[(0,n.LV)(t,{mechanism:{data:{handler:(0,r.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function l(e){return function(...s){let i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in i&&typeof i[e]=="function"&&(0,t.GS)(i,e,function(s){let i={mechanism:{data:{handler:(0,r.qQ)(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}};let a=(0,t.sp)(s);return a&&(i.mechanism.data.handler=(0,r.qQ)(a)),(0,n.LV)(s,i)})}),e.apply(this,s)}}function c(e,s){let i=n.jf;let a=i[e]?.prototype;if(!a?.hasOwnProperty?.("addEventListener"))return;(0,t.GS)(a,"addEventListener",function(t){return function(i,a,o){try{u(a)&&(a.handleEvent=(0,n.LV)(a.handleEvent,{mechanism:{data:{handler:(0,r.qQ)(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return s.unregisterOriginalCallbacks&&h(this,i,a),t.apply(this,[i,(0,n.LV)(a,{mechanism:{data:{handler:(0,r.qQ)(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,t.GS)(a,"removeEventListener",function(e){return function(t,r,n){try{let s=r.__sentry_wrapped__;s&&e.call(this,t,s,n)}catch{}return e.call(this,t,r,n)}})}function u(e){return typeof e.handleEvent=="function"}function h(e,t,r){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,r)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},362108(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>e});let e=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:undefined}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_exports__,__webpack_require__}))()},377271(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$M:()=>v,AC:()=>N,BD:()=>_,Bm:()=>d,DI:()=>p,DL:()=>i,FP:()=>o,Fy:()=>C,Gz:()=>q,Ii:()=>x,J9:()=>w,JZ:()=>I,Jd:()=>u,LO:()=>S,MK:()=>F,PD:()=>h,PX:()=>m,Qi:()=>R,Rf:()=>b,Sh:()=>l,Wv:()=>H,ZD:()=>j,_T:()=>z,bM:()=>D,df:()=>$,fe:()=>t,gU:()=>a,go:()=>P,jK:()=>f,jO:()=>c,k9:()=>L,kF:()=>y,mS:()=>A,mo:()=>B,nK:()=>r,nn:()=>T,on:()=>k,qO:()=>s,s3:()=>M,u2:()=>E,v7:()=>g,y:()=>e,yc:()=>n,zu:()=>O});let e="gen_ai.prompt";let t="gen_ai.system";let r="gen_ai.request.model";let n="gen_ai.request.stream";let s="gen_ai.request.temperature";let i="gen_ai.request.max_tokens";let a="gen_ai.request.frequency_penalty";let o="gen_ai.request.presence_penalty";let l="gen_ai.request.top_p";let c="gen_ai.request.top_k";let u="gen_ai.request.encoding_format";let h="gen_ai.request.dimensions";let d="gen_ai.response.finish_reasons";let f="gen_ai.response.model";let m="gen_ai.response.id";let p="gen_ai.response.stop_reason";let g="gen_ai.usage.input_tokens";let y="gen_ai.usage.output_tokens";let v="gen_ai.usage.total_tokens";let b="gen_ai.operation.name";let k="sentry.sdk_meta.gen_ai.input.messages.original_length";let _="gen_ai.input.messages";let w="gen_ai.system_instructions";let S="gen_ai.response.text";let T="gen_ai.request.available_tools";let x="gen_ai.response.streaming";let E="gen_ai.response.tool_calls";let j="gen_ai.agent.name";let A="gen_ai.pipeline.name";let C="gen_ai.conversation.id";let M="gen_ai.usage.cache_creation_input_tokens";let I="gen_ai.usage.cache_read_input_tokens";let R="gen_ai.invoke_agent";let O="gen_ai.embeddings.input";let L="gen_ai.tool.name";let D="gen_ai.tool.input";let N="gen_ai.tool.output";let P="openai.response.id";let z="openai.response.model";let $="openai.response.timestamp";let q="openai.usage.completion_tokens";let H="openai.usage.prompt_tokens";let F={CHAT:"chat",EMBEDDINGS:"embeddings"};let B="anthropic.response.timestamp"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},378326(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=module.exports={};var t;var r;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}try{t=typeof setTimeout=="function"?setTimeout:n}catch(e){t=n}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch(e){r=s}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function a(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}var o=[];var l=!1;var c;var u=-1;function h(){if(!l||!c)return;l=!1,c.length?o=c.concat(o):u=-1,o.length&&d()}function d(){if(l)return;var e=i(h);l=!0;var t=o.length;while(t){c=o,o=[];while(++u<t)c&&c[u].run();u=-1,t=o.length}c=null,l=!1,a(e)}function f(e,t){this.fun=e,this.array=t}function m(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new f(e,t)),o.length===1&&!l&&i(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}}).call(__webpack_require__._LM_("process",{module,__webpack_require__}))()},381324(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{e:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(682631);var r=__webpack_require__(466737);function n(n){let s=(0,t.Bk)();if(s===n)return;let i=(0,e.o5)();n.end=new Proxy(n.end,{apply(e,t,n){return(0,r.r)(i,s),Reflect.apply(e,t,n)}}),(0,r.r)(i,n)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},381699(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AD:()=>h,SB:()=>i,hH:()=>a,ul:()=>u});var e=__webpack_require__(352158);var t=__webpack_require__(396102);let r=/^o(\d+)\./;let n=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e){return e==="http"||e==="https"}function i(e,t=!1){let{host:r,path:n,pass:s,port:a,projectId:o,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&s?`:${s}`:""}`+`@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function a(e){let r=n.exec(e);if(!r)return(0,t.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)}),undefined;let[s,i,a="",l="",c="",u=""]=r.slice(1);let h="";let d=u;let f=d.split("/");if(f.length>1&&(h=f.slice(0,-1).join("/"),d=f.pop()),d){let e=d.match(/^\d+/);e&&(d=e[0])}return o({host:l,pass:a,path:h,projectId:d,port:c,protocol:s,publicKey:i})}function o(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(r){if(!e.T)return!0;let{port:n,projectId:i,protocol:a}=r;return["protocol","publicKey","host","projectId"].find(e=>{return!r[e]?(t.Yz.error(`Invalid Sentry Dsn: ${e} missing`),!0):(0,!1)})?!1:(0,!i.match(/^\d+$/))?(t.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${i}`),!1):(0,!s(a))?(t.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(0,n&&isNaN(parseInt(n,10)))?(t.Yz.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):(0,!0)}function c(e){let t=e.match(r);return t?.[1]}function u(e){let t=e.getOptions();let{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=c(r)),n}function h(e){let t=typeof e=="string"?a(e):o(e);return!t||!l(t)?undefined:(0,t)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},382906(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s3:()=>l});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);var s;var i;var a;var o;(i=s||(s={}))["Primary"]="primary",i["Secondary"]="secondary",(o=a||(a={}))["Button"]="button",o["Submit"]="submit";let l=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Button),value:(0,e.Yj)(),variant:(0,e.lq)((0,e.KC)([(0,r.$9)(s.Primary),(0,r.$9)(s.Secondary)])),buttonType:(0,e.lq)((0,e.KC)([(0,r.$9)(a.Button),(0,r.$9)(a.Submit)])),name:(0,e.lq)((0,e.Yj)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},392316(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$X:()=>c,GR:()=>f,M6:()=>h,db:()=>d,eJ:()=>o,gO:()=>u});var e=__webpack_require__(563023);var t=__webpack_require__(147687);var r=__webpack_require__(180121);var n=__webpack_require__(901889);function s(){let e=n.O;return e.crypto||e.msCrypto}let i;function a(){return(0,t.hY)()*16}function o(e=s()){try{if(e?.randomUUID)return(0,t.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return!i&&(i=[1e7]+1e3+4e3+8e3+1e11),i.replace(/[018]/g,e=>(e^(a()&15)>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function c(e){let{message:t,event_id:r}=e;if(t)return t;let n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:(0,n.type||n.value||r||"<unknown>"):(0,r||"<unknown>")}function u(e,t,r){let n=e.exception=e.exception||{};let s=n.values=n.values||[];let i=s[0]=s[0]||{};!i.value&&(i.value=t||""),!i.type&&(i.type=r||"Error")}function h(e,t){let r=l(e);if(!r)return;let n=r.mechanism;if(r.mechanism={...{type:"generic",handled:!0},...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function d(e,t,n=5){if(t.lineno===undefined)return;let s=e.length;let i=Math.max(Math.min(s-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>(0,r.nC)(e,0));let a=Math.min(s-1,i);t.context_line=(0,r.nC)(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,s),i+1+n).map(e=>(0,r.nC)(e,0))}function f(t){if(m(t))return!0;try{(0,e.my)(t,"__sentry_captured__",!0)}catch{}return!1}function m(e){try{return e.__sentry_captured__}catch{}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},396102(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ow:()=>n,Yz:()=>c,Z9:()=>s,pq:()=>i});var e=__webpack_require__(943924);var t=__webpack_require__(352158);var r=__webpack_require__(901889);let n=["debug","info","warn","error","log","assert","trace"];let s={};function i(e){if(!("console"in r.O))return e();let t=r.O.console;let n={};let i=Object.keys(s);i.forEach(e=>{let r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function a(){return l().enabled}function o(e,...n){if(!t.T)return;a()&&i(()=>{r.O.console[e](`${"Sentry Logger "}[${e}]:`,...n)})}function l(){return!t.T?{enabled:!1}:(0,(0,e.BY)("loggerSettings",()=>({enabled:!1})))}let c={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:a,log:function(...e){o("log",...e)},warn:function(...e){o("warn",...e)},error:function(...e){o("error",...e)}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},402702(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{m:()=>a});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(298556);var n=__webpack_require__(396102);var s=__webpack_require__(484413);var i=__webpack_require__(994398);function a(o={}){let l=i.jf.document;let c=l?.head||l?.body;if(!c){s.T&&n.Yz.error("[showReportDialog] Global document not defined");return}let u=(0,t.o5)();let h=(0,t.KU)();let d=h?.getDsn();if(!d){s.T&&n.Yz.error("[showReportDialog] DSN not configured");return}let f={...o,user:{...u.getUser(),...o.user},eventId:o.eventId||(0,e.Q)()};let m=i.jf.document.createElement("script");m.async=!0,m.crossOrigin="anonymous",m.src=(0,r.k)(d,f);let{onLoad:p,onClose:g}=f;if(p&&(m.onload=p),g){let e=t=>{if(t.data==="__sentry_reportdialog_closed__")try{g()}finally{i.jf.removeEventListener("message",e)}};i.jf.addEventListener("message",e)}c.appendChild(m)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},404809(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C$:()=>y,LO:()=>f,sc:()=>g});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(577102);var n=__webpack_require__(18898);var s=__webpack_require__(652751);var i=__webpack_require__(625919);var a=__webpack_require__(632356);var o=__webpack_require__(396102);var l=__webpack_require__(6929);var c=__webpack_require__(925075);var u=__webpack_require__(484413);var h=__webpack_require__(691576);var d=__webpack_require__(994398);let f=(0,r._C)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(m(e),b("onerror")),t.onunhandledrejection&&(p(e),b("onunhandledrejection"))}}});function m(r){(0,s.L)(n=>{let{stackParser:s,attachStacktrace:i}=k();if((0,t.KU)()!==r||(0,d.jN)())return;let{msg:a,url:o,line:l,column:c,error:u}=n;let f=v((0,h.H7)(s,u||a,undefined,i,!1),o,l,c);f.level="error",(0,e.r)(f,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function p(r){(0,i.r)(n=>{let{stackParser:s,attachStacktrace:i}=k();if((0,t.KU)()!==r||(0,d.jN)())return;let o=g(n);let l=(0,a.sO)(o)?y(o):(0,h.H7)(s,o,undefined,i,!0);l.level="error",(0,e.r)(l,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function g(e){if((0,a.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function y(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function v(e,t,r,s){let i=e.exception=e.exception||{};let a=i.values=i.values||[];let o=a[0]=a[0]||{};let c=o.stacktrace=o.stacktrace||{};let u=c.frames=c.frames||[];let h=_(t)??(0,n.$N)();return u.length===0&&u.push({colno:s,filename:h,function:l.yF,in_app:!0,lineno:r}),e}function b(e){u.T&&o.Yz.log(`Global Handler attached: ${e}`)}function k(){let e=(0,t.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function _(e){return!(0,a.Kg)(e)||e.length===0?undefined:(0,e.startsWith("data:"))?`<${(0,c.zm)(e,!1)}>`:(0,e)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},410710(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>o});var e=__webpack_require__(352158);var t=__webpack_require__(652751);var r=__webpack_require__(625919);var n=__webpack_require__(396102);var s=__webpack_require__(682631);var i=__webpack_require__(276435);let a=!1;function o(){if(a)return;function o(){let t=(0,s.Bk)();let r=t&&(0,s.zU)(t);if(r){let t="internal_error";e.T&&n.Yz.log(`[Tracing] Root span: ${t} -> Global error occurred`),r.setStatus({code:i.TJ,message:t})}}o.tag="sentry_tracingErrorCallback",a=!0,(0,t.L)(o),(0,r.r)(o)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},411335(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Gr:()=>i,KT:()=>a});var e=__webpack_require__(901889);let t=new Map;let r=new Set;function n(n){if(!e.O._sentryModuleMetadata)return;for(let s of Object.keys(e.O._sentryModuleMetadata)){let i=e.O._sentryModuleMetadata[s];if(r.has(s))continue;for(let e of(r.add(s),n(s).reverse()))if(e.filename){t.set(e.filename,i);break}}}function s(e,r){return n(e),t.get(r)}function i(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=s(e,t.filename);r&&(t.module_metadata=r)})})}function a(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},413279(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e,t;var r,n;r=typeof globalThis!=="undefined"&&globalThis,n=function(e){if(typeof browser=="undefined"||Object.getPrototypeOf(browser)!==Object.prototype){if(typeof chrome!="object"||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=(e=>{let t={"alarms":{"clear":{"minArgs":0,"maxArgs":1},"clearAll":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0}},"bookmarks":{"create":{"minArgs":1,"maxArgs":1},"get":{"minArgs":1,"maxArgs":1},"getChildren":{"minArgs":1,"maxArgs":1},"getRecent":{"minArgs":1,"maxArgs":1},"getSubTree":{"minArgs":1,"maxArgs":1},"getTree":{"minArgs":0,"maxArgs":0},"move":{"minArgs":2,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeTree":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}},"browserAction":{"disable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"enable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"getBadgeBackgroundColor":{"minArgs":1,"maxArgs":1},"getBadgeText":{"minArgs":1,"maxArgs":1},"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"openPopup":{"minArgs":0,"maxArgs":0},"setBadgeBackgroundColor":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setBadgeText":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"browsingData":{"remove":{"minArgs":2,"maxArgs":2},"removeCache":{"minArgs":1,"maxArgs":1},"removeCookies":{"minArgs":1,"maxArgs":1},"removeDownloads":{"minArgs":1,"maxArgs":1},"removeFormData":{"minArgs":1,"maxArgs":1},"removeHistory":{"minArgs":1,"maxArgs":1},"removeLocalStorage":{"minArgs":1,"maxArgs":1},"removePasswords":{"minArgs":1,"maxArgs":1},"removePluginData":{"minArgs":1,"maxArgs":1},"settings":{"minArgs":0,"maxArgs":0}},"commands":{"getAll":{"minArgs":0,"maxArgs":0}},"contextMenus":{"remove":{"minArgs":1,"maxArgs":1},"removeAll":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"cookies":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":1,"maxArgs":1},"getAllCookieStores":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"devtools":{"inspectedWindow":{"eval":{"minArgs":1,"maxArgs":2,"singleCallbackArg":!1}},"panels":{"create":{"minArgs":3,"maxArgs":3,"singleCallbackArg":!0},"elements":{"createSidebarPane":{"minArgs":1,"maxArgs":1}}}},"downloads":{"cancel":{"minArgs":1,"maxArgs":1},"download":{"minArgs":1,"maxArgs":1},"erase":{"minArgs":1,"maxArgs":1},"getFileIcon":{"minArgs":1,"maxArgs":2},"open":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"pause":{"minArgs":1,"maxArgs":1},"removeFile":{"minArgs":1,"maxArgs":1},"resume":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"extension":{"isAllowedFileSchemeAccess":{"minArgs":0,"maxArgs":0},"isAllowedIncognitoAccess":{"minArgs":0,"maxArgs":0}},"history":{"addUrl":{"minArgs":1,"maxArgs":1},"deleteAll":{"minArgs":0,"maxArgs":0},"deleteRange":{"minArgs":1,"maxArgs":1},"deleteUrl":{"minArgs":1,"maxArgs":1},"getVisits":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1}},"i18n":{"detectLanguage":{"minArgs":1,"maxArgs":1},"getAcceptLanguages":{"minArgs":0,"maxArgs":0}},"identity":{"launchWebAuthFlow":{"minArgs":1,"maxArgs":1}},"idle":{"queryState":{"minArgs":1,"maxArgs":1}},"management":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"getSelf":{"minArgs":0,"maxArgs":0},"setEnabled":{"minArgs":2,"maxArgs":2},"uninstallSelf":{"minArgs":0,"maxArgs":1}},"notifications":{"clear":{"minArgs":1,"maxArgs":1},"create":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":0},"getPermissionLevel":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"pageAction":{"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"hide":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"permissions":{"contains":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"request":{"minArgs":1,"maxArgs":1}},"runtime":{"getBackgroundPage":{"minArgs":0,"maxArgs":0},"getPlatformInfo":{"minArgs":0,"maxArgs":0},"openOptionsPage":{"minArgs":0,"maxArgs":0},"requestUpdateCheck":{"minArgs":0,"maxArgs":0},"sendMessage":{"minArgs":1,"maxArgs":3},"sendNativeMessage":{"minArgs":2,"maxArgs":2},"setUninstallURL":{"minArgs":1,"maxArgs":1}},"sessions":{"getDevices":{"minArgs":0,"maxArgs":1},"getRecentlyClosed":{"minArgs":0,"maxArgs":1},"restore":{"minArgs":0,"maxArgs":1}},"storage":{"local":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"managed":{"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1}},"sync":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}}},"tabs":{"captureVisibleTab":{"minArgs":0,"maxArgs":2},"create":{"minArgs":1,"maxArgs":1},"detectLanguage":{"minArgs":0,"maxArgs":1},"discard":{"minArgs":0,"maxArgs":1},"duplicate":{"minArgs":1,"maxArgs":1},"executeScript":{"minArgs":1,"maxArgs":2},"get":{"minArgs":1,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":0},"getZoom":{"minArgs":0,"maxArgs":1},"getZoomSettings":{"minArgs":0,"maxArgs":1},"goBack":{"minArgs":0,"maxArgs":1},"goForward":{"minArgs":0,"maxArgs":1},"highlight":{"minArgs":1,"maxArgs":1},"insertCSS":{"minArgs":1,"maxArgs":2},"move":{"minArgs":2,"maxArgs":2},"query":{"minArgs":1,"maxArgs":1},"reload":{"minArgs":0,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeCSS":{"minArgs":1,"maxArgs":2},"sendMessage":{"minArgs":2,"maxArgs":3},"setZoom":{"minArgs":1,"maxArgs":2},"setZoomSettings":{"minArgs":1,"maxArgs":2},"update":{"minArgs":1,"maxArgs":2}},"topSites":{"get":{"minArgs":0,"maxArgs":0}},"webNavigation":{"getAllFrames":{"minArgs":1,"maxArgs":1},"getFrame":{"minArgs":1,"maxArgs":1}},"webRequest":{"handlerBehaviorChanged":{"minArgs":0,"maxArgs":0}},"windows":{"create":{"minArgs":0,"maxArgs":1},"get":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":1},"getLastFocused":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}}};if(Object.keys(t).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class r extends WeakMap{constructor(e,t=undefined){super(t),this.createItem=e}get(e){return!this.has(e)&&this.set(e,this.createItem(e)),super.get(e)}}let n=(t,r)=>{return(...n)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):r.singleCallbackArg||n.length<=1&&r.singleCallbackArg!==!1?t.resolve(n[0]):t.resolve(n)}};let s=e=>e==1?"argument":"arguments";let i=(e,t,r)=>{return new Proxy(t,{apply(t,n,s){return r.call(n,e,...s)}})};let a=Function.call.bind(Object.prototype.hasOwnProperty);let o=(e,t={},r={})=>{let l=Object.create(null);return new Proxy(Object.create(e),{has(t,r){return r in e||r in l},get(c,u,h){if(u in l)return l[u];if(!(u in e))return undefined;let d=e[u];if(typeof d=="function")if(typeof t[u]=="function")d=i(e,e[u],t[u]);else if(a(r,u)){var f;let t=(u,f=r[u],function(e,...t){if(t.length<f.minArgs)throw new Error(`Expected at least ${f.minArgs} ${s(f.minArgs)} for ${u}(), got ${t.length}`);if(t.length>f.maxArgs)throw new Error(`Expected at most ${f.maxArgs} ${s(f.maxArgs)} for ${u}(), got ${t.length}`);return new Promise((r,s)=>{if(f.fallbackToNoCallback)try{e[u](...t,n({resolve:r,reject:s},f))}catch(n){console.warn(`${u} API method doesn't seem to support the callback parameter, `+"falling back to call it without a callback: ",n),e[u](...t),f.fallbackToNoCallback=!1,f.noCallback=!0,r()}else f.noCallback?(e[u](...t),r()):e[u](...t,n({resolve:r,reject:s},f))})});d=i(e,e[u],t)}else d=d.bind(e);else if(typeof d=="object"&&d!==null&&(a(t,u)||a(r,u)))d=o(d,t[u],r[u]);else if(!a(r,"*"))return Object.defineProperty(l,u,{configurable:!0,enumerable:!0,get(){return e[u]},set(t){e[u]=t}}),d;else d=o(d,t[u],r["*"]);return l[u]=d,d},set(t,r,n,s){return r in l?l[r]=n:e[r]=n,!0},defineProperty(e,t,r){return Reflect.defineProperty(l,t,r)},deleteProperty(e,t){return Reflect.deleteProperty(l,t)}})};let l=e=>({addListener(t,r,...n){t.addListener(e.get(r),...n)},hasListener(t,r){return t.hasListener(e.get(r))},removeListener(t,r){t.removeListener(e.get(r))}});let c=new r(e=>{return typeof e!=="function"?e:(0,function(t){e(o(t,{},{getContent:{minArgs:0,maxArgs:0}}))})});let u=!1;let h=new r(e=>{return typeof e!=="function"?e:(0,function(t,r,n){let s=!1;let i;let a=new Promise(e=>{i=function(t){!u&&(console.warn("Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",new Error().stack),u=!0),s=!0,e(t)}});let o;try{o=e(t,r,i)}catch(e){o=Promise.reject(e)}var l;let c=o!==!0&&(l=o)&&typeof l=="object"&&typeof l.then=="function";if(o!==!0&&!c&&!s)return!1;return(c?o:a).then(e=>{n(e)},e=>{let t;n({__mozWebExtensionPolyfillReject__:!0,message:t=e&&(e instanceof Error||typeof e.message=="string")?e.message:"An unexpected error occurred"})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)}),!0})});let d=({reject:t,resolve:r},n)=>{e.runtime.lastError?e.runtime.lastError.message==="The message port closed before a response was received."?r():t(new Error(e.runtime.lastError.message)):n&&n.__mozWebExtensionPolyfillReject__?t(new Error(n.message)):r(n)};let f=(e,t,r,...n)=>{if(n.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${s(t.minArgs)} for ${e}(), got ${n.length}`);if(n.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,t)=>{let s=d.bind(null,{resolve:e,reject:t});n.push(s),r.sendMessage(...n)})};let m={devtools:{network:{onRequestFinished:l(c)}},runtime:{onMessage:l(h),onMessageExternal:l(h),sendMessage:f.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:f.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}};let p={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{"*":p},services:{"*":p},websites:{"*":p}},o(e,m,t)})(chrome)}else e.exports=browser},!0&&(e=[module],(t="function"=="function"?n.apply(exports,e):n)!==undefined&&(module.exports=t))}}).call(__webpack_require__._LM_("webextension-polyfill",{module,exports,__webpack_require__})).bind(exports)()},419142(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M:()=>e});let e="10.38.0"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},425294(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{fE:()=>l,gQ:()=>o,vv:()=>a,zW:()=>i});var e=__webpack_require__(931263);var t=__webpack_require__(276435);var r=__webpack_require__(377271);var n=__webpack_require__(788241);var s=__webpack_require__(636534);function i(e){return s.Q.includes(e)}function a(e,t){if(Array.isArray(t)&&t.length===0)return;let{systemInstructions:s,filteredMessages:i}=(0,n.oW)(t);s&&e.setAttributes({[r.J9]:s});let a=Array.isArray(i)?i.length:1;e.setAttributes({[r.BD]:(0,n.eS)(i),[r.on]:a})}function o(r,n){n.error&&(r.setStatus({code:t.TJ,message:n.error.type||"internal_error"}),(0,e.Cp)(n.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function l(e){let{system:t,messages:r,input:n}=e;let s=typeof t=="string"?[{role:"system",content:e.system}]:[];let i=Array.isArray(n)?n:n!=null?[n]:undefined;let a=Array.isArray(r)?r:r!=null?[r]:[];return[...s,...i??a]}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},427581(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Go:()=>e,Rb:()=>t});let e=["responses.create","chat.completions.create","embeddings.create","conversations.create"];let t=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"]]}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},443697(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Qi:()=>u,cM:()=>d,cs:()=>h});var e=__webpack_require__(342672);var t=__webpack_require__(142282);var r=__webpack_require__(908743);var n=__webpack_require__(745085);var s=__webpack_require__(647388);var i=__webpack_require__(879771);var a=__webpack_require__(937053);var o=__webpack_require__(484068);let l=(0,e.KC)([s.rI,s.Es,s.ux,(0,e.Yj)(),(0,e.zM)(),t.FX]);let c=(0,e.g1)((0,e.Yj)(),(0,e.me)(l));(0,e.g1)((0,e.Yj)(),(0,e.KC)([c,(0,e.me)(l)]));let u=(0,i.E$)(e=>{return(0,n.Gv)(e)&&!(0,n.i5)(e,"props")?o.vb:(0,a.Pm)});let h=(0,e.g1)((0,e.Yj)(),r.zC);var d;var f;(f=d||(d={}))["Insight"]="Insight",f["Dialog"]="Dialog",f["Notification"]="Notification",f["HomePage"]="HomePage"}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},444284(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>n});var e=__webpack_require__(381699);var t=__webpack_require__(260516);function r(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function n(n,s,i,a){let o={};return s?.sdk&&(o.sdk={name:s.sdk.name,version:s.sdk.version}),!!i&&!!a&&(o.dsn=(0,e.SB)(a)),(0,t.h4)(o,[r(n)])}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},444971(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{c:()=>l});var e=__webpack_require__(123532);var t=__webpack_require__(682631);var r=__webpack_require__(381699);var n=__webpack_require__(396102);var s=__webpack_require__(392316);var i=__webpack_require__(260516);var a=__webpack_require__(484413);var o=__webpack_require__(19727);class l{constructor(){this._client=undefined,this._profiler=undefined,this._chunkTimer=undefined,this._profilerId=undefined,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=undefined,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle;let r=(0,o.hY)(e.getOptions());a.T&&n.Yz.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!r&&a.T&&n.Yz.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,s.eJ)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,t==="trace"&&this._setupTraceLifecycleListeners(e)}start(){if(this._lifecycleMode==="trace"){a.T&&n.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){a.T&&n.Yz.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){a.T&&n.Yz.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){a.T&&n.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){a.T&&n.Yz.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let r=this._activeRootSpanIds.size;r===1&&(a.T&&n.Yz.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(this._isRunning)return;if(this._isRunning=!0,a.T&&n.Yz.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,e.m6)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){a.T&&n.Yz.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}_endProfiling(){if(!this._isRunning)return;this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=undefined),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{a.T&&n.Yz.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode==="manual"&&(0,e.m6)().setContext("profile",{})}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){a.T&&n.Yz.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,t.zU)(e))return;if(!e.isRecording()){a.T&&n.Yz.log("[Profiling] Discarding profile because root span was not sampled.");return}let r=e.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);let s=this._activeRootSpanIds.size;s===1&&(a.T&&n.Yz.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${s}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let r=this._activeRootSpanIds.size;a.T&&n.Yz.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),r===0&&(this._collectCurrentChunk().catch(e=>{a.T&&n.Yz.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,e.m6)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=(0,o.Dg)();if(!e){a.T&&n.Yz.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){if(!this._isRunning)return;this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{a.T&&n.Yz.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},6e4)}_onRootSpanTimeout(e){if(!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),!this._activeRootSpanIds.has(e)))return;a.T&&n.Yz.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=undefined,!e)return;try{let t=await e.stop();let r=(0,o.r0)(t,this._client,this._profilerId);let s=(0,o.r3)(r);if("reason"in s){a.T&&n.Yz.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",s.reason);return}this._sendProfileChunk(r),a.T&&n.Yz.log("[Profiling] Collected browser profile chunk.")}catch(e){a.T&&n.Yz.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client;let o=(0,i.Cj)(t.getSdkMetadata?.());let l=t.getDsn();let c=t.getOptions().tunnel;let u=(0,i.h4)({event_id:(0,s.eJ)(),sent_at:new Date().toISOString(),...o&&{sdk:o},...!!c&&l&&{dsn:(0,r.SB)(l)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(u).then(null,e=>{a.T&&n.Yz.error("Error while sending profile chunk envelope:",e)})}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},449070(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>e});class e extends TypeError{constructor(e,t){let r;let{message:n,explanation:s,...i}=e;let{path:a}=e;let o=a.length===0?n:`At path: ${a.join(".")} -- ${n}`;super(s??o),s!==null&&s!==undefined&&(this.cause=o),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{return r??(r=[e,...t()])}}}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_exports__,__webpack_require__}))()},453827(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{VZ:()=>r,jy:()=>s,rb:()=>t,tB:()=>n});var e=__webpack_require__(994398);function t(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))}function r(t){try{return new URL(t,e.jf.location.origin).href}catch{return undefined}}function n(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function s(e){try{return new Headers(e)}catch{return undefined}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},453945(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let s=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Copyable),value:(0,e.Yj)(),sensitive:(0,e.lq)((0,e.zM)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},456247(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{K:()=>o});var e=__webpack_require__(827284);var t=__webpack_require__(78463);var r=__webpack_require__(123532);var n=__webpack_require__(682631);var s=__webpack_require__(306981);var i=__webpack_require__(821396);var a=__webpack_require__(33040);function o(){return(0,a.D)()&&(0,s.k3)()?(0,i.wv)("element",l):(0,()=>undefined)}let l=({entries:i})=>{let o=(0,n.Bk)();let l=o?(0,n.zU)(o):undefined;let c=l?(0,n.et)(l).description:(0,r.o5)().getScopeData().transactionName;i.forEach(r=>{if(!r.identifier)return;let n=r.name;let i=r.renderTime;let o=r.loadTime;let[l,u]=o?[(0,a.rv)(o),"load-time"]:i?[(0,a.rv)(i),"render-time"]:[(0,s.zf)(),"entry-emission"];let h=n==="image-paint"?(0,a.rv)(Math.max(0,(i??0)-(o??0))):0;let d={[t.JD]:"auto.ui.browser.elementtiming",[t.uT]:"ui.elementtiming",[t.i_]:"component","sentry.span_start_time_source":u,"sentry.transaction_name":c,"element.id":r.id,"element.type":r.element?.tagName?.toLowerCase()||"unknown","element.size":r.naturalWidth&&r.naturalHeight?`${r.naturalWidth}x${r.naturalHeight}`:undefined,"element.render_time":i,"element.load_time":o,"element.url":r.url||undefined,"element.identifier":r.identifier,"element.paint_type":n};(0,e.Lk)({name:`element[${r.identifier}]`,attributes:d,startTime:l,onlyIfParent:!0},e=>{e.end(l+h)})})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},456403(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>e});let e="auto.ai.langgraph"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},456895(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;module=__webpack_require__.nmd(module),(function(){var t;var r="Expected a function";var n="__lodash_hash_undefined__";var s="__lodash_placeholder__";var i=1/0,a=0/0;var o=0xffffffff-1,l=0xffffffff>>>1;var c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var u="[object Arguments]",h="[object Array]",d="[object Boolean]",f="[object Date]",m="[object Error]",p="[object Function]",g="[object GeneratorFunction]",y="[object Map]",v="[object Number]",b="[object Object]",k="[object Promise]",_="[object RegExp]",w="[object Set]",S="[object String]",T="[object Symbol]",x="[object WeakMap]";var E="[object ArrayBuffer]",j="[object DataView]",A="[object Float32Array]",C="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",R="[object Int32Array]",O="[object Uint8Array]",L="[object Uint8ClampedArray]",D="[object Uint16Array]",N="[object Uint32Array]";var P=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,F=RegExp(q.source),B=RegExp(H.source);var U=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g;var Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var K=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(K.source);var Q=/^\s+/;var X=/\s/;var ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,et=/\{\n\/\* \[wrapped with (.+)\] \*/,er=/,? & /;var en=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var es=/[()=,{}\[\]\/\s]/;var ei=/\\(\\)?/g;var ea=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var eo=/\w*$/;var el=/^[-+]0x[0-9a-f]+$/i;var ec=/^0b[01]+$/i;var eu=/^\[object .+?Constructor\]$/;var eh=/^0o[0-7]+$/i;var ed=/^(?:0|[1-9]\d*)$/;var ef=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var em=/($^)/;var ep=/['\n\r\u2028\u2029\\]/g;var eg="\ud800-\udfff",ey="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",ev="\\u2700-\\u27bf",eb="a-z\\xdf-\\xf6\\xf8-\\xff",ek="A-Z\\xc0-\\xd6\\xd8-\\xde",e_="\\ufe0e\\ufe0f",ew="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";var eS="['’]",eT="["+ew+"]",ex="["+ey+"]",eE="["+eb+"]",ej="[^"+eg+ew+"\\d+"+ev+eb+ek+"]",eA="\ud83c[\udffb-\udfff]",eC="[^"+eg+"]",eM="(?:\ud83c[\udde6-\uddff]){2}",eI="[\ud800-\udbff][\udc00-\udfff]",eR="["+ek+"]",eO="\\u200d";var eL="(?:"+eE+"|"+ej+")",eD="(?:"+eR+"|"+ej+")",eN="(?:"+eS+"(?:d|ll|m|re|s|t|ve))?",eP="(?:"+eS+"(?:D|LL|M|RE|S|T|VE))?",ez="(?:"+ex+"|"+eA+")"+"?",e$="["+e_+"]?",eq="(?:"+eO+"(?:"+[eC,eM,eI].join("|")+")"+e$+ez+")*",eH=e$+ez+eq,eF="(?:"+["["+ev+"]",eM,eI].join("|")+")"+eH,eB="(?:"+[eC+ex+"?",ex,eM,eI,"["+eg+"]"].join("|")+")";var eU=RegExp(eS,"g");var eG=RegExp(ex,"g");var eW=RegExp(eA+"(?="+eA+")|"+eB+eH,"g");var eY=RegExp([eR+"?"+eE+"+"+eN+"(?="+[eT,eR,"$"].join("|")+")",eD+"+"+eP+"(?="+[eT,eR+eL,"$"].join("|")+")",eR+"?"+eL+"+"+eN,eR+"+"+eP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eF].join("|"),"g");var eV=RegExp("["+eO+eg+ey+e_+"]");var eJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var eK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var eZ=-1;var eQ={};eQ[A]=eQ[C]=eQ[M]=eQ[I]=eQ[R]=eQ[O]=eQ[L]=eQ[D]=eQ[N]=!0,eQ[u]=eQ[h]=eQ[E]=eQ[d]=eQ[j]=eQ[f]=eQ[m]=eQ[p]=eQ[y]=eQ[v]=eQ[b]=eQ[_]=eQ[w]=eQ[S]=eQ[x]=!1;var eX={};eX[u]=eX[h]=eX[E]=eX[j]=eX[d]=eX[f]=eX[A]=eX[C]=eX[M]=eX[I]=eX[R]=eX[y]=eX[v]=eX[b]=eX[_]=eX[w]=eX[S]=eX[T]=eX[O]=eX[L]=eX[D]=eX[N]=!0,eX[m]=eX[p]=eX[x]=!1;var e0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var e1=parseFloat,e3=parseInt;var e2=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;var e6=typeof self=="object"&&self&&self.Object===Object&&self;var e5=e2||e6||Function("return this")();var e8=!0&&exports&&!exports.nodeType&&exports;var e4=e8&&"object"=="object"&&module&&!module.nodeType&&module;var e7=e4&&e4.exports===e8;var e9=e7&&e2.process;var te=function(){try{var e=e4&&e4.require&&e4.require("util").types;if(e)return e;return e9&&e9.binding&&e9.binding("util")}catch(e){}}();var tt=te&&te.isArrayBuffer,tr=te&&te.isDate,tn=te&&te.isMap,ts=te&&te.isRegExp,ti=te&&te.isSet,ta=te&&te.isTypedArray;function to(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tl(e,t,r,n){var s=-1,i=e==null?0:e.length;while(++s<i){var a=e[s];t(n,a,r(a),e)}return n}function tc(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(t(e[r],r,e)===!1)break;return e}function tu(e,t){var r=e==null?0:e.length;while(r--)if(t(e[r],r,e)===!1)break;return e}function th(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(!t(e[r],r,e))return!1;return!0}function td(e,t){var r=-1,n=e==null?0:e.length,s=0,i=[];while(++r<n){var a=e[r];t(a,r,e)&&(i[s++]=a)}return i}function tf(e,t){return!!(e==null?0:e.length)&&tx(e,t,0)>-1}function tm(e,t,r){var n=-1,s=e==null?0:e.length;while(++n<s)if(r(t,e[n]))return!0;return!1}function tp(e,t){var r=-1,n=e==null?0:e.length,s=Array(n);while(++r<n)s[r]=t(e[r],r,e);return s}function tg(e,t){var r=-1,n=t.length,s=e.length;while(++r<n)e[s+r]=t[r];return e}function ty(e,t,r,n){var s=-1,i=e==null?0:e.length;n&&i&&(r=e[++s]);while(++s<i)r=t(r,e[s],s,e);return r}function tv(e,t,r,n){var s=e==null?0:e.length;n&&s&&(r=e[--s]);while(s--)r=t(r,e[s],s,e);return r}function tb(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(t(e[r],r,e))return!0;return!1}var tk=tC("length");function t_(e){return e.split("")}function tw(e){return e.match(en)||[]}function tS(e,t,r){var n;return r(e,function(e,r,s){if(t(e,r,s))return n=r,!1}),n}function tT(e,t,r,n){var s=e.length,i=r+(n?1:-1);while(n?i--:++i<s)if(t(e[i],i,e))return i;return-1}function tx(e,t,r){return t==t?t1(e,t,r):tT(e,tj,r)}function tE(e,t,r,n){var s=r-1,i=e.length;while(++s<i)if(n(e[s],t))return s;return-1}function tj(e){return e!=e}function tA(e,t){var r=e==null?0:e.length;return r?tO(e,t)/r:a}function tC(e){return function(r){return r==null?t:r[e]}}function tM(e){return function(r){return e==null?t:e[r]}}function tI(e,t,r,n,s){return s(e,function(e,s,i){r=n?(n=!1,e):t(r,e,s,i)}),r}function tR(e,t){var r=e.length;e.sort(t);while(r--)e[r]=e[r].value;return e}function tO(e,r){var n,s=-1,i=e.length;while(++s<i){var a=r(e[s]);a!==t&&(n=n===t?a:n+a)}return n}function tL(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function tD(e,t){return tp(t,function(t){return[t,e[t]]})}function tN(e){return e?e.slice(0,t5(e)+1).replace(Q,""):e}function tP(e){return function(t){return e(t)}}function tz(e,t){return tp(t,function(t){return e[t]})}function t$(e,t){return e.has(t)}function tq(e,t){var r=-1,n=e.length;while(++r<n&&tx(t,e[r],0)>-1);return r}function tH(e,t){var r=e.length;while(r--&&tx(t,e[r],0)>-1);return r}function tF(e,t){var r=e.length,n=0;while(r--)e[r]===t&&++n;return n}var tB=tM({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"});var tU=tM({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tG(e){return"\\"+e0[e]}function tW(e,r){return e==null?t:e[r]}function tY(e){return eV.test(e)}function tV(e){return eJ.test(e)}function tJ(e){var t,r=[];while(!(t=e.next()).done)r.push(t.value);return r}function tK(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tZ(e,t){return function(r){return e(t(r))}}function tQ(e,t){var r=-1,n=e.length,i=0,a=[];while(++r<n){var o=e[r];(o===t||o===s)&&(e[r]=s,a[i++]=r)}return a}function tX(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function t0(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function t1(e,t,r){var n=r-1,s=e.length;while(++n<s)if(e[n]===t)return n;return-1}function t3(e,t,r){var n=r+1;while(n--)if(e[n]===t)return n;return n}function t2(e){return tY(e)?t4(e):tk(e)}function t6(e){return tY(e)?t7(e):t_(e)}function t5(e){var t=e.length;while(t--&&X.test(e.charAt(t)));return t}var t8=tM({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});function t4(e){var t=eW.lastIndex=0;while(eW.test(e))++t;return t}function t7(e){return e.match(eW)||[]}function t9(e){return e.match(eY)||[]}var re=function e(X){var en=(X=X==null?e5:re.defaults(e5.Object(),X,re.pick(e5,eK))).Array,eg=X.Date,ey=X.Error,ev=X.Function,eb=X.Math,ek=X.Object,e_=X.RegExp,ew=X.String,eS=X.TypeError;var eT=en.prototype,ex=ev.prototype,eE=ek.prototype;var ej=X["__core-js_shared__"];var eA=ex.toString;var eC=eE.hasOwnProperty;var eM=0;var eI;var eR=(eI=/[^.]+$/.exec(ej&&ej.keys&&ej.keys.IE_PROTO||""))?"Symbol(src)_1."+eI:"";var eO=eE.toString;var eL=eA.call(ek);var eD=e5._;var eN=e_("^"+eA.call(eC).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var eP=e7?X.Buffer:t,ez=X.Symbol,e$=X.Uint8Array,eq=eP?eP.allocUnsafe:t,eH=tZ(ek.getPrototypeOf,ek),eF=ek.create,eB=eE.propertyIsEnumerable,eW=eT.splice,eY=ez?ez.isConcatSpreadable:t,eV=ez?ez.iterator:t,eJ=ez?ez.toStringTag:t;var e0=function(){try{var e=ip(ek,"defineProperty");return e({},"",{}),e}catch(e){}}();var e2=X.clearTimeout!==e5.clearTimeout&&X.clearTimeout,e6=eg&&eg.now!==e5.Date.now&&eg.now,e8=X.setTimeout!==e5.setTimeout&&X.setTimeout;var e4=eb.ceil,e9=eb.floor,te=ek.getOwnPropertySymbols,tk=eP?eP.isBuffer:t,t_=X.isFinite,tM=eT.join,t1=tZ(ek.keys,ek),t4=eb.max,t7=eb.min,rt=eg.now,rr=X.parseInt,rn=eb.random,rs=eT.reverse;var ri=ip(X,"DataView"),ra=ip(X,"Map"),ro=ip(X,"Promise"),rl=ip(X,"Set"),rc=ip(X,"WeakMap"),ru=ip(ek,"create");var rh=rc&&new rc;var rd={};var rf=i0(ri),rm=i0(ra),rp=i0(ro),rg=i0(rl),ry=i0(rc);var rv=ez?ez.prototype:t,rb=rv?rv.valueOf:t,rk=rv?rv.toString:t;function r_(e){if(ly(e)&&!le(e)&&!(e instanceof rx)){if(e instanceof rT)return e;if(eC.call(e,"__wrapped__"))return i3(e)}return new rT(e)}var rw=function(){function e(){}return function(r){if(!lg(r))return{};if(eF)return eF(r);e.prototype=r;var n=new e;return e.prototype=t,n}}();function rS(){}function rT(e,r){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function rx(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rE(){var e=new rx(this.__wrapped__);return e.__actions__=sL(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=sL(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=sL(this.__views__),e}function rj(){if(this.__filtered__){var e=new rx(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function rA(){var e=this.__wrapped__.value(),t=this.__dir__,r=le(e),n=t<0,s=r?e.length:0,i=ik(0,s,this.__views__),a=i.start,o=i.end,l=o-a,c=n?o:a-1,u=this.__iteratees__,h=u.length,d=0,f=t7(l,this.__takeCount__);if(!r||!n&&s==l&&f==l)return sg(e,this.__actions__);var m=[];t:while(l--&&d<f){var p=-1,g=e[c+=t];while(++p<h){var y=u[p],v=y.iteratee,b=y.type,k=v(g);if(b==2)g=k;else if(!k){if(b==1)continue t;break t}}m[d++]=g}return m}function rC(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function rM(){this.__data__=ru?ru(null):{},this.size=0}function rI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function rR(e){var r=this.__data__;if(ru){var s=r[e];return s===n?t:s}return eC.call(r,e)?r[e]:t}function rO(e){var r=this.__data__;return ru?r[e]!==t:eC.call(r,e)}function rL(e,r){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=ru&&r===t?n:r,this}function rD(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function rN(){this.__data__=[],this.size=0}function rP(e){var t=this.__data__,r=r7(t,e);return r<0?!1:(r==t.length-1?t.pop():eW.call(t,r,1),--this.size,!0)}function rz(e){var r=this.__data__,n=r7(r,e);return n<0?t:r[n][1]}function r$(e){return r7(this.__data__,e)>-1}function rq(e,t){var r=this.__data__,n=r7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function rH(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function rF(){this.size=0,this.__data__={"hash":new rC,"map":new(ra||rD),"string":new rC}}function rB(e){var t=id(this,e)["delete"](e);return this.size-=t?1:0,t}function rU(e){return id(this,e).get(e)}function rG(e){return id(this,e).has(e)}function rW(e,t){var r=id(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function rY(e){var t=-1,r=e==null?0:e.length;this.__data__=new rH;while(++t<r)this.add(e[t])}function rV(e){return this.__data__.set(e,n),this}function rJ(e){return this.__data__.has(e)}function rK(e){var t=this.__data__=new rD(e);this.size=t.size}function rZ(){this.__data__=new rD,this.size=0}function rQ(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}function rX(e){return this.__data__.get(e)}function r0(e){return this.__data__.has(e)}function r1(e,t){var r=this.__data__;if(r instanceof rD){var n=r.__data__;if(!ra||n.length<200-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rH(n)}return r.set(e,t),this.size=r.size,this}function r3(e,t){var r=le(e),n=!r&&o9(e),s=!r&&!n&&li(e),i=!r&&!n&&!s&&lR(e),a=r||n||s||i,o=a?tL(e.length,ew):[],l=o.length;for(var c in e)(t||eC.call(e,c))&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||iA(c,l)))&&o.push(c);return o}function r2(e){var r=e.length;return r?e[n5(0,r-1)]:t}function r6(e,t){return iZ(sL(e),ns(t,0,e.length))}function r5(e){return iZ(sL(e))}function r8(e,r,n){(n!==t&&!o8(e[r],n)||n===t&&!(r in e))&&nr(e,r,n)}function r4(e,r,n){var s=e[r];(!(eC.call(e,r)&&o8(s,n))||n===t&&!(r in e))&&nr(e,r,n)}function r7(e,t){var r=e.length;while(r--)if(o8(e[r][0],t))return r;return-1}function r9(e,t,r,n){return nu(e,function(e,s,i){t(n,e,r(e),i)}),n}function ne(e,t){return e&&sD(t,cs(t),e)}function nt(e,t){return e&&sD(t,ci(t),e)}function nr(e,t,r){t=="__proto__"&&e0?e0(e,t,{"configurable":!0,"enumerable":!0,"value":r,"writable":!0}):e[t]=r}function nn(e,r){var n=-1,s=r.length,i=en(s),a=e==null;while(++n<s)i[n]=a?t:l7(e,r[n]);return i}function ns(e,r,n){return e==e&&(n!==t&&(e=e<=n?e:n),r!==t&&(e=e>=r?e:r)),e}function ni(e,r,n,s,i,a){var o,l=r&1,c=r&2,h=r&4;if(n&&(o=i?n(e,s,i,a):n(e)),o!==t)return o;if(!lg(e))return e;var d=le(e);if(d){if(o=iS(e),!l)return sL(e,o)}else{var f=ib(e),m=f==p||f==g;if(li(e))return sT(e,l);if(f==b||f==u||m&&!i){if(o=c||m?{}:iT(e),!l)return c?sP(e,nt(o,e)):sN(e,ne(o,e))}else{if(!eX[f])return i?e:{};o=ix(e,f,l)}}a||(a=new rK);var y=a.get(e);if(y)return y;a.set(e,o),lC(e)?e.forEach(function(t){o.add(ni(t,r,n,t,e,a))}):lv(e)&&e.forEach(function(t,s){o.set(s,ni(t,r,n,s,e,a))});var v=h?c?io:ia:c?ci:cs;var k=d?t:v(e);return tc(k||e,function(t,s){k&&(t=e[s=t]),r4(o,s,ni(t,r,n,s,e,a))}),o}function na(e){var t=cs(e);return function(r){return no(r,e,t)}}function no(e,r,n){var s=n.length;if(e==null)return!s;e=ek(e);while(s--){var i=n[s],a=r[i],o=e[i];if(o===t&&!(i in e)||!a(o))return!1}return!0}function nl(e,n,s){if(typeof e!="function")throw new eS(r);return iY(function(){e.apply(t,s)},n)}function nc(e,t,r,n){var s=-1,i=tf,a=!0,o=e.length,l=[],c=t.length;if(!o)return l;r&&(t=tp(t,tP(r))),n?(i=tm,a=!1):t.length>=200&&(i=t$,a=!1,t=new rY(t));t:while(++s<o){var u=e[s],h=r==null?u:r(u);if(u=n||u!==0?u:0,a&&h==h){var d=c;while(d--)if(t[d]===h)continue t;l.push(u)}else!i(t,h,n)&&l.push(u)}return l}r_.templateSettings={"escape":U,"evaluate":G,"interpolate":W,"variable":"","imports":{"_":r_}},r_.prototype=rS.prototype,r_.prototype.constructor=r_,rT.prototype=rw(rS.prototype),rT.prototype.constructor=rT,rx.prototype=rw(rS.prototype),rx.prototype.constructor=rx,rC.prototype.clear=rM,rC.prototype["delete"]=rI,rC.prototype.get=rR,rC.prototype.has=rO,rC.prototype.set=rL,rD.prototype.clear=rN,rD.prototype["delete"]=rP,rD.prototype.get=rz,rD.prototype.has=r$,rD.prototype.set=rq,rH.prototype.clear=rF,rH.prototype["delete"]=rB,rH.prototype.get=rU,rH.prototype.has=rG,rH.prototype.set=rW,rY.prototype.add=rY.prototype.push=rV,rY.prototype.has=rJ,rK.prototype.clear=rZ,rK.prototype["delete"]=rQ,rK.prototype.get=rX,rK.prototype.has=r0,rK.prototype.set=r1;var nu=sq(nb);var nh=sq(nk,!0);function nd(e,t){var r=!0;return nu(e,function(e,n,s){return r=!!t(e,n,s)}),r}function nf(e,r,n){var s=-1,i=e.length;while(++s<i){var a=e[s],o=r(a);if(o!=null&&(l===t?o==o&&!lI(o):n(o,l)))var l=o,c=a}return c}function nm(e,r,n,s){var i=e.length;(n=lq(n))<0&&(n=-n>i?0:i+n),(s=s===t||s>i?i:lq(s))<0&&(s+=i),s=n>s?0:lH(s);while(n<s)e[n++]=r;return e}function np(e,t){var r=[];return nu(e,function(e,n,s){t(e,n,s)&&r.push(e)}),r}function ng(e,t,r,n,s){var i=-1,a=e.length;r||(r=ij),s||(s=[]);while(++i<a){var o=e[i];t>0&&r(o)?t>1?ng(o,t-1,r,n,s):tg(s,o):!n&&(s[s.length]=o)}return s}var ny=sH();var nv=sH(!0);function nb(e,t){return e&&ny(e,t,cs)}function nk(e,t){return e&&nv(e,t,cs)}function n_(e,t){return td(t,function(t){return lf(e[t])})}function nw(e,r){r=s_(r,e);var n=0,s=r.length;while(e!=null&&n<s)e=e[iX(r[n++])];return n&&n==s?e:t}function nS(e,t,r){var n=t(e);return le(e)?n:tg(n,r(e))}function nT(e){return e==null?e===t?"[object Undefined]":"[object Null]":(0,eJ&&eJ in ek(e)?ig(e):iH(e))}function nx(e,t){return e>t}function nE(e,t){return e!=null&&eC.call(e,t)}function nj(e,t){return e!=null&&t in ek(e)}function nA(e,t,r){return e>=t7(t,r)&&e<t4(t,r)}function nC(e,r,n){var s=n?tm:tf,i=e[0].length,a=e.length,o=a,l=en(a),c=Infinity,u=[];while(o--){var h=e[o];o&&r&&(h=tp(h,tP(r))),c=t7(h.length,c),l[o]=!n&&(r||i>=120&&h.length>=120)?new rY(o&&h):t}h=e[0];var d=-1,f=l[0];t:while(++d<i&&u.length<c){var m=h[d],p=r?r(m):m;if(m=n||m!==0?m:0,!(f?t$(f,p):s(u,p,n))){o=a;while(--o){var g=l[o];if(!(g?t$(g,p):s(e[o],p,n)))continue t}f&&f.push(p),u.push(m)}}return u}function nM(e,t,r,n){return nb(e,function(e,s,i){t(n,r(e),s,i)}),n}function nI(e,r,n){r=s_(r,e);var s=(e=iB(e,r))==null?e:e[iX(ay(r))];return s==null?t:to(s,e,n)}function nR(e){return ly(e)&&nT(e)==u}function nO(e){return ly(e)&&nT(e)==E}function nL(e){return ly(e)&&nT(e)==f}function nD(e,t,r,n,s){return e===t?!0:(0,e==null||t==null||!ly(e)&&!ly(t))?e!=e&&t!=t:(0,nN(e,t,r,n,nD,s))}function nN(e,t,r,n,s,i){var a=le(e),o=le(t),l=a?h:ib(e),c=o?h:ib(t);l=l==u?b:l,c=c==u?b:c;var d=l==b,f=c==b,m=l==c;if(m&&li(e)){if(!li(t))return!1;a=!0,d=!1}if(m&&!d)return i||(i=new rK),a||lR(e)?it(e,t,r,n,s,i):ir(e,t,l,r,n,s,i);if(!(r&1)){var p=d&&eC.call(e,"__wrapped__"),g=f&&eC.call(t,"__wrapped__");if(p||g){var y=p?e.value():e,v=g?t.value():t;return i||(i=new rK),s(y,v,r,n,i)}}return!m?!1:(i||(i=new rK),is(e,t,r,n,s,i))}function nP(e){return ly(e)&&ib(e)==y}function nz(e,r,n,s){var i=n.length,a=i,o=!s;if(e==null)return!a;e=ek(e);while(i--){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++i<a){var c=(l=n[i])[0],u=e[c],h=l[1];if(o&&l[2]){if(u===t&&!(c in e))return!1}else{var d=new rK;if(s)var f=s(u,h,c,e,r,d);if(!(f===t?nD(h,u,1|2,s,d):f))return!1}}return!0}function n$(e){return!lg(e)||iO(e)?!1:(0,(lf(e)?eN:eu).test(i0(e)))}function nq(e){return ly(e)&&nT(e)==_}function nH(e){return ly(e)&&ib(e)==w}function nF(e){return ly(e)&&lp(e.length)&&!!eQ[nT(e)]}function nB(e){return typeof e=="function"?e:(0,e==null)?ur:(0,typeof e=="object")?le(e)?nJ(e[0],e[1]):nV(e):(0,up(e))}function nU(e){if(!iD(e))return t1(e);var t=[];for(var r in ek(e))eC.call(e,r)&&r!="constructor"&&t.push(r);return t}function nG(e){if(!lg(e))return iq(e);var t=iD(e),r=[];for(var n in e)!(n=="constructor"&&(t||!eC.call(e,n)))&&r.push(n);return r}function nW(e,t){return e<t}function nY(e,t){var r=-1,n=lr(e)?en(e.length):[];return nu(e,function(e,s,i){n[++r]=t(e,s,i)}),n}function nV(e){var t=im(e);return t.length==1&&t[0][2]?iP(t[0][0],t[0][1]):(0,function(r){return r===e||nz(r,e,t)})}function nJ(e,r){return iM(e)&&iN(r)?iP(iX(e),r):(0,function(n){var s=l7(n,e);return s===t&&s===r?ce(n,e):nD(r,s,1|2)})}function nK(e,r,n,s,i){if(e===r)return;ny(r,function(a,o){if(i||(i=new rK),lg(a))nZ(e,r,o,n,nK,s,i);else{var l=s?s(iG(e,o),a,o+"",e,r,i):t;l===t&&(l=a),r8(e,o,l)}},ci)}function nZ(e,r,n,s,i,a,o){var l=iG(e,n),c=iG(r,n),u=o.get(c);if(u){r8(e,n,u);return}var h=a?a(l,c,n+"",e,r,o):t;var d=h===t;if(d){var f=le(c),m=!f&&li(c),p=!f&&!m&&lR(c);h=c,f||m||p?le(l)?h=l:ln(l)?h=sL(l):m?(d=!1,h=sT(c,!0)):p?(d=!1,h=sC(c,!0)):h=[]:lE(c)||o9(c)?(h=l,o9(l)?h=lB(l):(!lg(l)||lf(l))&&(h=iT(c))):d=!1}d&&(o.set(c,h),i(h,c,s,a,o),o["delete"](c)),r8(e,n,h)}function nQ(e,r){var n=e.length;if(!n)return;return iA(r+=r<0?n:0,n)?e[r]:t}function nX(e,t,r){t=t.length?tp(t,function(e){return le(e)?function(t){return nw(t,e.length===1?e[0]:e)}:(0,e)}):[ur];var n=-1;return t=tp(t,tP(ih())),tR(nY(e,function(e,r,s){return{"criteria":tp(t,function(t){return t(e)}),"index":++n,"value":e}}),function(e,t){return sI(e,t,r)})}function n0(e,t){return n1(e,t,function(t,r){return ce(e,r)})}function n1(e,t,r){var n=-1,s=t.length,i={};while(++n<s){var a=t[n],o=nw(e,a);r(o,a)&&st(i,s_(a,e),o)}return i}function n3(e){return function(t){return nw(t,e)}}function n2(e,t,r,n){var s=n?tE:tx,i=-1,a=t.length,o=e;e===t&&(t=sL(t)),r&&(o=tp(e,tP(r)));while(++i<a){var l=0,c=t[i],u=r?r(c):c;while((l=s(o,u,l,n))>-1)o!==e&&eW.call(o,l,1),eW.call(e,l,1)}return e}function n6(e,t){var r=e?t.length:0,n=r-1;while(r--){var s=t[r];if(r==n||s!==i){var i=s;iA(s)?eW.call(e,s,1):sf(e,s)}}return e}function n5(e,t){return e+e9(rn()*(t-e+1))}function n8(e,t,r,n){var s=-1,i=t4(e4((t-e)/(r||1)),0),a=en(i);while(i--)a[n?i:++s]=e,e+=r;return a}function n4(e,t){var r="";if(!e||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=e),(t=e9(t/2))&&(e+=e);while(t)return r}function n7(e,t){return iV(iF(e,t,ur),e+"")}function n9(e){return r2(cS(e))}function se(e,t){var r=cS(e);return iZ(r,ns(t,0,r.length))}function st(e,r,n,s){if(!lg(e))return e;r=s_(r,e);var i=-1,a=r.length,o=a-1,l=e;while(l!=null&&++i<a){var c=iX(r[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var h=l[c];(u=s?s(h,c,l):t)===t&&(u=lg(h)?h:iA(r[i+1])?[]:{})}r4(l,c,u),l=l[c]}return e}var sr=!rh?ur:function(e,t){return rh.set(e,t),e};var sn=!e0?ur:function(e,t){return e0(e,"toString",{"configurable":!0,"enumerable":!1,"value":c7(t),"writable":!0})};function ss(e){return iZ(cS(e))}function si(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;var i=en(s);while(++n<s)i[n]=e[n+t];return i}function sa(e,t){var r;return nu(e,function(e,n,s){return!(r=t(e,n,s))}),!!r}function so(e,t,r){var n=0,s=e==null?n:e.length;if(typeof t=="number"&&t==t&&s<=l){while(n<s){var i=n+s>>>1,a=e[i];a!==null&&!lI(a)&&(r?a<=t:a<t)?n=i+1:s=i}return s}return sl(e,t,ur,r)}function sl(e,r,n,s){var i=0,a=e==null?0:e.length;if(a===0)return 0;var l=(r=n(r))!=r,c=r===null,u=lI(r),h=r===t;while(i<a){var d=e9((i+a)/2),f=n(e[d]),m=f!==t,p=f===null,g=f==f,y=lI(f);if(l)var v=s||g;else v=h?g&&(s||m):c?g&&m&&(s||!p):u?g&&m&&!p&&(s||!y):p||y?!1:s?f<=r:f<r;v?i=d+1:a=d}return t7(a,o)}function sc(e,t){var r=-1,n=e.length,s=0,i=[];while(++r<n){var a=e[r],o=t?t(a):a;if(!r||!o8(o,l)){var l=o;i[s++]=a===0?0:a}}return i}function su(e){return typeof e=="number"?e:(0,lI(e))?a:(0,+e)}function sh(e){if(typeof e=="string")return e;if(le(e))return tp(e,sh)+"";if(lI(e))return rk?rk.call(e):"";var t=e+"";return t=="0"&&1/e==-i?"-0":t}function sd(e,t,r){var n=-1,s=tf,i=e.length,a=!0,o=[],l=o;if(r)a=!1,s=tm;else if(i>=200){var c=t?null:s5(e);if(c)return tX(c);a=!1,s=t$,l=new rY}else l=t?[]:o;t:while(++n<i){var u=e[n],h=t?t(u):u;if(u=r||u!==0?u:0,a&&h==h){var d=l.length;while(d--)if(l[d]===h)continue t;t&&l.push(h),o.push(u)}else!s(l,h,r)&&(l!==o&&l.push(h),o.push(u))}return o}function sf(e,t){t=s_(t,e);var r=-1,n=t.length;if(!n)return!0;while(++r<n){var s=iX(t[r]);if(s==="__proto__"&&!eC.call(e,"__proto__")||(s==="constructor"||s==="prototype")&&r<n-1)return!1}var i=iB(e,t);return i==null||delete i[iX(ay(t))]}function sm(e,t,r,n){return st(e,t,r(nw(e,t)),n)}function sp(e,t,r,n){var s=e.length,i=n?s:-1;while((n?i--:++i<s)&&t(e[i],i,e));return r?si(e,n?0:i,n?i+1:s):si(e,n?i+1:0,n?s:i)}function sg(e,t){var r=e;return r instanceof rx&&(r=r.value()),ty(t,function(e,t){return t.func.apply(t.thisArg,tg([e],t.args))},r)}function sy(e,t,r){var n=e.length;if(n<2)return n?sd(e[0]):[];var s=-1,i=en(n);while(++s<n){var a=e[s],o=-1;while(++o<n)o!=s&&(i[s]=nc(i[s]||a,e[o],t,r))}return sd(ng(i,1),t,r)}function sv(e,r,n){var s=-1,i=e.length,a=r.length,o={};while(++s<i){var l=s<a?r[s]:t;n(o,e[s],l)}return o}function sb(e){return ln(e)?e:[]}function sk(e){return typeof e=="function"?e:ur}function s_(e,t){return le(e)?e:(0,iM(e,t)?[e]:iQ(lG(e)))}function sw(e,r,n){var s=e.length;return n=n===t?s:n,!r&&n>=s?e:si(e,r,n)}var sS=e2||function(e){return e5.clearTimeout(e)};function sT(e,t){if(t)return e.slice();var r=e.length,n=eq?eq(r):new e.constructor(r);return e.copy(n),n}function sx(e){var t=new e.constructor(e.byteLength);return new e$(t).set(new e$(e)),t}function sE(e,t){var r=t?sx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function sj(e){var t=new e.constructor(e.source,eo.exec(e));return t.lastIndex=e.lastIndex,t}function sA(e){return rb?ek(rb.call(e)):{}}function sC(e,t){var r=t?sx(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function sM(e,r){if(e!==r){var n=e!==t,s=e===null,i=e==e,a=lI(e);var o=r!==t,l=r===null,c=r==r,u=lI(r);if(!l&&!u&&!a&&e>r||a&&o&&c&&!l&&!u||s&&o&&c||!n&&c||!i)return 1;if(!s&&!a&&!u&&e<r||u&&n&&i&&!s&&!a||l&&n&&i||!o&&i||!c)return-1}return 0}function sI(e,t,r){var n=-1,s=e.criteria,i=t.criteria,a=s.length,o=r.length;while(++n<a){var l=sM(s[n],i[n]);if(l){if(n>=o)return l;return l*(r[n]=="desc"?-1:1)}}return e.index-t.index}function sR(e,t,r,n){var s=-1,i=e.length,a=r.length,o=-1,l=t.length,c=t4(i-a,0),u=en(l+c),h=!n;while(++o<l)u[o]=t[o];while(++s<a)(h||s<i)&&(u[r[s]]=e[s]);while(c--)u[o++]=e[s++];return u}function sO(e,t,r,n){var s=-1,i=e.length,a=-1,o=r.length,l=-1,c=t.length,u=t4(i-o,0),h=en(u+c),d=!n;while(++s<u)h[s]=e[s];var f=s;while(++l<c)h[f+l]=t[l];while(++a<o)(d||s<i)&&(h[f+r[a]]=e[s++]);return h}function sL(e,t){var r=-1,n=e.length;t||(t=en(n));while(++r<n)t[r]=e[r];return t}function sD(e,r,n,s){var i=!n;n||(n={});var a=-1,o=r.length;while(++a<o){var l=r[a];var c=s?s(n[l],e[l],l,n,e):t;c===t&&(c=e[l]),i?nr(n,l,c):r4(n,l,c)}return n}function sN(e,t){return sD(e,iy(e),t)}function sP(e,t){return sD(e,iv(e),t)}function sz(e,t){return function(r,n){var s=le(r)?tl:r9,i=t?t():{};return s(r,e,ih(n,2),i)}}function s$(e){return n7(function(r,n){var s=-1,i=n.length,a=i>1?n[i-1]:t,o=i>2?n[2]:t;a=e.length>3&&typeof a=="function"?(i--,a):t,o&&iC(n[0],n[1],o)&&(a=i<3?t:a,i=1),r=ek(r);while(++s<i){var l=n[s];l&&e(r,l,s,a)}return r})}function sq(e,t){return function(r,n){if(r==null)return r;if(!lr(r))return e(r,n);var s=r.length,i=t?s:-1,a=ek(r);while(t?i--:++i<s)if(n(a[i],i,a)===!1)break;return r}}function sH(e){return function(t,r,n){var s=-1,i=ek(t),a=n(t),o=a.length;while(o--){var l=a[e?o:++s];if(r(i[l],l,i)===!1)break}return t}}function sF(e,t,r){var n=t&1,s=sG(e);function i(){return(this&&this!==e5&&this instanceof i?s:e).apply(n?r:this,arguments)}return i}function sB(e){return function(r){var n=tY(r=lG(r))?t6(r):t;var s=n?n[0]:r.charAt(0);var i=n?sw(n,1).join(""):r.slice(1);return s[e]()+i}}function sU(e){return function(t){return ty(c2(cM(t).replace(eU,"")),e,"")}}function sG(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rw(e.prototype),n=e.apply(r,t);return lg(n)?n:r}}function sW(e,r,n){var s=sG(e);function i(){var a=arguments.length,o=en(a),l=a,c=iu(i);while(l--)o[l]=arguments[l];var u=a<3&&o[0]!==c&&o[a-1]!==c?[]:tQ(o,c);return(a-=u.length)<n?s2(e,r,sJ,i.placeholder,t,o,u,t,t,n-a):(0,to(this&&this!==e5&&this instanceof i?s:e,this,o))}return i}function sY(e){return function(r,n,s){var i=ek(r);if(!lr(r)){var a=ih(n,3);r=cs(r),n=function(e){return a(i[e],e,i)}}var o=e(r,n,s);return o>-1?i[a?r[o]:o]:t}}function sV(e){return ii(function(n){var s=n.length,i=s,a=rT.prototype.thru;e&&n.reverse();while(i--){var o=n[i];if(typeof o!="function")throw new eS(r);if(a&&!l&&ic(o)=="wrapper")var l=new rT([],!0)}i=l?i:s;while(++i<s){var c=ic(o=n[i]),u=c=="wrapper"?il(o):t;l=u&&iR(u[0])&&u[1]==(128|8|32|256)&&!u[4].length&&u[9]==1?l[ic(u[0])].apply(l,u[3]):o.length==1&&iR(o)?l[c]():l.thru(o)}return function(){var e=arguments,t=e[0];if(l&&e.length==1&&le(t))return l.plant(t).value();var r=0,i=s?n[r].apply(this,e):t;while(++r<s)i=n[r].call(this,i);return i}})}function sJ(e,r,n,s,i,a,o,l,c,u){var h=r&128,d=r&1,f=r&2,m=r&(8|16),p=r&512,g=f?t:sG(e);function y(){var t=arguments.length,v=en(t),b=t;while(b--)v[b]=arguments[b];if(m)var k=iu(y),_=tF(v,k);if(s&&(v=sR(v,s,i,m)),a&&(v=sO(v,a,o,m)),t-=_,m&&t<u){var w=tQ(v,k);return s2(e,r,sJ,y.placeholder,n,v,w,l,c,u-t)}var S=d?n:this,T=f?S[e]:e;return t=v.length,l?v=iU(v,l):p&&t>1&&v.reverse(),h&&c<t&&(v.length=c),this&&this!==e5&&this instanceof y&&(T=g||sG(T)),T.apply(S,v)}return y}function sK(e,t){return function(r,n){return nM(r,e,t(n),{})}}function sZ(e,r){return function(n,s){var i;if(n===t&&s===t)return r;if(n!==t&&(i=n),s!==t){if(i===t)return s;typeof n=="string"||typeof s=="string"?(n=sh(n),s=sh(s)):(n=su(n),s=su(s)),i=e(n,s)}return i}}function sQ(e){return ii(function(t){return t=tp(t,tP(ih())),n7(function(r){var n=this;return e(t,function(e){return to(e,n,r)})})})}function sX(e,r){var n=(r=r===t?" ":sh(r)).length;if(n<2)return n?n4(r,e):r;var s=n4(r,e4(e/t2(r)));return tY(r)?sw(t6(s),0,e).join(""):s.slice(0,e)}function s0(e,t,r,n){var s=t&1,i=sG(e);function a(){var t=-1,o=arguments.length,l=-1,c=n.length,u=en(c+o),h=this&&this!==e5&&this instanceof a?i:e;while(++l<c)u[l]=n[l];while(o--)u[l++]=arguments[++t];return to(h,s?r:this,u)}return a}function s1(e){return function(r,n,s){return s&&typeof s!="number"&&iC(r,n,s)&&(n=s=t),r=l$(r),n===t?(n=r,r=0):n=l$(n),s=s===t?r<n?1:-1:l$(s),n8(r,n,s,e)}}function s3(e){return function(t,r){return!(typeof t=="string"&&typeof r=="string")&&(t=lF(t),r=lF(r)),e(t,r)}}function s2(e,r,n,s,i,a,o,l,c,u){var h=r&8,d=h?o:t,f=h?t:o,m=h?a:t,p=h?t:a;r|=h?32:64,!((r&=~(h?64:32))&4)&&(r&=~(1|2));var g=[e,r,i,m,d,p,f,l,c,u];var y=n.apply(t,g);return iR(e)&&iW(y,g),y.placeholder=s,iJ(y,e,r)}function s6(e){var t=eb[e];return function(e,r){if(e=lF(e),(r=r==null?0:t7(lq(r),292))&&t_(e)){var n=(lG(e)+"e").split("e");return+((n=(lG(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var s5=!(rl&&1/tX(new rl([,-0]))[1]==i)?uu:function(e){return new rl(e)};function s8(e){return function(t){var r=ib(t);return r==y?tK(t):(0,r==w)?t0(t):(0,tD(t,e(t)))}}function s4(e,n,s,i,a,o,l,c){var u=n&2;if(!u&&typeof e!="function")throw new eS(r);var h=i?i.length:0;if(!h&&(n&=~(32|64),i=a=t),l=l===t?l:t4(lq(l),0),c=c===t?c:lq(c),h-=a?a.length:0,n&64){var d=i,f=a;i=a=t}var m=u?t:il(e);var p=[e,n,s,i,a,d,f,o,l,c];if(m&&i$(p,m),e=p[0],n=p[1],s=p[2],i=p[3],a=p[4],!(c=p[9]=p[9]===t?u?0:e.length:t4(p[9]-h,0))&&n&(8|16)&&(n&=~(8|16)),n&&n!=1)g=n==8||n==16?sW(e,n,c):n!=32&&n!=(1|32)||a.length?sJ.apply(t,p):s0(e,n,s,i);else var g=sF(e,n,s);return iJ((m?sr:iW)(g,p),e,n)}function s7(e,r,n,s){return e===t||o8(e,eE[n])&&!eC.call(s,n)?r:(0,e)}function s9(e,r,n,s,i,a){return lg(e)&&lg(r)&&(a.set(r,e),nK(e,r,t,s9,a),a["delete"](r)),e}function ie(e){return lE(e)?t:e}function it(e,r,n,s,i,a){var o=n&1,l=e.length,c=r.length;if(l!=c&&!(o&&c>l))return!1;var u=a.get(e);var h=a.get(r);if(u&&h)return u==r&&h==e;var d=-1,f=!0,m=n&2?new rY:t;a.set(e,r),a.set(r,e);while(++d<l){var p=e[d],g=r[d];if(s)var y=o?s(g,p,d,r,e,a):s(p,g,d,e,r,a);if(y!==t){if(y)continue;f=!1;break}if(m){if(!tb(r,function(e,t){if(!t$(m,t)&&(p===e||i(p,e,n,s,a)))return m.push(t)})){f=!1;break}}else if(!(p===g||i(p,g,n,s,a))){f=!1;break}}return a["delete"](e),a["delete"](r),f}function ir(e,t,r,n,s,i,a){switch(r){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:if(e.byteLength!=t.byteLength||!i(new e$(e),new e$(t)))return!1;return!0;case d:case f:case v:return o8(+e,+t);case m:return e.name==t.name&&e.message==t.message;case _:case S:return e==t+"";case y:var o=tK;case w:var l=n&1;if(o||(o=tX),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=it(o(e),o(t),n,s,i,a);return a["delete"](e),u;case T:if(rb)return rb.call(e)==rb.call(t)}return!1}function is(e,r,n,s,i,a){var o=n&1,l=ia(e),c=l.length;if(c!=ia(r).length&&!o)return!1;var u=c;while(u--){var h=l[u];if(!(o?h in r:eC.call(r,h)))return!1}var d=a.get(e);var f=a.get(r);if(d&&f)return d==r&&f==e;var m=!0;a.set(e,r),a.set(r,e);var p=o;while(++u<c){var g=e[h=l[u]],y=r[h];if(s)var v=o?s(y,g,h,r,e,a):s(g,y,h,e,r,a);if(!(v===t?g===y||i(g,y,n,s,a):v)){m=!1;break}p||(p=h=="constructor")}if(m&&!p){var b=e.constructor,k=r.constructor;b!=k&&"constructor"in e&&"constructor"in r&&!(typeof b=="function"&&b instanceof b&&typeof k=="function"&&k instanceof k)&&(m=!1)}return a["delete"](e),a["delete"](r),m}function ii(e){return iV(iF(e,t,aa),e+"")}function ia(e){return nS(e,cs,iy)}function io(e){return nS(e,ci,iv)}var il=!rh?uu:function(e){return rh.get(e)};function ic(e){var t=e.name+"",r=rd[t],n=eC.call(rd,t)?r.length:0;while(n--){var s=r[n],i=s.func;if(i==null||i==e)return s.name}return t}function iu(e){return(eC.call(r_,"placeholder")?r_:e).placeholder}function ih(){var e=r_.iteratee||un;return e=e===un?nB:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var r=e.__data__;return iI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function im(e){var t=cs(e),r=t.length;while(r--){var n=t[r],s=e[n];t[r]=[n,s,iN(s)]}return t}function ip(e,r){var n=tW(e,r);return n$(n)?n:t}function ig(e){var r=eC.call(e,eJ),n=e[eJ];try{e[eJ]=t;var s=!0}catch(e){}var i=eO.call(e);return s&&(r?e[eJ]=n:delete e[eJ]),i}var iy=!te?ub:function(e){return e==null?[]:(0,td(te(e=ek(e)),function(t){return eB.call(e,t)}))};var iv=!te?ub:function(e){var t=[];while(e)tg(t,iy(e)),e=eH(e);return t};var ib=nT;function ik(e,t,r){var n=-1,s=r.length;while(++n<s){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t7(t,e+a);break;case"takeRight":e=t4(e,t-a);break}}return{"start":e,"end":t}}function i_(e){var t=e.match(et);return t?t[1].split(er):[]}function iw(e,t,r){t=s_(t,e);var n=-1,s=t.length,i=!1;while(++n<s){var a=iX(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=s?i:(0,!!(s=e==null?0:e.length)&&lp(s)&&iA(a,s)&&(le(e)||o9(e)))}function iS(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&eC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function iT(e){return typeof e.constructor=="function"&&!iD(e)?rw(eH(e)):{}}function ix(e,t,r){var n=e.constructor;switch(t){case E:return sx(e);case d:case f:return new n(+e);case j:return sE(e,r);case A:case C:case M:case I:case R:case O:case L:case D:case N:return sC(e,r);case y:return new n;case v:case S:return new n(e);case _:return sj(e);case w:return new n;case T:return sA(e)}}function iE(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ee,`{
/* [wrapped with `+t+`] */
`)}function ij(e){return le(e)||o9(e)||!!(eY&&e&&e[eY])}function iA(e,t){var r=typeof e;return!!(t=t==null?0x1fffffffffffff:t)&&(r=="number"||r!="symbol"&&ed.test(e))&&e>-1&&e%1==0&&e<t}function iC(e,t,r){if(!lg(r))return!1;var n=typeof t;return(n=="number"?lr(r)&&iA(t,r.length):n=="string"&&t in r)?o8(r[t],e):(0,!1)}function iM(e,t){if(le(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lI(e)?!0:(0,V.test(e)||!Y.test(e)||t!=null&&e in ek(t))}function iI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function iR(e){var t=ic(e),r=r_[t];if(typeof r!="function"||!(t in rx.prototype))return!1;if(e===r)return!0;var n=il(r);return!!n&&e===n[0]}function iO(e){return!!eR&&eR in e}(ri&&ib(new ri(new ArrayBuffer(1)))!=j||ra&&ib(new ra)!=y||ro&&ib(ro.resolve())!=k||rl&&ib(new rl)!=w||rc&&ib(new rc)!=x)&&(ib=function(e){var r=nT(e),n=r==b?e.constructor:t,s=n?i0(n):"";if(s)switch(s){case rf:return j;case rm:return y;case rp:return k;case rg:return w;case ry:return x}return r});var iL=ej?lf:uk;function iD(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||eE)}function iN(e){return e==e&&!lg(e)}function iP(e,r){return function(n){return n==null?!1:(0,n[e]===r&&(r!==t||e in ek(n)))}}function iz(e){var t=oF(e,function(e){return r.size===500&&r.clear(),e});var r=t.cache;return t}function i$(e,t){var r=e[1],n=t[1],i=r|n,a=i<(1|2|128);var o=n==128&&r==8||n==128&&r==256&&e[7].length<=t[8]||n==(128|256)&&t[7].length<=t[8]&&r==8;if(!(a||o))return e;n&1&&(e[2]=t[2],i|=r&1?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?sR(c,l,t[4]):l,e[4]=c?tQ(e[3],s):t[4]}return(l=t[5])&&(c=e[5],e[5]=c?sO(c,l,t[6]):l,e[6]=c?tQ(e[5],s):t[6]),(l=t[7])&&(e[7]=l),n&128&&(e[8]=e[8]==null?t[8]:t7(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function iq(e){var t=[];if(e!=null)for(var r in ek(e))t.push(r);return t}function iH(e){return eO.call(e)}function iF(e,r,n){return r=t4(r===t?e.length-1:r,0),function(){var t=arguments,s=-1,i=t4(t.length-r,0),a=en(i);while(++s<i)a[s]=t[r+s];s=-1;var o=en(r+1);while(++s<r)o[s]=t[s];return o[r]=n(a),to(e,this,o)}}function iB(e,t){return t.length<2?e:nw(e,si(t,0,-1))}function iU(e,r){var n=e.length,s=t7(r.length,n),i=sL(e);while(s--){var a=r[s];e[s]=iA(a,n)?i[a]:t}return e}function iG(e,t){if(t==="constructor"&&typeof e[t]=="function"||t=="__proto__")return;return e[t]}var iW=iK(sr);var iY=e8||function(e,t){return e5.setTimeout(e,t)};var iV=iK(sn);function iJ(e,t,r){var n=t+"";return iV(e,iE(n,i1(i_(n),r)))}function iK(e){var r=0,n=0;return function(){var s=rt(),i=16-(s-n);if(n=s,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(t,arguments)}}function iZ(e,r){var n=-1,s=e.length,i=s-1;r=r===t?s:r;while(++n<r){var a=n5(n,i),o=e[a];e[a]=e[n],e[n]=o}return e.length=r,e}var iQ=iz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(J,function(e,r,n,s){t.push(n?s.replace(ei,"$1"):r||e)}),t});function iX(e){if(typeof e=="string"||lI(e))return e;var t=e+"";return t=="0"&&1/e==-i?"-0":t}function i0(e){if(e!=null){try{return eA.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function i1(e,t){return tc(c,function(r){var n="_."+r[0];t&r[1]&&!tf(e,n)&&e.push(n)}),e.sort()}function i3(e){if(e instanceof rx)return e.clone();var t=new rT(e.__wrapped__,e.__chain__);return t.__actions__=sL(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function i2(e,r,n){r=(n?iC(e,r,n):r===t)?1:t4(lq(r),0);var s=e==null?0:e.length;if(!s||r<1)return[];var i=0,a=0,o=en(e4(s/r));while(i<s)o[a++]=si(e,i,i+=r);return o}function i6(e){var t=-1,r=e==null?0:e.length,n=0,s=[];while(++t<r){var i=e[t];i&&(s[n++]=i)}return s}function i5(){var e=arguments.length;if(!e)return[];var t=en(e-1),r=arguments[0],n=e;while(n--)t[n-1]=arguments[n];return tg(le(r)?sL(r):[r],ng(t,1))}var i8=n7(function(e,t){return ln(e)?nc(e,ng(t,1,ln,!0)):[]});var i4=n7(function(e,r){var n=ay(r);return ln(n)&&(n=t),ln(e)?nc(e,ng(r,1,ln,!0),ih(n,2)):[]});var i7=n7(function(e,r){var n=ay(r);return ln(n)&&(n=t),ln(e)?nc(e,ng(r,1,ln,!0),t,n):[]});function i9(e,r,n){var s=e==null?0:e.length;return!s?[]:(0,si(e,(r=n||r===t?1:lq(r))<0?0:r,s))}function ae(e,r,n){var s=e==null?0:e.length;return!s?[]:(0,si(e,0,(r=s-(r=n||r===t?1:lq(r)))<0?0:r))}function at(e,t){return e&&e.length?sp(e,ih(t,3),!0,!0):[]}function ar(e,t){return e&&e.length?sp(e,ih(t,3),!0):[]}function an(e,t,r,n){var s=e==null?0:e.length;return!s?[]:(r&&typeof r!="number"&&iC(e,t,r)&&(r=0,n=s),nm(e,t,r,n))}function as(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var s=r==null?0:lq(r);return s<0&&(s=t4(n+s,0)),tT(e,ih(t,3),s)}function ai(e,r,n){var s=e==null?0:e.length;if(!s)return-1;var i=s-1;return n!==t&&(i=lq(n),i=n<0?t4(s+i,0):t7(i,s-1)),tT(e,ih(r,3),i,!0)}function aa(e){return(e==null?0:e.length)?ng(e,1):[]}function ao(e){return(e==null?0:e.length)?ng(e,i):[]}function al(e,r){return!(e==null?0:e.length)?[]:(0,ng(e,r=r===t?1:lq(r)))}function ac(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var s=e[t];nr(n,s[0],s[1])}return n}function au(e){return e&&e.length?e[0]:t}function ah(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var s=r==null?0:lq(r);return s<0&&(s=t4(n+s,0)),tx(e,t,s)}function ad(e){return(e==null?0:e.length)?si(e,0,-1):[]}var af=n7(function(e){var t=tp(e,sb);return t.length&&t[0]===e[0]?nC(t):[]});var am=n7(function(e){var r=ay(e),n=tp(e,sb);return r===ay(n)?r=t:n.pop(),n.length&&n[0]===e[0]?nC(n,ih(r,2)):[]});var ap=n7(function(e){var r=ay(e),n=tp(e,sb);return(r=typeof r=="function"?r:t)&&n.pop(),n.length&&n[0]===e[0]?nC(n,t,r):[]});function ag(e,t){return e==null?"":tM.call(e,t)}function ay(e){var r=e==null?0:e.length;return r?e[r-1]:t}function av(e,r,n){var s=e==null?0:e.length;if(!s)return-1;var i=s;return n!==t&&(i=(i=lq(n))<0?t4(s+i,0):t7(i,s-1)),r==r?t3(e,r,i):tT(e,tj,i,!0)}function ab(e,r){return e&&e.length?nQ(e,lq(r)):t}var ak=n7(a_);function a_(e,t){return e&&e.length&&t&&t.length?n2(e,t):e}function aw(e,t,r){return e&&e.length&&t&&t.length?n2(e,t,ih(r,2)):e}function aS(e,r,n){return e&&e.length&&r&&r.length?n2(e,r,t,n):e}var aT=ii(function(e,t){var r=e==null?0:e.length,n=nn(e,t);return n6(e,tp(t,function(e){return iA(e,r)?+e:e}).sort(sM)),n});function ax(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,s=[],i=e.length;t=ih(t,3);while(++n<i){var a=e[n];t(a,n,e)&&(r.push(a),s.push(n))}return n6(e,s),r}function aE(e){return e==null?e:rs.call(e)}function aj(e,r,n){var s=e==null?0:e.length;return!s?[]:(n&&typeof n!="number"&&iC(e,r,n)?(r=0,n=s):(r=r==null?0:lq(r),n=n===t?s:lq(n)),si(e,r,n))}function aA(e,t){return so(e,t)}function aC(e,t,r){return sl(e,t,ih(r,2))}function aM(e,t){var r=e==null?0:e.length;if(r){var n=so(e,t);if(n<r&&o8(e[n],t))return n}return-1}function aI(e,t){return so(e,t,!0)}function aR(e,t,r){return sl(e,t,ih(r,2),!0)}function aO(e,t){if(e==null?0:e.length){var r=so(e,t,!0)-1;if(o8(e[r],t))return r}return-1}function aL(e){return e&&e.length?sc(e):[]}function aD(e,t){return e&&e.length?sc(e,ih(t,2)):[]}function aN(e){var t=e==null?0:e.length;return t?si(e,1,t):[]}function aP(e,r,n){return!(e&&e.length)?[]:(0,si(e,0,(r=n||r===t?1:lq(r))<0?0:r))}function az(e,r,n){var s=e==null?0:e.length;return!s?[]:(0,si(e,(r=s-(r=n||r===t?1:lq(r)))<0?0:r,s))}function a$(e,t){return e&&e.length?sp(e,ih(t,3),!1,!0):[]}function aq(e,t){return e&&e.length?sp(e,ih(t,3)):[]}var aH=n7(function(e){return sd(ng(e,1,ln,!0))});var aF=n7(function(e){var r=ay(e);return ln(r)&&(r=t),sd(ng(e,1,ln,!0),ih(r,2))});var aB=n7(function(e){var r=ay(e);return r=typeof r=="function"?r:t,sd(ng(e,1,ln,!0),t,r)});function aU(e){return e&&e.length?sd(e):[]}function aG(e,t){return e&&e.length?sd(e,ih(t,2)):[]}function aW(e,r){return r=typeof r=="function"?r:t,e&&e.length?sd(e,t,r):[]}function aY(e){if(!(e&&e.length))return[];var t=0;return e=td(e,function(e){if(ln(e))return t=t4(e.length,t),!0}),tL(t,function(t){return tp(e,tC(t))})}function aV(e,r){if(!(e&&e.length))return[];var n=aY(e);return r==null?n:(0,tp(n,function(e){return to(r,t,e)}))}var aJ=n7(function(e,t){return ln(e)?nc(e,t):[]});var aK=n7(function(e){return sy(td(e,ln))});var aZ=n7(function(e){var r=ay(e);return ln(r)&&(r=t),sy(td(e,ln),ih(r,2))});var aQ=n7(function(e){var r=ay(e);return r=typeof r=="function"?r:t,sy(td(e,ln),t,r)});var aX=n7(aY);function a0(e,t){return sv(e||[],t||[],r4)}function a1(e,t){return sv(e||[],t||[],st)}var a3=n7(function(e){var r=e.length,n=r>1?e[r-1]:t;return n=typeof n=="function"?(e.pop(),n):t,aV(e,n)});function a2(e){var t=r_(e);return t.__chain__=!0,t}function a6(e,t){return t(e),e}function a5(e,t){return t(e)}var a8=ii(function(e){var r=e.length,n=r?e[0]:0,s=this.__wrapped__,i=function(t){return nn(t,e)};return r>1||this.__actions__.length||!(s instanceof rx)||!iA(n)?this.thru(i):((s=s.slice(n,+n+(r?1:0))).__actions__.push({"func":a5,"args":[i],"thisArg":t}),new rT(s,this.__chain__).thru(function(e){return r&&!e.length&&e.push(t),e}))});function a4(){return a2(this)}function a7(){return new rT(this.value(),this.__chain__)}function a9(){this.__values__===t&&(this.__values__=lz(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{"done":e,"value":r}}function oe(){return this}function ot(e){var r,n=this;while(n instanceof rS){var s=i3(n);s.__index__=0,s.__values__=t,r?i.__wrapped__=s:r=s;var i=s;n=n.__wrapped__}return i.__wrapped__=e,r}function or(){var e=this.__wrapped__;if(e instanceof rx){var r=e;return this.__actions__.length&&(r=new rx(this)),(r=r.reverse()).__actions__.push({"func":a5,"args":[aE],"thisArg":t}),new rT(r,this.__chain__)}return this.thru(aE)}function on(){return sg(this.__wrapped__,this.__actions__)}var os=sz(function(e,t,r){eC.call(e,r)?++e[r]:nr(e,r,1)});function oi(e,r,n){var s=le(e)?th:nd;return n&&iC(e,r,n)&&(r=t),s(e,ih(r,3))}function oa(e,t){return(le(e)?td:np)(e,ih(t,3))}var oo=sY(as);var ol=sY(ai);function oc(e,t){return ng(ov(e,t),1)}function ou(e,t){return ng(ov(e,t),i)}function oh(e,r,n){return n=n===t?1:lq(n),ng(ov(e,r),n)}function od(e,t){return(le(e)?tc:nu)(e,ih(t,3))}function of(e,t){return(le(e)?tu:nh)(e,ih(t,3))}var om=sz(function(e,t,r){eC.call(e,r)?e[r].push(t):nr(e,r,[t])});function op(e,t,r,n){e=lr(e)?e:cS(e),r=r&&!n?lq(r):0;var s=e.length;return r<0&&(r=t4(s+r,0)),lM(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&tx(e,t,r)>-1}var og=n7(function(e,t,r){var n=-1,s=typeof t=="function",i=lr(e)?en(e.length):[];return nu(e,function(e){i[++n]=s?to(t,e,r):nI(e,t,r)}),i});var oy=sz(function(e,t,r){nr(e,r,t)});function ov(e,t){return(le(e)?tp:nY)(e,ih(t,3))}function ob(e,r,n,s){return e==null?[]:(!le(r)&&(r=r==null?[]:[r]),!le(n=s?t:n)&&(n=n==null?[]:[n]),nX(e,r,n))}var ok=sz(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function o_(e,t,r){var n=le(e)?ty:tI,s=arguments.length<3;return n(e,ih(t,4),r,s,nu)}function ow(e,t,r){var n=le(e)?tv:tI,s=arguments.length<3;return n(e,ih(t,4),r,s,nh)}function oS(e,t){return(le(e)?td:np)(e,oB(ih(t,3)))}function oT(e){return(le(e)?r2:n9)(e)}function ox(e,r,n){return r=(n?iC(e,r,n):r===t)?1:lq(r),(le(e)?r6:se)(e,r)}function oE(e){return(le(e)?r5:ss)(e)}function oj(e){if(e==null)return 0;if(lr(e))return lM(e)?t2(e):e.length;var t=ib(e);return t==y||t==w?e.size:(0,nU(e).length)}function oA(e,r,n){var s=le(e)?tb:sa;return n&&iC(e,r,n)&&(r=t),s(e,ih(r,3))}var oC=n7(function(e,t){if(e==null)return[];var r=t.length;return r>1&&iC(e,t[0],t[1])?t=[]:r>2&&iC(t[0],t[1],t[2])&&(t=[t[0]]),nX(e,ng(t,1),[])});var oM=e6||function(){return e5.Date.now()};function oI(e,t){if(typeof t!="function")throw new eS(r);return e=lq(e),function(){if(--e<1)return t.apply(this,arguments)}}function oR(e,r,n){return r=n?t:r,r=e&&r==null?e.length:r,s4(e,128,t,t,t,t,r)}function oO(e,n){var s;if(typeof n!="function")throw new eS(r);return e=lq(e),function(){return--e>0&&(s=n.apply(this,arguments)),e<=1&&(n=t),s}}var oL=n7(function(e,t,r){var n=1;if(r.length){var s=tQ(r,iu(oL));n|=32}return s4(e,n,t,r,s)});var oD=n7(function(e,t,r){var n=1|2;if(r.length){var s=tQ(r,iu(oD));n|=32}return s4(t,n,e,r,s)});function oN(e,r,n){r=n?t:r;var s=s4(e,8,t,t,t,t,t,r);return s.placeholder=oN.placeholder,s}function oP(e,r,n){r=n?t:r;var s=s4(e,16,t,t,t,t,t,r);return s.placeholder=oP.placeholder,s}function oz(e,n,s){var i,a,o,l,c,u,h=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new eS(r);function p(r){var n=i,s=a;return i=a=t,h=r,l=e.apply(s,n)}function g(e){return h=e,c=iY(b,n),d?p(e):l}function y(e){var t=e-u,r=e-h,s=n-t;return f?t7(s,o-r):s}function v(e){var r=e-u,s=e-h;return u===t||r>=n||r<0||f&&s>=o}function b(){var e=oM();if(v(e))return k(e);c=iY(b,y(e))}function k(e){return(c=t,m&&i)?p(e):(i=a=t,l)}function _(){return c===t?l:k(oM())}function w(){var e=oM(),r=v(e);if(i=arguments,a=this,u=e,r){if(c===t)return g(u);if(f)return sS(c),c=iY(b,n),p(u)}return c===t&&(c=iY(b,n)),l}return n=lF(n)||0,lg(s)&&(d=!!s.leading,o=(f="maxWait"in s)?t4(lF(s.maxWait)||0,n):o,m="trailing"in s?!!s.trailing:m),w.cancel=function(){c!==t&&sS(c),h=0,i=u=a=c=t},w.flush=_,w}var o$=n7(function(e,t){return nl(e,1,t)});var oq=n7(function(e,t,r){return nl(e,lF(t)||0,r)});function oH(e){return s4(e,512)}function oF(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new eS(r);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var a=e.apply(this,r);return n.cache=i.set(s,a)||i,a};return n.cache=new(oF.Cache||rH),n}function oB(e){if(typeof e!="function")throw new eS(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function oU(e){return oO(2,e)}oF.Cache=rH;var oG=n7(function(e,t){var r=(t=t.length==1&&le(t[0])?tp(t[0],tP(ih())):tp(ng(t,1),tP(ih()))).length;return n7(function(n){var s=-1,i=t7(n.length,r);while(++s<i)n[s]=t[s].call(this,n[s]);return to(e,this,n)})});var oW=n7(function(e,r){var n=tQ(r,iu(oW));return s4(e,32,t,r,n)});var oY=n7(function(e,r){var n=tQ(r,iu(oY));return s4(e,64,t,r,n)});var oV=ii(function(e,r){return s4(e,256,t,t,t,r)});function oJ(e,n){if(typeof e!="function")throw new eS(r);return n7(e,n=n===t?n:lq(n))}function oK(e,t){if(typeof e!="function")throw new eS(r);return t=t==null?0:t4(lq(t),0),n7(function(r){var n=r[t],s=sw(r,0,t);return n&&tg(s,n),to(e,this,s)})}function oZ(e,t,n){var s=!0,i=!0;if(typeof e!="function")throw new eS(r);return lg(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),oz(e,t,{"leading":s,"maxWait":t,"trailing":i})}function oQ(e){return oR(e,1)}function oX(e,t){return oW(sk(t),e)}function o0(){if(!arguments.length)return[];var e=arguments[0];return le(e)?e:[e]}function o1(e){return ni(e,4)}function o3(e,r){return ni(e,4,r=typeof r=="function"?r:t)}function o2(e){return ni(e,1|4)}function o6(e,r){return ni(e,1|4,r=typeof r=="function"?r:t)}function o5(e,t){return t==null||no(e,t,cs(t))}function o8(e,t){return e===t||e!=e&&t!=t}var o4=s3(nx);var o7=s3(function(e,t){return e>=t});var o9=nR(function(){return arguments}())?nR:function(e){return ly(e)&&eC.call(e,"callee")&&!eB.call(e,"callee")};var le=en.isArray;var lt=tt?tP(tt):nO;function lr(e){return e!=null&&lp(e.length)&&!lf(e)}function ln(e){return ly(e)&&lr(e)}function ls(e){return e===!0||e===!1||ly(e)&&nT(e)==d}var li=tk||uk;var la=tr?tP(tr):nL;function lo(e){return ly(e)&&e.nodeType===1&&!lE(e)}function ll(e){if(e==null)return!0;if(lr(e)&&(le(e)||typeof e=="string"||typeof e.splice=="function"||li(e)||lR(e)||o9(e)))return!e.length;var t=ib(e);if(t==y||t==w)return!e.size;if(iD(e))return!nU(e).length;for(var r in e)if(eC.call(e,r))return!1;return!0}function lc(e,t){return nD(e,t)}function lu(e,r,n){var s=(n=typeof n=="function"?n:t)?n(e,r):t;return s===t?nD(e,r,t,n):!!s}function lh(e){if(!ly(e))return!1;var t=nT(e);return t==m||t=="[object DOMException]"||typeof e.message=="string"&&typeof e.name=="string"&&!lE(e)}function ld(e){return typeof e=="number"&&t_(e)}function lf(e){if(!lg(e))return!1;var t=nT(e);return t==p||t==g||t=="[object AsyncFunction]"||t=="[object Proxy]"}function lm(e){return typeof e=="number"&&e==lq(e)}function lp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function lg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ly(e){return e!=null&&typeof e=="object"}var lv=tn?tP(tn):nP;function lb(e,t){return e===t||nz(e,t,im(t))}function lk(e,r,n){return n=typeof n=="function"?n:t,nz(e,r,im(r),n)}function l_(e){return lx(e)&&e!=+e}function lw(e){if(iL(e))throw new ey("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n$(e)}function lS(e){return e===null}function lT(e){return e==null}function lx(e){return typeof e=="number"||ly(e)&&nT(e)==v}function lE(e){if(!ly(e)||nT(e)!=b)return!1;var t=eH(e);if(t===null)return!0;var r=eC.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&eA.call(r)==eL}var lj=ts?tP(ts):nq;function lA(e){return lm(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff}var lC=ti?tP(ti):nH;function lM(e){return typeof e=="string"||!le(e)&&ly(e)&&nT(e)==S}function lI(e){return typeof e=="symbol"||ly(e)&&nT(e)==T}var lR=ta?tP(ta):nF;function lO(e){return e===t}function lL(e){return ly(e)&&ib(e)==x}function lD(e){return ly(e)&&nT(e)=="[object WeakSet]"}var lN=s3(nW);var lP=s3(function(e,t){return e<=t});function lz(e){if(!e)return[];if(lr(e))return lM(e)?t6(e):sL(e);if(eV&&e[eV])return tJ(e[eV]());var t=ib(e);return(t==y?tK:t==w?tX:cS)(e)}function l$(e){return!e?e===0?e:0:(0,(e=lF(e))===i||e===-i)?(e<0?-1:1)*17976931348623157e292:(0,e==e?e:0)}function lq(e){var t=l$(e),r=t%1;return t==t?r?t-r:t:0}function lH(e){return e?ns(lq(e),0,0xffffffff):0}function lF(e){if(typeof e=="number")return e;if(lI(e))return a;if(lg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=tN(e);var r=ec.test(e);return r||eh.test(e)?e3(e.slice(2),r?2:8):el.test(e)?a:+e}function lB(e){return sD(e,ci(e))}function lU(e){return e?ns(lq(e),-0x1fffffffffffff,0x1fffffffffffff):e===0?e:0}function lG(e){return e==null?"":sh(e)}var lW=s$(function(e,t){if(iD(t)||lr(t)){sD(t,cs(t),e);return}for(var r in t)eC.call(t,r)&&r4(e,r,t[r])});var lY=s$(function(e,t){sD(t,ci(t),e)});var lV=s$(function(e,t,r,n){sD(t,ci(t),e,n)});var lJ=s$(function(e,t,r,n){sD(t,cs(t),e,n)});var lK=ii(nn);function lZ(e,t){var r=rw(e);return t==null?r:ne(r,t)}var lQ=n7(function(e,r){e=ek(e);var n=-1;var s=r.length;var i=s>2?r[2]:t;i&&iC(r[0],r[1],i)&&(s=1);while(++n<s){var a=r[n];var o=ci(a);var l=-1;var c=o.length;while(++l<c){var u=o[l];var h=e[u];(h===t||o8(h,eE[u])&&!eC.call(e,u))&&(e[u]=a[u])}}return e});var lX=n7(function(e){return e.push(t,s9),to(cc,t,e)});function l0(e,t){return tS(e,ih(t,3),nb)}function l1(e,t){return tS(e,ih(t,3),nk)}function l3(e,t){return e==null?e:ny(e,ih(t,3),ci)}function l2(e,t){return e==null?e:nv(e,ih(t,3),ci)}function l6(e,t){return e&&nb(e,ih(t,3))}function l5(e,t){return e&&nk(e,ih(t,3))}function l8(e){return e==null?[]:n_(e,cs(e))}function l4(e){return e==null?[]:n_(e,ci(e))}function l7(e,r,n){var s=e==null?t:nw(e,r);return s===t?n:s}function l9(e,t){return e!=null&&iw(e,t,nE)}function ce(e,t){return e!=null&&iw(e,t,nj)}var ct=sK(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=eO.call(t)),e[t]=r},c7(ur));var cr=sK(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=eO.call(t)),eC.call(e,t)?e[t].push(r):e[t]=[r]},ih);var cn=n7(nI);function cs(e){return lr(e)?r3(e):nU(e)}function ci(e){return lr(e)?r3(e,!0):nG(e)}function ca(e,t){var r={};return t=ih(t,3),nb(e,function(e,n,s){nr(r,t(e,n,s),e)}),r}function co(e,t){var r={};return t=ih(t,3),nb(e,function(e,n,s){nr(r,n,t(e,n,s))}),r}var cl=s$(function(e,t,r){nK(e,t,r)});var cc=s$(function(e,t,r,n){nK(e,t,r,n)});var cu=ii(function(e,t){var r={};if(e==null)return r;var n=!1;t=tp(t,function(t){return t=s_(t,e),n||(n=t.length>1),t}),sD(e,io(e),r),n&&(r=ni(r,1|2|4,ie));var s=t.length;while(s--)sf(r,t[s]);return r});function ch(e,t){return cf(e,oB(ih(t)))}var cd=ii(function(e,t){return e==null?{}:n0(e,t)});function cf(e,t){if(e==null)return{};var r=tp(io(e),function(e){return[e]});return t=ih(t),n1(e,r,function(e,r){return t(e,r[0])})}function cm(e,r,n){r=s_(r,e);var s=-1,i=r.length;!i&&(i=1,e=t);while(++s<i){var a=e==null?t:e[iX(r[s])];a===t&&(s=i,a=n),e=lf(a)?a.call(e):a}return e}function cp(e,t,r){return e==null?e:st(e,t,r)}function cg(e,r,n,s){return s=typeof s=="function"?s:t,e==null?e:st(e,r,n,s)}var cy=s8(cs);var cv=s8(ci);function cb(e,t,r){var n=le(e),s=n||li(e)||lR(e);if(t=ih(t,4),r==null){var i=e&&e.constructor;r=s?n?new i:[]:lg(e)&&lf(i)?rw(eH(e)):{}}return(s?tc:nb)(e,function(e,n,s){return t(r,e,n,s)}),r}function ck(e,t){return e==null?!0:sf(e,t)}function c_(e,t,r){return e==null?e:sm(e,t,sk(r))}function cw(e,r,n,s){return s=typeof s=="function"?s:t,e==null?e:sm(e,r,sk(n),s)}function cS(e){return e==null?[]:tz(e,cs(e))}function cT(e){return e==null?[]:tz(e,ci(e))}function cx(e,r,n){return n===t&&(n=r,r=t),n!==t&&(n=(n=lF(n))==n?n:0),r!==t&&(r=(r=lF(r))==r?r:0),ns(lF(e),r,n)}function cE(e,r,n){return r=l$(r),n===t?(n=r,r=0):n=l$(n),nA(e=lF(e),r,n)}function cj(e,r,n){if(n&&typeof n!="boolean"&&iC(e,r,n)&&(r=n=t),n===t&&(typeof r=="boolean"?(n=r,r=t):typeof e=="boolean"&&(n=e,e=t)),e===t&&r===t?(e=0,r=1):(e=l$(e),r===t?(r=e,e=0):r=l$(r)),e>r){var s=e;e=r,r=s}if(n||e%1||r%1){var i=rn();return t7(e+i*(r-e+e1("1e-"+((i+"").length-1))),r)}return n5(e,r)}var cA=sU(function(e,t,r){return t=t.toLowerCase(),e+(r?cC(t):t)});function cC(e){return c3(lG(e).toLowerCase())}function cM(e){return(e=lG(e))&&e.replace(ef,tB).replace(eG,"")}function cI(e,r,n){e=lG(e),r=sh(r);var s=e.length;var i=n=n===t?s:ns(lq(n),0,s);return(n-=r.length)>=0&&e.slice(n,i)==r}function cR(e){return(e=lG(e))&&B.test(e)?e.replace(H,tU):e}function cO(e){return(e=lG(e))&&Z.test(e)?e.replace(K,"\\$&"):e}var cL=sU(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});var cD=sU(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});var cN=sB("toLowerCase");function cP(e,t,r){e=lG(e);var n=(t=lq(t))?t2(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return sX(e9(s),r)+e+sX(e4(s),r)}function cz(e,t,r){e=lG(e);var n=(t=lq(t))?t2(e):0;return t&&n<t?e+sX(t-n,r):e}function c$(e,t,r){e=lG(e);var n=(t=lq(t))?t2(e):0;return t&&n<t?sX(t-n,r)+e:e}function cq(e,t,r){return r||t==null?t=0:t&&(t=+t),rr(lG(e).replace(Q,""),t||0)}function cH(e,r,n){return r=(n?iC(e,r,n):r===t)?1:lq(r),n4(lG(e),r)}function cF(){var e=arguments,t=lG(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cB=sU(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function cU(e,r,n){if(n&&typeof n!="number"&&iC(e,r,n)&&(r=n=t),!(n=n===t?0xffffffff:n>>>0))return[];if((e=lG(e))&&(typeof r=="string"||r!=null&&!lj(r))){if(!(r=sh(r))&&tY(e))return sw(t6(e),0,n)}return e.split(r,n)}var cG=sU(function(e,t,r){return e+(r?" ":"")+c3(t)});function cW(e,t,r){return e=lG(e),r=r==null?0:ns(lq(r),0,e.length),t=sh(t),e.slice(r,r+t.length)==t}function cY(e,r,n){var s=r_.templateSettings;n&&iC(e,r,n)&&(r=t),e=lG(e),r=lJ({},r,s,s7);var i=lJ({},r.imports,s.imports,s7),a=cs(i),o=tz(i,a);tc(a,function(e){if(es.test(e))throw new ey("Invalid `imports` option passed into `_.template`")});var l,c,u=0,h=r.interpolate||em,d="__p += '";var f=e_((r.escape||em).source+"|"+h.source+"|"+(h===W?ea:em).source+"|"+(r.evaluate||em).source+"|$","g");var m="//# sourceURL="+(eC.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eZ+"]")+`
`;e.replace(f,function(t,r,n,s,i,a){return n||(n=s),d+=e.slice(u,a).replace(ep,tG),r&&(l=!0,d+=`' +
__e(`+r+`) +
'`),i&&(c=!0,d+=`';
`+i+`;
__p += '`),n&&(d+=`' +
((__t = (`+n+`)) == null ? '' : __t) +
'`),u=a+t.length,t}),d+=`';
`;var p=eC.call(r,"variable")&&r.variable;if(p){if(es.test(p))throw new ey("Invalid `variable` option passed into `_.template`")}else d=`with (obj) {
`+d+`
}
`;d=(c?d.replace(P,""):d).replace(z,"$1").replace($,"$1;"),d="function("+(p||"obj")+`) {
`+(p?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
`+`function print() { __p += __j.call(arguments, '') }
`:`;
`)+d+`return __p
}`;var g=c6(function(){return ev(a,m+"return "+d).apply(t,o)});if(g.source=d,lh(g))throw g;return g}function cV(e){return lG(e).toLowerCase()}function cJ(e){return lG(e).toUpperCase()}function cK(e,r,n){if((e=lG(e))&&(n||r===t))return tN(e);if(!e||!(r=sh(r)))return e;var s=t6(e),i=t6(r),a=tq(s,i),o=tH(s,i)+1;return sw(s,a,o).join("")}function cZ(e,r,n){if((e=lG(e))&&(n||r===t))return e.slice(0,t5(e)+1);if(!e||!(r=sh(r)))return e;var s=t6(e),i=tH(s,t6(r))+1;return sw(s,0,i).join("")}function cQ(e,r,n){if((e=lG(e))&&(n||r===t))return e.replace(Q,"");if(!e||!(r=sh(r)))return e;var s=t6(e),i=tq(s,t6(r));return sw(s,i).join("")}function cX(e,r){var n=30,s="...";if(lg(r)){var i="separator"in r?r.separator:i;n="length"in r?lq(r.length):n,s="omission"in r?sh(r.omission):s}var a=(e=lG(e)).length;if(tY(e)){var o=t6(e);a=o.length}if(n>=a)return e;var l=n-t2(s);if(l<1)return s;var c=o?sw(o,0,l).join(""):e.slice(0,l);if(i===t)return c+s;if(o&&(l+=c.length-l),lj(i)){if(e.slice(l).search(i)){var u,h=c;!i.global&&(i=e_(i.source,lG(eo.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(h))var d=u.index;c=c.slice(0,d===t?l:d)}}else if(e.indexOf(sh(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+s}function c0(e){return(e=lG(e))&&F.test(e)?e.replace(q,t8):e}var c1=sU(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()});var c3=sB("toUpperCase");function c2(e,r,n){return(e=lG(e),(r=n?t:r)===t)?tV(e)?t9(e):tw(e):(0,e.match(r)||[])}var c6=n7(function(e,r){try{return to(e,t,r)}catch(e){return lh(e)?e:new ey(e)}});var c5=ii(function(e,t){return tc(t,function(t){nr(e,t=iX(t),oL(e[t],e))}),e});function c8(e){var t=e==null?0:e.length,n=ih();return e=!t?[]:tp(e,function(e){if(typeof e[1]!="function")throw new eS(r);return[n(e[0]),e[1]]}),n7(function(r){var n=-1;while(++n<t){var s=e[n];if(to(s[0],this,r))return to(s[1],this,r)}})}function c4(e){return na(ni(e,1))}function c7(e){return function(){return e}}function c9(e,t){return e==null||e!=e?t:e}var ue=sV();var ut=sV(!0);function ur(e){return e}function un(e){return nB(typeof e=="function"?e:ni(e,1))}function us(e){return nV(ni(e,1))}function ui(e,t){return nJ(e,ni(t,1))}var ua=n7(function(e,t){return function(r){return nI(r,e,t)}});var uo=n7(function(e,t){return function(r){return nI(e,r,t)}});function ul(e,t,r){var n=cs(t),s=n_(t,n);r==null&&!(lg(t)&&(s.length||!n.length))&&(r=t,t=e,e=this,s=n_(t,cs(t)));var i=!(lg(r)&&"chain"in r)||!!r.chain,a=lf(e);return tc(s,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=sL(this.__actions__)).push({"func":n,"args":arguments,"thisArg":e}),r.__chain__=t,r}return n.apply(e,tg([this.value()],arguments))})}),e}function uc(){return e5._===this&&(e5._=eD),this}function uu(){}function uh(e){return e=lq(e),n7(function(t){return nQ(t,e)})}var ud=sQ(tp);var uf=sQ(th);var um=sQ(tb);function up(e){return iM(e)?tC(iX(e)):n3(e)}function ug(e){return function(r){return e==null?t:nw(e,r)}}var uy=s1();var uv=s1(!0);function ub(){return[]}function uk(){return!1}function u_(){return{}}function uw(){return""}function uS(){return!0}function uT(e,t){if((e=lq(e))<1||e>0x1fffffffffffff)return[];var r=0xffffffff,n=t7(e,0xffffffff);t=ih(t),e-=0xffffffff;var s=tL(n,t);while(++r<e)t(r);return s}function ux(e){return le(e)?tp(e,iX):(0,lI(e)?[e]:sL(iQ(lG(e))))}function uE(e){var t=++eM;return lG(e)+t}var uj=sZ(function(e,t){return e+t},0);var uA=s6("ceil");var uC=sZ(function(e,t){return e/t},1);var uM=s6("floor");function uI(e){return e&&e.length?nf(e,ur,nx):t}function uR(e,r){return e&&e.length?nf(e,ih(r,2),nx):t}function uO(e){return tA(e,ur)}function uL(e,t){return tA(e,ih(t,2))}function uD(e){return e&&e.length?nf(e,ur,nW):t}function uN(e,r){return e&&e.length?nf(e,ih(r,2),nW):t}var uP=sZ(function(e,t){return e*t},1);var uz=s6("round");var u$=sZ(function(e,t){return e-t},0);function uq(e){return e&&e.length?tO(e,ur):0}function uH(e,t){return e&&e.length?tO(e,ih(t,2)):0}var uF;return r_.after=oI,r_.ary=oR,r_.assign=lW,r_.assignIn=lY,r_.assignInWith=lV,r_.assignWith=lJ,r_.at=lK,r_.before=oO,r_.bind=oL,r_.bindAll=c5,r_.bindKey=oD,r_.castArray=o0,r_.chain=a2,r_.chunk=i2,r_.compact=i6,r_.concat=i5,r_.cond=c8,r_.conforms=c4,r_.constant=c7,r_.countBy=os,r_.create=lZ,r_.curry=oN,r_.curryRight=oP,r_.debounce=oz,r_.defaults=lQ,r_.defaultsDeep=lX,r_.defer=o$,r_.delay=oq,r_.difference=i8,r_.differenceBy=i4,r_.differenceWith=i7,r_.drop=i9,r_.dropRight=ae,r_.dropRightWhile=at,r_.dropWhile=ar,r_.fill=an,r_.filter=oa,r_.flatMap=oc,r_.flatMapDeep=ou,r_.flatMapDepth=oh,r_.flatten=aa,r_.flattenDeep=ao,r_.flattenDepth=al,r_.flip=oH,r_.flow=ue,r_.flowRight=ut,r_.fromPairs=ac,r_.functions=l8,r_.functionsIn=l4,r_.groupBy=om,r_.initial=ad,r_.intersection=af,r_.intersectionBy=am,r_.intersectionWith=ap,r_.invert=ct,r_.invertBy=cr,r_.invokeMap=og,r_.iteratee=un,r_.keyBy=oy,r_.keys=cs,r_.keysIn=ci,r_.map=ov,r_.mapKeys=ca,r_.mapValues=co,r_.matches=us,r_.matchesProperty=ui,r_.memoize=oF,r_.merge=cl,r_.mergeWith=cc,r_.method=ua,r_.methodOf=uo,r_.mixin=ul,r_.negate=oB,r_.nthArg=uh,r_.omit=cu,r_.omitBy=ch,r_.once=oU,r_.orderBy=ob,r_.over=ud,r_.overArgs=oG,r_.overEvery=uf,r_.overSome=um,r_.partial=oW,r_.partialRight=oY,r_.partition=ok,r_.pick=cd,r_.pickBy=cf,r_.property=up,r_.propertyOf=ug,r_.pull=ak,r_.pullAll=a_,r_.pullAllBy=aw,r_.pullAllWith=aS,r_.pullAt=aT,r_.range=uy,r_.rangeRight=uv,r_.rearg=oV,r_.reject=oS,r_.remove=ax,r_.rest=oJ,r_.reverse=aE,r_.sampleSize=ox,r_.set=cp,r_.setWith=cg,r_.shuffle=oE,r_.slice=aj,r_.sortBy=oC,r_.sortedUniq=aL,r_.sortedUniqBy=aD,r_.split=cU,r_.spread=oK,r_.tail=aN,r_.take=aP,r_.takeRight=az,r_.takeRightWhile=a$,r_.takeWhile=aq,r_.tap=a6,r_.throttle=oZ,r_.thru=a5,r_.toArray=lz,r_.toPairs=cy,r_.toPairsIn=cv,r_.toPath=ux,r_.toPlainObject=lB,r_.transform=cb,r_.unary=oQ,r_.union=aH,r_.unionBy=aF,r_.unionWith=aB,r_.uniq=aU,r_.uniqBy=aG,r_.uniqWith=aW,r_.unset=ck,r_.unzip=aY,r_.unzipWith=aV,r_.update=c_,r_.updateWith=cw,r_.values=cS,r_.valuesIn=cT,r_.without=aJ,r_.words=c2,r_.wrap=oX,r_.xor=aK,r_.xorBy=aZ,r_.xorWith=aQ,r_.zip=aX,r_.zipObject=a0,r_.zipObjectDeep=a1,r_.zipWith=a3,r_.entries=cy,r_.entriesIn=cv,r_.extend=lY,r_.extendWith=lV,ul(r_,r_),r_.add=uj,r_.attempt=c6,r_.camelCase=cA,r_.capitalize=cC,r_.ceil=uA,r_.clamp=cx,r_.clone=o1,r_.cloneDeep=o2,r_.cloneDeepWith=o6,r_.cloneWith=o3,r_.conformsTo=o5,r_.deburr=cM,r_.defaultTo=c9,r_.divide=uC,r_.endsWith=cI,r_.eq=o8,r_.escape=cR,r_.escapeRegExp=cO,r_.every=oi,r_.find=oo,r_.findIndex=as,r_.findKey=l0,r_.findLast=ol,r_.findLastIndex=ai,r_.findLastKey=l1,r_.floor=uM,r_.forEach=od,r_.forEachRight=of,r_.forIn=l3,r_.forInRight=l2,r_.forOwn=l6,r_.forOwnRight=l5,r_.get=l7,r_.gt=o4,r_.gte=o7,r_.has=l9,r_.hasIn=ce,r_.head=au,r_.identity=ur,r_.includes=op,r_.indexOf=ah,r_.inRange=cE,r_.invoke=cn,r_.isArguments=o9,r_.isArray=le,r_.isArrayBuffer=lt,r_.isArrayLike=lr,r_.isArrayLikeObject=ln,r_.isBoolean=ls,r_.isBuffer=li,r_.isDate=la,r_.isElement=lo,r_.isEmpty=ll,r_.isEqual=lc,r_.isEqualWith=lu,r_.isError=lh,r_.isFinite=ld,r_.isFunction=lf,r_.isInteger=lm,r_.isLength=lp,r_.isMap=lv,r_.isMatch=lb,r_.isMatchWith=lk,r_.isNaN=l_,r_.isNative=lw,r_.isNil=lT,r_.isNull=lS,r_.isNumber=lx,r_.isObject=lg,r_.isObjectLike=ly,r_.isPlainObject=lE,r_.isRegExp=lj,r_.isSafeInteger=lA,r_.isSet=lC,r_.isString=lM,r_.isSymbol=lI,r_.isTypedArray=lR,r_.isUndefined=lO,r_.isWeakMap=lL,r_.isWeakSet=lD,r_.join=ag,r_.kebabCase=cL,r_.last=ay,r_.lastIndexOf=av,r_.lowerCase=cD,r_.lowerFirst=cN,r_.lt=lN,r_.lte=lP,r_.max=uI,r_.maxBy=uR,r_.mean=uO,r_.meanBy=uL,r_.min=uD,r_.minBy=uN,r_.stubArray=ub,r_.stubFalse=uk,r_.stubObject=u_,r_.stubString=uw,r_.stubTrue=uS,r_.multiply=uP,r_.nth=ab,r_.noConflict=uc,r_.noop=uu,r_.now=oM,r_.pad=cP,r_.padEnd=cz,r_.padStart=c$,r_.parseInt=cq,r_.random=cj,r_.reduce=o_,r_.reduceRight=ow,r_.repeat=cH,r_.replace=cF,r_.result=cm,r_.round=uz,r_.runInContext=e,r_.sample=oT,r_.size=oj,r_.snakeCase=cB,r_.some=oA,r_.sortedIndex=aA,r_.sortedIndexBy=aC,r_.sortedIndexOf=aM,r_.sortedLastIndex=aI,r_.sortedLastIndexBy=aR,r_.sortedLastIndexOf=aO,r_.startCase=cG,r_.startsWith=cW,r_.subtract=u$,r_.sum=uq,r_.sumBy=uH,r_.template=cY,r_.times=uT,r_.toFinite=l$,r_.toInteger=lq,r_.toLength=lH,r_.toLower=cV,r_.toNumber=lF,r_.toSafeInteger=lU,r_.toString=lG,r_.toUpper=cJ,r_.trim=cK,r_.trimEnd=cZ,r_.trimStart=cQ,r_.truncate=cX,r_.unescape=c0,r_.uniqueId=uE,r_.upperCase=c1,r_.upperFirst=c3,r_.each=od,r_.eachRight=of,r_.first=au,ul(r_,(uF={},nb(r_,function(e,t){!eC.call(r_.prototype,t)&&(uF[t]=e)}),uF),{"chain":!1}),r_.VERSION="4.18.1",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){r_[e].placeholder=r_}),tc(["drop","take"],function(e,r){rx.prototype[e]=function(n){n=n===t?1:t4(lq(n),0);var s=this.__filtered__&&!r?new rx(this):this.clone();return s.__filtered__?s.__takeCount__=t7(n,s.__takeCount__):s.__views__.push({"size":t7(n,0xffffffff),"type":e+(s.__dir__<0?"Right":"")}),s},rx.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==1||r==3;rx.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({"iteratee":ih(e,3),"type":r}),t.__filtered__=t.__filtered__||n,t}}),tc(["head","last"],function(e,t){var r="take"+(t?"Right":"");rx.prototype[e]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rx.prototype[e]=function(){return this.__filtered__?new rx(this):this[r](1)}}),rx.prototype.compact=function(){return this.filter(ur)},rx.prototype.find=function(e){return this.filter(e).head()},rx.prototype.findLast=function(e){return this.reverse().find(e)},rx.prototype.invokeMap=n7(function(e,t){return typeof e=="function"?new rx(this):(0,this.map(function(r){return nI(r,e,t)}))}),rx.prototype.reject=function(e){return this.filter(oB(ih(e)))},rx.prototype.slice=function(e,r){e=lq(e);var n=this;return n.__filtered__&&(e>0||r<0)?new rx(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),r!==t&&(n=(r=lq(r))<0?n.dropRight(-r):n.take(r-e)),n)},rx.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rx.prototype.toArray=function(){return this.take(0xffffffff)},nb(rx.prototype,function(e,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),s=/^(?:head|last)$/.test(r),i=r_[s?"take"+(r=="last"?"Right":""):r],a=s||/^find/.test(r);if(!i)return;r_.prototype[r]=function(){var r=this.__wrapped__,o=s?[1]:arguments,l=r instanceof rx,c=o[0],u=l||le(r);var h=function(e){var t=i.apply(r_,tg([e],o));return s&&d?t[0]:t};u&&n&&typeof c=="function"&&c.length!=1&&(l=u=!1);var d=this.__chain__,f=!!this.__actions__.length,m=a&&!d,p=l&&!f;if(!a&&u){r=p?r:new rx(this);var g=e.apply(r,o);return g.__actions__.push({"func":a5,"args":[h],"thisArg":t}),new rT(g,d)}return m&&p?e.apply(this,o):(g=this.thru(h),m?s?g.value()[0]:g.value():g)}}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eT[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r_.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var s=this.value();return t.apply(le(s)?s:[],e)}return this[r](function(r){return t.apply(le(r)?r:[],e)})}}),nb(rx.prototype,function(e,t){var r=r_[t];if(r){var n=r.name+"";!eC.call(rd,n)&&(rd[n]=[]),rd[n].push({"name":t,"func":r})}}),rd[sJ(t,2).name]=[{"name":"wrapper","func":t}],rx.prototype.clone=rE,rx.prototype.reverse=rj,rx.prototype.value=rA,r_.prototype.at=a8,r_.prototype.chain=a4,r_.prototype.commit=a7,r_.prototype.next=a9,r_.prototype.plant=ot,r_.prototype.reverse=or,r_.prototype.toJSON=r_.prototype.valueOf=r_.prototype.value=on,r_.prototype.first=r_.prototype.head,eV&&(r_.prototype[eV]=oe),r_}();!0&&(e5._=re,(e=(function(){return re}).call(exports,__webpack_require__,exports,module))!==t&&(module.exports=e))}).call(this)}}).call(__webpack_require__._LM_("lodash",{exports,module,__webpack_require__})).bind(exports)()},461893(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let s=(0,t.kp)(n.Wu,(0,e.Ik)({type:(0,r.eu)(n.Z6.Divider)}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},463580(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>c});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(603373);var n=__webpack_require__(577102);var s=__webpack_require__(78463);var i=__webpack_require__(396102);var a=__webpack_require__(646093);var o=__webpack_require__(285459);let l={[s.JD]:"auto.log.console"};let c=(0,n._C)((n={})=>{let s=n.levels||i.Ow;return{name:"ConsoleLogs",setup(n){let{enableLogs:c,normalizeDepth:u=3,normalizeMaxBreadth:h=1e3}=n.getOptions();if(!c){t.T&&i.Yz.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}(0,r.P)(({args:t,level:r})=>{if((0,e.KU)()!==n||!s.includes(r))return;let i=t[0];let c=t.slice(1);if(r==="assert"){if(!i){let e=c.length>0?`Assertion failed: ${(0,o.wU)(c,u,h)}`:"Assertion failed";(0,a.KG)({level:"error",message:e,attributes:l})}return}let d=r==="log";let f=t.length>1&&typeof t[0]=="string"&&!(0,o.I8)(t[0]);let m={...l,...f?(0,o.fF)(i,c):{}};(0,a.KG)({level:d?"info":r,message:(0,o.wU)(t,u,h),severityNumber:d?10:undefined,attributes:m})})}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},465273(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);exports.formatArgs=n,exports.save=s,exports.load=i,exports.useColors=r,exports.storage=a();let t;function r(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return document!==void 0&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+module.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0;let n=0;e[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%")return;r++,e==="%c"&&(n=r)}),e.splice(n,0,t)}function s(e){try{e?exports.storage.setItem("debug",e):exports.storage.removeItem("debug")}catch(e){}}function i(){let t;try{t=exports.storage.getItem("debug")||exports.storage.getItem("DEBUG")}catch(e){}return!t&&e!==void 0&&"env"in e&&(t=e.env.DEBUG),t}function a(){try{return localStorage}catch(e){}}t=!1,exports.destroy=()=>{!t&&(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},exports.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],exports.log=console.debug||console.log||(()=>{}),module.exports=__webpack_require__(617648)(exports);let{formatters:o}=module.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}}).call(__webpack_require__._LM_("nock>debug",{exports,module,__webpack_require__}))()},466737(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>n,r:()=>r});var e=__webpack_require__(563023);let t="_sentrySpan";function r(r,n){n?(0,e.my)(r,t,n):delete r[t]}function n(e){return e[t]}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},468417(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>i,X:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(78463);var r=__webpack_require__(396102);var n=__webpack_require__(682631);function s(i,a,o,l=(0,n.Bk)()){let c=l&&(0,n.zU)(l);c&&(e.T&&r.Yz.log(`[Measurement] Setting measurement on root span: ${i} = ${a} ${o}`),c.addEvent(i,{[t.xc]:a,[t.Sn]:o}))}function i(e){if(!e||e.length===0)return undefined;let r={};return e.forEach(e=>{let n=e.attributes||{};let s=n[t.Sn];let i=n[t.xc];typeof s=="string"&&typeof i=="number"&&(r[e.name]={value:i,unit:s})}),r}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},477964(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$h:()=>_,AE:()=>S,AI:()=>w,CC:()=>i,DH:()=>o,DO:()=>n,Fe:()=>r,Ht:()=>a,Id:()=>E,K_:()=>x,My:()=>y,O8:()=>c,Ow:()=>u,Vw:()=>A,ZJ:()=>T,aT:()=>b,aY:()=>t,aZ:()=>h,fd:()=>m,po:()=>M,qj:()=>C,sd:()=>s,tY:()=>j,uH:()=>l});var e=__webpack_require__(362108);function t(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function n(e,...r){if(!t(e))throw new Error("Uint8Array expected");if(r.length>0&&!r.includes(e.length))throw new Error("Uint8Array expected of length "+r+", got length="+e.length)}function s(e){if(typeof e!=="function"||typeof e.create!=="function")throw new Error("Hash should be wrapped by utils.createHasher");r(e.outputLen),r(e.blockLen)}function i(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){n(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function o(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function l(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function c(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function u(e,t){return e<<32-t|e>>>t}function h(e,t){return e<<t|e>>>32-t>>>0}function d(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function f(e){for(let t=0;t<e.length;t++)e[t]=d(e[t]);return e}let m=(0,new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]===68)?e=>e:f;let p=(0,typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function");let g=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){if(n(e),p)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=g[e[r]];return t}function v(e){return e>=48&&e<=57?e-48:(0,e>=65&&e<=70)?e-(65-10):(0,e>=97&&e<=102)?e-(97-10):(0,void 0)}function b(e){if(typeof e!=="string")throw new Error("hex string expected, got "+typeof e);if(p)return Uint8Array.fromHex(e);let t=e.length;let r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,s=0;t<r;t++,s+=2){let r=v(e.charCodeAt(s));let i=v(e.charCodeAt(s+1));if(r===undefined||i===undefined)throw new Error('hex string expected, got non-hex character "'+(e[s]+e[s+1])+'" at index '+s);n[t]=r*16+i}return n}let k=async()=>{};async function _(e,t,r){let n=Date.now();for(let s=0;s<e;s++){r(s);let e=Date.now()-n;if(e>=0&&e<t)continue;await k(),n+=e}}function w(e){if(typeof e!=="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function S(e){return new TextDecoder().decode(e)}function T(e){return typeof e=="string"&&(e=w(e)),n(e),e}function x(e){return typeof e=="string"&&(e=w(e)),n(e),e}function E(...e){let t=0;for(let r=0;r<e.length;r++){let s=e[r];n(s),t+=s.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let s=e[t];r.set(s,n),n+=s.length}return r}function j(e,t){if(t!==undefined&&({}).toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class A{}function C(e){let t=t=>e().update(T(t)).digest();let r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function M(t=32){if(e.E&&typeof e.E.getRandomValues=="function")return e.E.getRandomValues(new Uint8Array(t));if(e.E&&typeof e.E.randomBytes=="function")return Uint8Array.from(e.E.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_require__,__webpack_exports__}))()},480021(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cp:()=>n,wQ:()=>r,wd:()=>s});var e=__webpack_require__(549140);let t=(0,e.u)("sentry");let r=(0,e.X)(t,globalThis.document?"ui":"background");function n(e,t){return(console.error(e,...t?[t]:[]),!globalThis.sentry?.captureException)?(console.warn("Sentry not initialized"),undefined):(0,globalThis.sentry.captureException(e,...t?[t]:[]))}function s(e,t){return!globalThis.sentry?.captureMessage?(console.warn("Sentry not initialized"),console.log(e,...t?[t]:[]),undefined):(0,globalThis.sentry.captureMessage(e,...t?[t]:[]))}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},484068(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{vb:()=>y});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(174638);var n=__webpack_require__(382906);var s=__webpack_require__(453945);var i=__webpack_require__(461893);var a=__webpack_require__(706524);var o=__webpack_require__(515828);var l=__webpack_require__(861913);var c=__webpack_require__(335562);var u=__webpack_require__(208554);var h=__webpack_require__(45217);var d=__webpack_require__(955187);var f=__webpack_require__(879771);var m=__webpack_require__(676358);let p=(0,t.kp)(m.Wu,(0,e.Ik)({children:(0,e.YO)((0,t.RZ)(()=>y))}));let g=(0,t.kp)(p,(0,e.Ik)({type:(0,f.eu)(m.Z6.Panel)}));let y=(0,f.i5)([s.$,i.z,o.Y,l.x,g,h.t,d.z,u.E,r.A,c.y,a.W,n.s3])}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},484413(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{T:()=>e});let e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_exports__,__webpack_require__}))()},484945(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function t(){return"npm"}__webpack_require__.d(__webpack_exports__,{Z:()=>e,e:()=>t})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},485791(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;__webpack_require__.d(__webpack_exports__,{A:()=>r});var t=new Uint8Array(16);function r(){if(!e){if(!(e=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!=="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return e(t)}}}).call(__webpack_require__._LM_("uuid",{__webpack_exports__,__webpack_require__}))()},486023(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{FA:()=>r,Jz:()=>s,wq:()=>i});var e=__webpack_require__(147687);let t=60*1e3;function r(n,s=(0,e.Wk)()){let i=parseInt(`${n}`,10);if(!isNaN(i))return i*1e3;let a=Date.parse(`${n}`);return!isNaN(a)?a-s:(0,t)}function n(e,t){return e[t]||e.all||0}function s(t,r,i=(0,e.Wk)()){return n(t,r)>i}function i(t,{statusCode:n,headers:s},a=(0,e.Wk)()){let o={...t};let l=s?.["x-sentry-rate-limits"];let c=s?.["retry-after"];if(l)for(let e of l.trim().split(",")){let[t,r,,,n]=e.split(":",5);let s=parseInt(t,10);let i=(!isNaN(s)?s:60)*1e3;if(r)for(let e of r.split(";"))e==="metric_bucket"?(!n||n.split(";").includes("custom"))&&(o[e]=a+i):o[e]=a+i;else o.all=a+i}else c?o.all=a+r(c,a):n===429&&(o.all=a+60*1e3);return o}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},488560(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(19891);var r=__webpack_require__(901889);let n=(0,e._C)((e={})=>{let t=e.root;let n=e.prefix||"app:///";let i="window"in r.O&&!!r.O.window;let a=e.iteratee||s({isBrowser:i,root:t,prefix:n});function o(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:l(e.stacktrace)}}))}}}catch{return e}}function l(e){return{...e,frames:e?.frames?.map(e=>a(e))}}return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=o(t)),t}}});function s({isBrowser:e,root:r,prefix:n}){return s=>{if(!s.filename)return s;let i=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/");let a=/^\//.test(s.filename);if(e){if(r){let e=s.filename;e.indexOf(r)===0&&(s.filename=e.replace(r,n))}}else if(i||a){let e=i?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename;let a=r?(0,t.V8)(r,e):(0,t.P8)(e);s.filename=`${n}${a}`}return s}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},499490(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A$:()=>n,E2:()=>l,N2:()=>o,fC:()=>c,iQ:()=>r,u1:()=>a});var e=__webpack_require__(908743);var t=__webpack_require__(745085);let r=-31002;let n="Snap Error";function s(e,r,n=null){return(0,t.Gv)(e)&&(0,t.i5)(e,r)?e[r]:(0,n)}function i(e,t,r=String(e)){let n=s(e,t);return typeof n=="string"?n:(0,r)}function a(e){return i(e,"message")}function o(e){return i(e,"stack",null)}function l(e){let t=s(e,"code");return typeof t=="number"&&Number.isInteger(t)?t:(0,-32603)}function c(t){let r=s(t,"data");return r!==null&&(0,e.jU)(r)&&!Array.isArray(r)?r:(0,{})}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},499985(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_:()=>r});var e=__webpack_require__(956902);var t=__webpack_require__(787631);function r(r){return e._(r,async(...e)=>{let r=await (0,t.kS)();if(!r?.completedMetaMetricsOnboarding||!r.optedIn)throw new Error("Network request skipped as metrics disabled");return await fetch(...e)})}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},504399(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>r});var e=__webpack_require__(577102);var t=__webpack_require__(100873);let r=(0,e._C)(({featureFlagClient:e})=>{return{name:"Statsig",setup(r){e.on("gate_evaluation",e=>{(0,t.Ee)(e.gate.name,e.gate.value),(0,t.si)(e.gate.name,e.gate.value)})},processEvent(e,r,n){return(0,t.Nf)(e)}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},504855(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>i,e:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(180121);function n(e){t.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(t,s){if(!s?.length||!t.description)return!1;for(let i of s){if(a(i)){if((0,r._c)(t.description,i))return e.T&&n(t),!0;continue}if(!i.name&&!i.op)continue;let s=i.name?(0,r._c)(t.description,i.name):!0;let o=i.op?t.op&&(0,r._c)(t.op,i.op):!0;if(s&&o)return e.T&&n(t),!0}return!1}function i(e,t){let r=t.parent_span_id;let n=t.span_id;if(!r)return;for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}function a(e){return typeof e=="string"||e instanceof RegExp}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},506820(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>n});var e=__webpack_require__(381699);var t=__webpack_require__(260516);function r(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function n(n,s,i,a){let o={};return s?.sdk&&(o.sdk={name:s.sdk.name,version:s.sdk.version}),!!i&&!!a&&(o.dsn=(0,e.SB)(a)),(0,t.h4)(o,[r(n)])}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},509279(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>o});var e=__webpack_require__(931263);var t=__webpack_require__(78463);var r=__webpack_require__(276435);var n=__webpack_require__(827284);var s=__webpack_require__(377271);var i=__webpack_require__(997858);var a=__webpack_require__(663834);function o(l={}){let c=l.recordInputs??!1;let u=l.recordOutputs??!1;let h=new Map;let d=e=>{let t=h.get(e);t?.isRecording()&&(t.end(),h.delete(e))};let f={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:undefined,lc_attributes:undefined,lc_aliases:undefined,lc_serializable_keys:undefined,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,i,o,l,u,d,f){let m=(0,a.xF)(u);let p=(0,a.LI)(e,r,c,m,d);let g=p[s.nK];let y=p[s.Rf];(0,n.nV)({name:`${y} ${g}`,op:"gen_ai.chat",attributes:{...p,[t.uT]:"gen_ai.chat"}},e=>{return h.set(i,e),e})},handleChatModelStart(e,r,i,o,l,u,d,f){let m=(0,a.xF)(u);let p=(0,a.n4)(e,r,c,m,d);let g=p[s.nK];let y=p[s.Rf];(0,n.nV)({name:`${y} ${g}`,op:"gen_ai.chat",attributes:{...p,[t.uT]:"gen_ai.chat"}},e=>{return h.set(i,e),e})},handleLLMEnd(e,t,r,n,s){let i=h.get(t);if(i?.isRecording()){let r=(0,a.jI)(e,u);r&&i.setAttributes(r),d(t)}},handleLLMError(t,n){let s=h.get(n);s?.isRecording()&&(s.setStatus({code:r.TJ,message:"llm_error"}),d(n)),(0,e.Cp)(t,{mechanism:{handled:!1,type:`${i.rT}.llm_error_handler`}})},handleChainStart(e,r,s,i){let a=e.name||"unknown_chain";let o={[t.JD]:"auto.ai.langchain","langchain.chain.name":a};c&&(o["langchain.chain.inputs"]=JSON.stringify(r)),(0,n.nV)({name:`chain ${a}`,op:"gen_ai.invoke_agent",attributes:{...o,[t.uT]:"gen_ai.invoke_agent"}},e=>{return h.set(s,e),e})},handleChainEnd(e,t){let r=h.get(t);r?.isRecording()&&(u&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),d(t))},handleChainError(t,n){let s=h.get(n);s?.isRecording()&&(s.setStatus({code:r.TJ,message:"chain_error"}),d(n)),(0,e.Cp)(t,{mechanism:{handled:!1,type:`${i.rT}.chain_error_handler`}})},handleToolStart(e,r,a,o){let l=e.name||"unknown_tool";let u={[t.JD]:i.rT,[s.k9]:l};c&&(u[s.bM]=r),(0,n.nV)({name:`execute_tool ${l}`,op:"gen_ai.execute_tool",attributes:{...u,[t.uT]:"gen_ai.execute_tool"}},e=>{return h.set(a,e),e})},handleToolEnd(e,t){let r=h.get(t);r?.isRecording()&&(u&&r.setAttributes({[s.AC]:JSON.stringify(e)}),d(t))},handleToolError(t,n){let s=h.get(n);s?.isRecording()&&(s.setStatus({code:r.TJ,message:"tool_error"}),d(n)),(0,e.Cp)(t,{mechanism:{handled:!1,type:`${i.rT}.tool_error_handler`}})},copy(){return f},toJSON(){return{lc:1,type:"not_implemented",id:f.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:f.lc_id}}};return f}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},512986(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$P:()=>o,B9:()=>L,CF:()=>y,El:()=>u,Et:()=>s,Fl:()=>R,Fq:()=>i,GB:()=>_,Iw:()=>h,JZ:()=>x,Kg:()=>a,Ki:()=>S,L3:()=>T,U_:()=>w,_v:()=>m,ac:()=>j,b0:()=>n,cG:()=>v,f8:()=>p,fT:()=>A,gu:()=>M,h3:()=>l,i:()=>I,jv:()=>c,m3:()=>k,mQ:()=>f,mp:()=>b,wG:()=>C,xS:()=>O});var e=__webpack_require__(695358);var t=__webpack_require__(603476);var r=__webpack_require__(686333);function n(e){return e===void 0}function s(e){return typeof e=="number"}function i(e){return typeof e=="number"&&e%1==0}function a(e){return typeof e=="string"}function o(e){return Object.prototype.toString.call(e)==="[object Date]"}function l(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function c(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function u(e){return Array.isArray(e)?e:[e]}function h(e,t,r){return e.length===0?undefined:(0,e.reduce((e,n)=>{let s=[t(n),n];return!e?s:(0,r(e[0],s[0])===e[0])?e:s},null)[1])}function d(e,t){return t.reduce((t,r)=>{return t[r]=e[r],t},{})}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(t){if(t==null)return null;if(typeof t!=="object")throw new e.Di("Week settings must be an object");{if(!p(t.firstDay,1,7)||!p(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!p(e,1,7)))throw new e.Di("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}}function p(e,t,r){return i(e)&&e>=t&&e<=r}function g(e,t){return e-t*Math.floor(e/t)}function y(e,t=2){let r;return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function v(e){return n(e)||e===null||e===""?undefined:(0,parseInt(e,10))}function b(e){return n(e)||e===null||e===""?undefined:(0,parseFloat(e))}function k(e){return n(e)||e===null||e===""?undefined:(0,Math.floor(parseFloat("0."+e)*1e3))}function _(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function w(e){return e%4==0&&(e%100!==0||e%400==0)}function S(e){return w(e)?366:365}function T(e,t){let r=g(t-1,12)+1;return r===2?w(e+(t-r)/12)?29:28:(0,[31,null,31,30,31,30,31,31,30,31,30,31][r-1])}function x(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function E(e,t,n){return-(0,r.ui)((0,r.mK)(e,1,t),n)+t-1}function j(e,t=4,r=1){let n=E(e,t,r);let s=E(e+1,t,r);return(S(e)-n+s)/7}function A(e){return e>99?e:(0,e>t.A.twoDigitCutoffYear?1900+e:2e3+e)}function C(e,t,r,n=null){let s=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let a={timeZoneName:t,...i};let o=new Intl.DateTimeFormat(r,a).formatToParts(s).find(e=>e.type.toLowerCase()==="timezonename");return o?o.value:null}function M(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function I(t){let r=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(r))throw new e.Di(`Invalid unit value ${t}`);return r}function R(e,t){let r={};for(let n in e)if(f(e,n)){let s=e[n];if(s===undefined||s===null)continue;r[t(n)]=I(s)}return r}function O(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${y(r,2)}:${y(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${y(r,2)}${y(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function L(e){return d(e,["hour","minute","second","millisecond"])}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},513234(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>i,o:()=>a});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(260516);var n=__webpack_require__(169869);var s=__webpack_require__(486023);let i=64;function a(o,l,c=(0,n.C)(o.bufferSize||i)){let u={};return{send:function(i){let a=[];if((0,r.yH)(i,(e,t)=>{let n=(0,r.zk)(t);(0,s.Jz)(u,n)?o.recordDroppedEvent("ratelimit_backoff",n):a.push(e)}),a.length===0)return Promise.resolve({});let h=(0,r.h4)(i[0],a);let d=n=>{if((0,r.hP)(h,["client_report"])){e.T&&t.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${n}).`);return}(0,r.yH)(h,(e,t)=>{o.recordDroppedEvent(n,(0,r.zk)(t))})};return c.add(()=>l({body:(0,r.bN)(h)}).then(r=>{return r.statusCode!==undefined&&(r.statusCode<200||r.statusCode>=300)&&e.T&&t.Yz.warn(`Sentry responded with status code ${r.statusCode} to sent event.`),u=(0,s.wq)(u,r),r},r=>{throw d("network_error"),e.T&&t.Yz.error("Encountered error running transport request:",r),r})).then(e=>e,r=>{if(r===n.a)return e.T&&t.Yz.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw r})},flush:e=>c.drain(e)}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},515400(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>e});let e=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}return}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},515828(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Y:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let s=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Heading),value:(0,e.Yj)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},518727(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>s});var e=__webpack_require__(123532);var t=__webpack_require__(646093);var r=__webpack_require__(285459);let n=["trace","debug","info","warn","error","fatal"];function s(i={}){let a=new Set(i.levels??n);let l=i.client;return{log(n){let{type:s,level:i,message:c,args:u,tag:h,date:d,...f}=n;let m=l||(0,e.KU)();if(!m)return;let p=o(s,i);if(!a.has(p))return;let{normalizeDepth:g=3,normalizeMaxBreadth:y=1e3}=m.getOptions();let v=[];c&&v.push(c),u&&u.length>0&&v.push((0,r.wU)(u,g,y));let b=v.join(" ");f["sentry.origin"]="auto.log.consola",h&&(f["consola.tag"]=h),s&&(f["consola.type"]=s),i!=null&&typeof i=="number"&&(f["consola.level"]=i),(0,t.KG)({level:p,message:b,attributes:f})}}}let i={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"};let a={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function o(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){let t=i[e];if(t)return t}if(typeof t=="number"){let e=a[t];if(e)return e}return"info"}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},525162(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Om:()=>o,e2:()=>s});var e=__webpack_require__(123532);var t=__webpack_require__(98154);var r=__webpack_require__(144770);var n=__webpack_require__(682631);function s(e,t){let{fingerprint:r,span:n,breadcrumbs:s,sdkProcessingMetadata:i}=t;l(e,t),n&&h(e,n),d(e,r),c(e,s),u(e,i)}function i(e,t){let{extra:n,tags:s,attributes:i,user:o,contexts:l,level:c,sdkProcessingMetadata:u,breadcrumbs:h,fingerprint:d,eventProcessors:f,attachments:m,propagationContext:p,transactionName:g,span:y}=t;a(e,"extra",n),a(e,"tags",s),a(e,"attributes",i),a(e,"user",o),a(e,"contexts",l),e.sdkProcessingMetadata=(0,r.h)(e.sdkProcessingMetadata,u,2),c&&(e.level=c),g&&(e.transactionName=g),y&&(e.span=y),h.length&&(e.breadcrumbs=[...e.breadcrumbs,...h]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),m.length&&(e.attachments=[...e.attachments,...m]),e.propagationContext={...e.propagationContext,...p}}function a(e,t,n){e[t]=(0,r.h)(e[t],n,1)}function o(t,r){let n=(0,e.m6)().getScopeData();return t&&i(n,t.getScopeData()),r&&i(n,r.getScopeData()),n}function l(e,t){let{extra:r,tags:n,user:s,contexts:i,level:a,transactionName:o}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o)}function c(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:undefined}function u(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function h(e,r){e.contexts={trace:(0,n.kX)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,t.k1)(r),...e.sdkProcessingMetadata};let s=(0,n.zU)(r);let i=(0,n.et)(s).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function d(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),!e.fingerprint.length&&delete e.fingerprint}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},531589(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ak:()=>e});let e=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>{return(t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e},"")}}).call(__webpack_require__._LM_("nanoid",{__webpack_exports__,__webpack_require__}))()},532344(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{v:()=>i});var e=__webpack_require__(577102);var t=__webpack_require__(100873);var r=__webpack_require__(396102);var n=__webpack_require__(563023);var s=__webpack_require__(484413);let i=(0,e._C)(({featureFlagClientClass:e})=>{return{name:"Unleash",setupOnce(){let t=e.prototype;(0,n.GS)(t,"isEnabled",a)},processEvent(e,r,n){return(0,t.Nf)(e)}}});function a(e){return function(...n){let i=n[0];let a=e.apply(this,n);return typeof i=="string"&&typeof a=="boolean"?((0,t.Ee)(i,a),(0,t.si)(i,a)):s.T&&r.Yz.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${i} (${typeof i}), result: ${a} (${typeof a})`),a}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},538979(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>m,D:()=>p});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(78463);var n=__webpack_require__(396102);var s=__webpack_require__(676108);var i=__webpack_require__(504855);var a=__webpack_require__(466737);var o=__webpack_require__(682631);var l=__webpack_require__(306981);var c=__webpack_require__(98154);var u=__webpack_require__(911216);var h=__webpack_require__(52018);var d=__webpack_require__(276435);var f=__webpack_require__(827284);let m={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function p(f,y={}){let v=new Map;let b=!1;let k;let _="externalFinish";let w=!y.disableAutoFinish;let S=[];let{idleTimeout:T=m.idleTimeout,finalTimeout:x=m.finalTimeout,childSpanTimeout:E=m.childSpanTimeout,beforeSpanEnd:j,trimIdleSpanEndTimestamp:A=!0}=y;let C=(0,e.KU)();if(!C||!(0,s.f)()){let e=new u.w;let t={sample_rate:"0",sampled:"false",...(0,c.k1)(e)};return(0,c.LZ)(e,t),e}let M=(0,e.o5)();let I=(0,o.Bk)();let R=g(f);function O(){k&&(clearTimeout(k),k=undefined)}function L(e){O(),k=setTimeout(()=>{!b&&v.size===0&&w&&(_="idleTimeout",R.end(e))},T)}function D(e){k=setTimeout(()=>{!b&&w&&(_="heartbeatFailed",R.end(e))},E)}function N(e){O(),v.set(e,!0),D((0,l.zf)()+E/1e3)}function P(e){v.has(e)&&v.delete(e),v.size===0&&L((0,l.zf)()+T/1e3)}function z(e){b=!0,v.clear(),S.forEach(e=>e()),(0,a.r)(M,I);let s=(0,o.et)(R);let{start_timestamp:i}=s;if(!i)return;!s.data[r.fs]&&R.setAttribute(r.fs,_);let l=s.status;(!l||l==="unknown")&&R.setStatus({code:d.F3}),n.Yz.log(`[Tracing] Idle span "${s.op}" finished`);let c=(0,o.xO)(R).filter(e=>e!==R);let u=0;c.forEach(r=>{r.isRecording()&&(r.setStatus({code:d.TJ,message:"cancelled"}),r.end(e),t.T&&n.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(r,undefined,2)));let{timestamp:s=0,start_timestamp:i=0}=(0,o.et)(r);let a=i<=e;let l=s-i<=(x+T)/1e3;if(t.T){let e=JSON.stringify(r,undefined,2);a?!l&&n.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):n.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!l||!a)&&((0,o.VS)(R,r),u++)}),u>0&&R.setAttribute("sentry.idle_span_discarded_spans",u)}return R.end=new Proxy(R.end,{apply(e,t,r){if(j&&j(R),t instanceof u.w)return;let[n,...s]=r;let a=n||(0,l.zf)();let c=(0,o.cI)(a);let h=(0,o.xO)(R).filter(e=>e!==R);let d=(0,o.et)(R);if(!h.length||!A)return z(c),Reflect.apply(e,t,[c,...s]);let f=C.getOptions().ignoreSpans;let m=h?.reduce((e,t)=>{let r=(0,o.et)(t);return!r.timestamp||f&&(0,i.e)(r,f)?e:(0,e?Math.max(e,r.timestamp):r.timestamp)},undefined);let p=d.start_timestamp;let g=Math.min(p?p+x/1e3:Infinity,Math.max(p||-Infinity,Math.min(c,m||Infinity)));return z(g),Reflect.apply(e,t,[g,...s])}}),S.push(C.on("spanStart",e=>{if(b||e===R||!!(0,o.et)(e).timestamp||e instanceof h.W&&e.isStandaloneSpan())return;(0,o.xO)(R).includes(e)&&N(e.spanContext().spanId)})),S.push(C.on("spanEnd",e=>{if(b)return;P(e.spanContext().spanId)})),S.push(C.on("idleSpanEnableAutoFinish",e=>{e===R&&(w=!0,L(),v.size&&D())})),!y.disableAutoFinish&&L(),setTimeout(()=>{!b&&(R.setStatus({code:d.TJ,message:"deadline_exceeded"}),_="finalTimeout",R.end())},x),R}function g(r){let s=(0,f.Uk)(r);return(0,a.r)((0,e.o5)(),s),t.T&&n.Yz.log("[Tracing] Started span is an idle span"),s}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},544299(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>i});var e=__webpack_require__(449070);var t=__webpack_require__(356583);var r=__webpack_require__(784225);var n=__webpack_require__(342672);var s=__webpack_require__(499490);let i=(i={})=>(0,r.YP)((0,n.Yj)(),"uri",r=>{try{let e=new URL(r);let s=(0,n.NW)(i);return(0,t.vA)(e,s),!0}catch(t){if(t instanceof e.C)return(0,s.u1)(t);return`Expected URL, got "${r.toString()}"`}})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},545407(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AS:()=>a,aj:()=>o,s5:()=>i});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(6929);let n={};let s={};function i(e,t){n[e]=n[e]||[],n[e].push(t)}function a(r,n){if(!s[r]){s[r]=!0;try{n()}catch(n){e.T&&t.Yz.error(`Error while instrumenting ${r}`,n)}}}function o(s,i){let a=s&&n[s];if(!a)return;for(let n of a)try{n(i)}catch(i){e.T&&t.Yz.error(`Error while triggering instrumentation handler.
Type: ${s}
Name: ${(0,r.qQ)(n)}
Error:`,i)}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},546155(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}__webpack_require__.d(__webpack_exports__,{t:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},548502(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Nt:()=>A,Sx:()=>j,dp:()=>E});var e=__webpack_require__(410710);var t=__webpack_require__(538979);var r=__webpack_require__(827284);var n=__webpack_require__(98154);var s=__webpack_require__(78463);var i=__webpack_require__(123532);var a=__webpack_require__(676108);var o=__webpack_require__(682631);var l=__webpack_require__(18898);var c=__webpack_require__(901889);var u=__webpack_require__(396102);var h=__webpack_require__(563023);var d=__webpack_require__(306981);var f=__webpack_require__(605816);var m=__webpack_require__(925075);var p=__webpack_require__(858481);var g=__webpack_require__(138716);var y=__webpack_require__(456247);var v=__webpack_require__(662925);var b=__webpack_require__(566632);var k=__webpack_require__(484413);var _=__webpack_require__(994398);var w=__webpack_require__(64329);var S=__webpack_require__(13623);var T=__webpack_require__(89899);let x={...t.C,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...T.h$};let E=(h={})=>{let E={name:undefined,source:undefined};let I=_.jf.document;let{enableInp:D,enableElementTiming:N,enableLongTask:P,enableLongAnimationFrame:z,_experiments:{enableInteractions:$,enableStandaloneClsSpans:q,enableStandaloneLcpSpans:H},beforeStartSpan:F,idleTimeout:B,finalTimeout:U,childSpanTimeout:G,markBackgroundSpan:W,traceFetch:Y,traceXHR:V,trackFetchStreamPerformance:J,shouldCreateSpanForRequest:K,enableHTTPTimings:Z,ignoreResourceSpans:Q,ignorePerformanceApiSpans:X,instrumentPageLoad:ee,instrumentNavigation:et,detectRedirects:er,linkPreviousTrace:en,consistentTraceSampling:es,enableReportPageLoaded:ei,onRequestSpanStart:ea,onRequestSpanEnd:eo}={...x,...h};let el;let ec;let eu;function eh(e,a,l=!0){let c=a.op==="pageload";let u=a.name;let h=F?F(a):a;let f=h.attributes||{};if(u!==h.name&&(f[s.i_]="custom",h.attributes=f),!l){let e=(0,d.lu)();(0,r.Uk)({...h,startTime:e}).end(e);return}E.name=h.name,E.source=f[s.i_];let m=(0,t.D)(h,{idleTimeout:B,finalTimeout:U,childSpanTimeout:G,disableAutoFinish:c,beforeSpanEnd:t=>{el?.(),(0,g.QU)(t,{recordClsOnPageloadSpan:!q,recordLcpOnPageloadSpan:!H,ignoreResourceSpans:Q,ignorePerformanceApiSpans:X}),O(e,undefined);let r=(0,i.o5)();let s=r.getPropagationContext();r.setPropagationContext({...s,traceId:m.spanContext().traceId,sampled:(0,o.pK)(m),dsc:(0,n.k1)(t)}),c&&(eu=undefined)},trimIdleSpanEndTimestamp:!ei});function p(){I&&["interactive","complete"].includes(I.readyState)&&e.emit("idleSpanEnableAutoFinish",m)}c&&ei&&(eu=m),O(e,m),c&&!ei&&I&&(I.addEventListener("readystatechange",()=>{p()}),p())}return{name:"BrowserTracing",setup(t){if((0,e.s)(),el=(0,g.bk)({recordClsStandaloneSpans:q||!1,recordLcpStandaloneSpans:H||!1,client:t}),D&&(0,b.ZZ)(),N&&(0,y.K)(),z&&c.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,g.U$)():P&&(0,g.c8)(),$&&(0,g.DI)(),er&&I){let e=()=>{ec=(0,d.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function r(){let e=R(t);e&&!(0,o.et)(e).timestamp&&(k.T&&u.Yz.log(`[Tracing] Finishing current active span with op: ${(0,o.et)(e).op}`),e.setAttribute(s.fs,"cancelled"),e.end())}t.on("startNavigationSpan",(e,n)=>{if((0,i.KU)()!==t)return;if(n?.isRedirect){k.T&&u.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),eh(t,{op:"navigation.redirect",...e},!1);return}ec=undefined,r(),(0,i.rm)().setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?undefined:(0,p.Z)()});let s=(0,i.o5)();s.setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?undefined:(0,p.Z)()}),s.setSDKProcessingMetadata({normalizedRequest:undefined}),eh(t,{op:"navigation",...e,parentSpan:null,forceTransaction:!0})}),t.on("startPageLoadSpan",(e,n={})=>{if((0,i.KU)()!==t)return;r();let s=n.sentryTrace||C("sentry-trace");let o=n.baggage||C("baggage");let l=(0,f.kM)(s,o);let c=(0,i.o5)();c.setPropagationContext(l),!(0,a.f)()&&(c.getPropagationContext().propagationSpanId=(0,p.Z)()),c.setSDKProcessingMetadata({normalizedRequest:(0,_.AP)()}),eh(t,{op:"pageload",...e})}),t.on("endPageloadSpan",()=>{ei&&eu&&(eu.setAttribute(s.fs,"reportPageLoaded"),eu.end())})},afterAllSetup(e){let t=(0,l.$N)();if(en!=="off"&&(0,S.X)(e,{linkPreviousTrace:en,consistentTraceSampling:es}),_.jf.location){if(ee){let t=(0,d.k3)();j(e,{name:_.jf.location.pathname,startTime:t?t/1e3:undefined,attributes:{[s.i_]:"url",[s.JD]:"auto.pageload.browser"}})}et&&(0,v._)(({to:r,from:n})=>{if(n===undefined&&t?.indexOf(r)!==-1){t=undefined;return}t=undefined;let i=(0,m.kg)(r);let a=R(e);let o=a&&er&&L(a,ec);A(e,{name:i?.pathname||_.jf.location.pathname,attributes:{[s.i_]:"url",[s.JD]:"auto.navigation.browser"}},{url:r,isRedirect:o})})}W&&(0,w.i)(),$&&M(e,B,U,G,E),D&&(0,b.Bb)(),(0,T.Qb)(e,{traceFetch:Y,traceXHR:V,trackFetchStreamPerformance:J,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:Z,onRequestSpanStart:ea,onRequestSpanEnd:eo})}}};function j(e,t,r){e.emit("startPageLoadSpan",t,r),(0,i.o5)().setTransactionName(t.name);let n=R(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function A(e,t,r){let{url:n,isRedirect:s}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});let a=(0,i.o5)();return a.setTransactionName(t.name),n&&!s&&a.setSDKProcessingMetadata({normalizedRequest:{...(0,_.AP)(),url:n}}),R(e)}function C(e){let t=_.jf.document;let r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||undefined}function M(e,r,n,i,a){let l;_.jf.document&&addEventListener("click",()=>{let c="ui.action.click";let h=R(e);if(h){if(["navigation","pageload"].includes((0,o.et)(h).op))return k.T&&u.Yz.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`),undefined}if(l&&(l.setAttribute(s.fs,"interactionInterrupted"),l.end(),l=undefined),!a.name)return k.T&&u.Yz.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`),undefined;l=(0,t.D)({name:a.name,op:c,attributes:{[s.i_]:a.source||"url"}},{idleTimeout:r,finalTimeout:n,childSpanTimeout:i})},{capture:!0})}let I="_sentry_idleSpan";function R(e){return e[I]}function O(e,t){(0,h.my)(e,I,t)}function L(e,t){let r=(0,o.et)(e);let n=(0,d.lu)();return n-r.start_timestamp>1.5||t&&n-t<=1.5?!1:(0,!0)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},549140(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>r,u:()=>t});let e=__webpack_require__(465273)("metamask");function t(t){return e.extend(t)}function r(e,t){return e.extend(t)}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},550664(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Hz:()=>b,Yp:()=>k});let e=e=>{return new TextEncoder().encode(e).length};let t=t=>{return e(JSON.stringify(t))};function r(t,r){if(e(t)<=r)return t;let n=0;let s=t.length;let i="";while(n<=s){let a=Math.floor((n+s)/2);let o=t.slice(0,a);e(o)<=r?(i=o,n=a+1):s=a-1}return i}function n(e){return typeof e=="string"?e:(0,"text"in e)?e.text:(0,"")}function s(e,t){return typeof e=="string"?t:(0,{...e,text:t})}function i(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function a(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function o(e){return!e||typeof e!=="object"?!1:(0,l(e)||c(e)||"media_type"in e&&typeof e.media_type=="string"&&"data"in e||"image_url"in e&&typeof e.image_url=="string"&&e.image_url.startsWith("data:")||"type"in e&&(e.type==="blob"||e.type==="base64")||"b64_json"in e||"type"in e&&"result"in e&&e.type==="image_generation"||"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:"))}function l(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&o(e.source)}function c(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function u(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function h(e,n){let s=n-t({...e,content:""});if(s<=0)return[];let i=r(e.content,s);return[{...e,content:i}]}function d(i,a){let{parts:o}=i;let l=o.map(e=>s(e,""));let c=a-t({...i,parts:l});if(c<=0)return[];let u=[];for(let t of o){let i=n(t);let a=e(i);if(a<=c)u.push(t),c-=a;else if(u.length===0){let e=r(i,c);e&&u.push(s(t,e));break}else break}return u.length<=0?[]:(0,[{...i,parts:u}])}function f(e,t){if(!e)return[];if(typeof e=="string"){let n=r(e,t);return n?[n]:[]}return typeof e!=="object"?[]:(0,i(e))?h(e,t):(0,u(e))?d(e,t):(0,[])}let m="[Filtered]";let p=["image_url","data","content","b64_json","result","uri"];function g(e){let t={...e};for(let r of(o(t.source)&&(t.source=g(t.source)),c(e)&&(t.inlineData={...e.inlineData,data:m}),p))typeof t[r]=="string"&&(t[r]=m);return t}function y(e){return e.map(e=>{let t;return!!e&&typeof e=="object"&&(a(e)?t={...e,content:y(e.content)}:"content"in e&&o(e.content)&&(t={...e,content:g(e.content)}),u(e)&&(t={...t??e,parts:y(e.parts)}),o(t)?t=g(t):o(e)&&(t=g(e))),t??e})}function v(e,r){if(!Array.isArray(e)||e.length===0)return e;let n=y([e[e.length-1]]);let s=n[0];return t(s)<=r?n:(0,f(s,r))}function b(e){return v(e,2e4)}function k(e){return r(e,2e4)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},550866(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$h:()=>n,NK:()=>o});var e=__webpack_require__(298556);var t=__webpack_require__(381699);var r=__webpack_require__(260516);let n="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let n;return(0,r.yH)(e,(e,r)=>{return t.includes(r)&&(n=Array.isArray(e)?e[1]:undefined),!!n}),n}function i(e,t){return r=>{let n=e(r);return{...n,send:async e=>{let r=s(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}}function a(e,t){return(0,r.h4)(t?{...e[0],dsn:t}:e[0],e[1])}function o(r,o){return l=>{let c=r(l);let u=new Map;let h=o||(e=>{let t=e.getEvent();return t?.extra?.[n]&&Array.isArray(t.extra[n])?t.extra[n]:(0,[])});function d(n,s){let a=s?`${n}:${s}`:n;let o=u.get(a);if(!o){let c=(0,t.hH)(n);if(!c)return undefined;let h=(0,e.Z)(c,l.tunnel);o=s?i(r,s)({...l,url:h}):r({...l,url:h}),u.set(a,o)}return[n,o]}return{send:async function(e){function t(t){return s(e,t?.length?t:["event"])}let r=h({envelope:e,getEvent:t}).map(e=>{return typeof e=="string"?d(e,undefined):(0,d(e.dsn,e.release))}).filter(e=>!!e);let n=r.length?r:[["",c]];return(await Promise.all(n.map(([t,r])=>r.send(a(e,t)))))[0]},flush:async function(e){let t=[...u.values(),c];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},552558(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>e.s,w:()=>e.w});var e=__webpack_require__(100209)}}).call(__webpack_require__._LM_("@metamask/base-controller",{__webpack_require__,__webpack_exports__}))()},563023(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{GS:()=>s,HF:()=>h,W4:()=>l,my:()=>i,pO:()=>a,sp:()=>o});var e=__webpack_require__(352158);var t=__webpack_require__(18898);var r=__webpack_require__(396102);var n=__webpack_require__(632356);function s(t,n,s){if(!(n in t))return;let i=t[n];if(typeof i!=="function")return;let o=s(i);typeof o=="function"&&a(o,i);try{t[n]=o}catch{e.T&&r.Yz.log(`Failed to replace method "${n}" in object`,t)}}function i(t,n,s){try{Object.defineProperty(t,n,{value:s,writable:!0,configurable:!0})}catch{e.T&&r.Yz.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function a(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,i(e,"__sentry_original__",t)}catch{}}function o(e){return e.__sentry_original__}function l(e){if((0,n.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...u(e)};if(!(0,n.xH)(e))return e;{let t={type:e.type,target:c(e.target),currentTarget:c(e.currentTarget),...u(e)};return typeof CustomEvent!=="undefined"&&(0,n.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function c(e){try{return(0,n.vq)(e)?(0,t.Hd)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function u(e){if(typeof e!="object"||e===null)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function h(e){let t=Object.keys(l(e));return t.sort(),!t[0]?"[object has no keys]":t.join(", ")}function d(e){let t=e.constructor;return t===Object||t===undefined}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},566078(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>r});var e=__webpack_require__(178066);var t=__webpack_require__(885305);let r=(0,e.aD)({lazyLoadIntegration:t.b})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},566632(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Bb:()=>g,ZZ:()=>d});var e=__webpack_require__(78463);var t=__webpack_require__(123532);var r=__webpack_require__(682631);var n=__webpack_require__(18898);var s=__webpack_require__(920942);var i=__webpack_require__(306981);var a=__webpack_require__(765698);var o=__webpack_require__(821396);var l=__webpack_require__(33040);let c=[];let u=new Map;let h=new Map;function d(){if((0,l.D)()&&(0,i.k3)()){let e=m();return()=>{e()}}return()=>undefined}let f={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function m(){return(0,o.hT)(p)}let p=({metric:s})=>{if(s.value==undefined)return;let a=(0,l.rv)(s.value);if(a>60)return;let o=s.entries.find(e=>e.duration===s.value&&f[e.name]);if(!o)return;let{interactionId:c}=o;let h=f[o.name];let d=(0,l.rv)((0,i.k3)()+o.startTime);let m=(0,r.Bk)();let p=m?(0,r.zU)(m):undefined;let g=c!=null?u.get(c):undefined;let y=g?.span||p;let v=y?(0,r.et)(y).description:(0,t.o5)().getScopeData().transactionName;let b=g?.elementName||(0,n.Hd)(o.target);let k={[e.JD]:"auto.http.browser.inp",[e.uT]:`ui.interaction.${h}`,[e.jG]:o.duration};let _=(0,l.kD)({name:b,transaction:v,attributes:k,startTime:d});_&&(_.addEvent("inp",{[e.Sn]:"millisecond",[e.xc]:s.value}),_.end(d+a))};function g(){let e=Object.keys(f);function t(e){let t=e.target;if(!t)return;let r=(0,n.Hd)(t);let s=Math.round(e.timeStamp);if(h.set(s,r),h.size>50){let e=h.keys().next().value;e!==undefined&&h.delete(e)}}function i(e){let t=Math.round(e.startTime);let r=h.get(t);if(!r)for(let e=-5;e<=5;e++){let n=h.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(0,s.B)()&&e.forEach(e=>{a.j.addEventListener(e,t,{capture:!0,passive:!0})});let l=({entries:e})=>{let t=(0,r.Bk)();let s=t&&(0,r.zU)(t);e.forEach(e=>{if(!(0,o.tC)(e))return;let t=e.interactionId;if(t==null||u.has(t))return;let r=e.target?(0,n.Hd)(e.target):i(e);if(c.length>10){let e=c.shift();u.delete(e)}c.push(t),u.set(t,{span:s,elementName:r})})};(0,o.wv)("event",l),(0,o.wv)("first-input",l)}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},570181(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$9:()=>g});var e=__webpack_require__(78463);var t=__webpack_require__(577102);var r=__webpack_require__(682631);var n=__webpack_require__(632356);var s=__webpack_require__(180121);var i=__webpack_require__(993671);var a=__webpack_require__(847768);function o(t,i){t.on("beforeOutgoingRequestSpan",(t,a)=>{let o=(0,r.et)(t).data||{};if(!(o[e.uT]==="http.client"))return;let l=o[e.c9]||o["http.url"];let h=o[e.Ts]||o["http.method"];if(!(0,n.Kg)(l)||!(0,n.Kg)(h))return;let{endpoints:d}=i;let g=(0,s.Xr)(l,d);let y=u(a);if(g&&y){let e=p(y);if(e){let r=c(e);t.updateName(`${h} ${l} (${r})`),f(e)&&t.setAttribute("graphql.document",e.query),m(e)&&(t.setAttribute("graphql.persisted_query.hash.sha256",e.extensions.persistedQuery.sha256Hash),t.setAttribute("graphql.persisted_query.version",e.extensions.persistedQuery.version))}}})}function l(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,r)=>{let{category:n,type:i,data:a}=e;if(i==="http"&&(n==="fetch"||n==="xhr")){let e=a?.url;let{endpoints:n}=t;let i=(0,s.Xr)(e,n);let o=u(r);if(i&&a&&o){let e=p(o);if(!a.graphql&&e){let t=c(e);a["graphql.operation"]=t,f(e)&&(a["graphql.document"]=e.query),m(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}function c(e){if(m(e))return`persisted ${e.operationName}`;if(f(e)){let{query:t,operationName:r}=e;let{operationName:n=r,operationType:s}=h(t);return n?`${s} ${n}`:`${s}`}return"unknown"}function u(e){let t;if("xhr"in e){let r=e.xhr[i.Er];t=r&&(0,a.sY)(r.body)[0]}else{let r=(0,a.Gv)(e.input);t=(0,a.sY)(r)[0]}return t}function h(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:undefined}:(0,{operationType:undefined,operationName:undefined})}function d(e){return typeof e=="object"&&e!==null}function f(e){return d(e)&&typeof e.query=="string"}function m(e){return d(e)&&typeof e.operationName=="string"&&d(e.extensions)&&d(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function p(e){try{let t=JSON.parse(e);if(f(t)||m(t))return t;return undefined}catch{return undefined}}let g=(0,t._C)(e=>{return{name:"GraphQLClient",setup(t){o(t,e),l(t,e)}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},571268(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>o});var e=__webpack_require__(931263);var t=__webpack_require__(276435);var r=__webpack_require__(377271);function n(r,n){let s=r?.promptFeedback;if(s?.blockReason){let r=s.blockReasonMessage??s.blockReason;return n.setStatus({code:t.TJ,message:`Content blocked: ${r}`}),(0,e.Cp)(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function s(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);let r=e.usageMetadata;r&&(typeof r.promptTokenCount=="number"&&(t.promptTokens=r.promptTokenCount),typeof r.candidatesTokenCount=="number"&&(t.completionTokens=r.candidatesTokenCount),typeof r.totalTokenCount=="number"&&(t.totalTokens=r.totalTokenCount))}function i(e,t,r){for(let n of(Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(n?.finishReason&&!t.finishReasons.includes(n.finishReason)&&t.finishReasons.push(n.finishReason),n?.content?.parts??[]))r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}function a(e,t,r,a){if(!e||n(e,a))return;s(e,t),i(e,t,r)}async function*o(e,t,n){let s={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let r of e)a(r,s,n,t),yield r}finally{let e={[r.Ii]:!0};s.responseId&&(e[r.PX]=s.responseId),s.responseModel&&(e[r.jK]=s.responseModel),s.promptTokens!==undefined&&(e[r.v7]=s.promptTokens),s.completionTokens!==undefined&&(e[r.kF]=s.completionTokens),s.totalTokens!==undefined&&(e[r.$M]=s.totalTokens),s.finishReasons.length&&(e[r.Bm]=JSON.stringify(s.finishReasons)),n&&s.responseTexts.length&&(e[r.LO]=s.responseTexts.join("")),n&&s.toolCalls.length&&(e[r.u2]=JSON.stringify(s.toolCalls)),t.setAttributes(e),t.end()}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},576883(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function t(t,r){let{value:s,unit:i}=e(t)?t:{value:t,unit:undefined};let a=n(s);let o=i&&typeof i=="string"?{unit:i}:{};if(a)return{...a,...o};if(!r||r==="skip-undefined"&&s===undefined)return;let l="";try{l=JSON.stringify(s)??""}catch{}return{value:l,type:"string",...o}}function r(e,n=!1){let s={};for(let[r,i]of Object.entries(e??{})){let e=t(i,n);e&&(s[r]=e)}return s}function n(e){let t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}__webpack_require__.d(__webpack_exports__,{SY:()=>r})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},577102(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P$:()=>a,Q8:()=>c,_C:()=>u,lc:()=>o,mH:()=>i,qm:()=>l});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(396102);let n=[];function s(e){let t={};return e.forEach(e=>{let{name:r}=e;let n=t[r];if(n&&!n.isDefaultInstance&&e.isDefaultInstance)return;t[r]=e}),Object.values(t)}function i(e){let t=e.defaultIntegrations||[];let r=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...t,...r];else if(typeof r=="function"){let e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return s(n)}function a(e,t){let r={};return t.forEach(t=>{t&&l(e,t,r)}),r}function o(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function l(e,s,i){if(i[s.name]){t.T&&r.Yz.log(`Integration skipped because it was already installed: ${s.name}`);return}if(i[s.name]=s,!n.includes(s.name)&&typeof s.setupOnce=="function"&&(s.setupOnce(),n.push(s.name)),s.setup&&typeof s.setup=="function"&&s.setup(e),typeof s.preprocessEvent=="function"){let t=s.preprocessEvent.bind(s);e.on("preprocessEvent",(r,n)=>t(r,n,e))}if(typeof s.processEvent=="function"){let t=s.processEvent.bind(s);let r=Object.assign((r,n)=>t(r,n,e),{id:s.name});e.addEventProcessor(r)}t.T&&r.Yz.log(`Integration installed: ${s.name}`)}function c(n){let s=(0,e.KU)();if(!s){t.T&&r.Yz.warn(`Cannot add integration "${n.name}" because no SDK Client is available.`);return}s.addIntegration(n)}function u(e){return e}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},579010(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M:()=>d});var e=__webpack_require__(931263);var t=__webpack_require__(78463);var r=__webpack_require__(276435);var n=__webpack_require__(827284);var s=__webpack_require__(377271);var i=__webpack_require__(550664);var a=__webpack_require__(788241);var o=__webpack_require__(663834);var l=__webpack_require__(456403);var c=__webpack_require__(79203);function u(i,a){return new Proxy(i,{apply(i,o,c){return(0,n.Lk)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[t.JD]:l.s,[t.uT]:"gen_ai.create_agent",[s.Rf]:"create_agent"}},t=>{try{let e=Reflect.apply(i,o,c);let r=c.length>0?c[0]:{};r?.name&&typeof r.name=="string"&&(t.setAttribute(s.ZD,r.name),t.updateName(`create_agent ${r.name}`));let n=e.invoke;return n&&typeof n=="function"&&(e.invoke=h(n.bind(e),e,r,a)),e}catch(n){throw t.setStatus({code:r.TJ,message:"internal_error"}),(0,e.Cp)(n,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),n}})}})}function h(u,h,d,f){return new Proxy(u,{apply(u,m,p){return(0,n.Lk)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[t.JD]:l.s,[t.uT]:s.Qi,[s.Rf]:"invoke_agent"}},async t=>{try{let e=d?.name;e&&typeof e=="string"&&(t.setAttribute(s.mS,e),t.setAttribute(s.ZD,e),t.updateName(`invoke_agent ${e}`));let r=p.length>1?p[1]:undefined;let n=r?.configurable;let l=n?.thread_id;l&&typeof l=="string"&&t.setAttribute(s.Fy,l);let g=(0,c.sg)(h);g&&t.setAttribute(s.nn,JSON.stringify(g));let y=f.recordInputs;let v=f.recordOutputs;let b=p.length>0?p[0].messages??[]:[];if(b&&y){let e=(0,o.B)(b);let{systemInstructions:r,filteredMessages:n}=(0,a.oW)(e);r&&t.setAttribute(s.J9,r);let l=(0,i.Hz)(n);let c=Array.isArray(n)?n.length:0;t.setAttributes({[s.BD]:JSON.stringify(l),[s.on]:c})}let k=await Reflect.apply(u,m,p);return v&&(0,c.PJ)(t,b??null,k),k}catch(n){throw t.setStatus({code:r.TJ,message:"internal_error"}),(0,e.Cp)(n,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),n}})}})}function d(e,t){return e.compile=u(e.compile.bind(e),t||{}),e}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},580436(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>r,d:()=>t});var e=__webpack_require__(765698);function t(t,r,n){e.j.document&&e.j.addEventListener(t,r,n)}function r(t,r,n){e.j.document&&e.j.removeEventListener(t,r,n)}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},581327(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>a,G:()=>i});var e=__webpack_require__(745085);var t=__webpack_require__(754255);var r=__webpack_require__(144008);var n;let s=(n=t,n?.__esModule?n.default:(0,n));class i extends Error{constructor(t,n,s){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!n||typeof n!=="string")throw new Error('"message" must be a non-empty string.');(0,r.el)(s)?(super(n,{cause:s.cause}),!(0,e.i5)(this,"cause")&&Object.assign(this,{cause:s.cause})):super(n),s!==undefined&&(this.data=s),this.code=t}serialize(){let t={code:this.code,message:this.message};return this.data!==undefined&&(t.data=this.data,(0,e.Qd)(this.data)&&(t.data.cause=(0,r._K)(this.data.cause))),this.stack&&(t.stack=this.stack),t}toString(){return s(this.serialize(),l,2)}}class a extends i{constructor(e,t,r){if(!o(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function o(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function l(e,t){return t==="[Circular]"?undefined:(0,t)}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},587279(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__);var e=__webpack_require__(115726);globalThis.stateHooks=globalThis.stateHooks||{},globalThis.sentry=(0,e.Ay)()}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},590041(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{S8:()=>n,cd:()=>s});var e=__webpack_require__(632356);var t=__webpack_require__(563023);var r=__webpack_require__(6929);function n(e,t=100,r=+Infinity){try{return i("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function s(e,t=3,r=100*1024){let i=n(e,t);return c(i)>r?s(e,t-1,r):(0,i)}function i(e,r,n=+Infinity,s=+Infinity,o=u()){let[l,c]=o;if(r==null||["boolean","string"].includes(typeof r)||typeof r=="number"&&Number.isFinite(r))return r;let h=a(e,r);if(!h.startsWith("[object "))return h;if(r["__sentry_skip_normalization__"])return r;let d=typeof r["__sentry_override_normalization_depth__"]=="number"?r["__sentry_override_normalization_depth__"]:n;if(d===0)return h.replace("object ","");if(l(r))return"[Circular ~]";if(r&&typeof r.toJSON=="function")try{let e=r.toJSON();return i("",e,d-1,s,o)}catch{}let f=Array.isArray(r)?[]:{};let m=0;let p=(0,t.W4)(r);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(m>=s){f[e]="[MaxProperties ~]";break}let t=p[e];f[e]=i(e,t,d-1,s,o),m++}return c(r),f}function a(t,n){try{if(t==="domain"&&n&&typeof n=="object"&&n._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis!=="undefined"&&n===globalThis)return"[Global]";if(typeof window!=="undefined"&&n===window)return"[Window]";if(document!==void 0&&n===document)return"[Document]";if((0,e.L2)(n))return(0,r.nY)(n);if((0,e.mE)(n))return"[SyntheticEvent]";if(typeof n=="number"&&!Number.isFinite(n))return`[${n}]`;if(typeof n=="function")return`[Function: ${(0,r.qQ)(n)}]`;if(typeof n=="symbol")return`[${String(n)}]`;if(typeof n=="bigint")return`[BigInt: ${String(n)}]`;let s=o(n);if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}function o(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function l(e){return~-encodeURI(e).split(/%..|./).length}function c(e){return l(JSON.stringify(e))}function u(){let e=new WeakSet;return[function(t){return e.has(t)?!0:(e.add(t),!1)},function(t){e.delete(t)}]}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},597054(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r=null;class n extends t.A{static get instance(){return r===null&&(r=new n),r}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return(0,e.wG)(t,r,n)}formatOffset(t,r){return(0,e.xS)(this.offset(t),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},598723(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(t,...r){let n=new String(String.raw(t,...r));return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=r,n}__webpack_require__.d(__webpack_exports__,{S:()=>t,y:()=>e});let t=e}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},600473(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>v});var e=__webpack_require__(695358);var t=__webpack_require__(868766);var r=__webpack_require__(14631);var n=__webpack_require__(912276);var s=__webpack_require__(210164);var i=__webpack_require__(512986);var a=__webpack_require__(603476);var o=__webpack_require__(835060);let l="Invalid Duration";let c={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},u={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...c},h={years:{quarters:4,months:12,weeks:146097/400/7,days:146097/400,hours:146097/400*24,minutes:146097/400*24*60,seconds:146097/400*24*60*60,milliseconds:146097/400*24*60*60*1e3},quarters:{months:3,weeks:146097/400/28,days:146097/400/4,hours:146097/400*24/4,minutes:146097/400*24*60/4,seconds:146097/400*24*60*60/4,milliseconds:146097/400*24*60*60*1e3/4},months:{weeks:146097/4800/7,days:146097/4800,hours:146097/4800*24,minutes:146097/4800*24*60,seconds:146097/4800*24*60*60,milliseconds:146097/4800*24*60*60*1e3},...c};let d=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];let f=d.slice(0).reverse();function m(e,t,r=!1){return new v({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function p(e,t){let r=t.milliseconds??0;for(let n of f.slice(1))t[n]&&(r+=t[n]*e[n]["milliseconds"]);return r}function g(e,t){let r=p(e,t)<0?-1:1;d.reduceRight((n,s)=>{if((0,i.b0)(t[s]))return n;{if(n){let i=t[n]*r;let a=e[s][n];let o=Math.floor(i/a);t[s]+=o*r,t[n]-=o*a*r}return s}},null),d.reduce((r,n)=>{if((0,i.b0)(t[n]))return r;{if(r){let s=t[r]%1;t[r]-=s,t[n]+=s*e[r][n]}return n}},null)}function y(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class v{constructor(e){let t=e.conversionAccuracy==="longterm";let r=t?h:u;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||n.A.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return v.fromObject({milliseconds:e},t)}static fromObject(t,r={}){if(t==null||typeof t!=="object")throw new e.Di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new v({values:(0,i.Fl)(t,v.normalizeUnit),loc:n.A.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if((0,i.Et)(t))return v.fromMillis(t);if(v.isDuration(t))return t;if(typeof t=="object")return v.fromObject(t);throw new e.Di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(e,t){let[r]=(0,s.rB)(e);return r?v.fromObject(r,t):(0,v.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`))}static fromISOTime(e,t){let[r]=(0,s.QE)(e);return r?v.fromObject(r,t):(0,v.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`))}static invalid(t,n=null){if(!t)throw new e.Di("need to specify a reason the Duration is invalid");let s=t instanceof r.A?t:new r.A(t,n);if(!a.A.throwOnInvalid)return new v({invalid:s});throw new e.Op(s)}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!r)throw new e.iq(t);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?t.A.create(this.loc,n).formatDurationFromString(this,e):l}toHuman(e={}){if(!this.isValid)return l;let t=d.map(t=>{let r=this.values[t];return(0,i.b0)(r)?null:(0,this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r))}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return!this.isValid?{}:(0,{...this.values})}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=(0,i.GB)(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},o.A.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:(0,`Duration { Invalid, reason: ${this.invalidReason} }`)}toMillis(){return!this.isValid?NaN:(0,p(this.matrix,this.values))}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=v.fromDurationLike(e),r={};for(let e of d)((0,i.mQ)(t.values,e)||(0,i.mQ)(this.values,e))&&(r[e]=t.get(e)+this.get(e));return m(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=v.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=(0,i.i)(e(this.values[r],r));return m(this,{values:t},!0)}get(e){return this[v.normalizeUnit(e)]}set(e){return!this.isValid?this:(0,m(this,{values:{...this.values,...(0,i.Fl)(e,v.normalizeUnit)}}))}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return m(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return g(this.matrix,e),m(this,{values:e},!0)}rescale(){return!this.isValid?this:(0,m(this,{values:y(this.normalize().shiftToAll().toObject())},!0))}shiftTo(...e){if(!this.isValid||e.length===0)return this;e=e.map(e=>v.normalizeUnit(e));let t={},r={},n=this.toObject();let s;for(let a of d)if(e.indexOf(a)>=0){s=a;let e=0;for(let t in r)e+=this.matrix[t][a]*r[t],r[t]=0;(0,i.Et)(n[a])&&(e+=n[a]);let o=Math.trunc(e);t[a]=o,r[a]=(e*1e3-o*1e3)/1e3}else(0,i.Et)(n[a])&&(r[a]=n[a]);for(let e in r)r[e]!==0&&(t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]);return g(this.matrix,t),m(this,{values:t},!0)}shiftToAll(){return!this.isValid?this:(0,this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"))}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return m(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return e===undefined||e===0?t===undefined||t===0:(0,e===t)}for(let r of d)if(!t(this.values[r],e.values[r]))return!1;return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},603373(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>s});var e=__webpack_require__(396102);var t=__webpack_require__(563023);var r=__webpack_require__(901889);var n=__webpack_require__(545407);function s(e){let t="console";(0,n.s5)(t,e),(0,n.AS)(t,i)}function i(){if(!("console"in r.O))return;e.Ow.forEach(function(s){if(!(s in r.O.console))return;(0,t.GS)(r.O.console,s,function(t){return e.Z9[s]=t,function(...t){(0,n.aj)("console",{args:t,level:s});let i=e.Z9[s];i?.apply(r.O.console,t)}})})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},603476(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>p});var e=__webpack_require__(597054);var t=__webpack_require__(750628);var r=__webpack_require__(912276);var n=__webpack_require__(835060);var s=__webpack_require__(232712);var i=__webpack_require__(512986);var a=__webpack_require__(138292);let o=()=>Date.now(),l="system",c=null,u=null,h=null,d=60,f,m=null;class p{static get now(){return o}static set now(e){o=e}static set defaultZone(e){l=e}static get defaultZone(){return(0,s.q)(l,e.A.instance)}static get defaultLocale(){return c}static set defaultLocale(e){c=e}static get defaultNumberingSystem(){return u}static set defaultNumberingSystem(e){u=e}static get defaultOutputCalendar(){return h}static set defaultOutputCalendar(e){h=e}static get defaultWeekSettings(){return m}static set defaultWeekSettings(e){m=(0,i._v)(e)}static get twoDigitCutoffYear(){return d}static set twoDigitCutoffYear(e){d=e%100}static get throwOnInvalid(){return f}static set throwOnInvalid(e){f=e}static resetCaches(){r.A.resetCache(),t.A.resetCache(),n.A.resetCache(),(0,a.wO)()}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},605816(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A9:()=>d,Iy:()=>u,MI:()=>a,TC:()=>c,kM:()=>l});var e=__webpack_require__(396102);var t=__webpack_require__(620772);var r=__webpack_require__(381699);var n=__webpack_require__(865961);var s=__webpack_require__(858481);var i=__webpack_require__(147687);let a=new RegExp("^[ \\t]*"+"([0-9a-f]{32})?"+"-?([0-9a-f]{16})?"+"-?([01])?"+"[ \\t]*$");function o(e){if(!e)return undefined;let t=e.match(a);if(!t)return undefined;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function l(e,r){let n=o(e);let a=(0,t.yD)(r);if(!n?.traceId)return{traceId:(0,s.e)(),sampleRand:(0,i.hY)()};let l=h(n,a);a&&(a.sample_rand=l.toString());let{traceId:c,parentSpanId:u,parentSampled:d}=n;return{traceId:c,parentSpanId:u,sampled:d,dsc:a||{},sampleRand:l}}function c(e=(0,s.e)(),t=(0,s.Z)(),r){let n="";return r!==undefined&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function u(e=(0,s.e)(),t=(0,s.Z)(),r){return`00-${e}-${t}-${r?"01":"00"}`}function h(e,t){let r=(0,n.i)(t?.sample_rand);if(r!==undefined)return r;let s=(0,n.i)(t?.sample_rate);return s&&e?.parentSampled!==undefined?e.parentSampled?(0,i.hY)()*s:s+(0,i.hY)()*(1-s):(0,(0,i.hY)())}function d(t,n){let s=(0,r.ul)(t);if(n&&s&&n!==s)return e.Yz.log(`Won't continue trace because org IDs don't match (incoming baggage: ${n}, SDK options: ${s})`),!1;if(t.getOptions().strictTraceContinuation||!1){if(n&&!s||!n&&s)return e.Yz.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${n}, Sentry client: ${s})`),!1}return!0}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},609948(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>s});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(984381);let n=/Z|([+-]\d{2}:?\d{2})$/u;let s=(0,e.YP)((0,t.Yj)(),"ISO 8601 date",e=>{return!r.c9.fromISO(e).isValid?"Not a valid ISO 8601 date":(0,!n.test(e))?"ISO 8601 date must have timezone information":(0,!0)})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},612717(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{li:()=>g,mG:()=>c});var e=__webpack_require__(15797);var t=__webpack_require__(189193);var r=__webpack_require__(665016);var n=__webpack_require__(294970);var s=__webpack_require__(392316);var i=__webpack_require__(590041);var a=__webpack_require__(525162);var o=__webpack_require__(180121);var l=__webpack_require__(306981);function c(e,r,n,i,o,c){let{normalizeDepth:g=3,normalizeMaxBreadth:y=1e3}=e;let v={...r,event_id:r.event_id||n.event_id||(0,s.eJ)(),timestamp:r.timestamp||(0,l.lu)()};let b=n.integrations||e.integrations.map(e=>e.name);u(v,e),f(v,b),o&&o.emit("applyFrameMetadata",r),r.type===undefined&&h(v,e.stackParser);let k=p(i,n.captureContext);n.mechanism&&(0,s.M6)(v,n.mechanism);let _=o?o.getEventProcessors():[];let w=(0,a.Om)(c,k);let S=[...n.attachments||[],...w.attachments];S.length&&(n.attachments=S),(0,a.e2)(v,w);let T=[..._,...w.eventProcessors];return(0,t.j)(T,v,n).then(e=>{return(e&&d(e),typeof g=="number"&&g>0)?m(e,g,y):(0,e)})}function u(t,r){let{environment:n,release:s,dist:i,maxValueLength:a}=r;t.environment=t.environment||n||e.U,!t.release&&s&&(t.release=s),!t.dist&&i&&(t.dist=i);let l=t.request;l?.url&&a&&(l.url=(0,o.xv)(l.url,a)),a&&t.exception?.values?.forEach(e=>{e.value&&(e.value=(0,o.xv)(e.value,a))})}function h(e,t){let r=(0,n.z)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function d(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}function f(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function m(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,i.S8)(e.data,t,r)}}))},...e.user&&{user:(0,i.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,i.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,i.S8)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,i.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>{return{...e,...e.data&&{data:(0,i.S8)(e.data,t,r)}}})),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,i.S8)(e.contexts.flags,3,r)),n}function p(e,t){if(!t)return e;let n=e?e.clone():new r.H;return n.update(t),n}function g(e){return!e?undefined:(0,y(e)||b(e))?{captureContext:e}:(0,e)}function y(e){return e instanceof r.H||typeof e=="function"}let v=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function b(e){return Object.keys(e).some(e=>v.includes(e))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},614130(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>t});var e=__webpack_require__(879771);function t(t){return(0,e.KC)(t)}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},617648(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let t;let s=null;let i;let a;function o(...e){if(!o.enabled)return;let n=Number(new Date);o.diff=n-(t||n),o.prev=t,o.curr=n,t=n,e[0]=r.coerce(e[0]),typeof e[0]!=="string"&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if(t==="%%")return"%";s++;let i=r.formatters[n];if(typeof i=="function"){let r=e[s];t=i.call(o,r),e.splice(s,1),s--}return t}),r.formatArgs.call(o,e),(o.log||r.log).apply(o,e)}return o.namespace=e,o.useColors=r.useColors(),o.color=r.selectColor(e),o.extend=n,o.destroy=r.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>{return s!==null?s:(i!==r.namespaces&&(i=r.namespaces,a=r.enabled(e)),a)},set:e=>{s=e}}),typeof r.init=="function"&&r.init(o),o}function n(e,t){let n=r(this.namespace+(t===void 0?":":t)+e);return n.log=this.log,n}function s(e){for(let t of(r.save(e),r.namespaces=e,r.names=[],r.skips=[],(typeof e=="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))t[0]==="-"?r.skips.push(t.slice(1)):r.names.push(t)}function i(e,t){let r=0;let n=0;let s=-1;let i=0;while(r<e.length)if(n<t.length&&(t[n]===e[r]||t[n]==="*"))t[n]==="*"?(s=n,i=r):r++,n++;else if(s===-1)return!1;else n=s+1,r=++i;while(n<t.length&&t[n]==="*")n++;return n===t.length}function a(){let e=[...r.names,...r.skips.map(e=>"-"+e)].join(",");return r.enable(""),e}function o(e){for(let t of r.skips)if(i(e,t))return!1;for(let t of r.names)if(i(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:(0,e)}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=__webpack_require__(134281),r.destroy=c,Object.keys(e).forEach(t=>{r[t]=e[t]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}}}).call(__webpack_require__._LM_("nock>debug",{module,__webpack_require__}))()},620697(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>t});var e=__webpack_require__(632356);function t(t,n,s,i,a,o){if(!a.exception?.values||!o||!(0,e.tH)(o.originalException,Error))return;let l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:undefined;l&&(a.exception.values=r(t,n,i,o.originalException,s,a.exception.values,l,0))}function r(t,a,o,l,c,u,h,d){if(u.length>=o+1)return u;let f=[...u];if((0,e.tH)(l[c],Error)){s(h,d,l);let e=t(a,l[c]);let n=f.length;i(e,c,n,d),f=r(t,a,o,l[c],c,[e,...f],e,n)}return n(l)&&l.errors.forEach((n,u)=>{if((0,e.tH)(n,Error)){s(h,d,l);let e=t(a,n);let m=f.length;i(e,`errors[${u}]`,m,d),f=r(t,a,o,n,c,[e,...f],e,m)}}),f}function n(e){return Array.isArray(e.errors)}function s(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...n(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function i(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},620772(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{De:()=>a,sv:()=>n,yD:()=>i});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(632356);let n="sentry-";let s=/^sentry-/;function i(e){let t=o(e);if(!t)return undefined;let r=Object.entries(t).reduce((e,[t,r])=>{return t.match(s)&&(e[t.slice(n.length)]=r),e},{});return Object.keys(r).length>0?r:(0,undefined)}function a(e){return!e?undefined:(0,c(Object.entries(e).reduce((e,[t,r])=>{return r&&(e[`${n}${t}`]=r),e},{})))}function o(e){return!e||!(0,r.Kg)(e)&&!Array.isArray(e)?undefined:(0,Array.isArray(e))?e.reduce((e,t)=>{return Object.entries(l(t)).forEach(([t,r])=>{e[t]=r}),e},{}):(0,l(e))}function l(e){return e.split(",").map(e=>{let t=e.indexOf("=");return t===-1?[]:(0,[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}}))}).reduce((e,[t,r])=>{return t&&r&&(e[t]=r),e},{})}function c(r){return Object.keys(r).length===0?undefined:(0,Object.entries(r).reduce((r,[n,s],i)=>{let a=`${encodeURIComponent(n)}=${encodeURIComponent(s)}`;let o=i===0?a:`${r},${a}`;return o.length>8192?(e.T&&t.Yz.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),r):(0,o)},""))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},621827(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>e});let e=()=>{return`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},625919(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>n});var e=__webpack_require__(901889);var t=__webpack_require__(545407);let r=null;function n(e){let r="unhandledrejection";(0,t.s5)(r,e),(0,t.AS)(r,s)}function s(){r=e.O.onunhandledrejection,e.O.onunhandledrejection=function(e){return((0,t.aj)("unhandledrejection",e),r)?r.apply(this,arguments):(0,!0)},e.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},632356(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{BD:()=>s,Kg:()=>a,L2:()=>g,NF:()=>o,Qd:()=>c,Qg:()=>f,T2:()=>n,W6:()=>i,bJ:()=>t,gd:()=>d,ks:()=>y,mE:()=>m,sO:()=>l,tH:()=>p,vq:()=>h,xH:()=>u});let e=Object.prototype.toString;function t(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return p(t,Error)}}function r(t,r){return e.call(t)===`[object ${r}]`}function n(e){return r(e,"ErrorEvent")}function s(e){return r(e,"DOMError")}function i(e){return r(e,"DOMException")}function a(e){return r(e,"String")}function o(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function l(e){return e===null||o(e)||typeof e!=="object"&&typeof e!=="function"}function c(e){return r(e,"Object")}function u(e){return typeof Event!=="undefined"&&p(e,Event)}function h(e){return typeof Element!=="undefined"&&p(e,Element)}function d(e){return r(e,"RegExp")}function f(e){return Boolean(e?.then&&typeof e.then=="function")}function m(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function p(e,t){try{return e instanceof t}catch{return!1}}function g(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function y(e){return typeof Request!=="undefined"&&p(e,Request)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},636534(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>e});let e=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"]}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},643814(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>r});var e=__webpack_require__(827284);var t=__webpack_require__(123532);async function r(){let r=(0,t.KU)();if(!r)return"no-client-active";if(!r.getDsn())return"no-dsn-configured";let n=r.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await (0,e.M1)(()=>fetch(n,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},646093(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{KG:()=>m,lt:()=>p});var e=__webpack_require__(576883);var t=__webpack_require__(943924);var r=__webpack_require__(123532);var n=__webpack_require__(352158);var s=__webpack_require__(396102);var i=__webpack_require__(632356);var a=__webpack_require__(525162);var o=__webpack_require__(466737);var l=__webpack_require__(306981);var c=__webpack_require__(358496);var u=__webpack_require__(948643);var h=__webpack_require__(506820);function d(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function f(e,t){let r=y();let n=g(e);n===undefined?r.set(e,[t]):n.length>=100?(p(e,n),r.set(e,[t])):r.set(e,[...n,t])}function m(t,h=(0,r.o5)(),p=f){let g=h?.getClient()??(0,r.KU)();if(!g){n.T&&s.Yz.warn("No client available to capture log.");return}let{release:y,environment:v,enableLogs:b=!1,beforeSendLog:k}=g.getOptions();if(!b){n.T&&s.Yz.warn("logging option not enabled, log will not be captured.");return}let[,_]=(0,c.V)(g,h);let w={...t.attributes};let{user:{id:S,email:T,username:x},attributes:E={}}=(0,a.Om)((0,r.rm)(),h);d(w,"user.id",S,!1),d(w,"user.email",T,!1),d(w,"user.name",x,!1),d(w,"sentry.release",y),d(w,"sentry.environment",v);let{name:j,version:A}=g.getSdkMetadata()?.sdk??{};d(w,"sentry.sdk.name",j),d(w,"sentry.sdk.version",A);let C=g.getIntegrationByName("Replay");let M=C?.getReplayId(!0);d(w,"sentry.replay_id",M),M&&C?.getRecordingMode()==="buffer"&&d(w,"sentry._internal.replay_is_buffering",!0);let I=t.message;if((0,i.NF)(I)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=I;t?.length&&(w["sentry.message.template"]=e),t.forEach((e,t)=>{w[`sentry.message.parameter.${t}`]=e})}let R=(0,o.f)(h);d(w,"sentry.trace.parent_span_id",R?.spanContext().spanId);let O={...t,attributes:w};g.emit("beforeCaptureLog",O);let L=k?(0,s.pq)(()=>k(O)):O;if(!L){g.recordDroppedEvent("before_send","log_item",1),n.T&&s.Yz.warn("beforeSendLog returned null, log will not be captured.");return}let{level:D,message:N,attributes:P={},severityNumber:z}=L;p(g,{timestamp:(0,l.zf)(),level:D,body:N,trace_id:_?.trace_id,severity_number:z??u.W[D],attributes:{...(0,e.SY)(E),...(0,e.SY)(P,!0)}}),g.emit("afterCaptureLog",L)}function p(e,t){let r=t??g(e)??[];if(r.length===0)return;let n=e.getOptions();let s=(0,h.l)(r,n._metadata,n.tunnel,e.getDsn());y().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function g(e){return y().get(e)}function y(){return(0,t.BY)("clientToLogBufferMap",()=>new WeakMap)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},647388(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Es:()=>u,rI:()=>l,ux:()=>c});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(142282);var n=__webpack_require__(879771);var s;var i;(i=s||(s={}))["ButtonClickEvent"]="ButtonClickEvent",i["FormSubmitEvent"]="FormSubmitEvent",i["InputChangeEvent"]="InputChangeEvent",i["FileUploadEvent"]="FileUploadEvent";let a=(0,e.Ik)({type:(0,e.Yj)(),name:(0,e.lq)((0,e.Yj)())});let o=(0,t.kp)(a,(0,e.Ik)({type:(0,n.eu)(s.ButtonClickEvent),name:(0,e.lq)((0,e.Yj)())}));let l=(0,e.Ik)({accountId:(0,e.Yj)(),addresses:(0,e.YO)(r.FX)});let c=(0,e.Ik)({name:(0,e.Yj)(),size:(0,e.ai)(),contentType:(0,e.Yj)(),contents:(0,e.Yj)()});let u=(0,e.Ik)({asset:r.jx,name:(0,e.Yj)(),symbol:(0,e.Yj)()});let h=(0,t.kp)(a,(0,e.Ik)({type:(0,n.eu)(s.FormSubmitEvent),value:(0,e.g1)((0,e.Yj)(),(0,e.me)((0,e.KC)([(0,e.Yj)(),c,(0,e.zM)(),l,u]))),name:(0,e.Yj)()}));let d=(0,t.kp)(a,(0,e.Ik)({type:(0,n.eu)(s.InputChangeEvent),name:(0,e.Yj)(),value:(0,e.me)((0,e.KC)([(0,e.Yj)(),(0,e.zM)(),l,u]))}));let f=(0,t.kp)(a,(0,e.Ik)({type:(0,n.eu)(s.FileUploadEvent),name:(0,e.Yj)(),file:(0,e.me)(c)}));(0,n.i5)([o,h,d,f])}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},650710(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=globalThis.chrome?.runtime.getManifest()||globalThis.browser?.runtime.getManifest();let t=e?e.manifest_version===3:!0;let r=Boolean(globalThis.chrome?.offscreen);module.exports={isManifestV3:t,isOffscreenAvailable:r,isMv3ButOffscreenDocIsMissing:t&&!r}}}).call(__webpack_require__._LM_("$root$",{module,__webpack_require__}))()},652751(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>n});var e=__webpack_require__(901889);var t=__webpack_require__(545407);let r=null;function n(e){let r="error";(0,t.s5)(r,e),(0,t.AS)(r,s)}function s(){r=e.O.onerror,e.O.onerror=function(e,n,s,i,a){return((0,t.aj)("error",{column:i,error:a,line:s,msg:e,url:n}),r)?r.apply(this,arguments):(0,!1)},e.O.onerror.__SENTRY_INSTRUMENTED__=!0}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},658257(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Dj:()=>d,IT:()=>n,Ku:()=>y,OZ:()=>a,T8:()=>u,XO:()=>b,Z:()=>i,_c:()=>l,al:()=>o,bp:()=>c,dH:()=>m,f5:()=>f,i1:()=>h,kw:()=>g,n4:()=>r,w2:()=>p,zW:()=>s});var e=__webpack_require__(377271);var t=__webpack_require__(427581);function r(t){return t.includes("chat.completions")||t.includes("responses")?e.MK.CHAT:(0,t.includes("embeddings"))?e.MK.EMBEDDINGS:(0,t.includes("conversations"))?e.MK.CHAT:(0,t.split(".").pop()||"unknown")}function n(e){return`gen_ai.${r(e)}`}function s(e){return t.Go.includes(e)}function i(e,t){return e?`${e}.${t}`:t}function a(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function o(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function l(e){return e===null||typeof e!=="object"||!("object"in e)?!1:(0,e.object==="list"&&typeof e.model=="string"&&e.model.toLowerCase().includes("embedding"))}function c(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="conversation"}function u(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function h(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function d(t,r,n){if(y(t,r.id,r.model,r.created),r.usage&&g(t,r.usage.prompt_tokens,r.usage.completion_tokens,r.usage.total_tokens),Array.isArray(r.choices)){let s=r.choices.map(e=>e.finish_reason).filter(e=>e!==null);if(s.length>0&&t.setAttributes({[e.Bm]:JSON.stringify(s)}),n){let n=r.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&t.setAttributes({[e.u2]:JSON.stringify(n)})}}}function f(t,r,n){if(y(t,r.id,r.model,r.created_at),r.status&&t.setAttributes({[e.Bm]:JSON.stringify([r.status])}),r.usage&&g(t,r.usage.input_tokens,r.usage.output_tokens,r.usage.total_tokens),n){if(Array.isArray(r.output)&&r.output.length>0){let n=r.output.filter(e=>typeof e=="object"&&e!==null&&e.type==="function_call");n.length>0&&t.setAttributes({[e.u2]:JSON.stringify(n)})}}}function m(t,r){t.setAttributes({[e._T]:r.model,[e.jK]:r.model}),r.usage&&g(t,r.usage.prompt_tokens,undefined,r.usage.total_tokens)}function p(t,r){let{id:n,created_at:s}=r;t.setAttributes({[e.go]:n,[e.PX]:n,[e.Fy]:n}),s&&t.setAttributes({[e.df]:new Date(s*1e3).toISOString()})}function g(t,r,n,s){r!==undefined&&t.setAttributes({[e.Wv]:r,[e.v7]:r}),n!==undefined&&t.setAttributes({[e.Gz]:n,[e.kF]:n}),s!==undefined&&t.setAttributes({[e.$M]:s})}function y(t,r,n,s){t.setAttributes({[e.go]:r,[e.PX]:r}),t.setAttributes({[e._T]:n,[e.jK]:n}),t.setAttributes({[e.df]:new Date(s*1e3).toISOString()})}function v(e){return"conversation"in e&&typeof e.conversation=="string"?e.conversation:(0,"previous_response_id"in e&&typeof e.previous_response_id=="string")?e.previous_response_id:(0,undefined)}function b(t){let r={[e.nK]:t.model??"unknown"};"temperature"in t&&(r[e.qO]=t.temperature),"top_p"in t&&(r[e.Sh]=t.top_p),"frequency_penalty"in t&&(r[e.gU]=t.frequency_penalty),"presence_penalty"in t&&(r[e.FP]=t.presence_penalty),"stream"in t&&(r[e.yc]=t.stream),"encoding_format"in t&&(r[e.Jd]=t.encoding_format),"dimensions"in t&&(r[e.PD]=t.dimensions);let n=v(t);return n&&(r[e.Fy]=n),r}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},659212(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>r});let e="Error: [ethjs-rpc] rpc error with payload ";let t="Error: ";function r(r){if(r.includes(e)){let n=r.slice(e.length);return n.slice(n.indexOf(t)+t.length)}return r}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},659677(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";["XMLHttpRequest"].forEach(e=>{!Reflect.has(globalThis,e)&&(globalThis[e]=undefined)}),!Reflect.has(globalThis,"window")&&(globalThis.window=globalThis)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()},659976(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>p});var e=__webpack_require__(123532);var t=__webpack_require__(931263);var r=__webpack_require__(78463);var n=__webpack_require__(276435);var s=__webpack_require__(827284);var i=__webpack_require__(377271);var a=__webpack_require__(788241);var o=__webpack_require__(14072);var l=__webpack_require__(658257);function c(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[]];return t.length>0?JSON.stringify(t):undefined}function u(e,t){let n={[i.fe]:"openai",[i.Rf]:(0,l.n4)(t),[r.JD]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let t=e[0];let r=c(t);r&&(n[i.nn]=r),Object.assign(n,(0,l.XO)(t))}else n[i.nK]="unknown";return n}function h(e,t,r){if(!t||typeof t!=="object")return;if((0,l.OZ)(t)){if((0,l.Dj)(e,t,r),r&&t.choices?.length){let r=t.choices.map(e=>e.message?.content||"");e.setAttributes({[i.LO]:JSON.stringify(r)})}}else(0,l.al)(t)?((0,l.f5)(e,t,r),r&&t.output_text&&e.setAttributes({[i.LO]:t.output_text})):(0,l._c)(t)?(0,l.dH)(e,t):(0,l.bp)(t)&&(0,l.w2)(e,t)}function d(e,t,r){if(r===i.MK.EMBEDDINGS&&"input"in t){let r=t.input;if(r==null||typeof r=="string"&&r.length===0||Array.isArray(r)&&r.length===0)return;e.setAttribute(i.zu,typeof r=="string"?r:JSON.stringify(r));return}let n="input"in t?t.input:"messages"in t?t.messages:undefined;if(!n||Array.isArray(n)&&n.length===0)return;let{systemInstructions:s,filteredMessages:o}=(0,a.oW)(n);s&&e.setAttribute(i.J9,s);let l=(0,a.eS)(o);e.setAttribute(i.BD,l),Array.isArray(o)?e.setAttribute(i.on,o.length):e.setAttribute(i.on,1)}function f(e,r,a,c){return async function(...f){let m=u(f,r);let p=m[i.nK]||"unknown";let g=(0,l.n4)(r);let y=f[0];return y&&typeof y=="object"&&y.stream===!0?(0,s.nV)({name:`${g} ${p} stream-response`,op:(0,l.IT)(r),attributes:m},async s=>{try{c.recordInputs&&y&&d(s,y,g);let t=await e.apply(a,f);return(0,o.G)(t,s,c.recordOutputs??!1)}catch(e){throw s.setStatus({code:n.TJ,message:"internal_error"}),(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:r}}}),s.end(),e}}):(0,(0,s.Lk)({name:`${g} ${p}`,op:(0,l.IT)(r),attributes:m},async n=>{try{c.recordInputs&&y&&d(n,y,g);let t=await e.apply(a,f);return h(n,t,c.recordOutputs),t}catch(e){throw(0,t.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:r}}}),e}}))}}function m(e,t="",r){return new Proxy(e,{get(e,n){let s=e[n];let i=(0,l.Z)(t,String(n));return typeof s=="function"&&(0,l.zW)(i)?f(s,i,e,r):(0,typeof s=="function")?s.bind(e):(0,s&&typeof s=="object")?m(s,i,r):(0,s)}})}function p(t,r){let n=Boolean((0,e.KU)()?.getOptions().sendDefaultPii);return m(t,"",{recordInputs:n,recordOutputs:n,...r})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},661330(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{DZ:()=>_,Md:()=>b,a0:()=>w,lY:()=>k});var e=__webpack_require__(671955);var t=__webpack_require__(477964);let r=BigInt(0);let n=BigInt(1);let s=BigInt(2);let i=BigInt(7);let a=BigInt(256);let o=BigInt(113);let l=[];let c=[];let u=[];for(let e=0,t=n,h=1,d=0;e<24;e++){[h,d]=[d,(2*h+3*d)%5],l.push(2*(5*d+h)),c.push((e+1)*(e+2)/2%64);let f=r;for(let e=0;e<7;e++)(t=(t<<n^(t>>i)*o)%a)&s&&(f^=n<<(n<<BigInt(e))-n);u.push(f)}let h=(0,e.lD)(u,!0);let d=h[0];let f=h[1];let m=(t,r,n)=>n>32?(0,e.WM)(t,r,n):(0,e.P5)(t,r,n);let p=(t,r,n)=>n>32?(0,e.im)(t,r,n):(0,e.B4)(t,r,n);function g(e,r=24){let n=new Uint32Array(5*2);for(let t=24-r;t<24;t++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10;let s=(t+2)%10;let i=n[s];let a=n[s+1];let o=m(i,a,1)^n[r];let l=p(i,a,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=l}let r=e[2];let s=e[3];for(let t=0;t<24;t++){let n=c[t];let i=m(r,s,n);let a=p(r,s,n);let o=l[t];r=e[o],s=e[o+1],e[o]=i,e[o+1]=a}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=d[t],e[1]^=f[t]}(0,t.uH)(n)}class y extends t.Vw{constructor(e,r,n,s=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,(0,t.Fe)(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,t.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,t.fd)(this.state32),g(this.state32,this.rounds),(0,t.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,t.CC)(this),e=(0,t.ZJ)(e),(0,t.DO)(e);let{blockLen:r,state:n}=this;let s=e.length;for(let t=0;t<s;){let i=Math.min(r-this.pos,s-t);for(let r=0;r<i;r++)n[this.pos++]^=e[t++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(t&128)!==0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,t.CC)(this,!1),(0,t.DO)(e),this.finish();let r=this.state;let{blockLen:n}=this;for(let t=0,s=e.length;t<s;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,s-t);e.set(r.subarray(this.posOut,this.posOut+i),t),this.posOut+=i,t+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,t.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,t.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,t.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new y(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let v=(e,r,n)=>(0,t.qj)(()=>new y(r,e,n));let b=(0,v(1,144,224/8));let k=(0,v(1,136,256/8));let _=(0,v(1,104,384/8));let w=(0,v(1,72,512/8))}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_require__,__webpack_exports__}))()},662925(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_:()=>i});var e=__webpack_require__(545407);var t=__webpack_require__(563023);var r=__webpack_require__(153836);var n=__webpack_require__(765698);let s;function i(t){let r="history";(0,e.s5)(r,t),(0,e.AS)(r,a)}function a(){if(n.j.addEventListener("popstate",()=>{let t=n.j.location.href;let r=s;if(s=t,r===t)return;(0,e.aj)("history",{from:r,to:t})}),!(0,r.NJ)())return;function i(t){return function(...r){let n=r.length>2?r[2]:undefined;if(n){let i=s;let a=o(String(n));if(s=a,i===a)return t.apply(this,r);(0,e.aj)("history",{from:i,to:a})}return t.apply(this,r)}}(0,t.GS)(n.j.history,"pushState",i),(0,t.GS)(n.j.history,"replaceState",i)}function o(e){try{return new URL(e,n.j.location.origin).toString()}catch{return e}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},663834(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>h,LI:()=>m,jI:()=>v,n4:()=>p,xF:()=>u});var e=__webpack_require__(78463);var t=__webpack_require__(377271);var r=__webpack_require__(550664);var n=__webpack_require__(788241);var s=__webpack_require__(997858);let i=(e,t,r)=>{r!=null&&(e[t]=r)};let a=(e,t,r)=>{let n=Number(r);!Number.isNaN(n)&&(e[t]=n)};function o(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function l(e){let t=e.toLowerCase();return s.eW[t]??t}function c(e){return e.includes("System")?"system":(0,e.includes("Human"))?"user":(0,e.includes("AI")||e.includes("Assistant"))?"assistant":(0,e.includes("Function"))?"function":(0,e.includes("Tool"))?"tool":(0,"user")}function u(e){return!e||Array.isArray(e)?undefined:(0,e.invocation_params)}function h(e){return e.map(e=>{let t=e._getType;if(typeof t=="function")return{role:l(t.call(e)),content:o(e.content)};if(e.lc===1&&e.kwargs){let t=e.id;let r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:l(typeof r=="string"?c(r):"user"),content:o(e.kwargs?.content)}}if(e.type)return{role:l(String(e.type).toLowerCase()),content:o(e.content)};if(e.role)return{role:l(String(e.role)),content:o(e.content)};let r=e.constructor?.name;return r&&r!=="Object"?{role:l(c(r)),content:o(e.content)}:(0,{role:"user",content:o(e.content)})})}function d(e,r,n){let s={};let o="kwargs"in e?e.kwargs:undefined;let l=r?.temperature??n?.ls_temperature??o?.temperature;a(s,t.qO,l);let c=r?.max_tokens??n?.ls_max_tokens??o?.max_tokens;a(s,t.DL,c);let u=r?.top_p??o?.top_p;a(s,t.Sh,u);let h=r?.frequency_penalty;a(s,t.gU,h);let d=r?.presence_penalty;return a(s,t.FP,d),r&&"stream"in r&&i(s,t.yc,Boolean(r.stream)),s}function f(r,n,i,a,l){return{[t.fe]:o(r??"langchain"),[t.Rf]:"chat",[t.nK]:o(n),[e.JD]:s.rT,...d(i,a,l)}}function m(e,r,n,s,a){let l=f(a?.ls_provider,s?.model??a?.ls_model_name??"unknown",e,s,a);if(n&&Array.isArray(r)&&r.length>0){i(l,t.on,r.length);let e=r.map(e=>({role:"user",content:e}));i(l,t.BD,o(e))}return l}function p(e,s,a,l,c){let u=f(c?.ls_provider??e.id?.[2],l?.model??c?.ls_model_name??"unknown",e,l,c);if(a&&Array.isArray(s)&&s.length>0){let e=h(s.flat());let{systemInstructions:a,filteredMessages:l}=(0,n.oW)(e);a&&i(u,t.J9,a);let c=Array.isArray(l)?l.length:0;i(u,t.on,c);let d=(0,r.Hz)(l);i(u,t.BD,o(d))}return u}function g(e,r){let n=[];for(let t of e.flat()){let e=t.message?.content;if(Array.isArray(e))for(let t of e)t.type==="tool_use"&&n.push(t)}n.length>0&&i(r,t.u2,o(n))}function y(e,r){if(!e)return;let n=e.tokenUsage;let s=e.usage;if(n)a(r,t.v7,n.promptTokens),a(r,t.kF,n.completionTokens),a(r,t.$M,n.totalTokens);else if(s){a(r,t.v7,s.input_tokens),a(r,t.kF,s.output_tokens);let e=Number(s.input_tokens);let n=Number(s.output_tokens);let i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&a(r,t.$M,i),s.cache_creation_input_tokens!==undefined&&a(r,t.s3,s.cache_creation_input_tokens),s.cache_read_input_tokens!==undefined&&a(r,t.JZ,s.cache_read_input_tokens)}}function v(e,r){if(!e)return;let n={};if(Array.isArray(e.generations)){let s=e.generations.flat().map(e=>{return e.generationInfo?.finish_reason?e.generationInfo.finish_reason:(0,e.generation_info?.finish_reason)?e.generation_info.finish_reason:(0,null)}).filter(e=>typeof e=="string");if(s.length>0&&i(n,t.Bm,o(s)),g(e.generations,n),r){let r=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>typeof e=="string");r.length>0&&i(n,t.LO,o(r))}}y(e.llmOutput,n);let s=e.llmOutput;let a=e.generations?.[0]?.[0];let l=a?.message;let c=s?.model_name??s?.model??l?.response_metadata?.model_name;c&&i(n,t.jK,c);let u=s?.id??l?.id;u&&i(n,t.PX,u);let h=s?.stop_reason??l?.response_metadata?.finish_reason;return h&&i(n,t.DI,o(h)),n}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},664746(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>s,z:()=>n});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(682631);function n(n){if(!e.T)return;let{description:s="< unknown name >",op:i="< unknown op >",parent_span_id:a}=(0,r.et)(n);let{spanId:o}=n.spanContext();let l=(0,r.pK)(n);let c=(0,r.zU)(n);let u=c===n;let h=`[Tracing] Starting ${l?"sampled":"unsampled"} ${u?"root ":""}span`;let d=[`op: ${i}`,`name: ${s}`,`ID: ${o}`];if(a&&d.push(`parent ID: ${a}`),!u){let{op:e,description:t}=(0,r.et)(c);d.push(`root ID: ${c.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}t.Yz.log(`${h}
  ${d.join(`
  `)}`)}function s(n){if(!e.T)return;let{description:s="< unknown name >",op:i="< unknown op >"}=(0,r.et)(n);let{spanId:a}=n.spanContext();let o=(0,r.zU)(n)===n;let l=`[Tracing] Finishing "${i}" ${o?"root ":""}span "${s}" with ID ${a}`;t.Yz.log(l)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},665016(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>h});var e=__webpack_require__(352158);var t=__webpack_require__(172900);var r=__webpack_require__(396102);var n=__webpack_require__(632356);var s=__webpack_require__(144770);var i=__webpack_require__(392316);var a=__webpack_require__(858481);var o=__webpack_require__(147687);var l=__webpack_require__(466737);var c=__webpack_require__(180121);var u=__webpack_require__(306981);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,a.e)(),sampleRand:(0,o.hY)()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,l.r)(e,(0,l.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:undefined,id:undefined,ip_address:undefined,username:undefined},this._session&&(0,t.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||undefined,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t=typeof e=="function"?e(this):e;let{tags:r,attributes:s,extra:i,user:a,contexts:o,level:l,fingerprint:c=[],propagationContext:u,conversationId:d}=(t instanceof h?t.getScopeData():(0,n.Qd)(t)?e:undefined)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=undefined,this._transactionName=undefined,this._fingerprint=undefined,this._session=undefined,this._conversationId=undefined,(0,l.r)(this,undefined),this._attachments=[],this.setPropagationContext({traceId:(0,a.e)(),sampleRand:(0,o.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r=typeof t=="number"?t:100;if(r<=0)return this;let n={timestamp:(0,u.lu)(),...e,message:e.message?(0,c.xv)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let s=n?.event_id||(0,i.eJ)();if(!this._client)return e.T&&r.Yz.warn("No client configured on scope - will not capture exception!"),s;let a=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:a,...n,event_id:s},this),s}captureMessage(t,n,s){let a=s?.event_id||(0,i.eJ)();if(!this._client)return e.T&&r.Yz.warn("No client configured on scope - will not capture message!"),a;let o=s?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...s,event_id:a},this),a}captureEvent(t,n){let s=n?.event_id||(0,i.eJ)();return!this._client?e.T&&r.Yz.warn("No client configured on scope - will not capture event!"):(0,this._client.captureEvent(t,{...n,event_id:s},this)),s}_notifyScopeListeners(){!this._notifyingListeners&&(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},671480(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>n,r:()=>r});var e=__webpack_require__(943924);var t=__webpack_require__(665016);function r(){return(0,e.BY)("defaultCurrentScope",()=>new t.H)}function n(){return(0,e.BY)("defaultIsolationScope",()=>new t.H)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},671955(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B4:()=>h,CQ:()=>v,CW:()=>y,Ei:()=>c,F8:()=>b,P5:()=>u,TH:()=>k,Vl:()=>p,Vr:()=>g,WM:()=>d,WQ:()=>m,im:()=>f,jm:()=>i,lD:()=>n,qh:()=>l,rE:()=>a,ry:()=>o,xn:()=>s});let e=BigInt(0x100000000-1);let t=BigInt(32);function r(n,s=!1){return s?{h:Number(n&e),l:Number(n>>t&e)}:(0,{h:Number(n>>t&e)|0,l:Number(n&e)|0})}function n(e,t=!1){let s=e.length;let i=new Uint32Array(s);let a=new Uint32Array(s);for(let n=0;n<s;n++){let{h:s,l:o}=r(e[n],t);[i[n],a[n]]=[s,o]}return[i,a]}let s=(e,t,r)=>e>>>r;let i=(e,t,r)=>e<<32-r|t>>>r;let a=(e,t,r)=>e>>>r|t<<32-r;let o=(e,t,r)=>e<<32-r|t>>>r;let l=(e,t,r)=>e<<64-r|t>>>r-32;let c=(e,t,r)=>e>>>r-32|t<<64-r;let u=(e,t,r)=>e<<r|t>>>32-r;let h=(e,t,r)=>t<<r|e>>>32-r;let d=(e,t,r)=>t<<r-32|e>>>64-r;let f=(e,t,r)=>e<<r-32|t>>>64-r;function m(e,t,r,n){let s=(t>>>0)+(n>>>0);return{h:e+r+(s/0x100000000|0)|0,l:s|0}}let p=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);let g=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;let y=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);let v=(e,t,r,n,s)=>t+r+n+s+(e/0x100000000|0)|0;let b=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);let k=(e,t,r,n,s,i)=>t+r+n+s+i+(e/0x100000000|0)|0}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_exports__,__webpack_require__}))()},676108(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>t});var e=__webpack_require__(123532);function t(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let r=t||(0,e.KU)()?.getOptions();return!!r&&(r.tracesSampleRate!=null||!!r.tracesSampler)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},676358(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Tl:()=>i,Wu:()=>s,Z6:()=>r});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r;var n;(n=r||(r={}))["Copyable"]="copyable",n["Divider"]="divider",n["Heading"]="heading",n["Panel"]="panel",n["Spinner"]="spinner",n["Text"]="text",n["Image"]="image",n["Row"]="row",n["Address"]="address",n["Button"]="button",n["Input"]="input",n["Form"]="form";let s=(0,e.Ik)({type:(0,e.Yj)()});let i=(0,t.kp)(s,(0,e.Ik)({value:(0,e.L5)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},676979(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>o,O:()=>a});var e=__webpack_require__(515400);let t=0;let r=Infinity;let n=0;let s=e=>{e.forEach(e=>{e.interactionId&&(r=Math.min(r,e.interactionId),t=(n=Math.max(n,e.interactionId))?(n-r)/7+1:0)})};let i;let a=()=>{return i?t:performance.interactionCount||0};let o=()=>{if("interactionCount"in performance||i)return;i=(0,e.l)("event",s,{type:"event",buffered:!0,durationThreshold:0})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},679351(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t,r){let n;let s;let i;let a=r?.maxWait?Math.max(r.maxWait,t):0;let o=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e()}function c(){s!==undefined&&clearTimeout(s),i!==undefined&&clearTimeout(i),s=i=undefined}function u(){return s!==undefined||i!==undefined?l():(0,n)}function h(){return s&&clearTimeout(s),s=o(l,t),a&&i===undefined&&(i=o(l,a)),n}return h.cancel=c,h.flush=u,h}__webpack_require__.d(__webpack_exports__,{s:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},681853(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z9:()=>d});var e=__webpack_require__(17072);var t=__webpack_require__(260516);var r=__webpack_require__(994398);var n=__webpack_require__(956902);function s(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function i(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=s(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}function a(e){return s(e.getAllKeys())}function o(e,t,r){return e(e=>{return a(e).then(n=>{if(n.length>=r)return;return e.put(t,Math.max(...n,0)+1),s(e.transaction)})})}function l(e,t,r){return e(e=>{return a(e).then(n=>{if(n.length>=r)return;return e.put(t,Math.min(...n,0)-1),s(e.transaction)})})}function c(e){return e(e=>{return a(e).then(t=>{let r=t[0];return r==null?undefined:(0,s(e.get(r)).then(t=>{return e.delete(r),s(e.transaction).then(()=>t)}))})})}function u(e){let r;function n(){return r==undefined&&(r=i(e.dbName||"sentry-offline",e.storeName||"queue")),r}return{push:async r=>{try{let s=await (0,t.bN)(r);await o(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{let s=await (0,t.bN)(r);await l(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await c(n());if(e)return(0,t.mE)(e)}catch{}return undefined}}}function h(e){return t=>{let n=e({...t,createStore:u});return r.jf.addEventListener("online",async e=>{await n.flush()}),n}}function d(t=n._){return h((0,e.BP)(t))}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},682631(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Bk:()=>O,CC:()=>d,Ck:()=>p,G_:()=>v,Hu:()=>C,Qh:()=>y,VS:()=>M,aO:()=>f,cI:()=>k,et:()=>w,kX:()=>g,pK:()=>x,uU:()=>b,xO:()=>I,xl:()=>L,yW:()=>E,zQ:()=>D,zU:()=>R});var e=__webpack_require__(920938);var t=__webpack_require__(943924);var r=__webpack_require__(123532);var n=__webpack_require__(78463);var s=__webpack_require__(276435);var i=__webpack_require__(709356);var a=__webpack_require__(563023);var o=__webpack_require__(858481);var l=__webpack_require__(306981);var c=__webpack_require__(605816);var u=__webpack_require__(396102);var h=__webpack_require__(466737);let d=0;let f=1;let m=!1;function p(e){let{spanId:t,traceId:r}=e.spanContext();let{data:n,op:s,parent_span_id:i,status:a,origin:o,links:l}=w(e);return{parent_span_id:i,span_id:t,trace_id:r,data:n,op:s,status:a,origin:o,links:l}}function g(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext();let s=n?t:w(e).parent_span_id;let a=(0,i.L)(e).scope;return{parent_span_id:s,span_id:n?a?.getPropagationContext().propagationSpanId||(0,o.Z)():t,trace_id:r}}function y(e){let{traceId:t,spanId:r}=e.spanContext();let n=x(e);return(0,c.TC)(t,r,n)}function v(e){let{traceId:t,spanId:r}=e.spanContext();let n=x(e);return(0,c.Iy)(t,r,n)}function b(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:s})=>({span_id:e,trace_id:t,sampled:r===f,attributes:s,...n})):(0,undefined)}function k(e){return typeof e=="number"?_(e):(0,Array.isArray(e))?e[0]+e[1]/1e9:(0,e instanceof Date)?_(e.getTime()):(0,(0,l.zf)())}function _(e){return e>0x2540be3ff?e/1e3:e}function w(e){if(T(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(S(e)){let{attributes:s,startTime:i,name:a,endTime:o,status:l,links:c}=e;return{span_id:t,trace_id:r,data:s,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:undefined,start_timestamp:k(i),timestamp:k(o)||undefined,status:E(l),op:s[n.uT],origin:s[n.JD],links:b(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function S(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function T(e){return typeof e.getSpanJSON=="function"}function x(e){let{traceFlags:t}=e.spanContext();return t===f}function E(e){return!e||e.code===s.a3?undefined:(0,e.code===s.F3)?"ok":(0,e.message||"internal_error")}let j="_sentryChildSpans";let A="_sentryRootSpan";function C(e,t){let r=e[A]||e;(0,a.my)(t,A,r),e[j]?e[j].add(t):(0,a.my)(e,j,new Set([t]))}function M(e,t){e[j]&&e[j].delete(t)}function I(e){let t=new Set;function r(e){if(t.has(e))return;if(x(e))for(let n of(t.add(e),e[j]?Array.from(e[j]):[]))r(n)}return r(e),Array.from(t)}function R(e){return e[A]||e}function O(){let n=(0,t.EU)();let s=(0,e.h)(n);return s.getActiveSpan?s.getActiveSpan():(0,(0,h.f)((0,r.o5)()))}function L(){!m&&((0,u.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),m=!0)}function D(e,t){e.updateName(t),e.setAttributes({[n.i_]:"custom",[n.Le]:t})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},686333(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C9:()=>u,De:()=>g,EG:()=>y,WF:()=>p,WO:()=>h,_3:()=>m,d3:()=>d,fZ:()=>f,mK:()=>a,nM:()=>v,ui:()=>c});var e=__webpack_require__(512986);var t=__webpack_require__(14631);var r=__webpack_require__(695358);let n=[0,31,59,90,120,151,181,212,243,273,304,334],s=[0,31,60,91,121,152,182,213,244,274,305,335];function i(e,r){return new t.A("unit out of range",`you specified ${r} (of type ${typeof r}) as a ${e}, which is invalid`)}function a(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let s=n.getUTCDay();return s===0?7:s}function o(t,r,i){return i+((0,e.U_)(t)?s:n)[r-1]}function l(t,r){let i=(0,e.U_)(t)?s:n,a=i.findIndex(e=>e<r),o=r-i[a];return{month:a+1,day:o}}function c(e,t){return(e-t+7)%7+1}function u(t,r=4,n=1){let{year:s,month:i,day:l}=t,h=o(s,i,l),d=c(a(s,i,l),n);let f=Math.floor((h-d+14-r)/7),m;return f<1?(m=s-1,f=(0,e.ac)(m,r,n)):f>(0,e.ac)(s,r,n)?(m=s+1,f=1):m=s,{weekYear:m,weekNumber:f,weekday:d,...(0,e.B9)(t)}}function h(t,r=4,n=1){let{weekYear:s,weekNumber:i,weekday:o}=t,u=c(a(s,1,r),n),d=(0,e.Ki)(s);let f=i*7+o-u-7+r,m;f<1?(m=s-1,f+=(0,e.Ki)(m)):f>d?(m=s+1,f-=(0,e.Ki)(s)):m=s;let{month:p,day:g}=l(m,f);return{year:m,month:p,day:g,...(0,e.B9)(t)}}function d(t){let{year:r,month:n,day:s}=t;let i=o(r,n,s);return{year:r,ordinal:i,...(0,e.B9)(t)}}function f(t){let{year:r,ordinal:n}=t;let{month:s,day:i}=l(r,n);return{year:r,month:s,day:i,...(0,e.B9)(t)}}function m(t,n){if(!(!(0,e.b0)(t.localWeekday)||!(0,e.b0)(t.localWeekNumber)||!(0,e.b0)(t.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};{if(!(0,e.b0)(t.weekday)||!(0,e.b0)(t.weekNumber)||!(0,e.b0)(t.weekYear))throw new r.gN("Cannot mix locale-based week fields with ISO-based week fields");return!(0,e.b0)(t.localWeekday)&&(t.weekday=t.localWeekday),!(0,e.b0)(t.localWeekNumber)&&(t.weekNumber=t.localWeekNumber),!(0,e.b0)(t.localWeekYear)&&(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:n.getMinDaysInFirstWeek(),startOfWeek:n.getStartOfWeek()}}}function p(t,r=4,n=1){let s=(0,e.Fq)(t.weekYear),a=(0,e.f8)(t.weekNumber,1,(0,e.ac)(t.weekYear,r,n)),o=(0,e.f8)(t.weekday,1,7);return!s?i("weekYear",t.weekYear):(0,!a)?i("week",t.weekNumber):(0,!o)?i("weekday",t.weekday):(0,!1)}function g(t){let r=(0,e.Fq)(t.year),n=(0,e.f8)(t.ordinal,1,(0,e.Ki)(t.year));return!r?i("year",t.year):(0,!n)?i("ordinal",t.ordinal):!1}function y(t){let r=(0,e.Fq)(t.year),n=(0,e.f8)(t.month,1,12),s=(0,e.f8)(t.day,1,(0,e.L3)(t.year,t.month));return!r?i("year",t.year):(0,!n)?i("month",t.month):(0,!s)?i("day",t.day):(0,!1)}function v(t){let{hour:r,minute:n,second:s,millisecond:a}=t;let o=(0,e.f8)(r,0,23)||r===24&&n===0&&s===0&&a===0,l=(0,e.f8)(n,0,59),c=(0,e.f8)(s,0,59),u=(0,e.f8)(a,0,999);return!o?i("hour",r):(0,!l)?i("minute",n):(0,!c)?i("second",s):(0,!u)?i("millisecond",a):!1}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},686595(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{TR:()=>n});var e=__webpack_require__(632356);function t(e,t){return e(t.stack||"",1)}function r(t){return(0,e.bJ)(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function n(e){return r(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:(0,e.message)}function s(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}return undefined}function i(e){if("name"in e&&typeof e.name=="string"){let t=`'${e.name}' captured as exception`;return"message"in e&&typeof e.message=="string"&&(t+=` with message '${e.message}'`),t}if("message"in e&&typeof e.message=="string")return e.message;let t=extractExceptionKeysForMessage(e);if(isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let r=a(e);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${t}`}function a(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch{}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},689132(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ur:()=>f,rW:()=>h});var e=__webpack_require__(241361);var t=__webpack_require__(29947);var r=__webpack_require__(805248);var n=__webpack_require__(722837);var s=__webpack_require__(879771);var i=__webpack_require__(443697);var a=__webpack_require__(356583);var o=__webpack_require__(784225);var l=__webpack_require__(342672);var c=__webpack_require__(745085);let u="snap_dialog";let h={[n.h.Alert]:`${u}:alert`,[n.h.Confirmation]:`${u}:confirmation`,[n.h.Prompt]:`${u}:prompt`,default:u};let d=(0,l.lq)((0,o.Ej)((0,l.Yj)(),1,40));let f=Object.freeze({targetName:u,specificationBuilder:({allowedCaveats:r=null,messenger:n})=>{return{permissionType:e.eZ.RestrictedMethod,targetName:u,allowedCaveats:r,methodImplementation:j({messenger:n}),subjectTypes:[t.P.Snap]}},actionNames:["ApprovalController:addRequest","SnapInterfaceController:createInterface","SnapInterfaceController:getInterface","SnapInterfaceController:setInterfaceDisplayed"]});let m=(0,l.Ik)({type:(0,s.$9)(n.h.Alert),content:i.Qi});let p=(0,l.Ik)({type:(0,s.$9)(n.h.Alert),id:(0,l.Yj)()});let g=(0,s.E$)(e=>{return(0,c.Qd)(e)&&(0,c.i5)(e,"id")?p:(0,m)});let y=(0,l.Ik)({type:(0,s.$9)(n.h.Confirmation),content:i.Qi});let v=(0,l.Ik)({type:(0,s.$9)(n.h.Confirmation),id:(0,l.Yj)()});let b=(0,s.E$)(e=>{return(0,c.Qd)(e)&&(0,c.i5)(e,"id")?v:(0,y)});let k=(0,l.Ik)({type:(0,s.$9)(n.h.Prompt),content:i.Qi,placeholder:d});let _=(0,l.Ik)({type:(0,s.$9)(n.h.Prompt),id:(0,l.Yj)(),placeholder:d});let w=(0,s.E$)(e=>{return(0,c.Qd)(e)&&(0,c.i5)(e,"id")?_:(0,k)});let S=(0,l.Ik)({content:i.Qi});let T=(0,l.Ik)({id:(0,l.Yj)()});let x=(0,s.E$)(e=>{return(0,c.Qd)(e)&&(0,c.i5)(e,"id")?T:(0,S)});let E=(0,s.E$)(e=>{if((0,c.Qd)(e)&&(0,c.i5)(e,"type"))switch(e.type){case n.h.Alert:return g;case n.h.Confirmation:return b;case n.h.Prompt:return w;default:throw new Error(`The "type" property must be one of: ${Object.values(n.h).join(", ")}.`)}return x});function j({messenger:e}){return async function(t){let{params:n,context:{origin:s}}=t;if(!(0,c.Gv)(n))throw r.r.invalidParams({message:"Invalid params: Expected params to be a single object."});let i=I(n);let a=M(i)?i.placeholder:undefined;let o=h[(0,c.i5)(i,"type")?i.type:"default"];if((0,c.i5)(i,"content")){let t=e.call("SnapInterfaceController:createInterface",s,i.content);return e.call("SnapInterfaceController:setInterfaceDisplayed",s,t),e.call("ApprovalController:addRequest",{id:o===h.default?t:undefined,origin:s,type:o,requestData:{id:t,placeholder:a}},!0)}return A(s,i.id,e),e.call("SnapInterfaceController:setInterfaceDisplayed",s,i.id),e.call("ApprovalController:addRequest",{id:o===h.default?i.id:undefined,origin:s,type:o,requestData:{id:i.id,placeholder:a}},!0)}}function A(e,t,n){try{n.call("SnapInterfaceController:getInterface",e,t)}catch(e){throw r.r.invalidParams({message:`Invalid params: ${e.message}`})}}function C(e){return(0,c.i5)(e,"type")?e.type:undefined}function M(e){return C(e)===n.h.Prompt}function I(e){try{return(0,a.vt)(e,E)}catch(e){throw r.r.invalidParams({message:`Invalid params: ${e.message}`})}}}}).call(__webpack_require__._LM_("@metamask/snaps-rpc-methods",{__webpack_require__,__webpack_exports__}))()},691576(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H7:()=>b,K8:()=>o,qv:()=>v,u:()=>y});var e=__webpack_require__(123532);var t=__webpack_require__(632356);var r=__webpack_require__(392316);var n=__webpack_require__(590041);var s=__webpack_require__(563023);var i=__webpack_require__(152198);var a=__webpack_require__(686595);function o(e,t){let r=u(e,t);let n={type:p(t),value:g(t)};return r.length&&(n.stacktrace={frames:r}),n.type===undefined&&n.value===""&&(n.value="Unrecoverable error caught"),n}function l(r,s,i,a){let l=(0,e.KU)();let c=l?.getOptions().normalizeDepth;let h=S(s);let d={__serialized__:(0,n.cd)(s,c)};if(h)return{exception:{values:[o(r,h)]},extra:d};let f={exception:{values:[{type:(0,t.xH)(s)?s.constructor.name:a?"UnhandledRejection":"Error",value:_(s,{isUnhandledRejection:a})}]},extra:d};if(i){let e=u(r,i);e.length&&(f.exception.values[0].stacktrace={frames:e})}return f}function c(e,t){return{exception:{values:[o(e,t)]}}}function u(e,t){let r=t.stacktrace||t.stack||"";let n=d(t);let s=f(t);try{return e(r,n,s)}catch{}return[]}let h=/Minified React error #\d+;/i;function d(e){return e&&h.test(e.message)?1:(0,0)}function f(e){return typeof e.framesToPop=="number"?e.framesToPop:(0,0)}function m(e){return typeof WebAssembly!=="undefined"&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:(0,!1)}function p(e){let t=e?.name;return!t&&m(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":(0,t)}function g(e){let t=e?.message;return m(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:(0,"wasm exception"):(0,!t?"No error message":(0,t.error&&typeof t.error.message=="string")?(0,a.TR)(t.error):(0,(0,a.TR)(e)))}function y(e,t,n,s){let a=b(e,t,n?.syntheticException||undefined,s);return(0,r.M6)(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),(0,i.XW)(a)}function v(e,t,r="info",n,s){let a=k(e,t,n?.syntheticException||undefined,s);return a.level=r,n?.event_id&&(a.event_id=n.event_id),(0,i.XW)(a)}function b(e,n,s,i,a){let o;if((0,t.T2)(n)&&n.error)return c(e,n.error);if((0,t.BD)(n)||(0,t.W6)(n)){if("stack"in n)o=c(e,n);else{let a=n.name||((0,t.BD)(n)?"DOMError":"DOMException");let l=n.message?`${a}: ${n.message}`:a;o=k(e,l,s,i),(0,r.gO)(o,l)}return"code"in n&&(o.tags={...o.tags,"DOMException.code":`${n.code}`}),o}return(0,t.bJ)(n)?c(e,n):((0,(0,t.Qd)(n)||(0,t.xH)(n))?o=l(e,n,s,a):(o=k(e,n,s,i),(0,r.gO)(o,`${n}`,undefined)),(0,r.M6)(o,{synthetic:!0}),o)}function k(e,n,s,i){let a={};if(i&&s){let t=u(e,s);t.length&&(a.exception={values:[{value:n,stacktrace:{frames:t}}]}),(0,r.M6)(a,{synthetic:!0})}if((0,t.NF)(n)){let{__sentry_template_string__:e,__sentry_template_values__:t}=n;return a.logentry={message:e,params:t},a}return a.message=n,a}function _(e,{isUnhandledRejection:r}){let n=(0,s.HF)(e);let i=r?"promise rejection":"exception";if((0,t.T2)(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if((0,t.xH)(e)){let t=w(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}function w(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch{}}function S(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}return undefined}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},695358(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Di:()=>a,Op:()=>n,gN:()=>s,hq:()=>r,iq:()=>i,jP:()=>o,t:()=>t});class e extends Error{}class t extends e{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class r extends e{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class n extends e{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class s extends e{}class i extends e{constructor(e){super(`Invalid unit ${e}`)}}class a extends e{}class o extends e{constructor(){super("Zone is an abstract class")}}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},702053(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>d});var e=__webpack_require__(57324);var t=__webpack_require__(51450);var r=__webpack_require__(978802);var n=__webpack_require__(580436);var s=__webpack_require__(314408);var i=__webpack_require__(793419);var a=__webpack_require__(958084);var o=__webpack_require__(515400);var l=__webpack_require__(56680);var c=__webpack_require__(768571);var u=__webpack_require__(944117);let h=[2500,4e3];let d=(d,f={})=>{(0,c.I)(()=>{let c=(0,r.N)();let m=(0,s.X)("LCP");let p;let g=(0,i.C)(f,a.J);let y=e=>{for(let r of(!f.reportAllChanges&&(e=e.slice(-1)),e))g._processEntry(r),r.startTime<c.firstHiddenTime&&(m.value=Math.max(r.startTime-(0,t.b)(),0),m.entries=[r],p())};let v=(0,o.l)("largest-contentful-paint",y);if(v){p=(0,e.R)(d,m,h,f.reportAllChanges);let t=(0,l.J)(()=>{y(v.takeRecords()),v.disconnect(),p(!0)});let r=e=>{e.isTrusted&&((0,u.k)(t),(0,n.Q)(e.type,r,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])(0,n.d)(e,r,{capture:!0})}})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},703138(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>t});var e=__webpack_require__(156398);let t=({growthbookClass:t})=>(0,e.z)({growthbookClass:t})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},704776(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{v5:()=>h});var e=__webpack_require__(123532);var t=__webpack_require__(78463);var r=__webpack_require__(682631);var n=__webpack_require__(276435);var s=__webpack_require__(632356);var i=__webpack_require__(676108);var a=__webpack_require__(620772);var o=__webpack_require__(911216);var l=__webpack_require__(827284);var c=__webpack_require__(944887);var u=__webpack_require__(925075);function h(t,n,s,a,c){if(!t.fetchData)return undefined;let{method:u,url:h}=t.fetchData;let p=(0,i.f)()&&n(h);if(t.endTimestamp&&p){let e=t.fetchData.__span;if(!e)return;let r=a[e];return r&&(m(r,t),d(r,t,c),delete a[e]),undefined}let{spanOrigin:g="auto.http.browser",propagateTraceparent:v=!1}=typeof c=="object"?c:{spanOrigin:c};let b=!!(0,r.Bk)();let k=p&&b?(0,l.Uk)(y(h,u,g)):new o.w;if(t.fetchData.__span=k.spanContext().spanId,a[k.spanContext().spanId]=k,s(t.fetchData.url)){let e=t.args[0];let r={...t.args[1]||{}};let n=f(e,r,(0,i.f)()&&b?k:undefined,v);n&&(t.args[1]=r,r.headers=n)}let _=(0,e.KU)();if(_){let e={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};_.emit("beforeOutgoingRequestSpan",k,e)}return k}function d(e,t,r){let n=typeof r=="object"&&r!==null?r.onRequestSpanEnd:undefined;n?.(e,{headers:t.response?.headers,error:t.error})}function f(e,t,r,n){let i=(0,c.i)({span:r,propagateTraceparent:n});let a=i["sentry-trace"];let o=i.baggage;let l=i.traceparent;if(!a)return undefined;let u=t.headers||((0,s.ks)(e)?e.headers:undefined);if(!u)return{...i};if(g(u)){let e=new Headers(u);if(!e.get("sentry-trace")&&e.set("sentry-trace",a),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),o){let t=e.get("baggage");t?!p(t)&&e.set("baggage",`${t},${o}`):e.set("baggage",o)}return e}if(Array.isArray(u)){let e=[...u];!u.find(e=>e[0]==="sentry-trace")&&e.push(["sentry-trace",a]),n&&l&&!u.find(e=>e[0]==="traceparent")&&e.push(["traceparent",l]);let t=u.find(e=>e[0]==="baggage"&&p(e[1]));return o&&!t&&e.push(["baggage",o]),e}{let e="sentry-trace"in u?u["sentry-trace"]:undefined;let t="traceparent"in u?u.traceparent:undefined;let r="baggage"in u?u.baggage:undefined;let s=r?Array.isArray(r)?[...r]:[r]:[];let i=r&&(Array.isArray(r)?r.find(e=>p(e)):p(r));o&&!i&&s.push(o);let c={...u,"sentry-trace":e??a,baggage:s.length>0?s.join(","):undefined};return n&&l&&!t&&(c.traceparent=l),c}}function m(e,t){if(t.response){(0,n.N8)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:n.TJ,message:"internal_error"});e.end()}function p(e){return e.split(",").some(e=>e.trim().startsWith(a.sv))}function g(e){return typeof Headers!=="undefined"&&(0,s.tH)(e,Headers)}function y(e,t,r){if(e.startsWith("data:")){let n=(0,u.zm)(e);return{name:`${t} ${n}`,attributes:v(e,undefined,t,r)}}let n=(0,u.kg)(e);let s=n?(0,u.CH)(n):e;return{name:`${t} ${s}`,attributes:v(e,n,t,r)}}function v(e,r,n,s){let i={url:(0,u.zm)(e),type:"fetch","http.method":n,[t.JD]:s,[t.uT]:"http.client"};return r&&(!(0,u.nt)(r)&&(i["http.url"]=(0,u.zm)(r.href),i["server.address"]=r.host),r.search&&(i["http.query"]=r.search),r.hash&&(i["http.fragment"]=r.hash)),i}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},705025(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>t});var e=__webpack_require__(142827);function t(t,r){return(0,e.E8)(t,e=>{return typeof e=="string"&&r.test(e)})}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},706524(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>o});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(382906);var n=__webpack_require__(335562);var s=__webpack_require__(879771);var i=__webpack_require__(676358);let a=(0,e.KC)([n.y,r.s3]);let o=(0,t.kp)(i.Wu,(0,e.Ik)({type:(0,s.eu)(i.Z6.Form),children:(0,e.YO)(a),name:(0,e.Yj)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},709356(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>o,d:()=>a});var e=__webpack_require__(563023);var t=__webpack_require__(901889);let r="_sentryScope";let n="_sentryIsolationScope";function s(e){try{let r=t.O.WeakRef;if(typeof r=="function")return new r(e)}catch{}return e}function i(e){if(!e)return undefined;if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return undefined}return e}function a(t,i,a){t&&((0,e.my)(t,n,s(a)),(0,e.my)(t,r,i))}function o(e){return{scope:e[r],isolationScope:i(e[n])}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},711403(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>r});var e=__webpack_require__(577102);var t=__webpack_require__(100873);let r=(0,e._C)(()=>{return{name:"FeatureFlags",processEvent(e,r,n){return(0,t.Nf)(e)},addFeatureFlag(e,r){(0,t.Ee)(e,r),(0,t.si)(e,r)}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},713966(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{LE:()=>a,V7:()=>o,lu:()=>l});var e=__webpack_require__(98154);var t=__webpack_require__(381699);var r=__webpack_require__(260516);var n=__webpack_require__(504855);var s=__webpack_require__(682631);function i(e,t){if(!t)return e;let r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:undefined},e}function a(e,n,s,i){let a=(0,r.Cj)(s);let o={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!i&&n&&{dsn:(0,t.SB)(n)}};let l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,r.h4)(o,[l])}function o(e,t,n,s){let a=(0,r.Cj)(n);let o=e.type&&e.type!=="replay_event"?e.type:"event";i(e,n?.sdk);let l=(0,r.n2)(e,a,s,t);delete e.sdkProcessingMetadata;let c=[{type:o},e];return(0,r.h4)(l,[c])}function l(i,a){function o(e){return!!e.trace_id&&!!e.public_key}let l=(0,e.k1)(i[0]);let c=a?.getDsn();let u=a?.getOptions().tunnel;let h={sent_at:new Date().toISOString(),...o(l)&&{trace:l},...!!u&&c&&{dsn:(0,t.SB)(c)}};let{beforeSendSpan:d,ignoreSpans:f}=a?.getOptions()||{};let m=f?.length?i.filter(e=>!(0,n.e)((0,s.et)(e),f)):i;let p=i.length-m.length;p&&a?.recordDroppedEvent("before_send","span",p);let g=d?e=>{let t=(0,s.et)(e);let r=d(t);return!r?((0,s.xl)(),t):(0,r)}:s.et;let y=[];for(let e of m){let t=g(e);t&&y.push((0,r.y5)(t))}return(0,r.h4)(h,y)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},721127(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cw:()=>r,c9:()=>n,dO:()=>t,pr:()=>e});let e="APP_INIT_ALIVE";let t="ALIVE";let r="BACKGROUND_INITIALIZED";let n="START_UI_SYNC"}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},722837(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;var t;__webpack_require__.d(__webpack_exports__,{h:()=>e}),(t=e||(e={}))["Alert"]="alert",t["Confirmation"]="confirmation",t["Prompt"]="prompt"}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_exports__,__webpack_require__}))()},735641(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Vu:()=>m,dm:()=>s});var e=__webpack_require__(123532);var t=__webpack_require__(682631);var r=__webpack_require__(118840);var n=__webpack_require__(301170);let s=[/^https:\/\/[a-z0-9.-]+\.(?:[a-z0-9]+-)?api\.cx\.metamask\.io(?:[/?#]|$)/u];let i;let a=new Map;function o(e){return s.some(t=>t.test(e))}function l(){try{let r=(0,t.Bk)();if(r)return r.spanContext().traceId||undefined;let{traceId:n}={...(0,e.rm)().getPropagationContext(),...(0,e.o5)().getPropagationContext()};return n||undefined}catch{return undefined}}function c(e){return`consensys-request-id=${e},consensys-application=${"metamask-extension"}`}function u(e){return typeof Request!=="undefined"&&e instanceof Request}function h(e){let t=new Headers;if(!e)return t;if(typeof Headers!=="undefined"&&e instanceof Headers)e.forEach((e,r)=>t.append(r,e));else if(Array.isArray(e))for(let r of e){let[e,n]=r;n!==undefined&&n!==null&&t.append(e,String(n))}else if(typeof e=="object")for(let[r,n]of Object.entries(e))n!==undefined&&n!==null&&t.append(r,String(n));return t}function d(e,{requestId:t}){let[r,n]=e;let s=h(u(r)?r.headers:undefined);return h(n?.headers).forEach((e,t)=>{s.set(t,e)}),s.append("baggage",c(t)),s}function f(e,t){if(a.has(e)){a.get(e)!==t&&a.set(e,null);return}if(a.set(e,t),a.size<=100)return;let r=a.keys().next().value;r&&a.delete(r)}function m({log:e}){return{name:"ConsensysTracePropagation",afterAllSetup:()=>{(0,r.ur)(t=>{if(t.endTimestamp!==undefined)return;let r=t.fetchData?.url;if(!r||!o(r))return;try{let e=(0,(0,n.A)());i=e;let r=l();r&&f(r,e);let s=d(t.args,{requestId:e});t.args[1]=t.args[1]||{},t.args[1].headers=s}catch(t){e("Failed to propagate trace headers",t)}})},processEvent:(e,t,r)=>{let n=e.contexts?.trace?.trace_id;if(n){e.tags={...e.tags,otelTraceId:n};let t=a.get(n);t&&(e.tags={...e.tags,consensysRequestId:t})}return e}}}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},736733(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Qp:()=>n,g8:()=>r,zW:()=>t});var e=__webpack_require__(166105);function t(t){if(e.Lq.includes(t))return!0;let r=t.split(".").pop();return e.Lq.includes(r)}function r(e){return e.includes("Stream")}function n(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:(0,Array.isArray(e))?e.flatMap(e=>n(e,t)):(0,typeof e!=="object"||!e)?[]:(0,"role"in e&&typeof e.role=="string")?[e]:(0,"parts"in e)?[{...e,role:t}]:(0,[{role:t,content:e}])}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},745085(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Array.isArray(e)&&e.length>0}function t(e){return e===null||e===undefined}function r(e){return Boolean(e)&&typeof e=="object"&&!Array.isArray(e)}__webpack_require__.d(__webpack_exports__,{EI:()=>e,Gv:()=>r,Qd:()=>o,VM:()=>s,hX:()=>t,i5:()=>n});let n=(e,t)=>Object.hasOwnProperty.call(e,t);function s(e){return Object.getOwnPropertyNames(e)}var i;var a;(a=i=i||(i={}))[a["Null"]=4]="Null",a[a["Comma"]=1]="Comma",a[a["Wrapper"]=1]="Wrapper",a[a["True"]=4]="True",a[a["False"]=5]="False",a[a["Quote"]=1]="Quote",a[a["Colon"]=1]="Colon",a[a["Date"]=24]="Date";function o(e){if(typeof e!=="object"||e===null)return!1;try{let t=e;while(Object.getPrototypeOf(t)!==null)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_exports__,__webpack_require__}))()},747170(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>l});var e=__webpack_require__(123532);var t=__webpack_require__(682631);var r=__webpack_require__(396102);var n=__webpack_require__(392316);var s=__webpack_require__(306981);var i=__webpack_require__(484413);var a=__webpack_require__(994398);var o=__webpack_require__(19727);function l(l){let c;(0,o.c4)(l)&&(c=(0,s.zf)()*1e3);let u=(0,o.Dg)();if(!u)return;i.T&&r.Yz.log(`[Profiling] started profiling span: ${(0,t.et)(l).description}`);let h=(0,n.eJ)();let d=null;async function f(){if(!l||!u)return;if(d){i.T&&r.Yz.log("[Profiling] profile for:",(0,t.et)(l).description,"already exists, returning early");return}return u.stop().then(e=>{if(m&&(a.jf.clearTimeout(m),m=undefined),i.T&&r.Yz.log(`[Profiling] stopped profiling of span: ${(0,t.et)(l).description}`),!e){i.T&&r.Yz.log(`[Profiling] profiler returned null profile for: ${(0,t.et)(l).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}d=e,(0,o.DE)(h,e)}).catch(e=>{i.T&&r.Yz.log("[Profiling] error while stopping profiler:",e)})}(0,e.o5)().setContext("profile",{profile_id:h,start_timestamp:c});let m=a.jf.setTimeout(()=>{i.T&&r.Yz.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,t.et)(l).description),f()},o.TD);let p=l.end.bind(l);function g(){return!l?p():(f().then(()=>{p()},()=>{p()}),l)}l.end=g}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},750628(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>l});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r={};function n(e){return!r[e]&&(r[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),r[e]}let s={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function i(e,t){let r=e.format(t).replace(/\u200E/g,""),[,n,s,i,a,o,l,c]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r);return[i,n,s,a,o,l,c]}function a(t,r){let n=t.formatToParts(r);let i=[];for(let t=0;t<n.length;t++){let{type:r,value:a}=n[t];let o=s[r];r==="era"?i[o]=a:!(0,e.b0)(o)&&(i[o]=parseInt(a,10))}return i}let o={};class l extends t.A{static create(e){return!o[e]&&(o[e]=new l(e)),o[e]}static resetCache(){o={},r={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=l.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return(0,e.wG)(t,r,n,this.name)}formatOffset(t,r){return(0,e.xS)(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let s=n(this.name);let[o,l,c,u,h,d,f]=s.formatToParts?a(s,r):i(s,r);u==="BC"&&(o=-Math.abs(o)+1);let m=(0,e.JZ)({year:o,month:l,day:c,hour:h===24?0:h,minute:d,second:f,millisecond:0});let p=+r;let g=p%1e3;return(m-(p-=g>=0?g:1e3+g))/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},754255(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]";var t="[Circular]";var r=[];var n=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(e,t,i,a){var l;a===void 0&&(a=s()),o(e,"",0,[],undefined,0,a);try{l=n.length===0?JSON.stringify(e,t,i):JSON.stringify(e,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(r.length!==0){var c=r.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function a(e,t,s,i){var a=Object.getOwnPropertyDescriptor(i,s);a.get!==undefined?a.configurable?(Object.defineProperty(i,s,{value:e}),r.push([i,s,t,a])):n.push([t,s,e]):(i[s]=e,r.push([i,s,t]))}function o(r,n,s,i,l,c,u){var h;if(c+=1,typeof r=="object"&&r!==null){for(h=0;h<i.length;h++)if(i[h]===r){a(t,r,n,l);return}if(u.depthLimit!==void 0&&c>u.depthLimit||u.edgesLimit!==void 0&&s+1>u.edgesLimit){a(e,r,n,l);return}if(i.push(r),Array.isArray(r))for(h=0;h<r.length;h++)o(r[h],h,h,i,r,c,u);else{var d=Object.keys(r);for(h=0;h<d.length;h++){var f=d[h];o(r[f],f,h,i,r,c,u)}}i.pop()}}function l(e,t){return e<t?-1:(0,e>t)?1:(0,0)}function c(e,t,i,a){a===void 0&&(a=s());var o=u(e,"",0,[],undefined,0,a)||e;var l;try{l=n.length===0?JSON.stringify(o,t,i):JSON.stringify(o,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(r.length!==0){var c=r.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function u(n,s,i,o,c,h,d){var f;if(h+=1,typeof n=="object"&&n!==null){for(f=0;f<o.length;f++)if(o[f]===n){a(t,n,s,c);return}try{if(typeof n.toJSON=="function")return}catch(e){return}if(d.depthLimit!==void 0&&h>d.depthLimit||d.edgesLimit!==void 0&&i+1>d.edgesLimit){a(e,n,s,c);return}if(o.push(n),Array.isArray(n))for(f=0;f<n.length;f++)u(n[f],f,f,o,n,h,d);else{var m={};var p=Object.keys(n).sort(l);for(f=0;f<p.length;f++){var g=p[f];u(n[g],g,f,o,n,h,d),m[g]=n[g]}if(c===void 0)return m;r.push([c,s,n]),c[s]=m}o.pop()}}function h(e){return e=e!==void 0?e:function(e,t){return t},function(t,r){if(n.length>0)for(var s=0;s<n.length;s++){var i=n[s];if(i[1]===t&&i[0]===r){r=i[2],n.splice(s,1);break}}return e.call(this,t,r)}}}}).call(__webpack_require__._LM_("@metamask/rpc-errors>fast-safe-stringify",{module,__webpack_require__}))()},760184(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cv:()=>k,I4:()=>y,IV:()=>v,Ky:()=>f,Lo:()=>d,Ph:()=>g,Sh:()=>m,UG:()=>h,mu:()=>_,nF:()=>w,qI:()=>u,vw:()=>p});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(661330);var n=__webpack_require__(456895);var s=__webpack_require__(896639);let{memoize:i}=n;let a=/^(?:0x)?[0-9a-f]+$/iu;let o=/^0x[0-9a-f]+$/iu;let l=/^0x[0-9a-f]{40}$/u;let c=/^0x[0-9a-fA-F]{40}$/u;(0,e.T1)((0,t.Yj)(),a);let u=(0,e.T1)((0,t.Yj)(),o);(0,e.T1)((0,t.Yj)(),l);let h=(0,e.T1)((0,t.Yj)(),c);function d(e){return(0,typeof e=="string")&&a.test(e)}function f(e){return(0,typeof e=="string")&&o.test(e)}function m(e){return(0,typeof e=="string")&&l.test(e)}function p(e){return(0,typeof e=="string")&&c.test(e)}function g(e){(0,s.vA)(d(e),"Value must be a hexadecimal string.")}function y(e){(0,s.vA)(f(e),'Value must be a hexadecimal string, starting with "0x".')}let v=i(function(e){(0,s.vA)(p(e),"Invalid hex address.");let t=w(e).toLowerCase();let n=(0,r.lY)(t);let{length:i}=t;let a=new Array(i);for(let e=0;e<i;e++){let r=e>>1;let s=e&1;let i=n[r];let o=s===0?i>>4:i&15;a[e]=o>=8?t[e].toUpperCase():t[e]}return`0x${a.join("")}`});let b=i(function(e){return!p(e)?!1:(0,v(e)===e)});let k=i(function(e){return m(e)||b(e)});function _(e){return e.startsWith("0x")?e:(0,e.startsWith("0X"))?`0x${e.substring(2)}`:(0,`0x${e}`)}function w(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):(0,e)}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},761788(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ef:()=>t,u1:()=>r}),__webpack_require__(762565);var e=__webpack_require__(745085);function t(e){return typeof e=="object"&&e!==null&&"message"in e}function r(r){return t(r)&&typeof r.message=="string"?r.message:(0,(0,e.hX)(r))?"":(0,String(r))}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},762565(__unused_webpack___webpack_module__,__unused_webpack___webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__(178430)}}).call(__webpack_require__._LM_("@metamask/utils>pony-cause",{__webpack_require__}))()},765698(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{j:()=>e});let e=__webpack_require__(901889).O}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},768571(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>t});var e=__webpack_require__(765698);let t=t=>{e.j.document?.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},772879(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>l});var e=__webpack_require__(765698);var t=__webpack_require__(57324);var r=__webpack_require__(51450);var n=__webpack_require__(234512);var s=__webpack_require__(314408);var i=__webpack_require__(768571);let a=[800,1800];let o=t=>{e.j.document?.prerendering?(0,i.I)(()=>o(t)):e.j.document?.readyState!=="complete"?addEventListener("load",()=>o(t),!0):setTimeout(t)};let l=(e,i={})=>{let l=(0,s.X)("TTFB");let c=(0,t.R)(e,l,a,i.reportAllChanges);o(()=>{let e=(0,n.z)();e&&(l.value=Math.max(e.responseStart-(0,r.b)(),0),l.entries=[e],c(!0))})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},774810(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r=null;class n extends t.A{static get utcInstance(){return r===null&&(r=new n(0)),r}static instance(e){return e===0?n.utcInstance:new n(e)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new n((0,e.gu)(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${(0,e.xS)(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":(0,`Etc/GMT${(0,e.xS)(-this.fixed,"narrow")}`)}offsetName(){return this.name}formatOffset(t,r){return(0,e.xS)(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},775158(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{GR:()=>A,Z7:()=>M,np:()=>E,ws:()=>C,zb:()=>j});var e=__webpack_require__(512986);var t=__webpack_require__(868766);var r=__webpack_require__(774810);var n=__webpack_require__(750628);var s=__webpack_require__(835060);var i=__webpack_require__(138292);var a=__webpack_require__(695358);function o(e,t=e=>e){return{regex:e,deser:([e])=>t((0,i.o_)(e))}}let l=String.fromCharCode(160);let c=`[ ${l}]`;let u=new RegExp(c,"g");function h(e){return e.replace(/\./g,"\\.?").replace(u,c)}function d(e){return e.replace(/\./g,"").replace(u," ").toLowerCase()}function f(e,t){return e===null?null:(0,{regex:RegExp(e.map(h).join("|")),deser:([r])=>e.findIndex(e=>d(r)===d(e))+t})}function m(t,r){return{regex:t,deser:([,t,r])=>(0,e.gu)(t,r),groups:r}}function p(e){return{regex:e,deser:([e])=>e}}function g(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function y(t,r){let n=(0,i.dO)(r),s=(0,i.dO)(r,"{2}"),a=(0,i.dO)(r,"{3}"),l=(0,i.dO)(r,"{4}"),c=(0,i.dO)(r,"{6}"),u=(0,i.dO)(r,"{1,2}"),h=(0,i.dO)(r,"{1,3}"),d=(0,i.dO)(r,"{1,6}"),y=(0,i.dO)(r,"{1,9}"),v=(0,i.dO)(r,"{2,4}"),b=(0,i.dO)(r,"{4,6}"),k=e=>({regex:RegExp(g(e.val)),deser:([e])=>e,literal:!0});let _=(i=>{if(t.literal)return k(i);switch(i.val){case"G":return f(r.eras("short"),0);case"GG":return f(r.eras("long"),0);case"y":return o(d);case"yy":return o(v,e.fT);case"yyyy":return o(l);case"yyyyy":return o(b);case"yyyyyy":return o(c);case"M":return o(u);case"MM":return o(s);case"MMM":return f(r.months("short",!0),1);case"MMMM":return f(r.months("long",!0),1);case"L":return o(u);case"LL":return o(s);case"LLL":return f(r.months("short",!1),1);case"LLLL":return f(r.months("long",!1),1);case"d":return o(u);case"dd":return o(s);case"o":return o(h);case"ooo":return o(a);case"HH":return o(s);case"H":return o(u);case"hh":return o(s);case"h":return o(u);case"mm":return o(s);case"m":return o(u);case"q":return o(u);case"qq":return o(s);case"s":return o(u);case"ss":return o(s);case"S":return o(h);case"SSS":return o(a);case"u":return p(y);case"uu":return p(u);case"uuu":return o(n);case"a":return f(r.meridiems(),0);case"kkkk":return o(l);case"kk":return o(v,e.fT);case"W":return o(u);case"WW":return o(s);case"E":case"c":return o(n);case"EEE":return f(r.weekdays("short",!1),1);case"EEEE":return f(r.weekdays("long",!1),1);case"ccc":return f(r.weekdays("short",!0),1);case"cccc":return f(r.weekdays("long",!0),1);case"Z":case"ZZ":return m(new RegExp(`([+-]${u.source})(?::(${s.source}))?`),2);case"ZZZ":return m(new RegExp(`([+-]${u.source})(${s.source})?`),2);case"z":return p(/[a-z_+-/]{1,256}?/i);case" ":return p(/[^\S\n\r]/);default:return k(i)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return _.token=t,_}let v={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function b(e,t,r){let{type:n,value:s}=e;if(n==="literal"){let e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}let i=t[n];let a=n;n==="hour"&&(a=t.hour12!=null?t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?"hour12":"hour24":r.hour12?"hour12":"hour24");let o=v[a];return(typeof o=="object"&&(o=o[i]),o)?{literal:!1,val:o}:(0,undefined)}function k(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}function _(t,r,n){let s=t.match(r);if(!s)return[s,{}];{let t={};let r=1;for(let i in n)if((0,e.mQ)(n,i)){let e=n[i],a=e.groups?e.groups+1:1;!e.literal&&e.token&&(t[e.token.val[0]]=e.deser(s.slice(r,r+a))),r+=a}return[s,t]}}function w(t){let s=null;let i;return!(0,e.b0)(t.z)&&(s=n.A.create(t.z)),!(0,e.b0)(t.Z)&&(!s&&(s=new r.A(t.Z)),i=t.Z),!(0,e.b0)(t.q)&&(t.M=(t.q-1)*3+1),!(0,e.b0)(t.h)&&(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),!(0,e.b0)(t.u)&&(t.S=(0,e.m3)(t.u)),[Object.keys(t).reduce((e,r)=>{let n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(e[n]=t[r]),e},{}),s,i]}let S=null;function T(){return!S&&(S=s.A.fromMillis(0x16a2e5618e3)),S}function x(e,r){if(e.literal)return e;let n=M(t.A.macroTokenToFormatOpts(e.val),r);return n==null||n.includes(undefined)?e:(0,n)}function E(e,t){return Array.prototype.concat(...e.map(e=>x(e,t)))}class j{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=E(t.A.parseFormat(r),e),this.units=this.tokens.map(t=>y(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=k(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(t){if(!this.isValid)return{input:t,tokens:this.tokens,invalidReason:this.invalidReason};{let[r,n]=_(t,this.regex,this.handlers),[s,i,o]=n?w(n):[null,null,undefined];if((0,e.mQ)(n,"a")&&(0,e.mQ)(n,"H"))throw new a.gN("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:s,zone:i,specificOffset:o}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function A(e,t,r){return new j(e,r).explainFromTokens(t)}function C(e,t,r){let{result:n,zone:s,specificOffset:i,invalidReason:a}=A(e,t,r);return[n,s,i,a]}function M(e,r){if(!e)return null;let n=t.A.create(r,e).dtFormatter(T());let s=n.formatToParts();let i=n.resolvedOptions();return s.map(t=>b(t,e,i))}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},777544(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Kc:()=>e,L5:()=>t,VJ:()=>r});let e=Object.freeze({"endowment:network-access":"endowment:network-access","endowment:transaction-insight":"endowment:transaction-insight","endowment:cronjob":"endowment:cronjob","endowment:ethereum-provider":"endowment:ethereum-provider","endowment:rpc":"endowment:rpc","endowment:webassembly":"endowment:webassembly","endowment:lifecycle-hooks":"endowment:lifecycle-hooks","endowment:messenger":"endowment:messenger","endowment:multichain-provider":"endowment:multichain-provider","endowment:page-home":"endowment:page-home","endowment:page-settings":"endowment:page-settings","endowment:signature-insight":"endowment:signature-insight","endowment:name-lookup":"endowment:name-lookup","endowment:assets":"endowment:assets","endowment:protocol":"endowment:protocol","endowment:keyring":"endowment:keyring"});let t=Object.freeze({});let r=Object.freeze({"endowment:caip25":"eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps/issues/990."});Object.freeze(["endowment:caip25"])}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},778552(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(396102);var r=__webpack_require__(676108);var n=__webpack_require__(865961);function s(s,i,a){if(!(0,r.f)(s))return[!1];let o;let l;typeof s.tracesSampler=="function"?(l=s.tracesSampler({...i,inheritOrSampleWith:e=>{return typeof i.parentSampleRate=="number"?i.parentSampleRate:(0,typeof i.parentSampled=="boolean")?Number(i.parentSampled):(0,e)}}),o=!0):i.parentSampled!==undefined?l=i.parentSampled:s.tracesSampleRate!==void 0&&(l=s.tracesSampleRate,o=!0);let c=(0,n.i)(l);if(c===undefined)return e.T&&t.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(l)} of type ${JSON.stringify(typeof l)}.`),[!1];if(!c)return e.T&&t.Yz.log(`[Tracing] Discarding transaction because ${typeof s.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,c,o];let u=a<c;return!u&&e.T&&t.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(l)})`),[u,c,o]}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},780094(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>e});class e{#e;#t=new Map;constructor(e,t={},r=2e4){for(let[r,n]of(this.#e=e,Object.entries(t))){let e=new Map;for(let t of n){let n=[];let s=(...e)=>{n.push(e)};this.#r(r,t).addListener(s),e.set(t,{listener:s,args:n})}this.#t.set(r,e)}this.#n(r)}#n(e){setTimeout(()=>{for(let[t,r]of this.#t)for(let[n,{args:s}]of r){let r=`ExtensionLazyListener: Possible memory leak detected. The event "${t}.${n}" has been listened to, but no application code has added a listener after ${e}ms. There are currently ${s.length} buffered calls. If you are a developer of this extension, please ensure that you have added a listener for this event. If you are a user of this extension, please report this warning to the developers of the extension.`;1&&console.warn(r)}},e)}#r(e,t){return this.#e[e][t]}addListener(e,t,r){let n=this.#r(e,t);n.addListener(r);let s=this.#t.get(e);if(s){let i=s.get(t);if(i){n.removeListener(i.listener),s.delete(t),s.size===0&&this.#t.delete(e);let{args:a}=i;for(let o=0,{length:l}=a;o<l;o++)try{if(r(...a[o]),!n.hasListener(r)){let r=o+1;r!==l&&(a.splice(0,r),s.set(t,i),this.#t.set(e,s),n.addListener(i.listener));break}}catch(c){let r=o+1;throw r!==l&&(a.splice(0,r),s.set(t,i),this.#t.set(e,s),n.addListener(i.listener)),c}}}}once(e,t){return new Promise(r=>{let n=this.#r(e,t);let s=this.#t.get(e);if(s){let i=s.get(t);let a=i?.args.length;if(a){r(i.args.shift()),n.removeListener(i.listener),a===1&&(s.delete(t),s.size===0&&this.#t.delete(e));return}}let i=(...e)=>{n.removeListener(i),r(e)};n.addListener(i)})}}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},784225(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$l:()=>s,Ej:()=>a,Ie:()=>r,T1:()=>i,YP:()=>o});var e=__webpack_require__(356583);var t=__webpack_require__(244231);function r(e){return o(e,"empty",t=>{let r=n(t);return r===0||`Expected an empty ${e.type} but received one with a size of \`${r}\``})}function n(e){return e instanceof Map||e instanceof Set?e.size:(0,e.length)}function s(e){return o(e,"nonempty",t=>{return n(t)>0||`Expected a nonempty ${e.type} but received an empty one`})}function i(e,t){return o(e,"pattern",r=>{return t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`})}function a(e,t,r=t){let n=`Expected a ${e.type}`;let s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return o(e,"size",e=>{if(typeof e=="number"||e instanceof Date)return t<=e&&e<=r||`${n} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:i}=e;return t<=i&&i<=r||`${n} with a size ${s} but received one with a size of \`${i}\``}let{length:i}=e;return t<=i&&i<=r||`${n} with a length ${s} but received one with a length of \`${i}\``})}function o(r,n,s){return new e._k({...r,*refiner(e,i){yield*r.refiner(e,i);let a=s(e,i);for(let s of(0,t.RF)(a,i,r,e))yield{...s,refinement:n}}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},787631(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Gu:()=>r,eR:()=>s,kS:()=>n});var e=__webpack_require__(108120);var t=__webpack_require__(480021);function r(){return globalThis.stateHooks?.getSentryState?.()||{}}async function n(){let n=(0,e.P)();if(n.ci&&n.sentry?.forceEnable)return{analyticsId:undefined,optedIn:!0,completedMetaMetricsOnboarding:!0};let o=r();if(o.state||o.persistedState)return s(o);try{let e=await globalThis.stateHooks.getPersistedState({reportErrors:!1});return i(e)}catch(e){(0,t.wQ)("Error retrieving persisted state, falling back to backup",e);try{let{getBackupState:e}=globalThis.stateHooks;if(!e)return null;let t=await e();return a(t)}catch(e){return(0,t.wQ)("Error retrieving backup state",e),null}}}function s(e){if(e.persistedState)return i(e.persistedState);if(e.state){let t=e.state;return"metamask"in t&&t.metamask!==undefined?o(t.metamask):(0,l(t))}return null}function i(e){return l(e?.data)}function a(e){return l(e)}function o(e){let{analyticsId:t,completedMetaMetricsOnboarding:r,optedIn:n}=e;return{analyticsId:typeof t=="string"?t:undefined,optedIn:n===!0,completedMetaMetricsOnboarding:r===!0}}function l(e){let t=u(e)?e:{};let r=c(t.AnalyticsController);let n=c(t.MetaMetricsController);let{analyticsId:s,optedIn:i}=r??{};return{analyticsId:typeof s=="string"?s:undefined,optedIn:i===!0,completedMetaMetricsOnboarding:n?.completedMetaMetricsOnboarding===!0}}function c(e){return u(e)?e:undefined}function u(e){return Boolean(e)&&typeof e=="object"}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},788241(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{FS:()=>r,IT:()=>n,Z:()=>s,eS:()=>a,kw:()=>i,oW:()=>o});var e=__webpack_require__(377271);var t=__webpack_require__(550664);function r(e){return e.includes("messages")?"chat":(0,e.includes("completions"))?"text_completion":(0,e.includes("generateContent"))?"generate_content":(0,e.includes("models"))?"models":(0,e.includes("chat"))?"chat":(0,e.split(".").pop()||"unknown")}function n(e){return`gen_ai.${r(e)}`}function s(e,t){return e?`${e}.${t}`:t}function i(t,r,n,s,i){r!==undefined&&t.setAttributes({[e.v7]:r}),n!==undefined&&t.setAttributes({[e.kF]:n}),(r!==undefined||n!==undefined||s!==undefined||i!==undefined)&&t.setAttributes({[e.$M]:(r??0)+(n??0)+(s??0)+(i??0)})}function a(e){return typeof e=="string"?(0,t.Yp)(e):(0,Array.isArray(e))?JSON.stringify((0,t.Hz)(e)):(0,JSON.stringify(e))}function o(e){if(!Array.isArray(e))return{systemInstructions:undefined,filteredMessages:e};let t=e.findIndex(e=>e&&typeof e=="object"&&"role"in e&&e.role==="system");if(t===-1)return{systemInstructions:undefined,filteredMessages:e};let r=e[t];let n=typeof r.content=="string"?r.content:r.content!==undefined?JSON.stringify(r.content):undefined;return!n?{systemInstructions:undefined,filteredMessages:e}:(0,{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]})}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},793419(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>t});let e=new WeakMap;function t(t,r){try{return!e.get(t)&&e.set(t,new r),e.get(t)}catch(e){return new r}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},796213(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$g:()=>S,$z:()=>O,Ae:()=>C,BJ:()=>h,Ek:()=>j,F$:()=>b,HC:()=>_,Jf:()=>g,Ju:()=>u,OH:()=>z,OS:()=>R,PN:()=>d,Qe:()=>x,SB:()=>k,V8:()=>F,VS:()=>T,Vq:()=>E,Wf:()=>L,Wi:()=>N,XU:()=>n,YY:()=>r,Yb:()=>p,Yw:()=>D,ZL:()=>c,_:()=>I,_B:()=>f,_r:()=>B,dI:()=>M,eI:()=>o,fg:()=>w,gn:()=>a,ie:()=>P,jo:()=>l,jt:()=>$,og:()=>v,r1:()=>q,sf:()=>A,t8:()=>s,uQ:()=>y,x$:()=>i,yC:()=>H,yh:()=>m});var e=__webpack_require__(689132);var t=__webpack_require__(886418);let r="popup";let n="notification";let s="fullscreen";let i="sidepanel";let a="background";let o="popup.html";let l="sidepanel.html";let c="Brave";let u="Chrome";let h="Chromium";let d="CocCoc";let f="Edge";let m="EdgeAndroid";let p="Firefox";let g="Kiwi";let y="Lemur";let v="Maxthon";let b="Mises";let k="Opera";let _="Other";let w="Puffin";let S="QQBrowser";let T="Samsung";let x="Silk";let E="UCBrowser";let j="Vivaldi";let A="Whale";let C="Yandex";let M={ADMIN:"admin",DEVELOPMENT:"development",NORMAL:"normal",SIDELOAD:"sideload",OTHER:"other",UNKNOWN:"unknown"};let I={DESKTOP:"desktop",MOBILE:"mobile"};let R={ANDROID:"Android",IOS:"iOS",LINUX:"Linux",MACOS:"macOS",UNKNOWN:"unknown",WINDOWS:"Windows",OTHER:"Other"};let O={ADD_ETHEREUM_CHAIN:"wallet_addEthereumChain",ETH_ACCOUNTS:t.wq.eth_accounts,ETH_DECRYPT:"eth_decrypt",ETH_CHAIN_ID:"eth_chainId",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_GET_BLOCK_BY_NUMBER:"eth_getBlockByNumber",ETH_REQUEST_ACCOUNTS:"eth_requestAccounts",ETH_SEND_TRANSACTION:"eth_sendTransaction",ETH_SEND_RAW_TRANSACTION:"eth_sendRawTransaction",ETH_SIGN_TRANSACTION:"eth_signTransaction",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V1:"eth_signTypedData_v1",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",GET_PROVIDER_STATE:"metamask_getProviderState",LOG_WEB3_SHIM_USAGE:"metamask_logWeb3ShimUsage",PERSONAL_SIGN:"personal_sign",SEND_METADATA:"metamask_sendDomainMetadata",SWITCH_ETHEREUM_CHAIN:"wallet_switchEthereumChain",TRANSACTION:"transaction",WALLET_CREATE_SESSION:"wallet_createSession",WALLET_GET_CALLS_STATUS:"wallet_getCallsStatus",WALLET_GET_CAPABILITIES:"wallet_getCapabilities",WALLET_GET_SESSION:"wallet_getSession",WALLET_INVOKE_METHOD:"wallet_invokeMethod",WALLET_REQUEST_PERMISSIONS:"wallet_requestPermissions",WALLET_REVOKE_SESSION:"wallet_revokeSession",WALLET_SEND_CALLS:"wallet_sendCalls",WALLET_SESSION_CHANGED:"wallet_sessionChanged",WALLET_REQUEST_EXECUTION_PERMISSIONS:"wallet_requestExecutionPermissions",WALLET_GET_SUPPORTED_EXECUTION_PERMISSIONS:"wallet_getSupportedExecutionPermissions",WALLET_GET_GRANTED_EXECUTION_PERMISSIONS:"wallet_getGrantedExecutionPermissions",WATCH_ASSET:"wallet_watchAsset",WATCH_ASSET_LEGACY:"metamask_watchAsset",SNAP_DIALOG_ALERT:e.rW.alert,SNAP_DIALOG_CONFIRMATION:e.rW.confirmation,SNAP_DIALOG_PROMPT:e.rW.prompt,SNAP_DIALOG_DEFAULT:e.rW.default,HYPERLIQUID_REFERRAL_CONSENT:"hyperliquid_referral_consent",ASTERDEX_REFERRAL_CONSENT:"asterdex_referral_consent",GMX_REFERRAL_CONSENT:"gmx_referral_consent"};let L=O.HYPERLIQUID_REFERRAL_CONSENT;let D=O.ASTERDEX_REFERRAL_CONSENT;let N=O.GMX_REFERRAL_CONSENT;let P={confirmAccountCreation:"snap_manageAccounts:confirmAccountCreation",confirmAccountRemoval:"snap_manageAccounts:confirmAccountRemoval",showSnapAccountRedirect:"snap_manageAccounts:showSnapAccountRedirect"};let z={[r]:"popupGasPollTokens",[n]:"notificationGasPollTokens",[s]:"fullScreenGasPollTokens",[i]:"sidePanelGasPollTokens",[a]:"none"};let $="metamask";let q=["pbbkamfgmaedccnfkmjcofcecjhfgldn","nkbihfbeogaeaoehlefnkodbefgpgknn","ljfoeinjpaedjfecbmggjgodbgkmjkjk","kmbhbcbadohhhgdgihejcicbgcehoaeg","ikkihjamdhfiojpdbnfllpjigpneipbc"];let H=["webextension-beta@metamask.io","webextension@metamask.io","webextension-flask@metamask.io"];let F="UNKNOWN";O.ETH_SIGN_TYPED_DATA,O.ETH_SIGN_TYPED_DATA_V1,O.ETH_SIGN_TYPED_DATA_V3,O.ETH_SIGN_TYPED_DATA_V4,O.PERSONAL_SIGN;let B="downloadMobileApp"}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},797999(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>r});var e=__webpack_require__(784225);var t=__webpack_require__(342672);function r(){return(0,e.YP)((0,t.Yj)(),"SVG",e=>{return!e.includes("<svg")?"Value is not a valid SVG.":(0,!0)})}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},805248(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>s,r:()=>n});var e=__webpack_require__(581327);var t=__webpack_require__(16905);var r=__webpack_require__(144008);let n={parse:e=>i(t.f.rpc.parse,e),invalidRequest:e=>i(t.f.rpc.invalidRequest,e),invalidParams:e=>i(t.f.rpc.invalidParams,e),methodNotFound:e=>i(t.f.rpc.methodNotFound,e),internal:e=>i(t.f.rpc.internal,e),server:e=>{if(!e||typeof e!=="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return i(t,e)},invalidInput:e=>i(t.f.rpc.invalidInput,e),resourceNotFound:e=>i(t.f.rpc.resourceNotFound,e),resourceUnavailable:e=>i(t.f.rpc.resourceUnavailable,e),transactionRejected:e=>i(t.f.rpc.transactionRejected,e),methodNotSupported:e=>i(t.f.rpc.methodNotSupported,e),limitExceeded:e=>i(t.f.rpc.limitExceeded,e)};let s={userRejectedRequest:e=>{return a(t.f.provider.userRejectedRequest,e)},unauthorized:e=>{return a(t.f.provider.unauthorized,e)},unsupportedMethod:e=>{return a(t.f.provider.unsupportedMethod,e)},disconnected:e=>{return a(t.f.provider.disconnected,e)},chainDisconnected:e=>{return a(t.f.provider.chainDisconnected,e)},custom:t=>{if(!t||typeof t!=="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:r,message:n,data:s}=t;if(!n||typeof n!=="string")throw new Error('"message" must be a nonempty string');return new e.B(r,n,s)}};function i(t,n){let[s,i]=o(n);return new e.G(t,s??(0,r.DW)(t),i)}function a(t,n){let[s,i]=o(n);return new e.B(t,s??(0,r.DW)(t),i)}function o(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&typeof t!=="string")throw new Error("Must specify string message.");return[t??undefined,r]}}return[]}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},805677(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(620697);var r=__webpack_require__(691576);let n=(0,e._C)((e={})=>{let n=e.limit||5;let s=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,a){let o=a.getOptions();(0,t.Q)(r.K8,o.stackParser,s,n,e,i)}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},814601(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{T:()=>e});let e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},818365(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==undefined))}function t(t){return r=>{let{key:n=null,...s}=r;return{type:t,props:e(s),key:n}}}__webpack_require__.d(__webpack_exports__,{K:()=>t})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_exports__,__webpack_require__}))()},821396(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Pt:()=>p,YG:()=>g,a9:()=>m,hT:()=>y,tC:()=>A,wv:()=>v});var e=__webpack_require__(396102);var t=__webpack_require__(6929);var r=__webpack_require__(814601);var n=__webpack_require__(879954);var s=__webpack_require__(19467);var i=__webpack_require__(702053);var a=__webpack_require__(515400);var o=__webpack_require__(772879);let l={};let c={};let u;let h;let d;let f;function m(e,t=!1){return T("cls",e,k,u,t)}function p(e,t=!1){return T("lcp",e,_,h,t)}function g(e){return T("ttfb",e,w,d)}function y(e){return T("inp",e,S,f)}function v(e,t){return E(e,t),!c[e]&&(x(e),c[e]=!0),j(e,t)}function b(n,s){let i=l[n];if(!i?.length)return;for(let a of i)try{a(s)}catch(s){r.T&&e.Yz.error(`Error while triggering instrumentation handler.
Type: ${n}
Name: ${(0,t.qQ)(a)}
Error:`,s)}}function k(){return(0,n.I)(e=>{b("cls",{metric:e}),u=e},{reportAllChanges:!0})}function _(){return(0,i.f)(e=>{b("lcp",{metric:e}),h=e},{reportAllChanges:!0})}function w(){return(0,o.C)(e=>{b("ttfb",{metric:e}),d=e})}function S(){return(0,s.r)(e=>{b("inp",{metric:e}),f=e})}function T(e,t,r,n,s=!1){E(e,t);let i;return!c[e]&&(i=r(),c[e]=!0),n&&t({metric:n}),j(e,t,s?i:undefined)}function x(e){let t={};e==="event"&&(t.durationThreshold=0),(0,a.l)(e,t=>{b(e,{entries:t})},t)}function E(e,t){l[e]=l[e]||[],l[e].push(t)}function j(e,t,r){return()=>{r&&r();let n=l[e];if(!n)return;let s=n.indexOf(t);s!==-1&&n.splice(s,1)}}function A(e){return"duration"in e}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},827284(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Lk:()=>S,M1:()=>A,Uk:()=>x,V4:()=>E,Y7:()=>C,hb:()=>j,nV:()=>T});var e=__webpack_require__(920938);var t=__webpack_require__(943924);var r=__webpack_require__(123532);var n=__webpack_require__(352158);var s=__webpack_require__(78463);var i=__webpack_require__(620772);var a=__webpack_require__(396102);var o=__webpack_require__(187474);var l=__webpack_require__(676108);var c=__webpack_require__(865961);var u=__webpack_require__(858481);var h=__webpack_require__(147687);var d=__webpack_require__(466737);var f=__webpack_require__(682631);var m=__webpack_require__(605816);var p=__webpack_require__(98154);var g=__webpack_require__(664746);var y=__webpack_require__(778552);var v=__webpack_require__(911216);var b=__webpack_require__(52018);var k=__webpack_require__(276435);var _=__webpack_require__(709356);let w="__SENTRY_SUPPRESS_TRACING__";function S(e,t){let n=R();if(n.startSpan)return n.startSpan(e,t);let s=I(e);let{forceTransaction:i,parentSpan:a,scope:l}=e;let c=l?.clone();return(0,r.v4)(c,()=>{return N(a)(()=>{let n=(0,r.o5)();let l=D(n,a);let c=e.onlyIfParent&&!l?new v.w:M({parentSpan:l,spanArguments:s,forceTransaction:i,scope:n});return(0,d.r)(n,c),(0,o.x)(()=>t(c),()=>{let{status:e}=(0,f.et)(c);c.isRecording()&&(!e||e==="ok")&&c.setStatus({code:k.TJ,message:"internal_error"})},()=>{c.end()})})})}function T(e,t){let n=R();if(n.startSpanManual)return n.startSpanManual(e,t);let s=I(e);let{forceTransaction:i,parentSpan:a,scope:l}=e;let c=l?.clone();return(0,r.v4)(c,()=>{return N(a)(()=>{let n=(0,r.o5)();let l=D(n,a);let c=e.onlyIfParent&&!l?new v.w:M({parentSpan:l,spanArguments:s,forceTransaction:i,scope:n});return(0,d.r)(n,c),(0,o.x)(()=>t(c,()=>c.end()),()=>{let{status:e}=(0,f.et)(c);c.isRecording()&&(!e||e==="ok")&&c.setStatus({code:k.TJ,message:"internal_error"})})})})}function x(e){let t=R();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=I(e);let{forceTransaction:s,parentSpan:i}=e;return(e.scope?t=>(0,r.v4)(e.scope,t):i!==undefined?e=>j(i,e):e=>e())(()=>{let t=(0,r.o5)();let a=D(t,i);return e.onlyIfParent&&!a?new v.w:(0,M({parentSpan:a,spanArguments:n,forceTransaction:s,scope:t}))})}let E=(n,s)=>{let a=(0,t.EU)();let o=(0,e.h)(a);if(o.continueTrace)return o.continueTrace(n,s);let{sentryTrace:l,baggage:c}=n;let u=(0,r.KU)();let h=(0,i.yD)(c);return u&&!(0,m.A9)(u,h?.org_id)?C(s):(0,(0,r.v4)(e=>{let t=(0,m.kM)(l,c);return e.setPropagationContext(t),(0,d.r)(e,undefined),s()}))};function j(e,t){let n=R();return n.withActiveSpan?n.withActiveSpan(e,t):(0,(0,r.v4)(r=>{return(0,d.r)(r,e||undefined),t(r)}))}function A(e){let t=R();return t.suppressTracing?t.suppressTracing(e):(0,(0,r.v4)(t=>{t.setSDKProcessingMetadata({[w]:!0});let r=e();return t.setSDKProcessingMetadata({[w]:undefined}),r}))}function C(e){return(0,r.v4)(t=>{return t.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,h.hY)()}),n.T&&a.Yz.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,e)})}function M({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!(0,l.f)()){let r=new v.w;if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,p.k1)(r)};(0,p.LZ)(r,e)}return r}let i=(0,r.rm)();let a;if(e&&!n)a=L(e,s,t),(0,f.Hu)(e,a);else if(e){let r=(0,p.k1)(e);let{traceId:n,spanId:i}=e.spanContext();let o=(0,f.pK)(e);a=O({traceId:n,parentSpanId:i,...t},s,o),(0,p.LZ)(a,r)}else{let{traceId:e,dsc:r,parentSpanId:n,sampled:o}={...i.getPropagationContext(),...s.getPropagationContext()};a=O({traceId:e,parentSpanId:n,...t},s,o),r&&(0,p.LZ)(a,r)}return(0,g.z)(a),(0,_.d)(a,s,i),a}function I(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,f.cI)(e.startTime),delete r.startTime,r}return t}function R(){let r=(0,t.EU)();return(0,e.h)(r)}function O(e,t,i){let o=(0,r.KU)();let l=o?.getOptions()||{};let{name:u=""}=e;let h={spanAttributes:{...e.attributes},spanName:u,parentSampled:i};o?.emit("beforeSampling",h,{decision:!1});let d=h.parentSampled??i;let f=h.spanAttributes;let m=t.getPropagationContext();let[p,g,v]=t.getScopeData().sdkProcessingMetadata[w]?[!1]:(0,y.Z)(l,{name:u,parentSampled:d,attributes:f,parentSampleRate:(0,c.i)(m.dsc?.sample_rate)},m.sampleRand);let k=new b.W({...e,attributes:{[s.i_]:"custom",[s.sy]:g!==undefined&&v?g:undefined,...f},sampled:p});return!p&&o&&(n.T&&a.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate","transaction")),o&&o.emit("spanStart",k),k}function L(e,t,n){let{spanId:s,traceId:i}=e.spanContext();let a=t.getScopeData().sdkProcessingMetadata[w]?!1:(0,f.pK)(e);let o=a?new b.W({...n,parentSpanId:s,traceId:i,sampled:a}):new v.w({traceId:i});(0,f.Hu)(e,o);let l=(0,r.KU)();return l&&(l.emit("spanStart",o),n.endTimestamp&&l.emit("spanEnd",o)),o}function D(e,t){if(t)return t;if(t===null)return undefined;let n=(0,d.f)(e);if(!n)return undefined;let s=(0,r.KU)();return(s?s.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,f.zU)(n):(0,n)}function N(e){return e!==undefined?t=>{return j(e,t)}:e=>e()}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},835060(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>B,R:()=>U});var e=__webpack_require__(600473);var t=__webpack_require__(317588);var r=__webpack_require__(603476);var n=__webpack_require__(991213);var s=__webpack_require__(868766);var i=__webpack_require__(774810);var a=__webpack_require__(912276);var o=__webpack_require__(512986);var l=__webpack_require__(232712);var c=__webpack_require__(78565);var u=__webpack_require__(210164);var h=__webpack_require__(775158);var d=__webpack_require__(686333);var f=__webpack_require__(891728);var m=__webpack_require__(695358);var p=__webpack_require__(14631);let g="Invalid DateTime";function y(e){return new p.A("unsupported zone",`the zone "${e.name}" is not supported`)}function v(e){return e.weekData===null&&(e.weekData=(0,d.C9)(e.c)),e.weekData}function b(e){return e.localWeekData===null&&(e.localWeekData=(0,d.C9)(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function k(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new B({...r,...t,old:r})}function _(e,t,r){let n=e-t*60*1e3;let s=r.offset(n);if(t===s)return[n,t];n-=(s-t)*60*1e3;let i=r.offset(n);return s===i?[n,s]:(0,[e-Math.min(s,i)*60*1e3,Math.max(s,i)])}function w(e,t){let r=new Date(e+=t*60*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function S(e,t,r){return _((0,o.JZ)(e),t,r)}function T(t,r){let n=t.o,s=t.c.year+Math.trunc(r.years),i=t.c.month+Math.trunc(r.months)+Math.trunc(r.quarters)*3,a={...t.c,year:s,month:i,day:Math.min(t.c.day,(0,o.L3)(s,i))+Math.trunc(r.days)+Math.trunc(r.weeks)*7},l=e.Ay.fromObject({years:r.years-Math.trunc(r.years),quarters:r.quarters-Math.trunc(r.quarters),months:r.months-Math.trunc(r.months),weeks:r.weeks-Math.trunc(r.weeks),days:r.days-Math.trunc(r.days),hours:r.hours,minutes:r.minutes,seconds:r.seconds,milliseconds:r.milliseconds}).as("milliseconds");let[c,u]=_((0,o.JZ)(a),n,t.zone);return l!==0&&(c+=l,u=t.zone.offset(c)),{ts:c,o:u}}function x(e,t,r,n,s,i){let{setZone:a,zone:o}=r;if((!e||Object.keys(e).length===0)&&!t)return B.invalid(new p.A("unparsable",`the input "${s}" can't be parsed as ${n}`));{let n=B.fromObject(e,{...r,zone:t||o,specificOffset:i});return a?n:n.setZone(o)}}function E(e,t,r=!0){return e.isValid?s.A.create(a.A.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function j(e,t){let r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=(0,o.CF)(e.c.year,r?6:4),t?(n+="-",n+=(0,o.CF)(e.c.month),n+="-"):n+=(0,o.CF)(e.c.month),n+=(0,o.CF)(e.c.day)}function A(e,t,r,n,s,i){let a=(0,o.CF)(e.c.hour);return t?(a+=":",a+=(0,o.CF)(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(a+=":")):a+=(0,o.CF)(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(a+=(0,o.CF)(e.c.second),(e.c.millisecond!==0||!n)&&(a+=".",a+=(0,o.CF)(e.c.millisecond,3))),s&&(e.isOffsetFixed&&e.offset===0&&!i?a+="Z":e.o<0?(a+="-",a+=(0,o.CF)(Math.trunc(-e.o/60)),a+=":",a+=(0,o.CF)(Math.trunc(-e.o%60))):(a+="+",a+=(0,o.CF)(Math.trunc(e.o/60)),a+=":",a+=(0,o.CF)(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}let C={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},M={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},I={ordinal:1,hour:0,minute:0,second:0,millisecond:0};let R=["year","month","day","hour","minute","second","millisecond"],O=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],L=["year","ordinal","hour","minute","second","millisecond"];function D(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new m.iq(e);return t}function N(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return D(e)}}function P(e){return!F[e]&&(H===undefined&&(H=r.A.now()),F[e]=e.offset(H)),F[e]}function z(e,t){let n=(0,l.q)(t.zone,r.A.defaultZone);if(!n.isValid)return B.invalid(y(n));let s=a.A.fromObject(t);let i,c;if((0,o.b0)(e.year))i=r.A.now();else{for(let t of R)(0,o.b0)(e[t])&&(e[t]=C[t]);let t=(0,d.EG)(e)||(0,d.nM)(e);if(t)return B.invalid(t);let r=P(n);[i,c]=S(e,r,n)}return new B({ts:i,zone:n,loc:s,o:c})}function $(e,t,r){let n=(0,o.b0)(r.round)?!0:r.round,s=(e,s)=>{return e=(0,o.GB)(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,s)},i=n=>{return!r.calendary?t.diff(e,n).get(n):(0,!t.hasSame(e,n)?t.startOf(n).diff(e.startOf(n),n).get(n):(0,0))};if(r.unit)return s(i(r.unit),r.unit);for(let e of r.units){let t=i(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,r.units[r.units.length-1])}function q(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let H;let F={};class B{constructor(e){let t=e.zone||r.A.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new p.A("invalid input"):null)||(!t.isValid?y(t):null);this.ts=(0,o.b0)(e.ts)?r.A.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,i]=[e.old.c,e.old.o];else{let r=(0,o.Et)(e.o)&&!e.old?e.o:t.offset(this.ts);s=(n=Number.isNaN((s=w(this.ts,r)).year)?new p.A("invalid input"):null)?null:s,i=n?null:r}this._zone=t,this.loc=e.loc||a.A.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new B({})}static local(){let[e,t]=q(arguments),[r,n,s,i,a,o,l]=t;return z({year:r,month:n,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static utc(){let[e,t]=q(arguments),[r,n,s,a,o,l,c]=t;return e.zone=i.A.utcInstance,z({year:r,month:n,day:s,hour:a,minute:o,second:l,millisecond:c},e)}static fromJSDate(e,t={}){let n=(0,o.$P)(e)?e.valueOf():NaN;if(Number.isNaN(n))return B.invalid("invalid input");let s=(0,l.q)(t.zone,r.A.defaultZone);return!s.isValid?B.invalid(y(s)):(0,new B({ts:n,zone:s,loc:a.A.fromObject(t)}))}static fromMillis(e,t={}){if((0,o.Et)(e))if(e<-864e13||e>864e13)return B.invalid("Timestamp out of range");else return new B({ts:e,zone:(0,l.q)(t.zone,r.A.defaultZone),loc:a.A.fromObject(t)});throw new m.Di(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if((0,o.Et)(e))return new B({ts:e*1e3,zone:(0,l.q)(t.zone,r.A.defaultZone),loc:a.A.fromObject(t)});throw new m.Di("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=(0,l.q)(t.zone,r.A.defaultZone);if(!n.isValid)return B.invalid(y(n));let s=a.A.fromObject(t);let i=(0,o.Fl)(e,N);let{minDaysInFirstWeek:c,startOfWeek:u}=(0,d._3)(i,s);let h=r.A.now(),f=!(0,o.b0)(t.specificOffset)?t.specificOffset:n.offset(h),p=!(0,o.b0)(i.ordinal),g=!(0,o.b0)(i.year),v=!(0,o.b0)(i.month)||!(0,o.b0)(i.day),b=g||v,k=i.weekYear||i.weekNumber;if((b||p)&&k)throw new m.gN("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&p)throw new m.gN("Can't mix ordinal dates with month/day");let _=k||i.weekday&&!b;let T,x,E=w(h,f);_?(T=O,x=M,E=(0,d.C9)(E,c,u)):p?(T=L,x=I,E=(0,d.d3)(E)):(T=R,x=C);let j=!1;for(let e of T){let t=i[e];(0,o.b0)(t)?j?i[e]=x[e]:i[e]=E[e]:j=!0}let A=(_?(0,d.WF)(i,c,u):p?(0,d.De)(i):(0,d.EG)(i))||(0,d.nM)(i);if(A)return B.invalid(A);let[D,P]=S(_?(0,d.WO)(i,c,u):p?(0,d.fZ)(i):i,f,n),z=new B({ts:D,zone:n,o:P,loc:s});return i.weekday&&b&&e.weekday!==z.weekday?B.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${z.toISO()}`):(0,!z.isValid)?B.invalid(z.invalid):(0,z)}static fromISO(e,t={}){let[r,n]=(0,u.lA)(e);return x(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,n]=(0,u.J5)(e);return x(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,n]=(0,u.a8)(e);return x(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if((0,o.b0)(e)||(0,o.b0)(t))throw new m.Di("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:s=null}=r,i=a.A.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),[l,c,u,d]=(0,h.ws)(i,e,t);return d?B.invalid(d):(0,x(l,c,r,`format ${t}`,e,u))}static fromString(e,t,r={}){return B.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,n]=(0,u._E)(e);return x(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new m.Di("need to specify a reason the DateTime is invalid");let n=e instanceof p.A?e:new p.A(e,t);if(!r.A.throwOnInvalid)return new B({invalid:n});throw new m.t(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=(0,h.Z7)(e,a.A.fromObject(t));return!r?null:r.map(e=>e?e.val:null).join("")}static expandFormat(e,t={}){return(0,h.np)(s.A.parseFormat(e),a.A.fromObject(t)).map(e=>e.val).join("")}static resetCache(){H=undefined,F={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?v(this).weekYear:NaN}get weekNumber(){return this.isValid?v(this).weekNumber:NaN}get weekday(){return this.isValid?v(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?b(this).weekday:NaN}get localWeekNumber(){return this.isValid?b(this).weekNumber:NaN}get localWeekYear(){return this.isValid?b(this).weekYear:NaN}get ordinal(){return this.isValid?(0,d.d3)(this.c).ordinal:NaN}get monthShort(){return this.isValid?n.A.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?n.A.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?n.A.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?n.A.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):(0,null)}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):(0,null)}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:(0,this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=(0,o.JZ)(this.c);let t=this.zone.offset(e-864e5);let r=this.zone.offset(e+864e5);let n=this.zone.offset(e-t*6e4);let s=this.zone.offset(e-r*6e4);if(n===s)return[this];let i=e-n*6e4;let a=e-s*6e4;let l=w(i,n);let c=w(a,s);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[k(this,{ts:i}),k(this,{ts:a})]:(0,[this])}get isInLeapYear(){return(0,o.U_)(this.year)}get daysInMonth(){return(0,o.L3)(this.year,this.month)}get daysInYear(){return this.isValid?(0,o.Ki)(this.year):NaN}get weeksInWeekYear(){return this.isValid?(0,o.ac)(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?(0,o.ac)(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:n}=s.A.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(i.A.instance(e),t)}toLocal(){return this.setZone(r.A.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=(0,l.q)(e,r.A.defaultZone)).equals(this.zone))return this;if(!e.isValid)return B.invalid(y(e));{let r=this.ts;if(t||n){let t=e.offset(this.ts);let n=this.toObject();[r]=S(n,t,e)}return k(this,{ts:r,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return k(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=(0,o.Fl)(e,N);let{minDaysInFirstWeek:r,startOfWeek:n}=(0,d._3)(t,this.loc);let s=!(0,o.b0)(t.weekYear)||!(0,o.b0)(t.weekNumber)||!(0,o.b0)(t.weekday),i=!(0,o.b0)(t.ordinal),a=!(0,o.b0)(t.year),l=!(0,o.b0)(t.month)||!(0,o.b0)(t.day),c=t.weekYear||t.weekNumber;if((a||l||i)&&c)throw new m.gN("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new m.gN("Can't mix ordinal dates with month/day");let u;s?u=(0,d.WO)({...(0,d.C9)(this.c,r,n),...t},r,n):(0,o.b0)(t.ordinal)?(u={...this.toObject(),...t},(0,o.b0)(t.day)&&(u.day=Math.min((0,o.L3)(u.year,u.month),u.day))):u=(0,d.fZ)({...(0,d.d3)(this.c),...t});let[h,f]=S(u,this.o,this.zone);return k(this,{ts:h,o:f})}plus(t){return!this.isValid?this:(0,k(this,T(this,e.Ay.fromDurationLike(t))))}minus(t){return!this.isValid?this:(0,k(this,T(this,e.Ay.fromDurationLike(t).negate())))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},s=e.Ay.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(s==="weeks")if(r){let e=this.loc.getStartOfWeek();let{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;return s==="quarters"&&(n.month=(Math.ceil(this.month/3)-1)*3+1),this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?s.A.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):g}toLocaleString(e=f.aY,t={}){return this.isValid?s.A.create(this.loc.clone(t),e).formatDateTime(this):g}toLocaleParts(e={}){return this.isValid?s.A.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;let i=e==="extended";let a=j(this,i);return a+="T",a+=A(this,i,t,r,n,s)}toISODate({format:e="extended"}={}){return!this.isValid?null:(0,j(this,e==="extended"))}toISOWeekDate(){return E(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:s=!1,format:i="extended"}={}){return!this.isValid?null:(0,(n?"T":"")+A(this,i==="extended",t,e,r,s))}toRFC2822(){return E(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return E(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return!this.isValid?null:(0,j(this,!0))}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),E(this,n,!0)}toSQL(e={}){return!this.isValid?null:(0,`${this.toSQLDate()} ${this.toSQLTime(e)}`)}toString(){return this.isValid?this.toISO():g}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:(0,`DateTime { Invalid, reason: ${this.invalidReason} }`)}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return e.Ay.invalid("created by diffing an invalid DateTime");let s={locale:this.locale,numberingSystem:this.numberingSystem,...n};let i=(0,o.El)(r).map(e.Ay.normalizeUnit),a=t.valueOf()>this.valueOf(),l=a?this:t,u=a?t:this,h=(0,c.A)(l,u,i,s);return a?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(B.now(),e,t)}until(e){return this.isValid?t.A.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;let n=e.valueOf();let s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||B.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"];let s=e.unit;return Array.isArray(e.unit)&&(n=e.unit,s=undefined),$(t,this.plus(r),{...e,numeric:"always",units:n,unit:s})}toRelativeCalendar(e={}){return!this.isValid?null:(0,$(e.base||B.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}))}static min(...e){if(!e.every(B.isDateTime))throw new m.Di("min requires all arguments be DateTimes");return(0,o.Iw)(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(B.isDateTime))throw new m.Di("max requires all arguments be DateTimes");return(0,o.Iw)(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:n=null,numberingSystem:s=null}=r,i=a.A.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return(0,h.GR)(i,e,t)}static fromStringExplain(e,t,r={}){return B.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){let{locale:r=null,numberingSystem:n=null}=t,s=a.A.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return new h.zb(s,e)}static fromFormatParser(e,t,r={}){if((0,o.b0)(e)||(0,o.b0)(t))throw new m.Di("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:s=null}=r,i=a.A.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});if(!i.equals(t.locale))throw new m.Di(`fromFormatParser called with a locale of ${i}, `+`but the format parser was created for ${t.locale}`);let{result:l,zone:c,specificOffset:u,invalidReason:h}=t.explainFromTokens(e);return h?B.invalid(h):(0,x(l,c,r,`format ${t.format}`,e,u))}static get DATE_SHORT(){return f.aY}static get DATE_MED(){return f.g5}static get DATE_MED_WITH_WEEKDAY(){return f.M$}static get DATE_FULL(){return f.Rb}static get DATE_HUGE(){return f.d6}static get TIME_SIMPLE(){return f.dz}static get TIME_WITH_SECONDS(){return f.hF}static get TIME_WITH_SHORT_OFFSET(){return f.oq}static get TIME_WITH_LONG_OFFSET(){return f.o}static get TIME_24_SIMPLE(){return f.My}static get TIME_24_WITH_SECONDS(){return f.cE}static get TIME_24_WITH_SHORT_OFFSET(){return f.dO}static get TIME_24_WITH_LONG_OFFSET(){return f.FX}static get DATETIME_SHORT(){return f.DN}static get DATETIME_SHORT_WITH_SECONDS(){return f.h0}static get DATETIME_MED(){return f.pM}static get DATETIME_MED_WITH_SECONDS(){return f.AX}static get DATETIME_MED_WITH_WEEKDAY(){return f.fO}static get DATETIME_FULL(){return f.Al}static get DATETIME_FULL_WITH_SECONDS(){return f.h3}static get DATETIME_HUGE(){return f.MC}static get DATETIME_HUGE_WITH_SECONDS(){return f.nt}}function U(e){if(B.isDateTime(e))return e;if(e&&e.valueOf&&(0,o.Et)(e.valueOf()))return B.fromJSDate(e);if(e&&typeof e=="object")return B.fromObject(e);throw new m.Di(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},835203(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(695358);class t{get type(){throw new e.jP}get name(){throw new e.jP}get ianaName(){return this.name}get isUniversal(){throw new e.jP}offsetName(t,r){throw new e.jP}formatOffset(t,r){throw new e.jP}offset(t){throw new e.jP}equals(t){throw new e.jP}get isValid(){throw new e.jP}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},837113(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{m:()=>r});var e=__webpack_require__(260516);var t=__webpack_require__(306981);function r(r,n,s){let i=[{type:"client_report"},{timestamp:s||(0,t.lu)(),discarded_events:r}];return(0,e.h4)(n?{dsn:n}:{},[i])}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},841456(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M:()=>r});var e=__webpack_require__(577102);var t=__webpack_require__(994398);let r=(0,e._C)(()=>{return{name:"HttpContext",preprocessEvent(e){if(!t.jf.navigator&&!t.jf.location&&!t.jf.document)return;let r=(0,t.AP)();let n={...r.headers,...e.request?.headers};e.request={...r,...e.request,headers:n}}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},847768(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Gv:()=>i,P4:()=>n,sY:()=>s,ti:()=>a});var e=__webpack_require__(396102);var t=__webpack_require__(814601);let r=Symbol.for("sentry__originalRequestBody");function n(e){return new URLSearchParams(e).toString()}function s(r,i=e.Yz){try{if(typeof r=="string")return[r];if(r instanceof URLSearchParams)return[r.toString()];if(r instanceof FormData)return[n(r)];if(!r)return[undefined]}catch(e){return t.T&&i.error(e,"Failed to serialize body",r),[undefined,"BODY_PARSE_ERROR"]}return t.T&&i.log("Skipping network body because of body type",r),[undefined,"UNPARSEABLE_BODY_TYPE"]}function i(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][r];return t!==undefined?t:(0,undefined)}return undefined}function a(r){let n;try{n=r.getAllResponseHeaders()}catch(n){return t.T&&e.Yz.error(n,"Failed to get xhr response headers",r),{}}return!n?{}:(0,n.split(`\r
`).reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},848294(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(396102);var r=__webpack_require__(306981);function n(n,s){let i=(0,e.KU)();let a=(0,e.rm)();if(!i)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:l=100}=i.getOptions();if(l<=0)return;let c={timestamp:(0,r.lu)(),...n};let u=o?(0,t.pq)(()=>o(c,s)):c;if(u===null)return;i.emit&&i.emit("beforeAddBreadcrumb",u,s),a.addBreadcrumb(u,l)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},848795(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>o,D:()=>l});var e=__webpack_require__(352158);var t=__webpack_require__(577102);var r=__webpack_require__(396102);var n=__webpack_require__(114765);var s=__webpack_require__(392316);var i=__webpack_require__(180121);let a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];let o=(0,t._C)((e={})=>{let t;return{name:"EventFilters",setup(r){t=c(e,r.getOptions())},processEvent(r,n,s){return!t&&(t=c(e,s.getOptions())),u(r,t)?null:r}}});let l=(0,t._C)((e={})=>{return{...o(e),name:"InboundFilters"}});function c(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:a],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function u(t,n){if(t.type){if(t.type==="transaction"){if(d(t,n.ignoreTransactions))return e.T&&r.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,s.$X)(t)}`),!0}}else{if(h(t,n.ignoreErrors))return e.T&&r.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,s.$X)(t)}`),!0;if(y(t))return e.T&&r.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${(0,s.$X)(t)}`),!0;if(f(t,n.denyUrls))return e.T&&r.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,s.$X)(t)}.
Url: ${g(t)}`),!0;if(!m(t,n.allowUrls))return e.T&&r.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,s.$X)(t)}.
Url: ${g(t)}`),!0}return!1}function h(e,t){return!t?.length?!1:(0,(0,n.G)(e).some(e=>(0,i.Xr)(e,t)))}function d(e,t){if(!t?.length)return!1;let r=e.transaction;return r?(0,i.Xr)(r,t):!1}function f(e,t){if(!t?.length)return!1;let r=g(e);return!r?!1:(0,i.Xr)(r,t)}function m(e,t){if(!t?.length)return!0;let r=g(e);return!r?!0:(0,i.Xr)(r,t)}function p(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function g(t){try{let e=[...t.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===undefined&&e.stacktrace?.frames?.length);let r=e?.stacktrace?.frames;return r?p(r):null}catch{return e.T&&r.Yz.error(`Cannot extract url for event ${(0,s.$X)(t)}`),null}}function y(e){return!e.exception?.values?.length?!1:(0,!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value))}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},855790(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$2:()=>h,Q_:()=>f,Vv:()=>p,Yj:()=>a,c9:()=>g,dY:()=>c,lG:()=>y});var e=__webpack_require__(6929);function t(t,r,n,s){let i={filename:t,function:r==="<anonymous>"?e.yF:r,in_app:!0};return n!==undefined&&(i.lineno=n),s!==undefined&&(i.colno=s),i}let r=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;let n=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;let s=/\((\S*)(?::(\d+))(?::(\d+))\)/;let i=/at (.+?) ?\(data:(.+?),/;let a=[30,a=>{let o=a.match(i);if(o)return{filename:`<data:${o[2]}>`,function:o[1]};let l=r.exec(a);if(l){let[,r,n,s]=l;return t(r,e.yF,+n,+s)}let c=n.exec(a);if(c){if(c[2]&&c[2].indexOf("eval")===0){let e=s.exec(c[2]);e&&(c[2]=e[1],c[3]=e[2],c[4]=e[3])}let[r,n]=v(c[1]||e.yF,c[2]);return t(n,r,c[3]?+c[3]:undefined,c[4]?+c[4]:undefined)}return}];let o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;let l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;let c=[50,r=>{let n=o.exec(r);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){let e=l.exec(n[3]);e&&(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]="")}let r=n[3];let s=n[1]||e.yF;return[s,r]=v(s,r),t(r,s,n[4]?+n[4]:undefined,n[5]?+n[5]:undefined)}return}];let u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;let h=[40,r=>{let n=u.exec(r);return n?t(n[2],n[1]||e.yF,+n[3],n[4]?+n[4]:undefined):undefined}];let d=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;let f=[10,r=>{let n=d.exec(r);return n?t(n[2],n[3]||e.yF,+n[1]):undefined}];let m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;let p=[20,r=>{let n=m.exec(r);return n?t(n[5],n[3]||n[4]||e.yF,+n[1],+n[2]):undefined}];let g=[a,c];let y=(0,e.gd)(...g);let v=(t,r)=>{let n=t.indexOf("safari-extension")!==-1;let s=t.indexOf("safari-web-extension")!==-1;return n||s?[t.indexOf("@")!==-1?t.split("@")[0]:e.yF,n?`safari-extension:${r}`:`safari-web-extension:${r}`]:[t,r]}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},858481(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>r,e:()=>t});var e=__webpack_require__(392316);function t(){return(0,e.eJ)()}function r(){return(0,e.eJ)().substring(16)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},858572(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";globalThis.stateHooks={},!0&&__webpack_require__(587279),__webpack_require__(659677)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()},861913(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>i});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(797999);var s=__webpack_require__(676358);let i=(0,t.kp)(s.Wu,(0,e.Ik)({type:(0,r.eu)(s.Z6.Image),value:(0,n.J)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},864807(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>h,r:()=>d});var e=__webpack_require__(931263);var t=__webpack_require__(276435);var r=__webpack_require__(377271);var n=__webpack_require__(788241);function s(r,n){if("type"in r&&typeof r.type=="string"){if(r.type==="error")return n.setStatus({code:t.TJ,message:r.error?.type??"internal_error"}),(0,e.Cp)(r.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0}return!1}function i(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){let r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&(typeof r.usage.input_tokens=="number"&&(t.promptTokens=r.usage.input_tokens),typeof r.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),typeof r.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}}function a(e,t){if(e.type!=="content_block_start"||typeof e.index!=="number"||!e.content_block)return;(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function o(e,t,r){if(e.type!=="content_block_delta"||!e.delta)return;if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}function l(e,t){if(e.type!=="content_block_stop"||typeof e.index!=="number")return;let r=t.activeToolBlocks[e.index];if(!r)return;let n=r.inputJsonParts.join("");let s;try{s=n?JSON.parse(n):{}}catch{s={__unparsed:n}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:s}),delete t.activeToolBlocks[e.index]}function c(e,t,r,n){if(!(e&&typeof e=="object")||s(e,n))return;i(e,t),a(e,t),o(e,t,r),l(e,t)}function u(e,t,s){if(!t.isRecording())return;e.responseId&&t.setAttributes({[r.PX]:e.responseId}),e.responseModel&&t.setAttributes({[r.jK]:e.responseModel}),(0,n.kw)(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[r.Ii]:!0}),e.finishReasons.length>0&&t.setAttributes({[r.Bm]:JSON.stringify(e.finishReasons)}),s&&e.responseTexts.length>0&&t.setAttributes({[r.LO]:e.responseTexts.join("")}),s&&e.toolCalls.length>0&&t.setAttributes({[r.u2]:JSON.stringify(e.toolCalls)}),t.end()}async function*h(e,t,s){let i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:undefined,completionTokens:undefined,cacheCreationInputTokens:undefined,cacheReadInputTokens:undefined,toolCalls:[],activeToolBlocks:{}};try{for await(let r of e)c(r,i,s,t),yield r}finally{i.responseId&&t.setAttributes({[r.PX]:i.responseId}),i.responseModel&&t.setAttributes({[r.jK]:i.responseModel}),(0,n.kw)(t,i.promptTokens,i.completionTokens,i.cacheCreationInputTokens,i.cacheReadInputTokens),t.setAttributes({[r.Ii]:!0}),i.finishReasons.length>0&&t.setAttributes({[r.Bm]:JSON.stringify(i.finishReasons)}),s&&i.responseTexts.length>0&&t.setAttributes({[r.LO]:i.responseTexts.join("")}),s&&i.toolCalls.length>0&&t.setAttributes({[r.u2]:JSON.stringify(i.toolCalls)}),t.end()}}function d(r,n,s){let i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:undefined,completionTokens:undefined,cacheCreationInputTokens:undefined,cacheReadInputTokens:undefined,toolCalls:[],activeToolBlocks:{}};return r.on("streamEvent",e=>{c(e,i,s,n)}),r.on("message",()=>{u(i,n,s)}),r.on("error",r=>{(0,e.Cp)(r,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),n.isRecording()&&(n.setStatus({code:t.TJ,message:"stream_error"}),n.end())}),r}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},865961(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;return typeof t!=="number"||isNaN(t)||t<0||t>1?undefined:(0,t)}__webpack_require__.d(__webpack_exports__,{i:()=>e})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},868766(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>i});var e=__webpack_require__(122552);var t=__webpack_require__(891728);var r=__webpack_require__(512986);function n(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}let s={D:t.aY,DD:t.g5,DDD:t.Rb,DDDD:t.d6,t:t.dz,tt:t.hF,ttt:t.oq,tttt:t.o,T:t.My,TT:t.cE,TTT:t.dO,TTTT:t.FX,f:t.DN,ff:t.pM,fff:t.Al,ffff:t.MC,F:t.h0,FF:t.AX,FFF:t.h3,FFFF:t.nt};class i{static create(e,t={}){return new i(e,t)}static parseFormat(e){let t=null,r="",n=!1;let s=[];for(let i=0;i<e.length;i++){let a=e.charAt(i);a==="'"?(r.length>0&&s.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||a===t?r+=a:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=a,t=a)}return r.length>0&&s.push({literal:n||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(e){return s[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return(0,r.CF)(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(t,r){let s=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(e,r)=>this.loc.extract(t,e,r),l=e=>{return t.isOffsetFixed&&t.offset===0&&e.allowZ?"Z":(0,t.isValid?t.zone.formatOffset(t.ts,e.format):"")},c=(r,n)=>s?e.zH(t,r):o(n?{month:r}:{month:r,day:"numeric"},"month"),u=(r,n)=>s?e.DJ(t,r):o(n?{weekday:r}:{weekday:r,month:"long",day:"numeric"},"weekday"),h=e=>{let r=i.macroTokenToFormatOpts(e);return r?this.formatWithSystemDefault(t,r):(0,e)},d=r=>s?e.xS(t,r):o({era:r},"era"),f=r=>{switch(r){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return 0,s?e.tz(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return a?o({day:"numeric"},"day"):this.num(t.day);case"dd":return a?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?o({month:"numeric"},"month"):this.num(t.month);case"MM":return a?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?o({year:"numeric"},"year"):this.num(t.year);case"yy":return a?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(r)}};return n(i.parseFormat(r),f)}formatDurationFromString(e,t){let r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=e=>t=>{let n=r(t);return n?this.num(e.get(n),t.length):(0,t)},a=i.parseFormat(t),o=a.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]);return n(a,s(e.shiftTo(...o.map(r).filter(e=>e))))}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},879771(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$9:()=>o,E$:()=>c,KC:()=>a,eu:()=>i,i5:()=>l,o1:()=>u});var e=__webpack_require__(356583);var t=__webpack_require__(784225);var r=__webpack_require__(342672);var n=__webpack_require__(142827);var s=__webpack_require__(745085);function i(e){return(0,n.E8)(JSON.stringify(e),(0,r.eu)(e).validator)}function a([t,...n]){let s=(0,r.KC)([t,...n]);return new e._k({...s,schema:[t,...n]})}function o(e){return i(e)}function l(t){let r=t.map(e=>e.type==="union"&&Array.isArray(e.schema)?e.schema:e).flat(Infinity);let n=r.map(({schema:e})=>e.type.type);let i=r.reduce((e,t)=>{return e[JSON.parse(t.schema.type.type)]=t,e},{});return new e._k({type:"union",schema:r,*entries(e,t){if(!(0,s.Gv)(e)||!(0,s.i5)(e,"type")||typeof e.type!=="string")return;let{type:r}=e;let n=i[r];if(!n)return;for(let r of n.entries(e,t))yield r},coercer(e,t){if(!(0,s.Gv)(e)||!(0,s.i5)(e,"type")||typeof e.type!=="string")return e;let{type:r}=e;let n=i[r];return n?n.coercer(e,t):(0,e)},*refiner(e,t){let r=i[e.type];yield*r.refiner(e,t)},validator(e,t){if(!(0,s.Gv)(e)||!(0,s.i5)(e,"type")||typeof e.type!=="string")return`Expected type to be one of: ${n.join(", ")}, but received: undefined`;let{type:r}=e;let a=i[r];return a?a.validator(e,t):(0,`Expected type to be one of: ${n.join(", ")}, but received: "${r}"`)}})}function c(t){return new e._k({type:"union",schema:null,*entries(e,r){for(let n of t(e).entries(e,r))yield n},*refiner(e,r){let n=t(e);yield*n.refiner(e,r)},coercer(e,r){return t(e).coercer(e,r)},validator(e,r){return t(e).validator(e,r)}})}function u(e,n){return(0,t.YP)((0,r.g1)(e,n),"Non-empty record",e=>{return!Array.isArray(e)&&Object.keys(e).length>0})}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},879954(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>u});var e=__webpack_require__(765698);var t=__webpack_require__(57324);var r=__webpack_require__(978802);var n=__webpack_require__(314408);var s=__webpack_require__(793419);var i=__webpack_require__(339535);var a=__webpack_require__(515400);var o=__webpack_require__(56680);var l=__webpack_require__(956354);let c=[.1,.25];let u=(u,h={})=>{(0,l.z)((0,o.J)(()=>{let o=(0,n.X)("CLS",0);let l;let d=(0,r.N)();let f=(0,s.C)(h,i._);let m=e=>{for(let t of e)f._processEntry(t);f._sessionValue>o.value&&(o.value=f._sessionValue,o.entries=f._sessionEntries,l())};let p=(0,a.l)("layout-shift",m);p&&(l=(0,t.R)(u,o,c,h.reportAllChanges),d.onHidden(()=>{m(p.takeRecords()),l(!0)}),e.j?.setTimeout?.(l))}))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},885305(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";async function e(e,t){throw new Error(`Use of @sentry/browser's lazyLoadIntegration function is not supported by MetaMask Extension`)}__webpack_require__.d(__webpack_exports__,{b:()=>e})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_exports__,__webpack_require__}))()},885436(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>t});var e=__webpack_require__(123532);function t(r=(0,e.KU)()){r?.emit("endPageloadSpan")}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},886418(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{ed:()=>e,l_:()=>t,ll:()=>r,wq:()=>n}),__webpack_require__(777544);let e=Object.freeze({restrictReturnedAccounts:"restrictReturnedAccounts",restrictNetworkSwitching:"restrictNetworkSwitching"});let t=Object.freeze({permittedChains:"endowment:permitted-chains"});let r=Object.freeze({eth_accounts:"eth_accounts"});let n=Object.freeze({eth_accounts:"eth_accounts",snap_dialog:"snap_dialog",snap_notify:"snap_notify",snap_manageState:"snap_manageState",snap_getBip32PublicKey:"snap_getBip32PublicKey",snap_getBip32Entropy:"snap_getBip32Entropy",snap_getBip44Entropy:"snap_getBip44Entropy",snap_getEntropy:"snap_getEntropy",snap_getLocale:"snap_getLocale",snap_getPreferences:"snap_getPreferences",wallet_snap:"wallet_snap",snap_manageAccounts:"snap_manageAccounts"});Object.freeze({connection_permission:"connection_permission"}),Object.freeze({snapInstall:3,snapUpdateApprovedPermissions:3}),Object.freeze({eth_accounts:3,permittedChains:3,snap_dialog:4,snap_notify:4,snap_getBip32PublicKey:3,snap_getBip32Entropy:1,snap_getBip44Entropy:1,snap_getEntropy:3,snap_manageState:4,snap_getLocale:4,wallet_snap:4,endowment_networkAccess:3,endowment_assets:3,endowment_protocol:3,endowment_webassembly:4,endowment_transactionInsight:4,endowment_cronjob:4,endowment_ethereumProvider:4,endowment_multichainProvider:4,endowment_rpc:4,endowment_lifecycleHooks:4,endowment_pageHome:4,snap_manageAccounts:3,endowment_keyring:4,endowment_nameLookup:3,endowment_signatureInsight:4,connection_permission:3,unknown_permission:3})}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},889462(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ly:()=>T,jR:()=>S});var e=__webpack_require__(848294);var t=__webpack_require__(352158);var r=__webpack_require__(931263);var n=__webpack_require__(577102);var s=__webpack_require__(78463);var i=__webpack_require__(396102);var a=__webpack_require__(392316);var o=__webpack_require__(632356);var l=__webpack_require__(276435);var c=__webpack_require__(827284);let u=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"];let h=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"];let d={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"};let f=["select","insert","upsert","update","delete"];function m(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function p(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function g(e,t={}){switch(e){case"GET":return"select";case"POST":{if(t["Prefer"]?.includes("resolution="))return"upsert";return"insert"}case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function y(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;let[r,...n]=t.split(".");let s;return s=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&d[r]||"filter",`${s}(${e}, ${n.join(".")})`}function v(e,t=!1){return new Proxy(e,{apply(n,i,a){return(0,c.Lk)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[s.JD]:"auto.db.supabase",[s.uT]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>{return Reflect.apply(n,i,a).then(t=>{return t&&typeof t=="object"&&"error"in t&&t.error?(e.setStatus({code:l.TJ}),(0,r.Cp)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:l.F3}),e.end(),t}).catch(t=>{throw e.setStatus({code:l.TJ}),e.end(),(0,r.Cp)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a)})}})}function b(e){let t=e.auth;if(!t||p(e.auth))return;for(let r of u){let n=t[r];if(!n)continue;typeof e.auth[r]=="function"&&(e.auth[r]=v(n))}for(let r of h){let n=t.admin[r];if(!n)continue;typeof e.auth.admin[r]=="function"&&(e.auth.admin[r]=v(n,!0))}m(e.auth)}function k(e){if(p(e.prototype.from))return;e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,r){let n=Reflect.apply(e,t,r);return w(n.constructor),n}}),m(e.prototype.from)}function _(t){if(p(t.prototype.then))return;t.prototype.then=new Proxy(t.prototype.then,{apply(t,n,i){let u=g(n.method,n.headers);if(!f.includes(u)||!n?.url?.pathname||typeof n.url.pathname!=="string")return Reflect.apply(t,n,i);let h=n.url.pathname.split("/");let d=h.length>0?h[h.length-1]:"";let m=[];for(let[e,t]of n.url.searchParams.entries())m.push(y(e,t));let p=Object.create(null);if((0,o.Qd)(n.body))for(let[e,t]of Object.entries(n.body))p[e]=t;let v=`${u==="select"?"":`${u}${p?"(...) ":""}`}${m.join(" ")} from(${d})`;let b={"db.table":d,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":n.headers["X-Client-Info"],"db.system":"postgresql","db.operation":u,[s.JD]:"auto.db.supabase",[s.uT]:"db"};return m.length&&(b["db.query"]=m),Object.keys(p).length&&(b["db.body"]=p),(0,c.Lk)({name:v,attributes:b},s=>{return Reflect.apply(t,n,[]).then(t=>{if(s&&(t&&typeof t=="object"&&"status"in t&&(0,l.N8)(s,t.status||500),s.end()),t.error){let e=new Error(t.error.message);t.error.code&&(e.code=t.error.code),t.error.details&&(e.details=t.error.details);let n={};m.length&&(n.query=m),Object.keys(p).length&&(n.body=p),(0,r.Cp)(e,e=>{return e.addEventProcessor(e=>{return(0,a.M6)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e}),e.setContext("supabase",n),e})}let n={type:"supabase",category:`db.${u}`,message:v};let i={};return m.length&&(i.query=m),Object.keys(p).length&&(i.body=p),Object.keys(i).length&&(n.data=i),(0,e.Z)(n),t},e=>{throw s&&((0,l.N8)(s,500),s.end()),e}).then(...i)})}}),m(t.prototype.then)}function w(e){for(let r of f){if(p(e.prototype[r]))continue;e.prototype[r]=new Proxy(e.prototype[r],{apply(e,n,s){let a=Reflect.apply(e,n,s);let o=a.constructor;return t.T&&i.Yz.log(`Instrumenting ${r} operation's PostgRESTFilterBuilder`),_(o),a}}),m(e.prototype[r])}}let S=e=>{if(!e){t.T&&i.Yz.warn("Supabase integration was not installed because no Supabase client was provided.");return}k(e.constructor===Function?e:e.constructor),b(e)};let T=(0,n._C)(e=>{var t;return t=e.supabaseClient,{setupOnce(){S(t)},name:"Supabase"}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},889843(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>a});var e=__webpack_require__(931263);var t=__webpack_require__(577102);var r=__webpack_require__(396102);var n=__webpack_require__(662925);var s=__webpack_require__(484413);var i=__webpack_require__(994398);let a=(0,t._C)(()=>{return{name:"BrowserSession",setupOnce(){if(i.jf.document===void 0){s.T&&r.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,e.J0)({ignoreDuration:!0}),(0,e.J5)(),(0,n._)(({from:t,to:r})=>{t!==undefined&&t!==r&&((0,e.J0)({ignoreDuration:!0}),(0,e.J5)())})}}})}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},891728(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AX:()=>b,Al:()=>_,DN:()=>g,FX:()=>p,M$:()=>i,MC:()=>S,My:()=>d,Rb:()=>a,aY:()=>n,cE:()=>f,d6:()=>o,dO:()=>m,dz:()=>l,fO:()=>k,g5:()=>s,h0:()=>y,h3:()=>w,hF:()=>c,nt:()=>T,o:()=>h,oq:()=>u,pM:()=>v});let e="numeric",t="short",r="long";let n={year:e,month:e,day:e};let s={year:e,month:t,day:e};let i={year:e,month:t,day:e,weekday:t};let a={year:e,month:r,day:e};let o={year:e,month:r,day:e,weekday:r};let l={hour:e,minute:e};let c={hour:e,minute:e,second:e};let u={hour:e,minute:e,second:e,timeZoneName:t};let h={hour:e,minute:e,second:e,timeZoneName:r};let d={hour:e,minute:e,hourCycle:"h23"};let f={hour:e,minute:e,second:e,hourCycle:"h23"};let m={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:t};let p={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:r};let g={year:e,month:e,day:e,hour:e,minute:e};let y={year:e,month:e,day:e,hour:e,minute:e,second:e};let v={year:e,month:t,day:e,hour:e,minute:e};let b={year:e,month:t,day:e,hour:e,minute:e,second:e};let k={year:e,month:t,day:e,weekday:t,hour:e,minute:e};let _={year:e,month:r,day:e,hour:e,minute:e,timeZoneName:t};let w={year:e,month:r,day:e,hour:e,minute:e,second:e,timeZoneName:t};let S={year:e,month:r,day:e,weekday:r,hour:e,minute:e,timeZoneName:r};let T={year:e,month:r,day:e,weekday:r,hour:e,minute:e,second:e,timeZoneName:r}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},896639(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Bd:()=>l,ut:()=>o,vA:()=>a});var e=__webpack_require__(356583);var t=__webpack_require__(761788);function r(e){return Boolean(typeof e?.prototype?.constructor?.name=="string")}function n(e){return(0,t.u1)(e).replace(/\.$/u,"")}function s(e,t){return r(e)?new e({message:t}):(0,e({message:t}))}class i extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function a(e,t="Assertion failed.",r=i){if(!e){if(t instanceof Error)throw t;throw s(r,t)}}function o(t,r,a="Assertion failed",l=i){try{(0,e.vA)(t,r)}catch(e){throw s(l,`${a}: ${n(e)}.`)}}function l(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},901889(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>e});let e=globalThis}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},902309(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>t});var e=__webpack_require__(123532);function t(r,n={},s=(0,e.o5)()){let{message:i,name:a,email:o,url:l,source:c,associatedEventId:u,tags:h}=r;let d={contexts:{feedback:{contact_email:o,name:a,message:i,url:l,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:h};let f=s?.getClient()||(0,e.KU)();return f&&f.emit("beforeSendFeedback",d,n),s.captureEvent(d,n)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},902470(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>n});var e=__webpack_require__(123532);var t=__webpack_require__(577102);var r=__webpack_require__(78463);let n=(0,t._C)(()=>{return{name:"ConversationId",setup(t){t.on("spanStart",t=>{let n=(0,e.o5)().getScopeData();let s=(0,e.rm)().getScopeData();let i=n.conversationId||s.conversationId;i&&t.setAttribute(r.Fy,i)})}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},903217(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>l});var e=__webpack_require__(78463);var t=__webpack_require__(123532);var r=__webpack_require__(18898);var n=__webpack_require__(396102);var s=__webpack_require__(306981);var i=__webpack_require__(814601);var a=__webpack_require__(821396);var o=__webpack_require__(33040);function l(e){let t=0;let r;if(!(0,o.Jy)("layout-shift"))return;let n=(0,a.a9)(({metric:e})=>{let n=e.entries[e.entries.length-1];if(!n)return;t=e.value,r=n},!0);(0,o.WF)(e,(e,s)=>{c(t,r,s,e),n()})}function c(a,l,c,u){i.T&&n.Yz.log(`Sending CLS span (${a})`);let h=l?(0,o.rv)(((0,s.k3)()||0)+l.startTime):(0,s.zf)();let d=(0,t.o5)().getScopeData().transactionName;let f=l?(0,r.Hd)(l.sources[0]?.node):"Layout shift";let m={[e.JD]:"auto.http.browser.cls",[e.uT]:"ui.webvital.cls",[e.jG]:0,"sentry.pageload.span_id":c,"sentry.report_event":u};l?.sources&&l.sources.forEach((e,t)=>{m[`cls.source.${t+1}`]=(0,r.Hd)(e.node)});let p=(0,o.kD)({name:f,transaction:d,attributes:m,startTime:h});p&&(p.addEvent("cls",{[e.Sn]:"",[e.xc]:a}),p.end(h))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},908743(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H1:()=>S,SS:()=>m,SZ:()=>g,U$:()=>E,bo:()=>p,jU:()=>f,p3:()=>w,tQ:()=>_,x8:()=>v,zC:()=>d});var e=__webpack_require__(356583);var t=__webpack_require__(355608);var r=__webpack_require__(784225);var n=__webpack_require__(342672);var s=__webpack_require__(142827);var i=__webpack_require__(896639);var a=__webpack_require__(745085);let o=e=>(0,n.Ik)(e);function l({path:e,branch:t}){let r=e[e.length-1];return(0,a.i5)(t[t.length-2],r)}function c(t){return new e._k({...t,type:`optional ${t.type}`,validator:(e,r)=>!l(r)||t.validator(e,r),refiner:(e,r)=>!l(r)||t.refiner(e,r)})}function u(e){if(e===null||typeof e=="boolean"||typeof e=="string"||typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="object"){let t=!0;if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(!u(e[r])){t=!1;break}return t}let r=Object.entries(e);for(let e=0;e<r.length;e++)if(typeof r[e][0]!=="string"||!u(r[e][1])){t=!1;break}return t}return!1}let h=(0,s.E8)("JSON",e=>u(e));let d=(0,t.au)(h,(0,r.YP)((0,n.bz)(),"JSON",t=>(0,e.is)(t,h)),e=>JSON.parse(JSON.stringify(e,(e,t)=>{return e==="__proto__"||e==="constructor"?undefined:(0,t)})));function f(e){try{return m(e),!0}catch{return!1}}function m(t){return(0,e.vt)(t,d)}let p=(0,n.eu)("2.0");let g=(0,n.me)((0,n.KC)([(0,n.ai)(),(0,n.Yj)()]));let y=o({code:(0,n.nd)(),message:(0,n.Yj)(),data:c(d),stack:c((0,n.Yj)())});let v=(0,n.KC)([(0,n.g1)((0,n.Yj)(),d),(0,n.YO)(d)]);let b=o({id:g,jsonrpc:p,method:(0,n.Yj)(),params:c(v)});let k=o({jsonrpc:p,method:(0,n.Yj)(),params:c(v)});function _(t){return(0,e.is)(t,k)}function w(t){return(0,e.is)(t,b)}function S(e,t){(0,i.ut)(e,b,"Invalid JSON-RPC request",t)}(0,n.Ik)({id:g,jsonrpc:p,result:(0,n.lq)((0,n.L5)()),error:(0,n.lq)(y)});let T=o({id:g,jsonrpc:p,result:d});let x=o({id:g,jsonrpc:p,error:y});function E(t){return(0,e.is)(t,y)}(0,n.KC)([T,x])}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},911216(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{w:()=>r});var e=__webpack_require__(858481);var t=__webpack_require__(682631);class r{constructor(t={}){this._traceId=t.traceId||(0,e.e)(),this._spanId=t.spanId||(0,e.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:t.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},912276(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>j});var e=__webpack_require__(512986);var t=__webpack_require__(122552);var r=__webpack_require__(603476);var n=__webpack_require__(835060);var s=__webpack_require__(750628);let i={};function a(e,t={}){let r=JSON.stringify([e,t]);let n=i[r];return!n&&(n=new Intl.ListFormat(e,t),i[r]=n),n}let o={};function l(e,t={}){let r=JSON.stringify([e,t]);let n=o[r];return!n&&(n=new Intl.DateTimeFormat(e,t),o[r]=n),n}let c={};function u(e,t={}){let r=JSON.stringify([e,t]);let n=c[r];return!n&&(n=new Intl.NumberFormat(e,t),c[r]=n),n}let h={};function d(e,t={}){let{base:r,...n}=t;let s=JSON.stringify([e,n]);let i=h[s];return!i&&(i=new Intl.RelativeTimeFormat(e,t),h[s]=i),i}let f=null;function m(){return f||(0,f=new Intl.DateTimeFormat().resolvedOptions().locale)}let p={};function g(e){let t=p[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,p[e]=t}return t}function y(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let t;let n;try{t=l(e).resolvedOptions(),n=e}catch(i){let s=e.substring(0,r);t=l(s).resolvedOptions(),n=s}let{numberingSystem:s,calendar:i}=t;return[n,s,i]}}function v(e,t,r){return r||t?(!e.includes("-u-")&&(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)):void 0,e}function b(e){let t=[];for(let r=1;r<=12;r++){let s=n.A.utc(2009,r,1);t.push(e(s))}return t}function k(e){let t=[];for(let r=1;r<=7;r++){let s=n.A.utc(2016,11,13+r);t.push(e(s))}return t}function _(e,t,r,n){let s=e.listingMode();return s==="error"?null:(0,s==="en")?r(t):n(t)}function w(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:(0,e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn")}class S{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:s,...i}=r;if(!t||Object.keys(i).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=u(e,t)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}{let r=this.floor?Math.floor(t):(0,e.GB)(t,3);return(0,e.CF)(r,this.padTo)}}}class T{constructor(e,t,r){this.opts=r,this.originalZone=undefined;let n;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let t=-1*(e.offset/60);let r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&s.A.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=l(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):(0,this.dtf.format(this.dt.toJSDate()))}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type!=="timeZoneName")return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):(0,e)}resolvedOptions(){return this.dtf.resolvedOptions()}}class x{constructor(t,r,n){this.opts={style:"long",...n},!r&&(0,e.h3)()&&(this.rtf=d(t,n))}format(e,r){return this.rtf?this.rtf.format(e,r):(0,t.fw(r,e,this.opts.numeric,this.opts.style!=="long"))}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):(0,[])}}let E={firstDay:1,minimalDays:4,weekend:[6,7]};class j{static fromOpts(e){return j.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(t,n,s,i,a=!1){let o=t||r.A.defaultLocale;let l=o||(a?"en-US":m());let c=n||r.A.defaultNumberingSystem;return new j(l,c,s||r.A.defaultOutputCalendar,(0,e._v)(i)||r.A.defaultWeekSettings,o)}static resetCache(){f=null,o={},c={},h={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return j.create(e,t,r,n)}constructor(e,t,r,n,s){let[i,a,o]=y(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=r||o||null,this.weekSettings=n,this.intl=v(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=w(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish();let t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:(0,j.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,(0,e._v)(t.weekSettings)||this.weekSettings,t.defaultToEN||!1))}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return _(this,e,t.US,()=>{let t=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";return!this.monthsCache[n][e]&&(this.monthsCache[n][e]=b(e=>this.extract(e,t,"month"))),this.monthsCache[n][e]})}weekdays(e,r=!1){return _(this,e,t.mx,()=>{let t=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=r?"format":"standalone";return!this.weekdaysCache[n][e]&&(this.weekdaysCache[n][e]=k(e=>this.extract(e,t,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return _(this,undefined,()=>t.us,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[n.A.utc(2016,11,13,9),n.A.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return _(this,e,t.qH,()=>{let t={era:e};return!this.eraCache[e]&&(this.eraCache[e]=[n.A.utc(-40,1,1),n.A.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,r){let n=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return n?n.value:null}numberFormatter(e={}){return new S(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new T(e,this.intl,t)}relFormatter(e={}){return new x(this.intl,this.isEnglish(),e)}listFormatter(e={}){return a(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:(0,!(0,e.jv)())?E:g(this.locale)}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},913111(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{v:()=>n});var e=__webpack_require__(306981);var t=__webpack_require__(33040);function r(t){return t?(((0,e.k3)()||performance.timeOrigin)+t)/1e3:t}function n(n){let i={};if(n.nextHopProtocol!=undefined){let{name:e,version:r}=(0,t.Ep)(n.nextHopProtocol);i["network.protocol.version"]=r,i["network.protocol.name"]=e}return!((0,e.k3)()||(0,t.D)()?.timeOrigin)?i:(0,s({...i,"http.request.redirect_start":r(n.redirectStart),"http.request.redirect_end":r(n.redirectEnd),"http.request.worker_start":r(n.workerStart),"http.request.fetch_start":r(n.fetchStart),"http.request.domain_lookup_start":r(n.domainLookupStart),"http.request.domain_lookup_end":r(n.domainLookupEnd),"http.request.connect_start":r(n.connectStart),"http.request.secure_connection_start":r(n.secureConnectionStart),"http.request.connection_end":r(n.connectEnd),"http.request.request_start":r(n.requestStart),"http.request.response_start":r(n.responseStart),"http.request.response_end":r(n.responseEnd),"http.request.time_to_first_byte":n.responseStart!=null?n.responseStart/1e3:undefined}))}function s(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},917009(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(411335);var r=__webpack_require__(260516);let n=(0,e._C)(()=>{return{name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,r.yH)(e,(e,r)=>{if(r==="event"){let r=Array.isArray(e)?e[1]:undefined;r&&((0,t.KT)(r),e[1]=r)}})}),e.on("applyFrameMetadata",r=>{if(r.type)return;let n=e.getOptions().stackParser;(0,t.Gr)(n,r)})}}})}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},920938(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>r});var e=__webpack_require__(943924);var t=__webpack_require__(39859);function r(r){let n=(0,e.Se)(r);return n.acs?n.acs:(0,(0,t.z)())}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},920942(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>r});var e=__webpack_require__(67912);var t=__webpack_require__(901889);function r(){return typeof window!=="undefined"&&(!(0,e.w)()||n())}function n(){let e=t.O.process;return e?.type==="renderer"}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},923533(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>e});let e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}}).call(__webpack_require__._LM_("uuid",{__webpack_exports__,__webpack_require__}))()},925075(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return"isRelative"in e}function t(e,t){let r=e.indexOf("://")<=0&&e.indexOf("//")!==0;let n=t??(r?"thismessage:/":undefined);try{if("canParse"in URL&&!URL.canParse(e,n))return undefined;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}return undefined}function r(t){if(e(t))return t.pathname;let r=new URL(t);return r.search="",r.hash="",["80","443"].includes(r.port)&&(r.port=""),r.password&&(r.password="%filtered%"),r.username&&(r.username="%filtered%"),r.toString()}__webpack_require__.d(__webpack_exports__,{CH:()=>r,Dl:()=>n,f:()=>s,kg:()=>t,nt:()=>e,zm:()=>i});function n(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"";let n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function s(e){return e.split(/[?#]/,1)[0]}function i(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/);let n=r?r[1]:"text/plain";let s=e.includes(";base64,");let i=e.indexOf(",");let a="";if(t&&i!==-1){let t=e.slice(i+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${s?",base64":""}${a?`,${a}`:""}`}return e}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},928751(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BrowserClient:()=>F.y,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>f.$h,OpenFeatureIntegrationHook:()=>ev.o,SDK_VERSION:()=>q.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>o.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>o.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>o.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>o.i_,Scope:()=>u.H,WINDOW:()=>H.jf,addBreadcrumb:()=>v.Z,addEventProcessor:()=>l.SA,addIntegration:()=>m.Q8,breadcrumbsIntegration:()=>K.F,browserApiErrorsIntegration:()=>ee.G,browserProfilingIntegration:()=>em.f,browserSessionIntegration:()=>eg.p,browserTracingIntegration:()=>eu.dp,buildLaunchDarklyFlagUsedHandler:()=>ey.g,captureConsoleIntegration:()=>w.q,captureEvent:()=>l.r,captureException:()=>l.Cp,captureFeedback:()=>M.q,captureMessage:()=>l.wd,captureSession:()=>l.J5,chromeStackLineParser:()=>G.Yj,close:()=>l.VN,consoleLoggingIntegration:()=>R.d,contextLinesIntegration:()=>es.l,continueTrace:()=>s.V4,createConsolaReporter:()=>L.L,createLangChainCallbackHandler:()=>z.b,createTransport:()=>d.o,createUserFeedbackEnvelope:()=>Y.L,dedupeIntegration:()=>S.s,defaultRequestInstrumentationOptions:()=>ec.h$,defaultStackLineParsers:()=>G.c9,defaultStackParser:()=>G.lG,diagnoseSdkConnectivity:()=>ew.s,endSession:()=>l.ky,eventFiltersIntegration:()=>k.A,eventFromException:()=>W.u,eventFromMessage:()=>W.qv,exceptionFromError:()=>W.K8,extraErrorDataIntegration:()=>T.X,featureFlagsIntegration:()=>C.S,feedbackAsyncIntegration:()=>e.C,feedbackIntegration:()=>t.X,feedbackSyncIntegration:()=>t.X,flush:()=>l.bX,forceLoad:()=>V.w7,functionToStringIntegration:()=>b.Z,geckoStackLineParser:()=>G.dY,getActiveSpan:()=>g.Bk,getClient:()=>c.KU,getCurrentScope:()=>c.o5,getDefaultIntegrations:()=>V.nI,getFeedback:()=>el.e4,getGlobalScope:()=>c.m6,getIsolationScope:()=>c.rm,getReplay:()=>ea.M,getRootSpan:()=>g.zU,getSpanDescendants:()=>g.xO,getSpanStatusFromHttpCode:()=>n.AJ,getTraceData:()=>y.i,globalHandlersIntegration:()=>Z.LO,graphqlClientIntegration:()=>ei.$9,growthbookIntegration:()=>ek.z,httpClientIntegration:()=>en.c,httpContextIntegration:()=>Q.M,inboundFiltersIntegration:()=>k.D,init:()=>V.Ts,instrumentAnthropicAiClient:()=>N.X,instrumentGoogleGenAIClient:()=>P.s,instrumentLangGraph:()=>$.M,instrumentOpenAiClient:()=>D.r,instrumentOutgoingRequests:()=>ec.Qb,instrumentSupabaseClient:()=>E.jR,isEnabled:()=>l.Ol,isInitialized:()=>l.Dp,lastEventId:()=>l.Q,launchDarklyIntegration:()=>ey.L,lazyLoadIntegration:()=>et.b,linkedErrorsIntegration:()=>X.p,logger:()=>I,makeBrowserOfflineTransport:()=>ef.z9,makeFetchTransport:()=>B._,makeMultiplexedTransport:()=>f.NK,metrics:()=>O,moduleMetadataIntegration:()=>_.Q,onLoad:()=>V.kF,openFeatureIntegration:()=>ev.h,opera10StackLineParser:()=>G.Q_,opera11StackLineParser:()=>G.Vv,parameterize:()=>p.y,registerSpanErrorInstrumentation:()=>r.s,registerWebWorker:()=>eS.ms,replayCanvasIntegration:()=>eo.y,replayIntegration:()=>ea.w,reportPageLoaded:()=>eh.Z,reportingObserverIntegration:()=>er.n,rewriteFramesIntegration:()=>x.D,sendFeedback:()=>el.Sq,setActiveSpanInBrowser:()=>ed.e,setContext:()=>l.o,setCurrentClient:()=>h.B,setExtra:()=>l.l7,setExtras:()=>l.cx,setHttpStatus:()=>n.N8,setMeasurement:()=>a.X,setTag:()=>l.NA,setTags:()=>l.Wt,setUser:()=>l.gV,showReportDialog:()=>J.m,spanToBaggageHeader:()=>i.HW,spanToJSON:()=>g.et,spanToTraceHeader:()=>g.Qh,spotlightBrowserIntegration:()=>ep.zP,startBrowserTracingNavigationSpan:()=>eu.Nt,startBrowserTracingPageLoadSpan:()=>eu.Sx,startInactiveSpan:()=>s.Uk,startNewTrace:()=>s.Y7,startSession:()=>l.J0,startSpan:()=>s.Lk,startSpanManual:()=>s.nV,statsigIntegration:()=>e_.I,supabaseIntegration:()=>E.Ly,suppressTracing:()=>s.M1,thirdPartyErrorFilterIntegration:()=>A.y,uiProfiler:()=>U.e,unleashIntegration:()=>eb.v,updateSpanName:()=>g.zQ,webWorkerIntegration:()=>eS.H,winjsStackLineParser:()=>G.$2,withActiveSpan:()=>s.hb,withIsolationScope:()=>c.rB,withScope:()=>c.v4,zodErrorsIntegration:()=>j.rB});var e=__webpack_require__(566078);var t=__webpack_require__(167467);var r=__webpack_require__(410710);var n=__webpack_require__(276435);var s=__webpack_require__(827284);var i=__webpack_require__(98154);var a=__webpack_require__(468417);var o=__webpack_require__(78463);var l=__webpack_require__(931263);var c=__webpack_require__(123532);var u=__webpack_require__(665016);var h=__webpack_require__(295088);var d=__webpack_require__(513234);var f=__webpack_require__(550866);var m=__webpack_require__(577102);var p=__webpack_require__(598723);var g=__webpack_require__(682631);var y=__webpack_require__(944887);var v=__webpack_require__(848294);var b=__webpack_require__(175384);var k=__webpack_require__(848795);var _=__webpack_require__(917009);var w=__webpack_require__(122411);var S=__webpack_require__(960767);var T=__webpack_require__(59824);var x=__webpack_require__(488560);var E=__webpack_require__(889462);var j=__webpack_require__(5152);var A=__webpack_require__(934379);var C=__webpack_require__(711403);var M=__webpack_require__(902309);var I=__webpack_require__(87776);var R=__webpack_require__(463580);var O=__webpack_require__(991688);var L=__webpack_require__(518727);var D=__webpack_require__(659976);var N=__webpack_require__(200019);var P=__webpack_require__(118644);var z=__webpack_require__(509279);var $=__webpack_require__(579010);var q=__webpack_require__(419142);var H=__webpack_require__(994398);var F=__webpack_require__(173368);var B=__webpack_require__(956902);var U=__webpack_require__(152254);var G=__webpack_require__(855790);var W=__webpack_require__(691576);var Y=__webpack_require__(124675);var V=__webpack_require__(179687);var J=__webpack_require__(402702);var K=__webpack_require__(2033);var Z=__webpack_require__(404809);var Q=__webpack_require__(841456);var X=__webpack_require__(805677);var ee=__webpack_require__(361508);var et=__webpack_require__(885305);var er=__webpack_require__(329055);var en=__webpack_require__(953524);var es=__webpack_require__(156081);var ei=__webpack_require__(570181);var ea=__webpack_require__(949306);var eo=__webpack_require__(986415);var el=__webpack_require__(178066);var ec=__webpack_require__(89899);var eu=__webpack_require__(548502);var eh=__webpack_require__(885436);var ed=__webpack_require__(381324);var ef=__webpack_require__(681853);var em=__webpack_require__(152660);var ep=__webpack_require__(79931);var eg=__webpack_require__(889843);var ey=__webpack_require__(276880);var ev=__webpack_require__(928906);var eb=__webpack_require__(532344);var ek=__webpack_require__(703138);var e_=__webpack_require__(504399);var ew=__webpack_require__(643814);var eS=__webpack_require__(993039)}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},928906(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>r,o:()=>n});var e=__webpack_require__(577102);var t=__webpack_require__(100873);let r=(0,e._C)(()=>{return{name:"OpenFeature",processEvent(e,r,n){return(0,t.Nf)(e)}}});class n{after(e,r){(0,t.Ee)(r.flagKey,r.value),(0,t.si)(r.flagKey,r.value)}error(e,r,n){(0,t.Ee)(e.flagKey,e.defaultValue),(0,t.si)(e.flagKey,e.defaultValue)}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},931263(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cp:()=>a,Dp:()=>v,J0:()=>_,J5:()=>T,NA:()=>f,Ol:()=>b,Q:()=>p,SA:()=>k,VN:()=>y,Wt:()=>d,bX:()=>g,cx:()=>u,gV:()=>m,ky:()=>w,l7:()=>h,o:()=>c,r:()=>l,wd:()=>o});var e=__webpack_require__(123532);var t=__webpack_require__(352158);var r=__webpack_require__(172900);var n=__webpack_require__(396102);var s=__webpack_require__(612717);var i=__webpack_require__(901889);function a(t,r){return(0,e.o5)().captureException(t,(0,s.li)(r))}function o(t,r){let n=typeof r=="string"?r:undefined;let s=typeof r!=="string"?{captureContext:r}:undefined;return(0,e.o5)().captureMessage(t,n,s)}function l(t,r){return(0,e.o5)().captureEvent(t,r)}function c(t,r){(0,e.rm)().setContext(t,r)}function u(t){(0,e.rm)().setExtras(t)}function h(t,r){(0,e.rm)().setExtra(t,r)}function d(t){(0,e.rm)().setTags(t)}function f(t,r){(0,e.rm)().setTag(t,r)}function m(t){(0,e.rm)().setUser(t)}function p(){return(0,e.rm)().lastEventId()}async function g(r){let s=(0,e.KU)();return s?s.flush(r):(t.T&&n.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function y(r){let s=(0,e.KU)();return s?s.close(r):(t.T&&n.Yz.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function v(){return!!(0,e.KU)()}function b(){let t=(0,e.KU)();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function k(t){(0,e.rm)().addEventProcessor(t)}function _(t){let n=(0,e.rm)();let s=(0,e.o5)();let{userAgent:a}=i.O.navigator||{};let o=(0,r.fj)({user:s.getUser()||n.getUser(),...a&&{userAgent:a},...t});let l=n.getSession();return l?.status==="ok"&&(0,r.qO)(l,{status:"exited"}),w(),n.setSession(o),o}function w(){let t=(0,e.rm)();let n=(0,e.o5)().getSession()||t.getSession();n&&(0,r.Vu)(n),S(),t.setSession()}function S(){let t=(0,e.rm)();let r=(0,e.KU)();let n=t.getSession();n&&r&&r.captureSession(n)}function T(e=!1){if(e){w();return}S()}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},934379(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>s});var e=__webpack_require__(577102);var t=__webpack_require__(411335);var r=__webpack_require__(260516);var n=__webpack_require__(6929);let s=(0,e._C)(e=>{return{name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,r.yH)(e,(e,r)=>{if(r==="event"){let r=Array.isArray(e)?e[1]:undefined;r&&((0,t.KT)(r),e[1]=r)}})}),e.on("applyFrameMetadata",r=>{if(r.type)return;let n=e.getOptions().stackParser;(0,t.Gr)(n,r)})},processEvent(t){let r=a(t,e.ignoreSentryInternalFrames);if(r){if(r[e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}}});function i(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(c))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(l))return!0}return!1}function a(e,t){let r=(0,n.RV)(e);return!r?undefined:(0,r.filter((e,r)=>{return!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:(0,!t||!i(e,r))}).map(e=>{return!e.module_metadata?[]:(0,Object.keys(e.module_metadata).filter(e=>e.startsWith(o)).map(e=>e.slice(o.length)))}))}let o="_sentryBundlerPluginAppKey:";let l="Attempt to invoke user-land function";let c="fn.apply(this, wrappedArguments)"}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},937053(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Pm:()=>ew,Sw:()=>eT});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(142827);var n=__webpack_require__(142282);var s=__webpack_require__(760184);var i=__webpack_require__(908743);var a=__webpack_require__(745085);var o=__webpack_require__(188320);var l=__webpack_require__(879771);var c=__webpack_require__(614130);var u=__webpack_require__(797999);var h=__webpack_require__(609948);var d=__webpack_require__(544299);var f=__webpack_require__(186119);let m=(0,c.J)([(0,t.Yj)(),(0,t.ai)()]);let p=y([(0,t.Yj)()]);function g(e){let n=(0,l.E$)(s=>{return Array.isArray(s)?(0,t.YO)((0,r.RZ)(()=>n)):(0,e)});return n}function y(e){let r=e.length===1?e[0]:(0,c.J)(e);return g((0,t.me)((0,l.E$)(e=>{return typeof e=="boolean"?(0,t.zM)():(0,r)})))}function v(e){return(0,t.me)((0,l.E$)(r=>{return typeof r=="boolean"?(0,t.zM)():(0,e)}))}function b(e,r={}){return(0,t.Ik)({type:(0,l.eu)(e),props:(0,t.Ik)(r),key:(0,t.me)(m)})}function k(e,r){return(0,t.Ik)({type:(0,l.eu)(e),props:(0,l.E$)(r),key:(0,t.me)(m)})}(0,t.Ik)({type:(0,t.Yj)(),props:(0,t.g1)((0,t.Yj)(),i.zC),key:(0,t.me)(m)});let _=(0,c.J)([(0,l.eu)("none"),(0,l.eu)("medium"),(0,l.eu)("full")]);let w=b("Image",{src:(0,c.J)([(0,u.J)(),(0,d.H)({protocol:(0,l.eu)("https:")})]),alt:(0,t.lq)((0,t.Yj)()),borderRadius:(0,t.lq)(_),width:(0,t.lq)((0,t.ai)()),height:(0,t.lq)((0,t.ai)())});let S=b("Icon",{name:(0,c.J)(Object.values(o.$).map(e=>(0,l.eu)(e))),color:(0,t.lq)((0,c.J)([(0,l.eu)("default"),(0,l.eu)("primary"),(0,l.eu)("muted"),(0,l.eu)("error"),(0,l.eu)("success"),(0,l.eu)("warning")])),size:(0,t.lq)((0,c.J)([(0,l.eu)("md"),(0,l.eu)("inherit")]))});let T=b("Button",{children:y([p,w,S]),name:(0,t.lq)((0,t.Yj)()),type:(0,t.lq)((0,c.J)([(0,l.eu)("button"),(0,l.eu)("submit")])),variant:(0,t.lq)((0,c.J)([(0,l.eu)("primary"),(0,l.eu)("destructive")])),size:(0,t.lq)((0,c.J)([(0,l.eu)("sm"),(0,l.eu)("md")])),disabled:(0,t.lq)((0,t.zM)()),loading:(0,t.lq)((0,t.zM)()),form:(0,t.lq)((0,t.Yj)())});let x=b("Checkbox",{name:(0,t.Yj)(),checked:(0,t.lq)((0,t.zM)()),label:(0,t.lq)((0,t.Yj)()),variant:(0,t.lq)((0,c.J)([(0,l.eu)("default"),(0,l.eu)("toggle")])),disabled:(0,t.lq)((0,t.zM)())});let E=(0,t.Ik)({name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)())});let j=(0,r.kp)(E,(0,t.Ik)({type:(0,l.eu)("text")}));let A=(0,r.kp)(E,(0,t.Ik)({type:(0,l.eu)("password")}));let C=(0,r.kp)(E,(0,t.Ik)({type:(0,l.eu)("number"),min:(0,t.lq)((0,t.ai)()),max:(0,t.lq)((0,t.ai)()),step:(0,t.lq)((0,t.ai)())}));let M=k("Input",e=>{if((0,a.Qd)(e)&&(0,a.i5)(e,"type"))switch(e.type){case"text":return j;case"password":return A;case"number":return C;default:return E}return E});let I=b("AddressInput",{name:(0,t.Yj)(),chainId:n.dg,value:(0,t.lq)((0,t.Yj)()),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)()),displayAvatar:(0,t.lq)((0,t.zM)())});let R=b("Option",{value:(0,t.Yj)(),children:(0,t.Yj)(),disabled:(0,t.lq)((0,t.zM)())});let O=b("Dropdown",{name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:y([R]),disabled:(0,t.lq)((0,t.zM)())});let L=b("DateTimePicker",{name:(0,t.Yj)(),type:(0,t.lq)((0,c.J)([(0,l.eu)("date"),(0,l.eu)("time"),(0,l.eu)("datetime")])),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)()),disablePast:(0,t.lq)((0,t.zM)()),disableFuture:(0,t.lq)((0,t.zM)()),value:(0,t.lq)(h.U)});let D=b("Address",{address:(0,l.E$)(e=>{return typeof e=="string"&&e.startsWith("0x")?s.UG:(0,n.FX)}),truncate:(0,t.lq)((0,t.zM)()),displayName:(0,t.lq)((0,t.zM)()),avatar:(0,t.lq)((0,t.zM)())});let N=b("AccountSelector",{name:(0,t.Yj)(),hideExternalAccounts:(0,t.lq)((0,t.zM)()),chainIds:(0,t.lq)((0,t.YO)(n.dg)),switchGlobalAccount:(0,t.lq)((0,t.zM)()),value:(0,t.lq)(n.FX),disabled:(0,t.lq)((0,t.zM)())});let P=b("Card",{image:(0,t.lq)((0,t.Yj)()),title:(0,l.E$)(e=>{return typeof e=="object"?D:(0,(0,t.Yj)())}),description:(0,t.lq)((0,t.Yj)()),value:(0,t.Yj)(),extra:(0,t.lq)((0,t.Yj)())});let z=b("SelectorOption",{value:(0,t.Yj)(),children:P,disabled:(0,t.lq)((0,t.zM)())});let $=b("Selector",{name:(0,t.Yj)(),title:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:y([z]),disabled:(0,t.lq)((0,t.zM)())});let q=b("AssetSelector",{name:(0,t.Yj)(),addresses:f.j6,chainIds:(0,t.lq)((0,t.YO)(f.s1)),value:(0,t.lq)(f._g),disabled:(0,t.lq)((0,t.zM)())});let H=b("Radio",{value:(0,t.Yj)(),children:(0,t.Yj)(),disabled:(0,t.lq)((0,t.zM)())});let F=b("RadioGroup",{name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:y([H]),disabled:(0,t.lq)((0,t.zM)())});let B=b("FileInput",{name:(0,t.Yj)(),accept:(0,c.J)([(0,t.lq)((0,t.YO)((0,t.Yj)()))]),compact:(0,t.lq)((0,t.zM)()),disabled:(0,t.lq)((0,t.zM)())});let U=[v((0,r.RZ)(()=>ek)),M];let G=[M,v((0,r.RZ)(()=>ek))];let W=[v((0,r.RZ)(()=>ek)),M,v((0,r.RZ)(()=>ek))];let Y=[q,I,N,M,O,F,B,x,$,L];(0,c.J)([...Y,...U,...G,...W]);let V=(0,l.E$)(e=>{let r=Array.isArray(e);return r&&e.length===3?(0,t.PV)(W):(0,r&&e.length===2)?e[0]?.type==="Box"?(0,t.PV)(U):(0,t.PV)(G):(0,(0,l.i5)(Y))});let J=b("Field",{label:(0,t.lq)((0,t.Yj)()),error:(0,t.lq)((0,t.Yj)()),children:V});let K=b("Bold",{children:y([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,Z)})])});let Z=b("Italic",{children:y([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,K)})])});let Q=(0,l.i5)([K,Z]);let X=b("Avatar",{address:n.FX,size:(0,t.lq)((0,c.J)([(0,l.eu)("sm"),(0,l.eu)("md"),(0,l.eu)("lg")]))});let ee=y([(0,r.RZ)(()=>ek)]);let et=b("Box",{children:ee,direction:(0,t.lq)((0,c.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,c.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")])),crossAlignment:(0,t.lq)((0,c.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end")])),center:(0,t.lq)((0,t.zM)())});let er=b("Form",{children:ee,name:(0,t.Yj)()});let en=(0,e.YP)(T,"FooterButton",e=>{if(typeof e.props.children=="string"||typeof e.props.children=="boolean"||e.props.children===null)return!0;if(Array.isArray(e.props.children)){if(!e.props.children.some(e=>typeof e!=="string"&&typeof e!=="boolean"&&e!==null))return!0}return"Footer buttons may only contain text."});let es=b("Section",{children:ee,direction:(0,t.lq)((0,c.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,c.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")]))});let ei=b("CollapsibleSection",{children:ee,label:(0,t.Yj)(),isLoading:(0,t.lq)((0,t.zM)()),isExpanded:(0,t.lq)((0,t.zM)()),direction:(0,t.lq)((0,c.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,c.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")]))});let ea=b("Footer",{children:(0,l.E$)(e=>{return Array.isArray(e)?(0,t.PV)([en,en]):(0,en)})});let eo=b("Copyable",{value:(0,t.Yj)(),sensitive:(0,t.lq)((0,t.zM)())});let el=b("Divider");let ec=b("Heading",{children:p,size:(0,t.lq)((0,c.J)([(0,l.eu)("sm"),(0,l.eu)("md"),(0,l.eu)("lg")]))});let eu=b("Link",{href:(0,t.Yj)(),children:y([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([Q,S,w,D]))})])});let eh=b("Skeleton",{width:(0,t.lq)((0,t.KC)([(0,t.ai)(),(0,t.Yj)()])),height:(0,t.lq)((0,t.KC)([(0,t.ai)(),(0,t.Yj)()])),borderRadius:(0,t.lq)(_)});let ed=b("Text",{children:y([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([K,Z,eu,S,eh]))})]),alignment:(0,t.lq)((0,c.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end")])),color:(0,t.lq)((0,c.J)([(0,l.eu)("default"),(0,l.eu)("alternative"),(0,l.eu)("muted"),(0,l.eu)("error"),(0,l.eu)("success"),(0,l.eu)("warning")])),size:(0,t.lq)((0,c.J)([(0,l.eu)("sm"),(0,l.eu)("md")])),fontWeight:(0,t.lq)((0,c.J)([(0,l.eu)("regular"),(0,l.eu)("medium"),(0,l.eu)("bold")]))});let ef=b("Value",{value:(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,ed)}),extra:(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,ed)})});let em=(0,l.E$)(e=>{return typeof e=="boolean"?(0,t.zM)():(0,(0,l.i5)([ed,K,Z,eu,w,S]))});let ep=(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([ed,K,Z,eu,S]))});let eg=b("Tooltip",{children:(0,t.me)(em),content:ep});let ey=b("Banner",{children:y([(0,l.i5)([ed,eu,S,T,K,Z,eh])]),title:(0,t.Yj)(),severity:(0,t.KC)([(0,l.eu)("danger"),(0,l.eu)("info"),(0,l.eu)("success"),(0,l.eu)("warning")])});let ev=b("Row",{label:(0,t.Yj)(),children:(0,r.RZ)(()=>(0,l.i5)([ef,ek])),variant:(0,t.lq)((0,c.J)([(0,l.eu)("default"),(0,l.eu)("warning"),(0,l.eu)("critical")])),tooltip:(0,t.lq)((0,t.Yj)())});let eb=b("Spinner");let ek=(0,l.i5)([N,D,q,I,K,et,T,eo,L,el,O,F,J,B,er,ec,M,w,Z,eu,ev,eb,ed,eg,x,P,S,$,es,X,ey,eh,ei]);let e_=b("Container",{children:(0,l.E$)(e=>{return Array.isArray(e)?(0,t.PV)([ek,ea]):(0,ek)}),backgroundColor:(0,t.lq)((0,c.J)([(0,l.eu)("default"),(0,l.eu)("alternative")]))});let ew=(0,l.i5)([ek,e_]);let eS=(0,l.i5)([q,I,N,T,M,B,J,er,K,Z,D,et,eo,L,el,ec,w,eu,ev,eb,ed,O,R,F,H,ef,eg,x,ea,e_,P,S,$,z,es,X,ey,eh,ei]);function eT(e){return(0,a.Qd)(e)&&(0,a.i5)(e,"type")&&(0,a.i5)(e,"props")&&(0,a.i5)(e,"key")}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},939543(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{K:()=>t});var e=__webpack_require__(419142);function t(r,n,s=[n],i="npm"){let a=r._metadata||{};!a.sdk&&(a.sdk={name:`sentry.javascript.${n}`,packages:s.map(t=>({name:`${i}:@sentry/${t}`,version:e.M})),version:e.M}),r._metadata=a}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},942566(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){let r=e==="production"?"metamask-extension":`metamask-extension-test`;return`${r}@${t}`}__webpack_require__.d(__webpack_exports__,{n:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},943924(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{BY:()=>s,EU:()=>r,Se:()=>n});var e=__webpack_require__(419142);var t=__webpack_require__(901889);function r(){return n(t.O),t.O}function n(t){let r=t.__SENTRY__=t.__SENTRY__||{};return r.version=r.version||e.M,r[e.M]=r[e.M]||{}}function s(r,n,i=t.O){let a=i.__SENTRY__=i.__SENTRY__||{};let o=a[e.M]=a[e.M]||{};return o[r]||(o[r]=n())}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},944117(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{k:()=>n});var e=__webpack_require__(765698);var t=__webpack_require__(580436);var r=__webpack_require__(56680);let n=n=>{let s=e.j.requestIdleCallback||e.j.setTimeout;e.j.document?.visibilityState==="hidden"?n():(n=(0,r.J)(n),(0,t.d)("visibilitychange",n,{once:!0,capture:!0}),(0,t.d)("pagehide",n,{once:!0,capture:!0}),s(()=>{n(),(0,t.Q)("visibilitychange",n,{capture:!0}),(0,t.Q)("pagehide",n,{capture:!0})}))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},944887(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>c});var e=__webpack_require__(920938);var t=__webpack_require__(943924);var r=__webpack_require__(123532);var n=__webpack_require__(931263);var s=__webpack_require__(396102);var i=__webpack_require__(682631);var a=__webpack_require__(98154);var o=__webpack_require__(620772);var l=__webpack_require__(605816);function c(d={}){let f=d.client||(0,r.KU)();if(!(0,n.Ol)()||!f)return{};let m=(0,t.EU)();let p=(0,e.h)(m);if(p.getTraceData)return p.getTraceData(d);let g=d.scope||(0,r.o5)();let y=d.span||(0,i.Bk)();let v=y?(0,i.Qh)(y):u(g);let b=y?(0,a.k1)(y):(0,a.ao)(f,g);let k=(0,o.De)(b);if(!l.MI.test(v))return s.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let _={"sentry-trace":v,baggage:k};return d.propagateTraceparent&&(_.traceparent=y?(0,i.G_)(y):h(g)),_}function u(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,l.TC)(t,n,r)}function h(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,l.Iy)(t,n,r)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},945582(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>l});var e=__webpack_require__(78463);var t=__webpack_require__(123532);var r=__webpack_require__(18898);var n=__webpack_require__(396102);var s=__webpack_require__(306981);var i=__webpack_require__(814601);var a=__webpack_require__(821396);var o=__webpack_require__(33040);function l(e){let t=0;let r;if(!(0,o.Jy)("largest-contentful-paint"))return;let n=(0,a.Pt)(({metric:e})=>{let n=e.entries[e.entries.length-1];if(!n)return;t=e.value,r=n},!0);(0,o.WF)(e,(e,s)=>{c(t,r,s,e),n()})}function c(a,l,c,u){i.T&&n.Yz.log(`Sending LCP span (${a})`);let h=(0,o.rv)(((0,s.k3)()||0)+(l?.startTime||0));let d=(0,t.o5)().getScopeData().transactionName;let f=l?(0,r.Hd)(l.element):"Largest contentful paint";let m={[e.JD]:"auto.http.browser.lcp",[e.uT]:"ui.webvital.lcp",[e.jG]:0,"sentry.pageload.span_id":c,"sentry.report_event":u};l&&(l.element&&(m["lcp.element"]=(0,r.Hd)(l.element)),l.id&&(m["lcp.id"]=l.id),l.url&&(m["lcp.url"]=l.url),l.loadTime!=null&&(m["lcp.loadTime"]=l.loadTime),l.renderTime!=null&&(m["lcp.renderTime"]=l.renderTime),l.size!=null&&(m["lcp.size"]=l.size));let p=(0,o.kD)({name:f,transaction:d,attributes:m,startTime:h});p&&(p.addEvent("lcp",{[e.Sn]:"millisecond",[e.xc]:a}),p.end(h))}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},948643(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>e});let e={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()},948972(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(835203);class t extends e.A{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},949306(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M:()=>s8,w:()=>s3});var e=__webpack_require__(98154);var t=__webpack_require__(78463);var r=__webpack_require__(931263);var n=__webpack_require__(123532);var s=__webpack_require__(612717);var i=__webpack_require__(178061);var a=__webpack_require__(682631);var o=__webpack_require__(865961);var l=__webpack_require__(679351);var c=__webpack_require__(848294);var u=__webpack_require__(18898);var h=__webpack_require__(901889);var d=__webpack_require__(920942);var f=__webpack_require__(396102);var m=__webpack_require__(392316);var p=__webpack_require__(590041);var g=__webpack_require__(563023);var y=__webpack_require__(546155);var v=__webpack_require__(180121);var b=__webpack_require__(306981);var k=__webpack_require__(260516);var _=__webpack_require__(486023);var w=__webpack_require__(821396);var S=__webpack_require__(71337);var T=__webpack_require__(662925);var x=__webpack_require__(74342);var E=__webpack_require__(993671);var j=__webpack_require__(847768);let A=h.O;let C="sentryReplaySession";let M="Unable to send Replay";var I=Object.defineProperty;var R=(e,t,r)=>{let n;return e,r,(n=typeof t!=="symbol"?t+"":t)in e?I(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};var O;var L=((O=L||{})[O["Document"]=0]="Document",O[O["DocumentType"]=1]="DocumentType",O[O["Element"]=2]="Element",O[O["Text"]=3]="Text",O[O["CDATA"]=4]="CDATA",O[O["Comment"]=5]="Comment",O);function D(e){return e.nodeType===e.ELEMENT_NODE}function N(e){let t=e?.host;return Boolean(t?.shadowRoot===e)}function P(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function z(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push(`layer`):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function q(e){try{let t=e.rules||e.cssRules;return t?z(Array.from(t,F).join("")):null}catch(e){return null}}function H(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style;let s=n[r];let i=n.getPropertyPriority(s);t+=`${s}:${n.getPropertyValue(s)}${i?` !important`:""};`}return`${e.selectorText} { ${t} }`}function F(e){let t;if(U(e))try{t=q(e.styleSheet)||$(e)}catch(e){}else if(G(e)){let t=e.cssText;let r=e.selectorText.includes(":");let n=typeof e.style["all"]=="string"&&e.style["all"];if(n&&(t=H(e)),r&&(t=B(t)),r||n)return t}return t||e.cssText}function B(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function U(e){return"styleSheet"in e}function G(e){return"selectorText"in e}class W{constructor(){R(this,"idNodeMap",new Map),R(this,"nodeMetaMap",new WeakMap)}getId(e){return!e?-1:(0,this.getMeta(e)?.id??-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Y(){return new W}function V({maskInputOptions:e,tagName:t,type:r}){return t==="OPTION"&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="INPUT"&&!r&&e["text"])}function J({isMasked:e,element:t,value:r,maskInputFn:n}){let s=r||"";return!e?s:(n&&(s=n(s,t)),"*".repeat(s.length))}function K(e){return e.toLowerCase()}function Z(e){return e.toUpperCase()}let Q="__rrweb_original__";function X(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let s=t.getImageData;if(new Uint32Array((Q in s?s[Q]:s).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>e!==0))return!1}return!0}function ee(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function et(e,t,r){return t==="INPUT"&&(r==="radio"||r==="checkbox")?e.getAttribute("value")||"":(0,e.value)}function er(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let en={};function es(e){let t=en[e];if(t)return t;let r=window.document;let n=window[e];if(r&&typeof r.createElement=="function")try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(e){}return en[e]=n.bind(window)}function ei(...e){return es("setTimeout")(...e)}function ea(...e){return es("clearTimeout")(...e)}function eo(e){try{return e.contentDocument}catch(e){}}let el=1;let ec=new RegExp("[^a-z0-9-_:]");let eu=-2;function eh(){return el++}function ed(e){if(e instanceof HTMLFormElement)return"form";let t=K(e.tagName);return ec.test(t)?"div":(0,t)}function ef(e){let t="";return(t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}let em;let ep;let eg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm;let ey=/^(?:[a-z+]+:)?\/\//i;let ev=/^www\..*/i;let eb=/^(data:)([^,]*),(.*)/i;function ek(e,t){if(!e||t.size===0)return e;try{let r=e.split(";");let n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(r===-1){n.push(e);continue}let s=e.slice(0,r).trim();!t.has(s)&&n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}function e_(e,t){return(e||"").replace(eg,(e,r,n,s,i,a)=>{let o=n||i||a;let l=r||s||"";if(!o)return e;if(ey.test(o)||ev.test(o)||eb.test(o))return`url(${l}${o}${l})`;if(o[0]==="/")return`url(${l}${ef(t)+o}${l})`;let c=t.split("/");let u=o.split("/");for(let e of(c.pop(),u)){if(e===".")continue;e===".."?c.pop():c.push(e)}return`url(${l}${c.join("/")}${l})`})}let ew=/^[^ \t\n\r\u000c]+/;let eS=/^[, \t\n\r\u000c]+/;function eT(e,t){if(t.trim()==="")return t;let r=0;function n(e){let n;let s=e.exec(t.substring(r));return s?(n=s[0],r+=n.length,n):(0,"")}let s=[];while(!0){if(n(eS),r>=t.length)break;let i=n(ew);if(i.slice(-1)===",")i=eE(e,i.substring(0,i.length-1)),s.push(i);else{let n="";i=eE(e,i);let a=!1;while(!0){let e=t.charAt(r);if(e===""){s.push((i+n).trim());break}if(a)e===")"&&(a=!1);else{if(e===","){r+=1,s.push((i+n).trim());break}e==="("&&(a=!0)}n+=e,r+=1}}}return s.join(", ")}let ex=new WeakMap;function eE(e,t){return!t||t.trim()===""?t:(0,eA(e,t))}function ej(e){return Boolean(e.tagName==="svg"||e.ownerSVGElement)}function eA(e,t){let r=ex.get(e);if(!r&&(r=e.createElement("a"),ex.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eC(e,t,r,n,s,i,a){if(!n)return n;if(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#")return eE(e,n);if(r==="background"&&(t==="table"||t==="td"||t==="th"))return eE(e,n);if(r==="srcset")return eT(e,n);if(r==="style"){let t=e_(n,eA(e));return a&&a.size>0&&(t=ek(t,a)),t}else if(t==="object"&&r==="data")return eE(e,n);return typeof i=="function"?i(r,n,s):(0,n)}function eM(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function eI(e,t,r,n){try{if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}function eR(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}function eO(e,t,r=Infinity,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:(0,t(e))?n:(0,eO(e.parentNode,t,r,n+1))}function eL(e,t){return r=>{if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(eR(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function eD(e,t,r,n,s,i){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(a===null)return!1;if(a.tagName==="INPUT"){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1;let l=-1;if(i){if((l=eO(a,eL(n,s)))<0)return!0;o=eO(a,eL(t,r),l>=0?l:Infinity)}else{if((o=eO(a,eL(t,r)))<0)return!1;l=eO(a,eL(n,s),o>=0?o:Infinity)}return o>=0?l>=0?o<=l:!0:l>=0?!1:!!i}catch(e){}return!!i}function eN(e,t,r){let n=e.contentWindow;if(!n)return;let s=!1;let i;try{i=n.document.readyState}catch(e){return}if(i!=="complete"){let n=ei(()=>{!s&&(t(),s=!0)},r);e.addEventListener("load",()=>{ea(n),s=!0,t()});return}let a="about:blank";if(n.location.href!==a||e.src===a||e.src==="")return ei(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function eP(e,t,r){let n=!1;let s;try{s=e.sheet}catch(e){return}if(s)return;let i=ei(()=>{!n&&(t(),n=!0)},r);e.addEventListener("load",()=>{ea(i),n=!0,t()})}function ez(e,t){let{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:p,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:k,newlyAddedElement:_=!1,ignoreCSSAttributes:w}=t;let S=e$(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if(e.compatMode!=="CSS1Compat")return{type:L.Document,childNodes:[],compatMode:e.compatMode};return{type:L.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:L.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return eH(e,{doc:r,blockClass:s,blockSelector:i,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:m,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:k,newlyAddedElement:_,rootId:S,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,ignoreCSSAttributes:w});case e.TEXT_NODE:return eq(e,{doc:r,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,maskTextFn:p,maskInputOptions:m,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:L.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:L.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function e$(e,t){if(!t.hasNode(e))return void 0;let r=t.getId(e);return r===1?void 0:r}function eq(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:u}=t;let h=e.parentNode&&e.parentNode.tagName;let d=e.textContent;let f=h==="STYLE"?!0:void 0;let m=h==="SCRIPT"?!0:void 0;let p=h==="TEXTAREA"?!0:void 0;if(f&&d){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(d=q(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=e_(d,eA(t.doc))}m&&(d="SCRIPT_PLACEHOLDER");let g=eD(e,n,i,s,a,r);return!f&&!m&&!p&&d&&g&&(d=o?o(d,e.parentElement):d.replace(/[\S]/g,"*")),p&&d&&(l.textarea||g)&&(d=c?c(d,e.parentNode):d.replace(/[\S]/g,"*")),h==="OPTION"&&d&&(d=J({isMasked:eD(e,n,i,s,a,V({type:null,tagName:h,maskInputOptions:l})),element:e,value:d,maskInputFn:c})),{type:L.Text,textContent:d||"",isStyle:f,rootId:u}}function eH(e,t){let{doc:r,blockClass:n,blockSelector:s,unblockSelector:i,inlineStylesheet:a,maskInputOptions:o={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:h,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:p,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b,ignoreCSSAttributes:k}=t;let _=eI(e,n,s,i);let w=ed(e);let S={};let T=e.attributes.length;for(let t=0;t<T;t++){let n=e.attributes[t];n.name&&!eM(w,n.name,n.value)&&(S[n.name]=eC(r,w,K(n.name),n.value,e,l,k))}if(w==="link"&&a){let t=Array.from(r.styleSheets).find(t=>{return t.href===e.href});let n=null;t&&(n=q(t)),n&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=e_(n,t.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=q(e.sheet);t&&(S._cssText=e_(t,eA(r)))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){let t=ee(e);let r=et(e,Z(w),t);let n=e.checked;if(t!=="submit"&&t!=="button"&&r){let n=eD(e,g,v,y,b,V({type:t,tagName:Z(w),maskInputOptions:o}));S.value=J({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(S.checked=n)}if(w==="option"&&(e.selected&&!o["select"]?S.selected=!0:delete S.selected),w==="canvas"&&d){if(e.__context==="2d")!X(e)&&(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){let t=e.toDataURL(u.type,u.quality);let n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(u.type,u.quality)&&(S.rr_dataURL=t)}}if(w==="img"&&h){!em&&(ep=(em=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>";let n=e.crossOrigin;let s=()=>{e.removeEventListener("load",s);try{em.width=e.naturalWidth,em.height=e.naturalHeight,ep.drawImage(e,0,0),S.rr_dataURL=em.toDataURL(u.type,u.quality)}catch(r){if(e.crossOrigin!=="anonymous"){e.crossOrigin="anonymous",e.complete&&e.naturalWidth!==0?s():e.addEventListener("load",s);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}e.crossOrigin==="anonymous"&&(n?S.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&e.naturalWidth!==0?s():e.addEventListener("load",s)}if((w==="audio"||w==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),_){let{width:t,height:r}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${r}px`}}w==="iframe"&&!f(S.src)&&(!_&&!eo(e)&&(S.rr_src=S.src),delete S.src);let x;try{customElements.get(w)&&(x=!0)}catch(e){}return{type:L.Element,tagName:w,attributes:S,childNodes:[],isSVG:ej(e)||void 0,needBlock:_,rootId:p,isCustom:x}}function eF(e){return e===void 0||e===null?"":(0,e.toLowerCase())}function eB(e,t){if(t.comment&&e.type===L.Comment)return!0;if(e.type===L.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&er(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(eF(e.attributes.name).match(/^msapplication-tile(image|color)$/)||eF(e.attributes.name)==="application-name"||eF(e.attributes.rel)==="icon"||eF(e.attributes.rel)==="apple-touch-icon"||eF(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&eF(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(eF(e.attributes.property).match(/^(og|twitter|fb):/)||eF(e.attributes.name).match(/^(og|twitter):/)||eF(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(eF(e.attributes.name)==="robots"||eF(e.attributes.name)==="googlebot"||eF(e.attributes.name)==="bingbot"))return!0;else if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;else if(t.headMetaAuthorship&&(eF(e.attributes.name)==="author"||eF(e.attributes.name)==="generator"||eF(e.attributes.name)==="framework"||eF(e.attributes.name)==="publisher"||eF(e.attributes.name)==="progid"||eF(e.attributes.property).match(/^article:/)||eF(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&(eF(e.attributes.name)==="google-site-verification"||eF(e.attributes.name)==="yandex-verification"||eF(e.attributes.name)==="csrf-token"||eF(e.attributes.name)==="p:domain_verify"||eF(e.attributes.name)==="verify-v1"||eF(e.attributes.name)==="verification"||eF(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function eU(e,t){let{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:k=!1,recordCanvas:_=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:T=5e3,onBlockedImageLoad:x,onStylesheetLoad:E,stylesheetLoadTimeout:j=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:C=!1,ignoreCSSAttributes:M}=t;let{preserveWhiteSpace:I=!0}=t;let R=ez(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,maskAllText:o,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:k,recordCanvas:_,keepIframeSrcFn:A,newlyAddedElement:C,ignoreCSSAttributes:M});if(!R)return console.warn(e,"not serialized"),null;let O;O=n.hasNode(e)?n.getId(e):!eB(R,v)&&(I||R.type!==L.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?eh():eu;let z=Object.assign(R,{id:O});if(n.add(e,z),O===eu)return null;w&&w(e);let $=!d;if(z.type===L.Element){$=$&&!z.needBlock;let t=e.shadowRoot;t&&P(t)&&(z.isShadowHost=!0)}if((z.type===L.Document||z.type===L.Element)&&$){v.headWhitespace&&z.type===L.Element&&z.tagName==="head"&&(I=!1);let t={doc:r,mirror:n,blockClass:s,blockSelector:i,maskAllText:o,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:d,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:k,recordCanvas:_,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:T,onBlockedImageLoad:x,onStylesheetLoad:E,stylesheetLoadTimeout:j,keepIframeSrcFn:A,ignoreCSSAttributes:M};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=eU(r,t);e&&z.childNodes.push(e)}if(D(e)&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=eU(r,t);n&&(P(e.shadowRoot)&&(n.isShadow=!0),z.childNodes.push(n))}}if(e.parentNode&&N(e.parentNode)&&P(e.parentNode)&&(z.isShadow=!0),z.type===L.Element&&z.tagName==="iframe"&&!z.needBlock&&eN(e,()=>{let t=eo(e);if(t&&S){let r=eU(t,{doc:t,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:k,recordCanvas:_,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:j,keepIframeSrcFn:A,ignoreCSSAttributes:M});r&&S(e,r)}},T),z.type===L.Element&&z.tagName==="img"&&!e.complete&&z.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&x)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&x(e,z,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return z.type===L.Element&&z.tagName==="link"&&typeof z.attributes.rel=="string"&&(z.attributes.rel==="stylesheet"||z.attributes.rel==="preload"&&typeof z.attributes.href=="string"&&er(z.attributes.href)==="css")&&eP(e,()=>{if(E){let t=eU(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:k,recordCanvas:_,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:j,keepIframeSrcFn:A,ignoreCSSAttributes:M});t&&E(e,t)}},j),z.type===L.Element&&delete z.needBlock,z}function eG(e,t){let{mirror:r=new W,blockClass:n="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:m=!1,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:k,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:S,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:A=new Set([])}=t||{};return eU(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:p,maskTextFn:g,maskInputFn:y,slimDOMOptions:v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:f,preserveWhiteSpace:k,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:S,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:j,newlyAddedElement:!1,ignoreCSSAttributes:A})}function eW(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let eY=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let eV={map:{},getId(){return console.error(eY),-1},getNode(){return console.error(eY),null},removeNodeFromMap(){console.error(eY)},has(){return console.error(eY),!1},reset(){console.error(eY)}};function eJ(e,t,r={}){let n=null;let s=0;return function(...i){let a=Date.now();!s&&r.leading===!1&&(s=a);let o=t-(a-s);let l=this;o<=0||o>t?(n&&(th(n),n=null),s=a,e.apply(l,i)):!n&&r.trailing!==!1&&(n=tu(()=>{s=r.leading===!1?0:Date.now(),n=null,e.apply(l,i)},o))}}function eK(e,t,r,n,s=window){let i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){tu(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>eK(e,t,i||{},!0)}function eZ(e,t,r){try{if(!(t in e))return()=>{};let n=e[t];let s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}typeof window!=="undefined"&&window.Proxy&&window.Reflect&&(eV=new Proxy(eV,{get(e,t,r){return t==="map"&&console.error(eY),Reflect.get(e,t,r)}}));let eQ=Date.now;function eX(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function e0(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function e1(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function e3(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function e2(e,t,r,n,s){if(!e)return!1;let i=e3(e);if(!i)return!1;let a=eL(t,r);if(!s){let e=n&&i.matches(n);return a(i)&&!e}let o=eO(i,a);let l=-1;return o<0?!1:(n&&(l=eO(i,eL(null,n))),o>-1&&l<0)?!0:(0,o<l)}function e6(e,t){return t.getId(e)!==-1}function e5(e,t){return t.getId(e)===eu}function e8(e,t){if(N(e))return!1;let r=t.getId(e);return!t.has(r)?!0:(0,e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE)?!1:(0,!e.parentNode)?!0:(0,e8(e.parentNode,t))}function e4(e){return Boolean(e.changedTouches)}function e7(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),!Node.prototype.contains&&(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}function e9(e,t){return Boolean(e.nodeName==="IFRAME"&&t.getMeta(e))}function te(e,t){return Boolean(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function tt(e){return Boolean(e?.shadowRoot)}!/[1-9][0-9]{12}/.test(Date.now().toString())&&(eQ=()=>new Date().getTime());class tr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=t===void 0?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function tn(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ts(e){let t=e;let r;while(r=tn(t))t=r;return t}function ti(e){let t=e.ownerDocument;if(!t)return!1;let r=ts(e);return t.contains(r)}function ta(e){let t=e.ownerDocument;return!t?!1:(0,t.contains(e)||ti(e))}let to={};function tl(e){let t=to[e];if(t)return t;let r=window.document;let n=window[e];if(r&&typeof r.createElement=="function")try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(e){}return to[e]=n.bind(window)}function tc(...e){return tl("requestAnimationFrame")(...e)}function tu(...e){return tl("setTimeout")(...e)}function th(...e){return tl("clearTimeout")(...e)}var td;var tf=((td=tf||{})[td["DomContentLoaded"]=0]="DomContentLoaded",td[td["Load"]=1]="Load",td[td["FullSnapshot"]=2]="FullSnapshot",td[td["IncrementalSnapshot"]=3]="IncrementalSnapshot",td[td["Meta"]=4]="Meta",td[td["Custom"]=5]="Custom",td[td["Plugin"]=6]="Plugin",td);var tm;var tp=((tm=tp||{})[tm["Mutation"]=0]="Mutation",tm[tm["MouseMove"]=1]="MouseMove",tm[tm["MouseInteraction"]=2]="MouseInteraction",tm[tm["Scroll"]=3]="Scroll",tm[tm["ViewportResize"]=4]="ViewportResize",tm[tm["Input"]=5]="Input",tm[tm["TouchMove"]=6]="TouchMove",tm[tm["MediaInteraction"]=7]="MediaInteraction",tm[tm["StyleSheetRule"]=8]="StyleSheetRule",tm[tm["CanvasMutation"]=9]="CanvasMutation",tm[tm["Font"]=10]="Font",tm[tm["Log"]=11]="Log",tm[tm["Drag"]=12]="Drag",tm[tm["StyleDeclaration"]=13]="StyleDeclaration",tm[tm["Selection"]=14]="Selection",tm[tm["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",tm[tm["CustomElement"]=16]="CustomElement",tm);var tg;var ty=((tg=ty||{})[tg["MouseUp"]=0]="MouseUp",tg[tg["MouseDown"]=1]="MouseDown",tg[tg["Click"]=2]="Click",tg[tg["ContextMenu"]=3]="ContextMenu",tg[tg["DblClick"]=4]="DblClick",tg[tg["Focus"]=5]="Focus",tg[tg["Blur"]=6]="Blur",tg[tg["TouchStart"]=7]="TouchStart",tg[tg["TouchMove_Departed"]=8]="TouchMove_Departed",tg[tg["TouchEnd"]=9]="TouchEnd",tg[tg["TouchCancel"]=10]="TouchCancel",tg);var tv;var tb=((tv=tb||{})[tv["Mouse"]=0]="Mouse",tv[tv["Pen"]=1]="Pen",tv[tv["Touch"]=2]="Touch",tv);var tk;var t_=((tk=t_||{})[tk["Play"]=0]="Play",tk[tk["Pause"]=1]="Pause",tk[tk["Seeked"]=2]="Seeked",tk[tk["VolumeChange"]=3]="VolumeChange",tk[tk["RateChange"]=4]="RateChange",tk);function tw(e){try{return e.contentDocument}catch(e){}}function tS(e){try{return e.contentWindow}catch(e){}}function tT(e){return"__ln"in e}class tx{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&tT(e.previousSibling)){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&tT(e.nextSibling)&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;if(!this.head)return;t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--}}let tE=(e,t)=>`${e}@${t}`;class tj{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[];let t=new Set;let r=new tx;let n=e=>{let t=e;let r=eu;while(r===eu)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r};let s=s=>{if(!s.parentNode||!ta(s))return;let i=N(s.parentNode)?this.mirror.getId(tn(s)):this.mirror.getId(s.parentNode);let a=n(s);if(i===-1||a===-1)return r.addNode(s);let o=eU(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{e9(e,this.mirror)&&!e2(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),te(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),tt(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(e2(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:i,nextId:a,node:o}),t.add(o.id))};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet){if(tC(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode))continue;s(e)}for(let e of this.addedSet)tI(this.droppedSet,e)||tC(this.removes,e,this.mirror)?tI(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let i=null;while(r.length){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode);let r=n(i.value);t!==-1&&r!==-1&&(e=i)}if(!e){let t=r.tail;while(t){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(n(r.value)===-1)continue;if(t!==-1){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(this.mirror.getId(n)!==-1){e=r;break}}}}}}if(!e){while(r.head)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),s(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style=="string"){let r=JSON.stringify(e.styleDiff);let n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};if(!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length)return;this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a)},this.processMutation=e=>{if(e5(e.target,this.mirror))return;switch(e.type){case"characterData":{let t=e.target.textContent;!e2(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:eD(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,e3(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target;let r=e.attributeName;let n=e.target.getAttribute(r);if(r==="value"){let r=ee(t);let s=t.tagName;n=et(t,s,r);let i=V({maskInputOptions:this.maskInputOptions,tagName:s,type:r});n=J({isMasked:eD(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(e2(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(n)){if(tw(t))return;r="rr_src"}if(!s&&(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!eM(t.tagName,r)){if(s.attributes[r]=eC(this.doc,K(t.tagName),K(r),n,t,this.maskAttributeFn),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n);let i=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||i!==r.style.getPropertyPriority(n)?i===""?s.styleDiff[n]=e:s.styleDiff[n]=[e,i]:s._unchangedStyles[n]=[e,i]}for(let e of Array.from(r.style))t.style.getPropertyValue(e)===""&&(s.styleDiff[e]=!1)}}break}case"childList":{if(e2(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t);let n=N(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);if(e2(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e5(t,this.mirror)||!e6(t,this.mirror))return;this.addedSet.has(t)?(tA(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||e8(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tE(r,n)]?tA(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:N(e.target)&&P(e.target)?!0:void 0})),this.mapRemoves.push(t)});break}}},this.genAdds=(e,t)=>{if(this.processedNodeManager.inOtherBuffer(e,this)||this.addedSet.has(e)||this.movedSet.has(e))return;if(this.mirror.hasNode(e)){if(e5(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[tE(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!e2(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),tt(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function tA(e,t){e.delete(t),t.childNodes?.forEach(t=>tA(e,t))}function tC(e,t,r){return e.length===0?!1:(0,tM(e,t,r))}function tM(e,t,r){let n=t.parentNode;while(n){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}function tI(e,t){return e.size===0?!1:(0,tR(e,t))}function tR(e,t){let{parentNode:r}=t;return!r?!1:(0,e.has(r))?!0:(0,tR(e,r))}let tO;function tL(e){tO=e}function tD(){tO=void 0}let tN=e=>{return!tO?e:(0,(...t)=>{try{return e(...t)}catch(e){if(tO&&tO(e)===!0)return()=>{};throw e}})};let tP=[];function tz(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function t$(e,t){let r=new tj;tP.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;let s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(n=window[s]);let i=new n(tN(t=>{if(e.onMutation&&e.onMutation(t)===!1)return;r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function tq({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let s=typeof t.mousemove=="number"?t.mousemove:50;let i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let a=[];let o;let l=eJ(tN(t=>{let r=Date.now()-o;e(a.map(e=>{return e.timeOffset-=r,e}),t),a=[],o=null}),i);let c=tN(eJ(tN(e=>{let t=tz(e);let{clientX:r,clientY:s}=e4(e)?e.changedTouches[0]:e;!o&&(o=eQ()),a.push({x:r,y:s,id:n.getId(t),timeOffset:eQ()-o}),l(typeof DragEvent!=="undefined"&&e instanceof DragEvent?tp.Drag:e instanceof MouseEvent?tp.MouseMove:tp.TouchMove)}),s,{trailing:!1}));let u=[eW("mousemove",c,r),eW("touchmove",c,r),eW("drag",c,r)];return tN(()=>{u.forEach(e=>e())})}function tH({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let o=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction;let l=[];let c=null;return Object.keys(ty).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&o[e]!==!1).forEach(a=>{let o=K(a);let u=(a,t=>{let o=tz(t);if(e2(o,n,s,i,!0))return;let l=null;let u=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=tb.Mouse;break;case"touch":l=tb.Touch;break;case"pen":l=tb.Pen;break}l===tb.Touch?ty[a]===ty.MouseDown?u="TouchStart":ty[a]===ty.MouseUp&&(u="TouchEnd"):tb.Pen}else e4(t)&&(l=tb.Touch);l!==null?(c=l,(u.startsWith("Touch")&&l===tb.Touch||u.startsWith("Mouse")&&l===tb.Mouse)&&(l=null)):ty[a]===ty.Click&&(l=c,c=null);let h=e4(t)?t.changedTouches[0]:t;if(!h)return;let d=r.getId(o);let{clientX:f,clientY:m}=h;tN(e)({type:ty[u],id:d,x:f,y:m,...l!==null&&{pointerType:l}})});if(window.PointerEvent)switch(ty[a]){case ty.MouseDown:case ty.MouseUp:o=o.replace("mouse","pointer");break;case ty.TouchStart:case ty.TouchEnd:return}l.push(eW(o,u,t))}),tN(()=>{l.forEach(e=>e())})}function tF({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,sampling:a}){return eW("scroll",tN(eJ(tN(a=>{let o=tz(a);if(!o||e2(o,n,s,i,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=eX(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}function tB({viewportResizeCb:e},{win:t}){let r=-1;let n=-1;return eW("resize",tN(eJ(tN(()=>{let t=e0();let s=e1();(r!==t||n!==s)&&(e({width:Number(s),height:Number(t)}),r=t,n=s)}),200)),t)}let tU=["INPUT","TEXTAREA","SELECT"];let tG=new WeakMap;function tW({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:h,maskTextClass:d,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:p}){function g(e){let r=tz(e);let u=e.isTrusted;let g=r&&Z(r.tagName);if(g==="OPTION"&&(r=r.parentElement),!r||!g||tU.indexOf(g)<0||e2(r,n,s,i,!0))return;let v=r;if(v.classList.contains(a)||o&&v.matches(o))return;let b=ee(r);let k=et(v,g,b);let _=!1;let w=V({maskInputOptions:l,tagName:g,type:b});let S=eD(r,d,m,f,p,w);(b==="radio"||b==="checkbox")&&(_=r.checked),k=J({isMasked:S,element:r,value:k,maskInputFn:c}),y(r,h?{text:k,isChecked:_,userTriggered:u}:{text:k,isChecked:_});let T=r.name;b==="radio"&&T&&_&&t.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach(e=>{if(e!==r){let t=J({isMasked:S,element:e,value:et(e,g,b),maskInputFn:c});y(e,h?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function y(t,n){let s=tG.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){tG.set(t,n);let s=r.getId(t);tN(e)({...n,id:s})}}let v=(u.input==="last"?["change"]:["input","change"]).map(e=>eW(e,tN(g),t));let b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};let k=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value");let _=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return k&&k.set&&v.push(..._.map(e=>eK(e[0],e[1],{set(){tN(g)({target:this,isTrusted:!1})}},!1,b))),tN(()=>{v.forEach(e=>e())})}function tY(e){var t,r;return t=e,r=[],t2("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||t2("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||t2("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||t2("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule?r.unshift(Array.from(t.parentRule.cssRules).indexOf(t)):t.parentStyleSheet&&r.unshift(Array.from(t.parentStyleSheet.cssRules).indexOf(t)),r}function tV(e,t,r){let n,s;return!e?{}:(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n})}function tJ({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:tN((n,s,i)=>{let[a,o]=i;let{id:l,styleId:c}=tV(s,t,r.styleMirror);return(l&&l!==-1||c&&c!==-1)&&e({id:l,styleId:c,adds:[{rule:a,index:o}]}),n.apply(s,i)})});let i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:tN((n,s,i)=>{let[a]=i;let{id:o,styleId:l}=tV(s,t,r.styleMirror);return(o&&o!==-1||l&&l!==-1)&&e({id:o,styleId:l,removes:[{index:a}]}),n.apply(s,i)})});let a;n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:tN((n,s,i)=>{let[a]=i;let{id:o,styleId:l}=tV(s,t,r.styleMirror);return(o&&o!==-1||l&&l!==-1)&&e({id:o,styleId:l,replace:a}),n.apply(s,i)})}));let o;n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:tN((n,s,i)=>{let[a]=i;let{id:o,styleId:l}=tV(s,t,r.styleMirror);return(o&&o!==-1||l&&l!==-1)&&e({id:o,styleId:l,replaceSync:a}),n.apply(s,i)})}));let l={};t6("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(t6("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),t6("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),t6("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,s])=>{c[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[n].insertRule,{apply:tN((n,s,i)=>{let[a,o]=i;let{id:l,styleId:c}=tV(s.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||c&&c!==-1)&&e({id:l,styleId:c,adds:[{rule:a,index:[...tY(s),o||0]}]}),n.apply(s,i)})}),s.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:tN((n,s,i)=>{let[a]=i;let{id:o,styleId:l}=tV(s.parentStyleSheet,t,r.styleMirror);return(o&&o!==-1||l&&l!==-1)&&e({id:o,styleId:l,removes:[{index:[...tY(s),a]}]}),n.apply(s,i)})})}),tN(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,a&&(n.CSSStyleSheet.prototype.replace=a),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}function tK({mirror:e,stylesheetManager:t},r){let n=null;n=r.nodeName==="#document"?e.getId(r):e.getId(r.host);let s=r.nodeName==="#document"?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot;let i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return n===null||n===-1||!s||!i?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let r=i.set?.call(this,e);if(n!==null&&n!==-1)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),tN(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function tZ({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){let i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:tN((s,a,o)=>{let[l,c,u]=o;if(r.has(l))return i.apply(a,[l,c,u]);let{id:h,styleId:d}=tV(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||d&&d!==-1)&&e({id:h,styleId:d,set:{property:l,value:c,priority:u},index:tY(a.parentRule)}),s.apply(a,o)})});let a=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:tN((s,i,o)=>{let[l]=o;if(r.has(l))return a.apply(i,[l]);let{id:c,styleId:u}=tV(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||u&&u!==-1)&&e({id:c,styleId:u,remove:{property:l},index:tY(i.parentRule)}),s.apply(i,o)})}),tN(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=a})}function tQ({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:s,sampling:i,doc:a}){let o=tN(a=>eJ(tN(i=>{let o=tz(i);if(!o||e2(o,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:h}=o;e({type:a,id:s.getId(o),currentTime:l,volume:c,muted:u,playbackRate:h})}),i.media||500));let l=[eW("play",o(t_.Play),a),eW("pause",o(t_.Pause),a),eW("seeked",o(t_.Seeked),a),eW("volumechange",o(t_.VolumeChange),a),eW("ratechange",o(t_.RateChange),a)];return tN(()=>{l.forEach(e=>e())})}function tX({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[];let s=new WeakMap;let i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return s.set(n,{family:e,buffer:typeof t!=="string",descriptors:r,fontSource:typeof t=="string"?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let a=eZ(t.fonts,"add",function(t){return function(r){return tu(tN(()=>{let t=s.get(r);t&&(e(t),s.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(a),tN(()=>{n.forEach(e=>e())})}function t0(e){let{doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,selectionCb:a}=e;let o=!0;let l=tN(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[];let c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:o,endContainer:c,endOffset:u}=e.getRangeAt(t);if(e2(a,n,s,i,!0)||e2(c,n,s,i,!0))continue;l.push({start:r.getId(a),startOffset:o,end:r.getId(c),endOffset:u})}a({ranges:l})});return l(),eW("selectionchange",l)}function t1({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:(0,eZ(r.customElements,"define",function(e){return function(r,n,s){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,s])}}))}function t3(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=t$(e,e.doc));let s=tq(e);let i=tH(e);let a=tF(e);let o=tB(e,{win:r});let l=tW(e);let c=tQ(e);let u=()=>{};let h=()=>{};let d=()=>{};let f=()=>{};e.recordDOM&&(u=tJ(e,{win:r}),h=tK(e,e.doc),d=tZ(e,{win:r}),e.collectFonts&&(f=tX(e)));let m=t0(e);let p=t1(e);let g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return tN(()=>{tP.forEach(e=>e.reset()),n?.disconnect(),s(),i(),a(),o(),l(),c(),u(),h(),d(),f(),m(),p(),g.forEach(e=>e())})}function t2(e){return window[e]!==void 0}function t6(e){return Boolean(window[e]!==void 0&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class t5{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let s=r||this.getIdToRemoteIdMap(e);let i=n||this.getRemoteIdToIdMap(e);let a=s.get(t);return!a&&(a=this.generateIdFn(),s.set(t,a),i.set(a,t)),a}getIds(e,t){let r=this.getIdToRemoteIdMap(e);let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if(typeof t!=="number")return t;let s=n.get(t);return!s?-1:(0,s)}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return!t&&(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return!t&&(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class t8{constructor(){this.crossOriginIframeMirror=new t5(eh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class t4{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new t5(eh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new t5(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=tw(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if(e.data.type!=="rrweb"||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case tf.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:tf.IncrementalSnapshot,data:{source:tp.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tf.Meta:case tf.Load:case tf.DomContentLoaded:return!1;case tf.Plugin:return t;case tf.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tf.IncrementalSnapshot:switch(t.data.source){case tp.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case tp.Drag:case tp.TouchMove:case tp.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case tp.ViewportResize:return!1;case tp.MediaInteraction:case tp.MouseInteraction:case tp.Scroll:case tp.CanvasMutation:case tp.Input:return this.replaceIds(t.data,e,["id"]),t;case tp.StyleSheetRule:case tp.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tp.Font:return t;case tp.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case tp.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let s of n){if(!Array.isArray(t[s])&&typeof t[s]!=="number")continue;Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s])}return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==L.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class t7{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class t9{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!P(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=t$({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(tF({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),tu(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tK({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=tw(e);let r=tS(e);if(!t||!r)return;this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(eZ(e.prototype,"attachShadow",function(e){return function(n){let s=e.call(this,n);return this.shadowRoot&&ta(this)&&r.addShadowRoot(this.shadowRoot,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var rt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var rr=0;rr<re.length;rr++)rt[re.charCodeAt(rr)]=rr;class rn{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class rs{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new tr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){if(this.trackedLinkElements.has(e))return;this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e)}adoptStyleSheets(e,t){if(e.length===0)return;let r={id:t,styleIds:[]};let n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:F(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ri{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){!this.active&&(this.active=!0,tc(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let ra;let ro;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let rl=Y();function rc(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:h=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:p,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:k,maxCanvasSize:_=null,packFn:w,sampling:S={},dataURLOptions:T={},mousemoveWait:x,recordDOM:E=!0,recordCanvas:j=!1,recordCrossOriginIframes:A=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:I=!1,inlineImages:R=!1,plugins:O,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:P,getCanvasManager:z}=e;tL(N);let $=A?window.parent===window:!0;let q=!1;if(!$)try{window.parent.document&&(q=!1)}catch(e){q=!0}if($&&!t)throw new Error("emit function is required");if(!$&&!q)return()=>{};x!==void 0&&S.mousemove===void 0&&(S.mousemove=x),rl.reset();let H=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g!==void 0?g:{};let F=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};e7();let B;let U=0;let G=e=>{for(let t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!q&&(e=w(e)),e};ra=(e,s)=>{if(e.timestamp=eQ(),tP[0]?.isFrozen()&&e.type!==tf.FullSnapshot&&!(e.type===tf.IncrementalSnapshot&&e.data.source===tp.Mutation)&&tP.forEach(e=>e.unfreeze()),$)t?.(G(e),s);else if(q){let t={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===tf.FullSnapshot)B=e,U=0;else if(e.type===tf.IncrementalSnapshot){if(e.data.source===tp.Mutation&&e.data.isAttachIframe)return;U++;let t=n&&U>=n;let s=r&&B&&e.timestamp-B.timestamp>r;(t||s)&&ee(!0)}};let W=e=>{ra({type:tf.IncrementalSnapshot,data:{source:tp.Mutation,...e}})};let Y=e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.Scroll,...e}});let V=e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.CanvasMutation,...e}});let J=new rs({mutationCb:W,adoptedStyleSheetCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.AdoptedStyleSheet,...e}})});let K=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new t8:new t4({mirror:rl,mutationCb:W,stylesheetManager:J,recordCrossOriginIframes:A,wrappedEmit:ra});for(let e of O||[])e.getMirror&&e.getMirror({nodeMirror:rl,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});let Z=new ri;let Q=rh(z,{mirror:rl,win:window,mutationCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.CanvasMutation,...e}}),recordCanvas:j,blockClass:s,blockSelector:i,unblockSelector:a,maxCanvasSize:_,sampling:S["canvas"],dataURLOptions:T,errorHandler:N});let X=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new t7:new t9({mutationCb:W,scrollCb:Y,bypassOptions:{onMutation:P,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:h,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:H,dataURLOptions:T,maskAttributeFn:v,maskTextFn:k,maskInputFn:b,recordCanvas:j,inlineImages:R,sampling:S,slimDOMOptions:F,iframeManager:K,stylesheetManager:J,canvasManager:Q,keepIframeSrcFn:L,processedNodeManager:Z,ignoreCSSAttributes:D},mirror:rl});let ee=(e=!1)=>{if(!E)return;ra({type:tf.Meta,data:{href:window.location.href,width:e1(),height:e0()}},e),J.reset(),X.init(),tP.forEach(e=>e.lock());let t=eG(document,{mirror:rl,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:h,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:H,maskAttributeFn:v,maskInputFn:b,maskTextFn:k,slimDOM:F,dataURLOptions:T,recordCanvas:j,inlineImages:R,onSerialize:e=>{e9(e,rl)&&K.addIframe(e),te(e,rl)&&J.trackLinkElement(e),tt(e)&&X.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{K.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),X.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{W({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:L,ignoreCSSAttributes:D});if(!t)return console.warn("Failed to snapshot the document");ra({type:tf.FullSnapshot,data:{node:t,initialOffset:eX(window)}}),tP.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,rl.getId(document))};ro=ee;try{let e=[];let t=e=>{return tN(t3)({onMutation:P,mutationCb:W,mousemoveCb:(e,t)=>ra({type:tf.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.ViewportResize,...e}}),inputCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.Input,...e}}),mediaInteractionCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.MediaInteraction,...e}}),styleSheetRuleCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.StyleSheetRule,...e}}),styleDeclarationCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.StyleDeclaration,...e}}),canvasMutationCb:V,fontCb:e=>ra({type:tf.IncrementalSnapshot,data:{source:tp.Font,...e}}),selectionCb:e=>{ra({type:tf.IncrementalSnapshot,data:{source:tp.Selection,...e}})},customElementCb:e=>{ra({type:tf.IncrementalSnapshot,data:{source:tp.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:h,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:m,sampling:S,recordDOM:E,recordCanvas:j,inlineImages:R,userTriggeredOnInput:M,collectFonts:I,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:k,keepIframeSrcFn:L,blockSelector:i,unblockSelector:a,slimDOMOptions:F,dataURLOptions:T,mirror:rl,iframeManager:K,stylesheetManager:J,shadowDomManager:X,processedNodeManager:Z,canvasManager:Q,ignoreCSSAttributes:D,plugins:O?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>ra({type:tf.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{})};K.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ee(),e.push(t(document))};return document.readyState==="interactive"||document.readyState==="complete"?r():(e.push(eW("DOMContentLoaded",()=>{ra({type:tf.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&r()})),e.push(eW("load",()=>{ra({type:tf.Load,data:{}}),C==="load"&&r()},window))),()=>{e.forEach(e=>e()),Z.destroy(),ro=void 0,tD()}}catch(e){console.warn(e)}}function ru(e){if(!ro)throw new Error("please take full snapshot after start recording");ro(e)}function rh(e,t){try{return e?e(t):new rn}catch{return console.warn("Unable to initialize CanvasManager"),new rn}}var rd;var rf;function rm(e){return e>0x2540be3ff?e:e*1e3}function rp(e){return e>0x2540be3ff?e/1e3:e}function rg(e,t){if(t.category==="sentry.transaction")return;["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>{return e.throttledAddEvent({type:tf.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:(0,p.S8)(t,10,1e3)}}),t.category==="console"})}function ry(e){return e.closest("button,a")||e}function rv(e){let t=rb(e);return!t||!(t instanceof Element)?t:(0,ry(t))}function rb(e){return rk(e)?e.target:(0,e)}function rk(e){return typeof e=="object"&&!!e&&"target"in e}rc.mirror=rl,rc.takeFullSnapshot=ru,(rf=rd||(rd={}))[rf.NotStarted=0]="NotStarted",rf[rf.Running=1]="Running",rf[rf.Stopped=2]="Stopped";let r_;function rw(e){return!r_&&(r_=[],rS()),r_.push(e),()=>{let t=r_?r_.indexOf(e):-1;t>-1&&r_.splice(t,1)}}function rS(){(0,g.GS)(A,"open",function(e){return function(...t){if(r_)try{r_.forEach(e=>e())}catch{}return e.apply(A,t)}})}let rT=new Set([tp.Mutation,tp.StyleSheetRule,tp.StyleDeclaration,tp.AdoptedStyleSheet,tp.CanvasMutation,tp.Selection,tp.MediaInteraction]);function rx(e,t,r){e.handleClick(t,r)}class rE{constructor(e,t,r=rg){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){let e=rw(()=>{this._lastMutation=rM()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(rA(t,this._ignoreSelector)||!rC(e))return;let r={timestamp:rp(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};if(this._clicks.some(e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))return;this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks()}registerMutation(e=Date.now()){this._lastMutation=rp(e)}registerScroll(e=Date.now()){this._lastScroll=rp(e)}registerClick(e){let t=ry(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[];let t=rM();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:undefined),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:undefined),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay;let r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout;let n=e.mutationAfter&&e.mutationAfter<=this._threshold;let{clickCount:s,clickBreadcrumb:i}=e;if(!r&&!n){let r=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3;let n=r<this._timeout*1e3?"mutation":"timeout";let a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:A.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:s||1}};this._addBreadcrumbEvent(t,a);return}if(s>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:A.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,x.wg)(()=>this._checkClicks(),1e3)}}let rj=["A","BUTTON","INPUT"];function rA(e,t){return!rj.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t)?!0:(0,!1)}function rC(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function rM(){return Date.now()/1e3}function rI(e,t){try{if(!rR(t))return;let{source:r}=t.data;if(rT.has(r)&&e.registerMutation(t.timestamp),r===tp.Scroll&&e.registerScroll(t.timestamp),rO(t)){let{type:r,id:n}=t.data;let s=rc.mirror.getNode(n);s instanceof HTMLElement&&r===ty.Click&&e.registerClick(s)}}catch{}}function rR(e){return e.type===3}function rO(e){return e.data.source===tp.MouseInteraction}function rL(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var rD;var rN=((rD=rN||{})[rD["Document"]=0]="Document",rD[rD["DocumentType"]=1]="DocumentType",rD[rD["Element"]=2]="Element",rD[rD["Text"]=3]="Text",rD[rD["CDATA"]=4]="CDATA",rD[rD["Comment"]=5]="Comment",rD);let rP=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function rz(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(rP.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),t[n]=e[r]}return t}function r$(e,t){let r=rc.mirror.getId(e);let n=r&&rc.mirror.getNode(r);let s=n&&rc.mirror.getMeta(n);let i=s&&rF(s)?s:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===rN.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:rz(i.attributes)}}:{}}}function rq(e){let{target:t,message:r}=rH(e);return rL({category:`ui.${e.name}`,...r$(t,r)})}function rH(e){let t=e.name==="click";let r;let n=null;try{n=t?rv(e.event):rb(e.event),r=(0,u.Hd)(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}function rF(e){return e.type===rN.Element}function rB(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=rU(t);if(!r)return;rg(e,r)}function rU(e){let{metaKey:t,shiftKey:r,ctrlKey:n,altKey:s,key:i,target:a}=e;if(!a||rG(a)||!i)return null;let o=t||n||s;let l=i.length===1;if(!o&&l)return null;let c=(0,u.Hd)(a,{maxStringLength:200})||"<unknown>";let h=r$(a,c);return rL({category:"ui.keyDown",message:c,data:{...h.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:s,key:i}})}function rG(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}let rW={resource:rX,paint:rZ,navigation:rQ};function rY(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function rV(e){return e.map(rJ).filter(Boolean)}function rJ(e){let t=rW[e.entryType];return!t?null:(0,t(e))}function rK(e){return(((0,b.k3)()||A.performance.timeOrigin)+e)/1e3}function rZ(e){let{duration:t,entryType:r,name:n,startTime:s}=e;let i=rK(s);return{type:r,name:n,start:i,end:i+t,data:undefined}}function rQ(e){let{entryType:t,name:r,decodedBodySize:n,duration:s,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:h,redirectCount:d,startTime:f,transferSize:m,type:p}=e;return s===0?null:(0,{type:`${t}.${p}`,start:rK(f),end:rK(i),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:a,duration:s,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:h,domComplete:i,redirectCount:d}})}function rX(e){let{entryType:t,initiatorType:r,name:n,responseEnd:s,startTime:i,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:(0,{type:`${t}.${r}`,start:rK(i),end:rK(s),name:n,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:o}})}function r0(e){let t=e.entries[e.entries.length-1];return r6(e,"largest-contentful-paint",t?.element?[t.element]:undefined)}function r1(e){return e.sources!==undefined}function r3(e){let t=[];let r=[];for(let n of e.entries)if(r1(n)){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=rc.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:undefined})}return r6(e,"cumulative-layout-shift",r,t)}function r2(e){let t=e.entries[e.entries.length-1];return r6(e,"interaction-to-next-paint",t?.target?[t.target]:undefined)}function r6(e,t,r,n){let s=e.value;let i=e.rating;let a=rK(s);return{type:"web-vital",name:t,start:a,end:a,data:{value:s,size:s,rating:i,nodeIds:r?r.map(e=>rc.mirror.getId(e)):undefined,attributions:n}}}function r5(e){function t(t){!e.performanceEntries.includes(t)&&e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,w.wv)(e,r))}),n.push((0,w.Pt)(rY(r0,e)),(0,w.a9)(rY(r3,e)),(0,w.hT)(rY(r2,e))),()=>{n.forEach(e=>e())}}let r8=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;let r4=`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function r7(){let e=new Blob([r4]);return URL.createObjectURL(e)}let r9=["log","warn","error"];let ne="[Replay] ";function nt(e,t="info"){(0,c.Z)({category:"console",data:{logger:"replay"},level:t,message:`${ne}${e}`},{level:t})}let nr=function(){let e=!1;let t=!1;let n={exception:()=>undefined,infoTick:()=>undefined,setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return r8?(r9.forEach(e=>{n[e]=(...r)=>{f.Yz[e](ne,...r),t&&nt(r.join(""),(0,y.t)(e))}}),n.exception=(s,...i)=>{i.length&&n.error&&n.error(...i),f.Yz.error(ne,s),e?(0,r.Cp)(s,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&nt(s,"error")},n.infoTick=(...e)=>{f.Yz.log(ne,...e),t&&setTimeout(()=>nt(e[0]),0)}):r9.forEach(e=>{n[e]=()=>undefined}),n}();class nn extends Error{constructor(){super(`Event buffer exceeded maximum size of ${"20000000"}.`)}}class ns{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new nn;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return!e?null:(0,rm(e))}}class ni{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(0,this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){r8&&nr.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,s)=>{let i=({data:t})=>{if(t.method!==e||t.id!==r)return;if(this._worker.removeEventListener("message",i),!t.success){r8&&nr.error("Error in compression worker: ",t.response),s(new Error("Error in compression worker"));return}n(t.response)};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class na{constructor(e){this._worker=new ni(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=rm(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new nn):(0,this._sendEventToWorker(r))}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{r8&&nr.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class no{constructor(e){this._fallback=new ns,this._compression=new na(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){r8&&nr.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback;let n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){r8&&nr.exception(e,"Failed to add events when switching buffers.")}}}function nl({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=nc(t);if(e)return e}return r8&&nr.log("Using simple buffer"),new ns}function nc(e){try{let t=e||nu();if(!t)return;r8&&nr.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new no(r)}catch(e){r8&&nr.exception(e,"Failed to create compression worker")}}function nu(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__=="undefined"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?r7():(0,"")}function nh(){try{return"sessionStorage"in A&&!!A.sessionStorage}catch{return!1}}function nd(e){nf(),e.session=undefined}function nf(){if(!nh())return;try{A.sessionStorage.removeItem(C)}catch{}}function nm(e){return e===undefined?!1:(0,Math.random()<e)}function np(e){if(!nh())return;try{A.sessionStorage.setItem(C,JSON.stringify(e))}catch{}}function ng(e){let t=Date.now();let r=e.id||(0,m.eJ)();let n=e.started||t;let s=e.lastActivity||t;let i=e.segmentId||0;let a=e.sampled;return{id:r,started:n,lastActivity:s,segmentId:i,sampled:a,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function ny(e,t){return nm(e)?"session":t?"buffer":!1}function nv({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let s=ng({sampled:ny(e,t),previousSessionId:n});return r&&np(s),s}function nb(){if(!nh())return null;try{let e=A.sessionStorage.getItem(C);if(!e)return null;let t=JSON.parse(e);return r8&&nr.infoTick("Loading existing session"),ng(t)}catch{return null}}function nk(e,t,r=+new Date){return e===null||t===undefined||t<0?!0:(0,t===0)?!1:(0,e+t<=r)}function n_(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return nk(e.started,t,n)||nk(e.lastActivity,r,n)}function nw(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!n_(e,{sessionIdleExpire:t,maxReplayDuration:r})||e.sampled==="buffer"&&e.segmentId===0?!1:(0,!0)}function nS({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let s=n.stickySession&&nb();return!s?(r8&&nr.infoTick("Creating new session"),nv(n,{previousSessionId:r})):(0,!nw(s,{sessionIdleExpire:e,maxReplayDuration:t}))?s:(r8&&nr.infoTick("Session in sessionStorage is expired, creating new one..."),nv(n,{previousSessionId:s.id}))}function nT(e){return e.type===tf.Custom}function nx(e,t,r){return!nA(e,t)?!1:(nj(e,t,r),!0)}function nE(e,t,r){return!nA(e,t)?Promise.resolve(null):(0,nj(e,t,r))}async function nj(e,t,r){let{eventBuffer:s}=e;if(!s||s.waitForCheckout&&!r)return null;let i=e.recordingMode==="buffer";try{r&&i&&s.clear(),r&&(s.hasCheckout=!0,s.waitForCheckout=!1);let n=e.getOptions();let a=nC(t,n.beforeAddRecordingEvent);if(!a)return;return await s.addEvent(a)}catch(a){let t=a&&a instanceof nn;let r=(0,n.KU)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return s.clear(),s.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function nA(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=rm(t.timestamp);return r+e.timeouts.sessionIdlePause<Date.now()?!1:(0,r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)?(r8&&nr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1):(0,!0)}function nC(e,t){try{if(typeof t=="function"&&nT(e))return t(e)}catch(e){return r8&&nr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function nM(e){return!e.type}function nI(e){return e.type==="transaction"}function nR(e){return e.type==="replay_event"}function nO(e){return e.type==="feedback"}function nL(e){return(t,r)=>{if(!e.isEnabled()||!nM(t)&&!nI(t))return;let n=r.statusCode;if(!n||n<200||n>=300)return;if(nI(t)){nD(e,t);return}nN(e,t)}}function nD(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}function nN(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();if(typeof n=="function"&&!n(t))return;(0,x.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function nP(e){return t=>{if(!e.isEnabled()||!nM(t))return;nz(e,t)}}function nz(e,t){let r=t.exception?.values?.[0]?.value;if(typeof r!=="string")return;(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&rg(e,rL({category:"replay.hydrate-error",data:{url:(0,u.$N)()}}))}function n$(e){let t=(0,n.KU)();if(!t)return;t.on("beforeAddBreadcrumb",t=>nq(e,t))}function nq(e,t){if(!e.isEnabled()||!nB(t))return;let r=nH(t);r&&rg(e,r)}function nH(e){return!nB(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:(0,e.category==="console")?nF(e):(0,rL(e))}function nF(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return rL(e);let r=!1;let n=t.map(e=>{if(!e)return e;if(typeof e=="string")return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):(0,e);if(typeof e=="object")try{let t=(0,p.S8)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return rL({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function nB(e){return!!e.category}function nU(e,t){return e.type||!e.exception?.values?.length?!1:(0,t.originalException?.__rrweb__)?!0:(0,!1)}function nG(){let t=(0,n.o5)().getPropagationContext().dsc;t&&delete t.replay_id;let r=(0,a.Bk)();if(r){let t=(0,e.k1)(r);delete t.replay_id}}function nW(e,t){e.triggerUserActivity(),e.addUpdate(()=>{return!t.timestamp?!0:(e.throttledAddEvent({type:tf.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)})}function nY(e,t){return e.recordingMode!=="buffer"||t.message===M||!t.exception||t.type?!1:(0,nm(e.getOptions().errorSampleRate))}function nV(e){return Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if(nR(t))return delete t.breadcrumbs,t;if(!nM(t)&&!nI(t)&&!nO(t))return t;if(!e.checkAndHandleExpiredSession())return nG(),t;if(nO(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),nW(e,t),t;if(nU(t,r)&&!e.getOptions()._experiments.captureExceptions)return r8&&nr.log("Ignoring error from rrweb internals",t),null;let n=nY(e,t);if((n||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&np(t)}return t},{id:"Replay"})}function nJ(e,t){return t.map(({type:t,start:r,end:n,name:s,data:i})=>{let a=e.throttledAddEvent({type:tf.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:r,endTimestamp:n,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function nK(e){let{from:t,to:r}=e;let n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}function nZ(e){return t=>{if(!e.isEnabled())return;let r=nK(t);if(r===null)return;e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>{return nJ(e,[r]),!1})}}function nQ(e,t){return r8&&e.getOptions()._experiments.traceInternals?!1:(0,(0,i.A)(t,(0,n.KU)()))}function nX(e,t){if(!e.isEnabled()||t===null||nQ(e,t.name))return;e.addUpdate(()=>{return nJ(e,[t]),!0})}function n0(e){if(!e)return undefined;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=(0,j.P4)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}return undefined}function n1(e){if(!e)return undefined;let t=parseInt(e,10);return isNaN(t)?undefined:t}function n3(e,t){if(!e)return{headers:{},size:undefined,_meta:{warnings:[t]}};let r={...e._meta};let n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function n2(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:s,method:i,statusCode:a,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:s,data:{method:i,statusCode:a,request:o,response:l}}}function n6(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function n5(e,t,r){if(!t&&Object.keys(e).length===0)return undefined;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t};let{body:s,warnings:i}=n4(r);return n.body=s,i?.length&&(n._meta={warnings:i}),n}function n8(e,t){return Object.entries(e).reduce((r,[n,s])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=s),r},{})}function n4(e){if(!e||typeof e!=="string")return{body:e};let t=e.length>15e4;let r=n7(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:(0,{body:`${t}…`,warnings:["TEXT_TRUNCATED"]})}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function n7(e){let t=e[0];let r=e[e.length-1];return t==="["&&r==="]"||t==="{"&&r==="}"}function n9(e,t){let r=se(e);return(0,v.Xr)(r,t)}function se(e,t=A.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(A.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):(0,n)}async function st(e,t,r){try{let n=await sn(e,t,r);let s=n2("resource.fetch",n);nX(r.replay,s)}catch(e){r8&&nr.exception(e,"Failed to capture fetch breadcrumb")}}function sr(e,t){let{input:r,response:n}=t;let s=n0(r?(0,j.Gv)(r):undefined);let i=n?n1(n.headers.get("content-length")):undefined;s!==undefined&&(e.data.request_body_size=s),i!==undefined&&(e.data.response_body_size=i)}async function sn(e,t,r){let n=Date.now();let{startTimestamp:s=n,endTimestamp:i=n}=t;let{url:a,method:o,status_code:l=0,request_body_size:c,response_body_size:u}=e.data;let h=n9(a,r.networkDetailAllowUrls)&&!n9(a,r.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:i,url:a,method:o,statusCode:l,request:h?ss(r,t.input,c):n6(c),response:await si(h,r,t.response,u)}}function ss({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let s=r?sc(r,t):{};if(!e)return n5(s,n,undefined);let i=(0,j.Gv)(r);let[a,o]=(0,j.sY)(i,nr);let l=n5(s,n,a);return o?n3(l,o):(0,l)}async function si(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,s){if(!e&&s!==undefined)return n6(s);let i=n?sl(n.headers,r):{};if(!n||!t&&s!==undefined)return n5(i,s,undefined);let[a,o]=await so(n);let l=sa(a,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return o?n3(l,o):(0,l)}function sa(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:s}){try{let i=e?.length&&r===undefined?n0(e):r;if(!n)return n6(i);if(t)return n5(s,i,e);return n5(s,i,undefined)}catch(e){return r8&&nr.exception(e,"Failed to serialize response body"),n5(s,r,undefined)}}async function so(e){let t=sh(e);if(!t)return[undefined,"BODY_PARSE_ERROR"];try{return[await sd(t)]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return r8&&nr.warn("Parsing text body from response timed out"),[undefined,"BODY_PARSE_TIMEOUT"];return r8&&nr.exception(e,"Failed to get text body from response"),[undefined,"BODY_PARSE_ERROR"]}}function sl(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function sc(e,t){return e.length===1&&typeof e[0]!=="string"?su(e[0],t):(0,e.length===2)?su(e[1],t):(0,{})}function su(e,t){if(!e)return{};let r=e.headers;return!r?{}:(0,r instanceof Headers)?sl(r,t):(0,Array.isArray(r))?{}:(0,n8(r,t))}function sh(e){try{return e.clone()}catch(e){r8&&nr.exception(e,"Failed to clone response body")}}function sd(e){return new Promise((t,r)=>{let n=(0,x.wg)(()=>r(new Error("Timeout while trying to read response body")),500);sf(e).then(e=>t(e),e=>r(e)).finally(()=>clearTimeout(n))})}async function sf(e){return await e.text()}async function sm(e,t,r){try{let n=sg(e,t,r);let s=n2("resource.xhr",n);nX(r.replay,s)}catch(e){r8&&nr.exception(e,"Failed to capture xhr breadcrumb")}}function sp(e,t){let{xhr:r,input:n}=t;if(!r)return;let s=n0(n);let i=r.getResponseHeader("content-length")?n1(r.getResponseHeader("content-length")):sb(r.response,r.responseType);s!==undefined&&(e.data.request_body_size=s),i!==undefined&&(e.data.response_body_size=i)}function sg(e,t,r){let n=Date.now();let{startTimestamp:s=n,endTimestamp:i=n,input:a,xhr:o}=t;let{url:l,method:c,status_code:u=0,request_body_size:h,response_body_size:d}=e.data;if(!l)return null;if(!o||!n9(l,r.networkDetailAllowUrls)||n9(l,r.networkDetailDenyUrls))return{startTimestamp:s,endTimestamp:i,url:l,method:c,statusCode:u,request:n6(h),response:n6(d)};let f=o[E.Er];let m=f?n8(f.request_headers,r.networkRequestHeaders):{};let p=n8((0,j.ti)(o),r.networkResponseHeaders);let[g,y]=r.networkCaptureBodies?(0,j.sY)(a,nr):[undefined];let[v,b]=r.networkCaptureBodies?sy(o):[undefined];let k=n5(m,h,g);let _=n5(p,d,v);return{startTimestamp:s,endTimestamp:i,url:l,method:c,statusCode:u,request:y?n3(k,y):k,response:b?n3(_,b):_}}function sy(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return sv(e.response,e.responseType)}catch(e){t.push(e)}return r8&&nr.warn("Failed to get xhr response body",...t),[undefined]}function sv(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[undefined]}catch(t){return r8&&nr.exception(t,"Failed to serialize body",e),[undefined,"BODY_PARSE_ERROR"]}return r8&&nr.log("Skipping network body because of body type",e),[undefined,"UNPARSEABLE_BODY_TYPE"]}function sb(e,t){try{let r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return n0(r)}catch{return undefined}}function sk(e){let t=(0,n.KU)();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions();let o={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>s_(o,e,t))}catch{}}function s_(e,t,r){if(!t.data)return;try{sw(t)&&sT(r)&&(sp(t,r),sm(t,r,e)),sS(t)&&sx(r)&&(sr(t,r),st(t,r,e))}catch(e){r8&&nr.exception(e,"Error when enriching network breadcrumb")}}function sw(e){return e.category==="xhr"}function sS(e){return e.category==="fetch"}function sT(e){return e?.xhr}function sx(e){return e?.response}function sE(e){let t=(0,n.KU)();(0,S.i)((e,t=>{if(!e.isEnabled())return;let r=rq(t);if(!r)return;let n=t.name==="click";let s=n?t.event:undefined;n&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&rx(e.clickDetector,r,rv(t.event)),rg(e,r)})),(0,T._)(nZ(e)),n$(e),sk(e);let s=nV(e);(0,r.SA)(s),t&&(t.on("beforeSendEvent",nP(e)),t.on("afterSendEvent",nL(e)),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&(t.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function sj(e){try{return Promise.all(nJ(e,[sA(A.performance.memory)]))}catch{return[]}}function sA(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e;let s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function sC(e,t,r){return(0,l.s)(e,t,{...r,setTimeoutImpl:x.wg})}let sM=h.O.navigator;function sI(){return/iPhone|iPad|iPod/i.test(sM?.userAgent??"")||/Macintosh/i.test(sM?.userAgent??"")&&sM?.maxTouchPoints&&sM?.maxTouchPoints>1?{sampling:{mousemove:!1}}:(0,{})}function sR(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession()){r8&&nr.warn("Received replay event after session expired.");return}let s=n||!t;t=!0,e.clickDetector&&rI(e.clickDetector,r),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!nx(e,r,s))return!0;if(!s)return!1;let t=e.session;if(sL(e,s),e.recordingMode==="buffer"&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(r8&&nr.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&np(t))}return t?.previousSessionId||(0,e.recordingMode==="session"&&e.flush()),!0})}}function sO(e){let t=e.getOptions();return{type:tf.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function sL(e,t){if(!t||!e.session||e.session.segmentId!==0)return;nx(e,sO(e),!1)}function sD(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function sN(e,t,r,n){return(0,k.h4)((0,k.n2)(e,(0,k.Cj)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function sP({recordingData:e,headers:t}){let r;let n=`${JSON.stringify(t)}
`;if(typeof e=="string")r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}async function sz({client:e,scope:t,replayId:r,event:i}){let a={event_id:r,integrations:typeof e["_integrations"]=="object"&&e["_integrations"]!==null&&!Array.isArray(e["_integrations"])?Object.keys(e["_integrations"]):undefined};e.emit("preprocessEvent",i,a);let o=await (0,s.mG)(e.getOptions(),i,a,t,e,(0,n.rm)());if(!o)return null;e.emit("postprocessEvent",o,a),o.platform=o.platform||"javascript";let l=e.getSdkMetadata();let{name:c,version:u,settings:h}=l?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:h},o}async function s$({recordingData:e,replayId:t,segmentId:r,eventContext:s,timestamp:i,session:a}){let o=sP({recordingData:e,headers:{segment_id:r}});let{urls:l,errorIds:c,traceIds:u,initialTimestamp:h}=s;let d=(0,n.KU)();let f=(0,n.o5)();let m=d?.getTransport();let p=d?.getDsn();if(!d||!m||!p||!a.sampled)return Promise.resolve({});let g={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:t,segment_id:r,replay_type:a.sampled};let y=await sz({scope:f,client:d,replayId:t,event:g});if(!y)return d.recordDroppedEvent("event_processor","replay"),r8&&nr.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;let v=sN(y,o,p,d.getOptions().tunnel);let b;try{b=await m.send(v)}catch(t){let e=new Error(M);try{e.cause=t}catch{}throw e}let k=(0,_.wq)({},b);if((0,_.Jz)(k,"replay"))throw new sH(k);if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new sq(b.statusCode);return b}class sq extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sH extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class sF extends Error{constructor(){super("Session is too long, not sending replay")}}async function sB(e,t={count:0,interval:5e3}){let{recordingData:n,onError:s}=e;if(!n.length)return;try{return await s$(e),!0}catch(n){if(n instanceof sq||n instanceof sH)throw n;if((0,r.o)("Replays",{_retryCount:t.count}),s&&s(n),t.count>=3){let e=new Error(`${M} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,x.wg)(async()=>{try{await sB(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let sU="__THROTTLED";function sG(e,t,r){let n=new Map;let s=!1;return(...i)=>{let a=Math.floor(Date.now()/1e3);let o=a-r;if(n.forEach((e,t)=>{t<o&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=t){let e=s;return s=!0,e?"__SKIPPED":sU}s=!1;let l=n.get(a)||0;return n.set(a,l+1),e(...i)}}class sW{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=sC(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=sG((e,t)=>nE(this,e,t),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions();let s=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:undefined;if(s&&(this.clickDetector=new rE(this,s)),r8){let t=e._experiments;nr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{A.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=rL({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=rL({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{rB(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){r8&&nr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options;let n=t<=0&&r<=0;if(this._requiresManualStart=n,n)return;if(this._initializeSessionForSampling(e),!this.session){r8&&nr.exception(new Error("Unable to initialize and create session"));return}if(this.session.sampled===!1)return;this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",r8&&nr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()}start(){if(this._isEnabled&&this.recordingMode==="session"){r8&&nr.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){r8&&nr.log("Buffering is in progress, call `flush()` to save the replay");return}r8&&nr.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=nS({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){r8&&nr.log("Buffering is in progress, call `flush()` to save the replay");return}r8&&nr.infoTick("Starting replay in buffer mode");let e=nS({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=rc({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:sR(this),...sI(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=undefined),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";try{r8&&nr.log(`Stopping Replay${t?` triggered by ${t}`:""}`),nG(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,nd(this)}catch(e){this.handleException(e)}}pause(){if(this._isPaused)return;this._isPaused=!0,this.stopRecording(),r8&&nr.log("Pausing replay")}resume(){if(!this._isPaused||!this._checkSession())return;this._isPaused=!1,this.startRecording(),r8&&nr.log("Resuming replay")}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let t=Date.now();r8&&nr.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();if(!e||!r||this.recordingMode==="session")return;this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording()}addUpdate(e){let t=e();if(this.recordingMode==="buffer"||!this._isEnabled||t===!0)return;this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():(0,this.flushImmediate())}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){return e&&this.session?.sampled===!1?undefined:(0,this.session?.id)}checkAndHandleExpiredSession(){if(this._lastActivity&&nk(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!this._checkSession()?!1:(0,!0)}setInitialState(){let e=`${A.location.pathname}${A.location.hash}${A.location.search}`;let t=`${A.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===sU){let e=rL({category:"replay.throttled"});this.addUpdate(()=>{return!nx(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})})}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,a.Bk)();let r=e&&(0,a.zU)(e);let n=(r&&(0,a.et)(r).data||{})[t.i_];return!r||!n||!["route","custom"].includes(n)?undefined:(0,(0,a.et)(r).description)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=nl({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0;let r=nS({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return nw(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):(0,!0)}async _refreshSession(e){if(!this._isEnabled)return;await this.stop({reason:"refresh session"}),this.initializeSampling(e.id)}_addListeners(){try{A.document.addEventListener("visibilitychange",this._handleVisibilityChange),A.addEventListener("blur",this._handleWindowBlur),A.addEventListener("focus",this._handleWindowFocus),A.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),!this._hasInitializedCoreListeners&&(sE(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=r5(this)}_removeListeners(){try{A.document.removeEventListener("visibilitychange",this._handleVisibilityChange),A.removeEventListener("blur",this._handleWindowBlur),A.removeEventListener("focus",this._handleWindowFocus),A.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session||n_(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire}))return;e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){r8&&nr.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:tf.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=rV(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(nJ(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){r8&&nr.error("No session or eventBuffer found to flush.");return}if((await this._addPerformanceEntries(),!this.eventBuffer?.hasEvents)||(await sj(this),!this.eventBuffer||e!==this.getSessionId()))return;try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new sF;let r=this._popEventContext();let n=this.session.segmentId++;this._maybeSaveSession();let s=await this.eventBuffer.finish();await sB({replayId:e,recordingData:s,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,n.KU)();if(e){;e.recordDroppedEvent(t instanceof sH?"ratelimit_backoff":t instanceof sF?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){r8&&nr.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started;let r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration;let s=r>this._options.maxReplayDuration+5e3;if(n||s){r8&&nr.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let i=this.eventBuffer;i&&this.session.segmentId===0&&!i.hasCheckout&&r8&&nr.log("Flushing initial segment without checkout.");let a=!!this._flushLock;!this._flushLock&&(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=undefined,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&np(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length){if(e.some(e=>{let r=sD(e.target);let n=t.join(",");return r?.matches(n)}))return!1}let r=e.length;let n=this._options.mutationLimit;let s=this._options.mutationBreadcrumbLimit;let i=n&&r>n;if(r>s||i){let e=rL({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):(0,!0)}}function sY(e,t){return[...e,...t].join(",")}function sV({mask:e,unmask:t,block:r,unblock:n,ignore:s}){return{maskTextSelector:sY(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:sY(t,[]),blockSelector:sY(r,[".sentry-block","[data-sentry-block]",...["base","iframe[srcdoc]:not([src])"]]),unblockSelector:sY(n,[]),ignoreSelector:sY(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function sJ({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:s,value:i}){return!n||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:(0,r.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||""))?i.replace(/[\S]/g,"*"):(0,i)}let sK='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';let sZ=["content-length","content-type","accept"];let sQ=Symbol.for("sentry__originalRequestBody");let sX=!1;let s0=!1;function s1(){if(typeof Request=="undefined"||s0)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[sQ]=r.body),n};t.prototype=e.prototype,h.O.Request=t,s0=!0}catch{}}let s3=e=>{return new s2(e)};class s2{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:s=!0,useCompression:i=!0,workerUrl:a,_experiments:o={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:k=[],mask:_=[],maskAttributes:w=["title","placeholder","aria-label"],unmask:S=[],block:T=[],unblock:x=[],ignore:E=[],maskFn:j,beforeAddRecordingEvent:A,beforeErrorSampling:C,onError:M,attachRawBodyFromRequest:I=!1}={}){this.name="Replay";let R=sV({mask:_,unmask:S,block:T,unblock:x,ignore:E});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:j,maskInputFn:j,maskAttributeFn:(e,t,r)=>sJ({maskAttributes:w,maskAllText:l,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(o.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:s,useCompression:i,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:p,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:s5(b),networkResponseHeaders:s5(k),beforeAddRecordingEvent:A,beforeErrorSampling:C,onError:M,attachRawBodyFromRequest:I,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=!this._recordingOptions.blockSelector?sK:`${this._recordingOptions.blockSelector},${sK}`,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,d.B)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return sX}set _isInitialized(e){sX=e}afterAllSetup(e){if(!(0,d.B)()||this._replay)return;this._initialOptions.attachRawBodyFromRequest&&s1(),this._setup(e),this._initialize(e)}start(){if(!this._replay)return;this._replay.start()}startBuffering(){if(!this._replay)return;this._replay.startBuffering()}stop(){return!this._replay?Promise.resolve():(0,this._replay.stop({forceFlush:this._replay.recordingMode==="session"}))}flush(e){return!this._replay?Promise.resolve():(0,!this._replay.isEnabled())?(this._replay.start(),Promise.resolve()):(0,this._replay.sendBufferedReplayOrFlush(e))}getReplayId(e){if(!this._replay?.isEnabled())return;return this._replay.getSessionId(e)}getRecordingMode(){if(!this._replay?.isEnabled())return;return this._replay.recordingMode}_initialize(e){if(!this._replay)return;this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling()}_setup(e){let t=s6(this._initialOptions,e);this._replay=new sW({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay["_canvas"]=t.getOptions()}catch{}}}function s6(e,t){let r=t.getOptions();let n={sessionSampleRate:0,errorSampleRate:0,...e};let s=(0,o.i)(r.replaysSessionSampleRate);let i=(0,o.i)(r.replaysOnErrorSampleRate);return s==null&&i==null&&(0,f.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(n.sessionSampleRate=s),i!=null&&(n.errorSampleRate=i),n}function s5(e){return[...sZ,...e.map(e=>e.toLowerCase())]}function s8(){let e=(0,n.KU)();return e?.getIntegrationByName("Replay")}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/replay",{__webpack_require__,__webpack_exports__}))()},953524(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{c:()=>h});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(577102);var n=__webpack_require__(178061);var s=__webpack_require__(901889);var i=__webpack_require__(118840);var a=__webpack_require__(396102);var o=__webpack_require__(392316);var l=__webpack_require__(153836);var c=__webpack_require__(993671);var u=__webpack_require__(484413);let h=(0,r._C)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){_(e,t),w(e,t)}}});function d(t,r,n,s,i){if(S(t,n.status,n.url)){let t=x(r,s);let a,o,l,c;E()&&([a,l]=f("Cookie",t),[o,c]=f("Set-Cookie",n));let u=T({url:t.url,method:t.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:l,responseCookies:c,error:i,type:"fetch"});(0,e.r)(u)}}function f(e,t){let r=y(t.headers);let n;try{let t=r[e]||r[e.toLowerCase()]||undefined;t&&(n=g(t))}catch{}return[r,n]}function m(t,r,n,s,i){if(S(t,r.status,r.responseURL)){let t,a,o;if(E()){try{let e=r.getResponseHeader("Set-Cookie")||r.getResponseHeader("set-cookie")||undefined;e&&(a=g(e))}catch{}try{o=v(r)}catch{}t=s}let l=T({url:r.responseURL,method:n,status:r.status,requestHeaders:t,responseHeaders:o,responseCookies:a,error:i,type:"xhr"});(0,e.r)(l)}}function p(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}return undefined}function g(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function y(e){let t={};return e.forEach((e,r)=>{t[r]=e}),t}function v(e){let t=e.getAllResponseHeaders();return!t?{}:(0,t.split(`\r
`).reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}))}function b(e,t){return e.some(e=>{return typeof e=="string"?t.includes(e):(0,e.test(t))})}function k(e,t){return e.some(e=>{return typeof e=="number"?e===t:(0,t>=e[0]&&t<=e[1])})}function _(e,r){if(!(0,l.m7)())return;(0,i.ur)(n=>{if((0,t.KU)()!==e)return;let{response:s,args:i,error:a,virtualError:o}=n;let[l,c]=i;if(!s)return;d(r,l,s,c,a||o)},!1)}function w(e,r){if(!("XMLHttpRequest"in s.O))return;(0,c.Mn)(n=>{if((0,t.KU)()!==e)return;let{error:s,virtualError:i}=n;let o=n.xhr;let l=o[c.Er];if(!l)return;let{method:h,request_headers:d}=l;try{m(r,o,h,d,s||i)}catch(e){u.T&&a.Yz.warn("Error while extracting response event form XHR response",e)}})}function S(e,r,s){return k(e.failedRequestStatusCodes,r)&&b(e.failedRequestTargets,s)&&!(0,n.A)(s,(0,t.KU)())}function T(e){let r=(0,t.KU)();let n=r&&e.error&&e.error instanceof Error?e.error.stack:undefined;let s=n&&r?r.getOptions().stackParser(n,0,1):undefined;let i=`HTTP Client Error with status code: ${e.status}`;let a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:s?{frames:s}:undefined}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:p(e.responseHeaders)}}};return(0,o.M6)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function x(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:(0,new Request(e,t))}function E(){let e=(0,t.KU)();return e?Boolean(e.getOptions().sendDefaultPii):!1}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},955187(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let s=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Text),value:(0,e.Yj)(),markdown:(0,e.lq)((0,e.zM)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},956354(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>o});var e=__webpack_require__(57324);var t=__webpack_require__(51450);var r=__webpack_require__(978802);var n=__webpack_require__(314408);var s=__webpack_require__(515400);var i=__webpack_require__(768571);let a=[1800,3e3];let o=(o,l={})=>{(0,i.I)(()=>{let i=(0,r.N)();let c=(0,n.X)("FCP");let u;let h=(0,s.l)("paint",e=>{for(let r of e)r.name==="first-contentful-paint"&&(h.disconnect(),r.startTime<i.firstHiddenTime&&(c.value=Math.max(r.startTime-(0,t.b)(),0),c.entries.push(r),u(!0)))});h&&(u=(0,e.R)(o,c,a,l.reportAllChanges))})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},956902(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_:()=>n});var e=__webpack_require__(513234);var t=__webpack_require__(169869);var r=__webpack_require__(74342);function n(s,i=(0,r.qd)("fetch")){let a=0;let o=0;async function l(e){let t=e.body.length;a+=t,o++;let n={body:e.body,method:"POST",referrerPolicy:"strict-origin",headers:s.headers,keepalive:a<=6e4&&o<15,...s.fetchOptions};try{let e=await i(s.url,n);return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}catch(e){throw(0,r.y7)("fetch"),e}finally{a-=t,o--}}return(0,e.o)(s,l,(0,t.C)(s.bufferSize||40))}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},958084(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>e});class e{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_exports__,__webpack_require__}))()},960767(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>s});var e=__webpack_require__(352158);var t=__webpack_require__(577102);var r=__webpack_require__(396102);var n=__webpack_require__(6929);let s=(0,t._C)(()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(i(n,t))return e.T&&r.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=n}}});function i(e,t){return!t?!1:(0,a(e,t)||o(e,t))?!0:(0,!1)}function a(e,t){let r=e.message;let n=t.message;return!r&&!n||r&&!n||!r&&n||r!==n||!c(e,t)||!l(e,t)?!1:(0,!0)}function o(e,t){let r=u(t);let n=u(e);return!r||!n||r.type!==n.type||r.value!==n.value||!c(e,t)||!l(e,t)?!1:(0,!0)}function l(e,t){let r=(0,n.RV)(e);let s=(0,n.RV)(t);if(!r&&!s)return!0;if(r&&!s||!r&&s||(r=r,(s=s).length!==r.length))return!1;for(let e=0;e<s.length;e++){let t=s[e];let n=r[e];if(t.filename!==n.filename||t.lineno!==n.lineno||t.colno!==n.colno||t.function!==n.function)return!1}return!0}function c(e,t){let r=e.fingerprint;let n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function u(e){return e.exception?.values?.[0]}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},964451(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>n,K:()=>s});var e=__webpack_require__(413279);var t=__webpack_require__.n(e);let r=__webpack_require__(796213).dI.UNKNOWN;let n=async()=>{try{let e=await t().management.getSelf();e.installType&&(r=e.installType)}catch(e){console.error("Error getting extension installType",e)}return r};let s=()=>{return r}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},972991(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>s});var e=__webpack_require__(18898);var t=__webpack_require__(396102);var r=__webpack_require__(484413);var n=__webpack_require__(994398);function s(){return i()?(r.T&&(0,t.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):(0,!1)}function i(){if(n.jf.window===void 0)return!1;let t=n.jf;if(t.nw)return!1;let r=t["chrome"]||t["browser"];if(!r?.runtime?.id)return!1;let s=(0,e.$N)();return!(n.jf===n.jf.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>s.startsWith(`${e}://`)))}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},975431(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>r});var e=__webpack_require__(765698);var t=__webpack_require__(580436);let r=r=>{let n=t=>{(t.type==="pagehide"||e.j.document?.visibilityState==="hidden")&&r(t)};(0,t.d)("visibilitychange",n,{capture:!0,once:!0}),(0,t.d)("pagehide",n,{capture:!0,once:!0})}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},978802(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{N:()=>a});var e=__webpack_require__(765698);var t=__webpack_require__(51450);var r=__webpack_require__(580436);let n=-1;let s=new Set;let i=e=>{if(o(e)&&n>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let e of s)e();!isFinite(n)&&(n=e.type==="visibilitychange"?e.timeStamp:0,(0,r.Q)("prerenderingchange",i,!0))}};let a=()=>{if(e.j.document&&n<0){let s=(0,t.b)();n=(!e.j.document.prerendering?globalThis.performance.getEntriesByType("visibility-state").filter(e=>e.name==="hidden"&&e.startTime>s)[0]?.startTime:undefined)??(e.j.document?.visibilityState==="hidden"&&!e.j.document?.prerendering?0:Infinity),(0,r.d)("visibilitychange",i,!0),(0,r.d)("pagehide",i,!0),(0,r.d)("prerenderingchange",i,!0)}return{get firstHiddenTime(){return n},onHidden(e){s.add(e)}}};function o(t){return t.type==="pagehide"||e.j.document?.visibilityState==="hidden"}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},984381(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{c9:()=>e.A,dw:()=>t.Ay});var e=__webpack_require__(835060);var t=__webpack_require__(600473);__webpack_require__(317588),__webpack_require__(991213),__webpack_require__(835203),__webpack_require__(774810),__webpack_require__(750628),__webpack_require__(948972),__webpack_require__(597054),__webpack_require__(603476)}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},986415(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>U});var e=__webpack_require__(577102);var t=Object.defineProperty;var r=(e,r,n)=>{let s;return e,n,(s=typeof r!=="symbol"?r+"":r)in e?t(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n};class n{constructor(){r(this,"idNodeMap",new Map),r(this,"nodeMetaMap",new WeakMap)}getId(e){return!e?-1:(0,this.getMeta(e)?.id??-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function s(){return new n}function i(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}function a(e,t,r=Infinity,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:(0,t(e))?n:(0,a(e.parentNode,t,r,n+1))}function o(e,t){return r=>{if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(i(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let l=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let c={map:{},getId(){return console.error(l),-1},getNode(){return console.error(l),null},removeNodeFromMap(){console.error(l)},has(){return console.error(l),!1},reset(){console.error(l)}};function u(e,t,r,n,s=window){let i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){y(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>u(e,t,i||{},!0)}function h(e,t,r){try{if(!(t in e))return()=>{};let n=e[t];let s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}function d(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function f(e,t,r,n,s){if(!e)return!1;let i=d(e);if(!i)return!1;let l=o(t,r);if(!s){let e=n&&i.matches(n);return l(i)&&!e}let c=a(i,l);let u=-1;return c<0?!1:(n&&(u=a(i,o(null,n))),c>-1&&u<0)?!0:(0,c<u)}typeof window!=="undefined"&&window.Proxy&&window.Reflect&&(c=new Proxy(c,{get(e,t,r){return t==="map"&&console.error(l),Reflect.get(e,t,r)}})),/[1-9][0-9]{12}/.test(Date.now().toString());let m={};function p(e){let t=m[e];if(t)return t;let r=window.document;let n=window[e];if(r&&typeof r.createElement=="function")try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(e){}return m[e]=n.bind(window)}function g(...e){return p("requestAnimationFrame")(...e)}function y(...e){return p("setTimeout")(...e)}var v;var b=((v=b||{})[v["2D"]=0]="2D",v[v["WebGL"]=1]="WebGL",v[v["WebGL2"]=2]="WebGL2",v);let k;function _(e){k=e}let w=e=>{return!k?e:(0,(...t)=>{try{return e(...t)}catch(e){if(k&&k(e)===!0)return()=>{};throw e}})};var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var T=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var x=0;x<S.length;x++)T[S.charCodeAt(x)]=x;var E=function(e){var t=new Uint8Array(e),r,n=t.length,s="";for(r=0;r<n;r+=3)s+=S[t[r]>>2],s+=S[(t[r]&3)<<4|t[r+1]>>4],s+=S[(t[r+1]&15)<<2|t[r+2]>>6],s+=S[t[r+2]&63];return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s};let j=new Map;function A(e,t){let r=j.get(e);return!r&&(r=new Map,j.set(e,r)),!r.has(t)&&r.set(t,[]),r.get(t)}let C=(e,t,r)=>{if(!e||!(R(e,t)||typeof e=="object"))return;let n=A(r,e.constructor.name);let s=n.indexOf(e);return s===-1&&(s=n.length,n.push(e)),s};function M(e,t,r){if(e instanceof Array)return e.map(e=>M(e,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:E(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[M(e.buffer,t,r),e.byteOffset,e.byteLength]};else if(e instanceof HTMLImageElement){let t=e.constructor.name;let{src:r}=e;return{rr_type:t,src:r}}else if(e instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:e.toDataURL()};else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[M(e.data,t,r),e.width,e.height]};else if(R(e,t)||typeof e=="object")return{rr_type:e.constructor.name,index:C(e,t,r)};return e}let I=(e,t,r)=>{return e.map(e=>M(e,t,r))};let R=(e,t)=>{return Boolean(["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>typeof t[e]=="function").find(r=>e instanceof t[r]))};function O(e,t,r,n,s){let i=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if(typeof t.CanvasRenderingContext2D.prototype[a]!=="function")continue;let o=h(t.CanvasRenderingContext2D.prototype,a,function(i){return function(...o){return!f(this.canvas,r,n,s,!0)&&y(()=>{let r=I(o,t,this);e(this.canvas,{type:b["2D"],property:a,args:r})},0),i.apply(this,o)}});i.push(o)}catch{let r=u(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:b["2D"],property:a,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach(e=>e())}}function L(e){return e==="experimental-webgl"?"webgl":e}function D(e,t,r,n,s){let i=[];try{let a=h(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){if(!f(this,t,r,n,!0)){let e=L(i);if(!("__context"in this)&&(this.__context=e),s&&["webgl","webgl2"].includes(e))if(a[0]&&typeof a[0]=="object"){let e=a[0];!e.preserveDrawingBuffer&&(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...a])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function N(e,t,r,n,s,i,a,o){let l=[];for(let a of Object.getOwnPropertyNames(e)){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))continue;try{if(typeof e[a]!=="function")continue;let c=h(e,a,function(e){return function(...l){let c=e.apply(this,l);if(C(c,o,this),"tagName"in this.canvas&&!f(this.canvas,n,s,i,!0)){let e=I(l,o,this);let n={type:t,property:a,args:e};r(this.canvas,n)}return c}});l.push(c)}catch{let n=u(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(n)}}return l}function P(e,t,r,n,s,i){let a=[];return a.push(...N(t.WebGLRenderingContext.prototype,b.WebGL,e,r,n,s,i,t)),t.WebGL2RenderingContext!==void 0&&a.push(...N(t.WebGL2RenderingContext.prototype,b.WebGL2,e,r,n,s,i,t)),()=>{a.forEach(e=>e())}}let z=`for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};`;function $(){let e=new Blob([z]);return URL.createObjectURL(e)}class q{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),!this.pendingCanvasMutations.has(e)&&this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:s,errorHandler:i}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&_(i),(s&&typeof r=="number"||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;w(()=>{s&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:s,recordCanvas:i,enableManualSnapshot:a}=this.options;if(this.windowsSet.has(e))return;if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}w(()=>{if(i&&t==="all"&&this.initCanvasMutationObserver(e,r,n,s),i&&typeof t=="number"){let t=D(e,r,n,s,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,e);return}g(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker($());return e.onmessage=e=>{let t=e.data;let{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:s,width:i,height:a}=t;this.mutationCb({id:r,type:b["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:s}]},0,0,i,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=g(t)};e=g(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){let s=D(e,t,r,n,!1);let i=O(this.processMutation.bind(this),e,t,r,n);let a=P(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{s(),i(),a()})}getCanvasElements(e,t,r){let n=[];let s=s=>{s.querySelectorAll("canvas").forEach(s=>{!f(s,e,t,r,!0)&&n.push(s)})};for(let e of this.windows){let t=e.deref();let r;try{r=t&&t.document}catch{}r&&s(r)}for(let e of this.shadowDoms){let t=e.deref();t&&s(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:s,blockSelector:i,unblockSelector:a,dataURLOptions:o,maxCanvasSize:l}=this.options;return this.lastSnapshotTime&&e-this.lastSnapshotTime<1e3/(n==="all"?2:n||2)?!1:(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(s,i,a)).forEach(e=>{let r=this.mirror.getId(e);if(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))return;if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:o,maxCanvasSize:l},[t])}).catch(e=>{w(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}),!0)}startPendingCanvasMutationFlusher(){g(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,g(e)};g(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),g(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;let n=r.map(e=>{let{type:t,...r}=e;return r});let{type:s}=r[0];this.mutationCb({id:t,type:s,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var H;var F;s(),(F=H||(H={}))[F.NotStarted=0]="NotStarted",F[F.Running=1]="Running",F[F.Stopped=2]="Stopped";let B={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}};let U=(0,e._C)((e={})=>{let[t,r]=e.maxCanvasSize||[];let n={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,1280):1280,r?Math.min(r,1280):1280]};let s;let i;let a=new Promise(e=>i=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:r}=n;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let n=new q({...e,enableManualSnapshot:t,maxCanvasSize:r,errorHandler:e=>{try{typeof e=="object"&&(e.__rrweb__=!0)}catch{}}});return s=n,i(n),n},...B[e]||B.medium}},async snapshot(e,t){(s||await a).snapshot(e,t)}}})}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/replay-canvas",{__webpack_require__,__webpack_exports__}))()},991213(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>a});var e=__webpack_require__(835060);var t=__webpack_require__(603476);var r=__webpack_require__(912276);var n=__webpack_require__(750628);var s=__webpack_require__(232712);var i=__webpack_require__(512986);class a{static hasDST(r=t.A.defaultZone){let n=e.A.now().setZone(r).set({month:12});return!r.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return n.A.isValidZone(e)}static normalizeZone(e){return(0,s.q)(e,t.A.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||r.A.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||r.A.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||r.A.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||r.A.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return r.A.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return r.A.create(t,null,"gregory").eras(e)}static features(){return{relative:(0,i.h3)(),localeWeek:(0,i.jv)()}}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},991688(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{count:()=>r,distribution:()=>s,gauge:()=>n});var e=__webpack_require__(43701);function t(t,r,n,s){(0,e.g)({type:t,name:r,value:n,unit:s?.unit,attributes:s?.attributes},{scope:s?.scope})}function r(e,n=1,s){t("counter",e,n,s)}function n(e,r,n){t("gauge",e,r,n)}function s(e,r,n){t("distribution",e,r,n)}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_require__,__webpack_exports__}))()},993039(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>c,ms:()=>d});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(577102);var n=__webpack_require__(632356);var s=__webpack_require__(396102);var i=__webpack_require__(484413);var a=__webpack_require__(691576);var o=__webpack_require__(994398);var l=__webpack_require__(404809);let c=(0,r._C)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>u(e))},addWorker:e=>u(e)}));function u(e){e.addEventListener("message",e=>{if(f(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(i.T&&s.Yz.log("Sentry debugId web worker message received",e.data),o.jf._sentryDebugIds={...e.data._sentryDebugIds,...o.jf._sentryDebugIds}),e.data._sentryModuleMetadata&&(i.T&&s.Yz.log("Sentry module metadata web worker message received",e.data),o.jf._sentryModuleMetadata={...e.data._sentryModuleMetadata,...o.jf._sentryModuleMetadata}),e.data._sentryWasmImages){i.T&&s.Yz.log("Sentry WASM images web worker message received",e.data);let t=o.jf._sentryWasmImages||[];let r=e.data._sentryWasmImages.filter(e=>(0,n.Qd)(e)&&typeof e.code_file=="string"&&!t.some(t=>t.code_file===e.code_file));o.jf._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(i.T&&s.Yz.log("Sentry worker rejection message received",e.data._sentryWorkerError),h(e.data._sentryWorkerError))}})}function h(r){let o=(0,t.KU)();if(!o)return;let c=o.getOptions().stackParser;let u=o.getOptions().attachStacktrace;let h=r.reason;let d=(0,n.sO)(h)?(0,l.C$)(h):(0,a.H7)(c,h,undefined,u,!0);d.level="error",r.filename&&(d.contexts={...d.contexts,worker:{filename:r.filename}}),(0,e.r)(d,{originalException:h,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),i.T&&s.Yz.log("Captured worker unhandled rejection",h)}function d({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??undefined,_sentryModuleMetadata:e._sentryModuleMetadata??undefined}),e.addEventListener("unhandledrejection",t=>{let r={reason:(0,l.sc)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),i.T&&s.Yz.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),i.T&&s.Yz.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function f(e){if(!(0,n.Qd)(e)||e._sentryMessage!==!0)return!1;let t="_sentryDebugIds"in e;let r="_sentryModuleMetadata"in e;let s="_sentryWorkerError"in e;let i="_sentryWasmImages"in e;return!t&&!r&&!s&&!i||t&&!((0,n.Qd)(e._sentryDebugIds)||e._sentryDebugIds===undefined)||r&&!((0,n.Qd)(e._sentryModuleMetadata)||e._sentryModuleMetadata===undefined)||s&&!(0,n.Qd)(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>(0,n.Qd)(e)&&typeof e.code_file=="string"))?!1:(0,!0)}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},993671(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Er:()=>s,Mn:()=>i});var e=__webpack_require__(545407);var t=__webpack_require__(632356);var r=__webpack_require__(306981);var n=__webpack_require__(765698);let s="__sentry_xhr_v3__";function i(t){(0,e.s5)("xhr",t),(0,e.AS)("xhr",a)}function a(){if(!n.j.XMLHttpRequest)return;let i=XMLHttpRequest.prototype;i.open=new Proxy(i.open,{apply(n,i,a){let l=new Error;let c=(0,r.zf)()*1e3;let u=(0,t.Kg)(a[0])?a[0].toUpperCase():undefined;let h=o(a[1]);if(!u||!h)return n.apply(i,a);i[s]={method:u,url:h,request_headers:{}},u==="POST"&&h.match(/sentry_key/)&&(i.__sentry_own_request__=!0);let d=()=>{let t=i[s];if(!t)return;if(i.readyState===4){try{t.status_code=i.status}catch{}let n={endTimestamp:(0,r.zf)()*1e3,startTimestamp:c,xhr:i,virtualError:l};(0,e.aj)("xhr",n)}};return"onreadystatechange"in i&&typeof i.onreadystatechange=="function"?i.onreadystatechange=new Proxy(i.onreadystatechange,{apply(e,t,r){return d(),e.apply(t,r)}}):i.addEventListener("readystatechange",d),i.setRequestHeader=new Proxy(i.setRequestHeader,{apply(e,r,n){let[i,a]=n;let o=r[s];return o&&(0,t.Kg)(i)&&(0,t.Kg)(a)&&(o.request_headers[i.toLowerCase()]=a),e.apply(r,n)}}),n.apply(i,a)}}),i.send=new Proxy(i.send,{apply(t,n,i){let a=n[s];if(!a)return t.apply(n,i);i[0]!==undefined&&(a.body=i[0]);let o={startTimestamp:(0,r.zf)()*1e3,xhr:n};return(0,e.aj)("xhr",o),t.apply(n,i)}})}function o(e){if((0,t.Kg)(e))return e;try{return e.toString()}catch{}return undefined}}}).call(__webpack_require__._LM_("@sentry/browser>@sentry-internal/browser-utils",{__webpack_require__,__webpack_exports__}))()},994398(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AP:()=>h,LV:()=>u,jN:()=>l,jf:()=>a});var e=__webpack_require__(931263);var t=__webpack_require__(123532);var r=__webpack_require__(18898);var n=__webpack_require__(901889);var s=__webpack_require__(392316);var i=__webpack_require__(563023);let a=n.O;let o=0;function l(){return o>0}function c(){o++,setTimeout(()=>{o--})}function u(r,n={}){;if(!(typeof r=="function"))return r;try{let e=r.__sentry_wrapped__;if(e){if(typeof e=="function")return e;return r}if((0,i.sp)(r))return r}catch{return r}let a=function(...i){try{let e=i.map(e=>u(e,n));return r.apply(this,e)}catch(r){throw c(),(0,t.v4)(t=>{t.addEventProcessor(e=>{return n.mechanism&&((0,s.gO)(e,undefined,undefined),(0,s.M6)(e,n.mechanism)),e.extra={...e.extra,arguments:i},e}),(0,e.Cp)(r)}),r}};try{for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&(a[e]=r[e])}catch{}(0,i.pO)(a,r),(0,i.my)(r,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return r.name}})}catch{}return a}function h(){let e=(0,r.$N)();let{referrer:t}=a.document||{};let{userAgent:n}=a.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}}}).call(__webpack_require__._LM_("@sentry/browser",{__webpack_require__,__webpack_exports__}))()},997858(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{eW:()=>t,rT:()=>e});let e="auto.ai.langchain";let t={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}}}).call(__webpack_require__._LM_("@sentry/core",{__webpack_exports__,__webpack_require__}))()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__;var location=globalThis.location,setTimeout=globalThis.setTimeout,clearTimeout=globalThis.clearTimeout,document=globalThis.document,trustedTypes=globalThis.trustedTypes,self=globalThis.self;let LOCKDOWN_SHIMS=[];__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[])),__webpack_require__.u=e=>""+e+"."+({283:"caded4b68903685bbdc1",322:"602c2dd56395529f6375",900:"54e0147042d91f6e1ad1",937:"b287a00c08e54f3df001",983:"d3a9b46e80a207611579",2051:"689f2a91b2e2e4361af0",3211:"77ccaabe7b4dc2cbc302",3366:"55b65511d852209f6cd1",3509:"2992f8eb0ff948e1e150",3808:"84262135423a3e5aba2c",4389:"a6512213b78dd820d136",4810:"5b52b73413985d8df7c6",4966:"068ce8c516625f3cca2a",5203:"6f1b92e714a054ffbd60",5417:"34893fc737ed86f8dc54",5819:"7de4e93ebb691ca1a2e3",5985:"1de82c27b3ac40ba2776",6142:"8369e7f60d166288702d",6404:"3515ba1e5cc9ee8e959e",7193:"5d3d7587cbe8b22720f3",7416:"60d1922f83dd5af77586",8069:"171ea814bc63ef066eba",8326:"89a2f612a6545722fec4",8942:"55f50ac3401d6f9da0c8",9256:"b541ab50b48adf414b6d",9504:"3b67824dd6b251885d54",9510:"a9b82bb30e78f6cf30ef",9828:"db8da0e3d3ea07223635"})[e]+".js",__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="",(()=>{__webpack_require__.b=self.location+"";var e={1818:1,5864:1};__webpack_require__.f.i=(t,r)=>{e[t]||importScripts(__webpack_require__.p+__webpack_require__.u(t))};var t=globalThis.webpackChunk=globalThis.webpackChunk||[],r=t.push.bind(t);t.push=t=>{var[n,s,i]=t;for(var a in s)__webpack_require__.o(s,a)&&(__webpack_require__.m[a]=s[a]);for(i&&i(__webpack_require__);n.length;)e[n.pop()]=1;r(t)}})(),(()=>{let e=Object.create(null);e.root="$root$",e.idmap=[["$root$",[100008,100055,100245,100573,100862,101719,101743,102190,102320,102609,102801,102905,102985,103261,103321,103396,103651,104231,104429,104758,105049,105178,105241,105522,105557,105557,106105,106356,106828,107048,107230,107381,107580,107804,107804,107874,107886,108116,108120,108120,108178,108439,108474,108474,108611,108700,108933,110010,11021,110303,110407,110814,110927,111644,111985,112094,11233,11253,112604,112652,113337,113366,113737,113956,114168,114174,114199,114274,115726,115726,115782,115884,116048,116255,116255,116372,116739,116882,117253,117567,11775,117903,11795,118055,118670,118834,118997,119023,119023,11917,119278,119278,119681,119939,120054,120433,120584,120584,12074,120776,120925,121216,121854,122175,122536,123231,123391,123455,123455,123556,12376,12376,123784,123799,124397,124599,125091,125393,12569,125894,126142,126142,126177,126177,126660,126980,127015,127388,127565,128256,128364,128567,130289,130331,130428,130780,130920,131074,13126,13126,131666,131669,13176,131811,132019,132516,13286,13296,133195,133714,133714,134236,134727,135047,136088,136272,136303,136426,136447,136862,137557,137622,137937,1381,138409,138623,138865,138915,139284,139354,139768,139833,139842,139976,14029,140775,140778,141057,141573,141784,142014,142064,143195,143394,143472,143918,144586,144944,144988,145034,145102,145502,145657,145865,14600,146188,146194,146740,146759,146802,146802,146869,147099,147133,147278,147599,148099,148249,148496,148887,149040,149177,149235,149235,149235,149235,149861,150320,150350,151235,15151,151958,152256,152336,15250,15289,153059,153068,153294,153692,153753,15392,154565,155180,155246,155309,155862,156292,156429,156540,156549,156760,156852,156852,157187,157234,157234,157395,157479,157794,157794,157944,157960,157962,158175,158221,158259,158265,158332,158332,158374,158637,158637,15890,159163,15923,159307,159315,159454,159472,159472,159667,160002,160087,160099,16026,160461,160873,161356,161413,161863,162393,162444,162560,163305,163305,163310,163310,163636,163723,16415,16467,164684,164899,164983,16512,16530,165788,165851,165927,165937,165972,166034,166133,166879,167290,167472,16750,167643,16809,16809,168671,168798,168960,16930,169518,169727,16979,169816,169889,17e4,170024,170232,170237,170450,170455,170490,170524,17079,170904,170951,171090,171209,171229,17198,172013,172153,172745,173030,173249,173611,174131,174199,174345,174520,174869,17513,175150,175436,175449,175917,17691,17691,177505,177540,177540,177540,178100,178121,178121,17856,178665,178712,178755,179099,179113,179113,179408,179564,17967,179913,179946,180415,180415,180439,180589,181231,181443,181443,181726,181726,181768,181798,181824,182020,182321,182711,182721,182721,182747,182824,18361,183876,184790,184899,185119,185127,185164,185331,185362,185433,185458,185517,185615,185734,185734,185878,186030,186050,186324,186339,186362,186495,186495,186644,186943,187090,187306,188175,188189,188221,18921,189241,189249,189332,189332,189383,189596,189692,189726,190032,192361,192449,192671,192732,193035,193055,19374,193945,193969,194181,194181,194351,194510,194735,194776,194895,195348,195439,195603,195993,195993,196201,196201,196358,196425,19684,197067,197081,197434,197852,197875,198339,198444,198494,198588,199170,199238,199448,199715,200006,200266,201029,201242,201249,201631,201686,202064,202431,202431,202561,202565,202716,20317,20327,203531,204007,20429,204427,20450,204502,204582,205009,205009,205009,205009,205033,205136,205756,205818,206252,206252,206260,206436,206538,206611,20760,208459,208566,208750,208830,208889,209062,209234,209284,209417,209469,210147,210462,210509,210615,210771,211157,212290,212517,212528,212814,212814,212971,213650,213666,213751,213948,214592,214597,214597,215353,216415,216939,217702,217768,217865,217890,218033,218033,218033,218033,218033,218033,218725,21873,218743,218924,219115,219115,21920,219336,219500,220031,220180,220202,220202,220313,220372,220464,220562,220566,220693,220893,220893,221349,221475,221526,221527,221527,221628,221656,221677,222236,222236,222455,22249,22335,223450,224052,224259,224451,224610,225087,225133,225133,225761,225813,226183,226535,226535,226535,226535,22677,227323,227481,227598,227662,227858,227894,22793,227980,228153,228394,228677,228816,229326,229499,229540,22958,229640,229871,229880,2299,230027,230562,230879,231008,231728,23176,231769,232853,232989,23299,233479,233651,233651,234852,234852,234958,235029,235193,23560,235633,23565,235807,236123,236301,236538,236622,236669,236940,236954,237095,237106,237154,237219,237837,237997,238175,238304,23876,238886,239116,239231,240066,240314,240474,240497,240501,240541,240735,240854,24094,241797,241912,242100,242326,242376,24296,243160,243176,243403,243549,243549,243562,244174,244497,244894,244970,245806,24609,246260,247042,247392,247404,247404,247435,247722,247755,247786,247924,247938,24809,248313,248463,248463,248550,248866,249071,249257,249257,249824,250095,250286,25038,250594,250670,25102,251087,251239,251474,25183,251845,252446,252552,253042,253127,253410,253529,253573,253601,253628,253707,253814,254042,254113,254174,254239,254518,254518,25456,254629,254629,254735,255018,255301,255544,255734,256080,256102,256638,257375,258380,25860,25860,258833,259016,259416,259623,259859,25990,26,260105,260133,260199,260263,260467,260677,260723,260723,26133,261523,261645,262371,262541,262541,262667,263022,26319,263294,263294,263458,263738,263831,263880,264013,264070,264070,264085,264198,264258,264377,264607,264727,265396,265724,266180,266203,266391,266452,266692,266892,266923,267208,267208,26765,267782,268282,268916,269185,269243,269256,26956,269627,26973,270006,270204,270204,27057,270642,270692,270965,271077,271326,271525,271641,272,272189,27223,272323,272342,272491,272721,273136,273370,273404,273573,273978,274068,274584,274709,275024,275059,275148,276814,277121,277258,277315,277315,277336,277933,278072,278332,278356,278438,278441,278457,27906,279323,279623,280560,280821,280838,280889,281351,281753,281790,281995,282078,282078,282835,283003,283010,283042,283122,283756,283802,283875,283941,2841,2844,284999,284999,284999,284999,285053,28508,285133,285217,285412,285554,285749,285820,285921,286206,286418,286434,286524,286545,286683,286831,286831,287075,287838,287867,287961,288157,288166,288827,288885,289127,289561,289750,2899,290185,290194,290254,290944,291319,291319,291323,291680,291705,2920,292106,292485,292485,292830,293460,294150,294151,294155,29438,29472,294777,294777,294935,294938,295494,295627,29563,295857,296053,296260,29667,296780,297075,297177,297292,298079,298136,298191,298298,298789,298914,299150,299150,299150,299211,299401,299539,29963,29963,299871,300046,300047,300110,300425,300425,300652,300798,300833,301622,302390,302684,302764,302764,302876,302939,30294,303124,303374,303643,303727,303879,304002,304473,304473,304614,304614,304961,306214,30642,30642,306544,306585,306639,306650,306814,307136,307201,308203,308206,308734,309037,309037,309114,309172,309198,309281,30943,30943,30943,30943,309724,309750,309950,310311,310728,310728,311441,311532,311734,311734,311734,311736,311770,31213,312332,31234,312584,312641,312680,312710,312787,31309,313400,313418,313418,31342,31342,313484,313535,313847,3139,31402,314793,314876,314876,315282,315313,316358,316555,317021,317095,317161,318443,318630,318768,318800,318808,319381,319424,319961,320059,320175,320337,32052,32052,320821,321194,321505,321545,321602,322064,322244,322600,323291,324039,324143,324357,324457,325135,326162,326325,32667,32667,32667,32667,327253,327563,328123,328436,328746,328861,329444,329825,329904,329904,330965,331134,331276,331329,331351,331651,331722,331747,331822,332028,332116,332133,332414,332427,332471,332647,332764,332764,332825,333332,333530,333592,33397,334111,334205,334265,334823,334836,334959,334990,335115,335270,335270,335480,335517,335517,335683,336576,336680,336795,336866,337208,337214,337214,337735,337736,337736,338028,338028,338060,338184,338865,339169,33922,339566,339745,339829,34045,340687,340737,340976,34121,34125,341441,341441,341595,341613,341616,341695,342598,342951,343415,344248,344531,344531,344617,34474,344815,344827,345297,345661,345791,345949,346375,346667,346706,348227,348228,348228,348264,348632,348826,348826,348826,348826,348826,348826,34899,34899,349028,349450,349465,349723,350072,350241,35091,350924,351309,351609,351793,351794,351806,351806,352136,352996,353183,353183,353660,354699,354779,354779,355123,355816,355816,355852,355852,355933,356743,357262,357470,357594,357801,358202,358254,358343,358383,358623,35986,360184,360402,361507,361705,361713,361719,361734,362254,362418,362705,363086,363910,364289,364496,364679,364756,365161,365161,365337,365337,365377,365521,365919,365919,366756,36690,367058,367149,367149,367611,367699,36830,368519,368656,368872,369107,36915,369436,369436,369436,369436,369920,370236,37083,37083,371052,371379,372171,372363,372908,37315,373177,373208,373472,373492,373748,373889,374064,37408,374195,374371,374470,374753,375185,37557,375837,376012,37615,376213,376213,376214,376577,376906,377109,377163,377204,377495,377558,377652,377946,377946,37803,378033,378247,378456,37855,378715,378831,378831,378831,37902,379049,379144,379277,379738,380127,380855,380855,380980,381122,382043,382045,382583,383026,383046,383073,383145,383280,383280,383282,383687,383708,384043,38439,38493,385319,385672,386019,386516,386522,386522,386645,386691,387131,387192,387517,387651,38780,388064,388205,388296,389097,389316,389345,389461,389610,389726,390340,390764,390764,391163,391327,391677,39226,392667,392838,392838,392968,393177,39321,39357,393582,393740,39377,393822,393980,394502,394579,394749,394810,395448,395648,396132,396602,396973,397171,39719,397361,397773,397937,398011,398612,398778,398785,399151,399431,399475,399707,400078,400566,401138,401379,401515,401624,401781,401864,401870,402143,402711,402735,402972,403225,403416,403485,403634,403803,403933,404186,404437,404475,404499,405970,406363,406515,406639,406861,407365,407711,408866,409325,409493,409629,409823,410006,410111,410716,41073,41073,410931,411290,411360,411419,411419,411449,411504,41189,411926,411969,412079,412522,412750,413441,41348,41348,413700,414131,4142,414410,414437,414454,414483,414580,414744,414774,41488,415021,415221,415221,415344,41601,416595,416606,418254,418635,418635,419309,419362,41937,419654,420151,420322,420736,420765,421008,421093,421203,422113,422132,42250,422607,422638,422909,423262,423533,423533,423650,423694,42395,424068,424073,424075,424584,424727,424727,424731,424898,425195,425324,425348,425348,425462,425784,426021,426021,426171,426195,426613,426639,426898,426939,427495,42768,428050,428484,429120,429176,429184,42972,429752,429758,429780,429866,429866,429891,430167,430480,430560,430679,430801,43089,430900,431218,431218,431319,431423,431618,43186,431877,432121,432514,433285,434024,434062,434062,434062,434062,434188,434268,434296,434424,434599,434663,434718,435e3,435210,435602,435766,43588,435956,435964,436199,436232,436649,436892,436954,437054,43710,437165,437173,437313,4374,437622,437628,437628,438174,438376,438552,438749,438797,438835,438839,439081,439113,439117,439122,439212,439281,439728,439748,439786,439984,440193,440369,440490,44056,440770,440776,440900,440900,440948,440952,440976,441,44135,441465,441670,441670,442722,442722,442938,443068,443634,443780,443820,443900,444375,444504,444837,445272,445272,445274,445495,44585,446068,446084,446649,447213,447213,447238,447521,447614,448138,448139,448350,4486,448849,449024,449367,449540,44970,450060,450190,450295,450951,451069,451083,451249,451432,451753,45181,451881,452489,452614,452797,45294,45294,453189,453450,453643,454050,454293,454704,454735,454744,454752,454867,455333,455478,456292,456401,456568,456614,456641,4568,4568,456825,456827,457337,45779,45779,457965,458156,458261,458416,458417,458446,458544,458606,458899,45901,459766,459837,459979,460333,460383,46127,46128,461297,461386,461487,46164,461698,462893,463885,464183,464478,464795,465188,465243,465594,466213,466808,46754,467648,467907,467907,46847,468528,468966,469104,469496,46985,469885,469964,469964,470796,471326,471326,471620,471641,471957,472094,47255,472961,473025,473377,473385,473625,473907,474185,474787,474787,475112,475165,475252,475274,475281,475308,475308,476407,476637,476857,476857,477055,477082,477082,477232,477305,477479,477479,477738,478106,478110,478367,478420,478976,47913,479248,479248,479376,479447,479720,479731,480021,480021,480031,480242,481108,481343,481382,481394,481654,482118,482133,482284,482442,482465,482747,482747,482903,483388,483405,483596,483801,483885,483906,484157,484179,484302,484332,485516,485597,48569,486840,487115,487135,487208,487429,48750,488862,488951,489019,489060,489076,489096,489220,489242,490219,49025,490335,490335,491305,491698,491754,492949,4930,493059,493063,493070,493332,493404,493816,493999,494142,494641,494750,495749,495958,496017,496324,496775,496920,497023,497305,497432,497825,497946,498387,498603,498615,498624,498784,499421,499685,499749,499937,499985,499985,500602,500855,500855,501047,501056,501100,50133,502459,503157,503344,503741,504423,504507,504580,504580,504622,50468,504732,505071,505071,505180,50550,506126,506484,506484,506620,507003,507096,507206,507307,507321,507335,507408,507475,507604,507837,507905,508112,509289,509486,509589,510172,510353,510995,511357,511619,511716,511848,512115,512364,512620,512664,512755,513143,514509,514715,514753,514800,514919,514981,514981,515405,515672,515923,516020,516776,517186,517299,517452,517846,517899,518176,518176,518307,518332,518684,518706,518805,518833,518992,519001,519136,519136,519387,51953,519632,51966,519740,520124,520143,520169,520201,520425,520803,520989,521112,521128,521276,521607,521640,521981,52212,522317,522442,523162,523311,523315,523391,523414,523891,524512,524670,52519,525721,52599,527011,52705,527122,528804,528889,529,529023,52918,5292,529244,529247,529807,529840,529944,529944,529979,530175,530690,530932,530953,530980,531004,531325,531381,531728,531888,532115,532203,532690,532747,532912,533132,533363,5338,534115,5343,534863,535177,535411,536006,536084,536112,536188,536266,536327,536529,536827,537127,537238,537324,537324,537610,537931,538093,538710,538710,538874,538874,539322,539322,539645,540603,540866,541417,541909,541909,542159,542386,542429,5427,542780,543007,54309,54318,543246,543366,543427,543960,544187,544323,545149,545423,545791,546219,546219,546243,546690,546938,54724,547928,547950,548153,548764,549169,549991,550141,55035,550624,551044,552122,552342,55236,55258,55273,553038,553346,553607,553827,553827,554218,554376,554435,554606,554659,555426,555784,556097,556097,556109,556354,55638,556888,557213,557213,55768,558072,558203,558726,559133,559167,559256,559384,559873,560304,560670,561012,561092,561864,562421,562719,562833,563451,563452,563632,563712,564039,564130,564260,564570,564993,565478,565654,565795,565861,56675,566805,567064,567107,567230,567637,5685,568515,568615,568893,568936,569337,5696,569805,570029,570330,570601,570668,570914,571745,572056,572213,572330,572356,57260,572640,573139,573630,573713,573873,574193,574211,574356,574618,574618,575214,575217,575353,575483,575510,57562,57562,575738,575774,575790,57593,576384,576693,576988,577205,577237,577265,577279,577279,577300,577560,577576,577683,578423,578423,578926,578944,579303,579847,580253,580445,580585,580610,580832,581207,581716,581831,581843,582304,583064,583078,583078,584243,584358,584444,584614,585134,585152,585152,585178,585258,585453,585658,585670,58568,585844,585844,585876,585928,586143,586297,586297,586297,586297,58631,586577,586614,586677,587,587279,587279,587295,588298,58836,588498,588575,588914,588917,589022,58925,589562,589569,589628,589642,590151,590343,590446,591049,591058,591197,591301,591425,592181,592492,592492,592671,59293,592990,593130,593226,593258,593457,59391,594108,594450,594756,594768,595468,595502,59555,596271,596364,596396,596414,596472,596790,596829,596829,597106,597436,598667,599e3,599224,59939,599425,599645,599898,599948,599962,600275,600369,60046,600537,600540,600831,601392,601504,60192,602183,602532,602668,603343,603534,603735,603742,604239,604331,606122,606308,606582,606760,606807,606965,607335,607777,608182,608182,608416,608416,608639,60872,608972,609654,609654,609670,609706,609949,609989,610332,610332,610378,610378,610696,610923,611727,611770,6121,612650,61283,613518,614323,614596,614781,614821,614852,614855,614855,614988,615087,615924,615924,616212,616245,61625,61625,616367,616713,617209,617209,617318,617651,617936,618052,618277,618693,618932,619232,619454,619469,619470,619486,619602,619745,619926,619928,620329,62037,621125,621358,621902,621956,622713,622784,622922,623654,624034,624250,624404,624720,625526,625564,625862,626041,626438,626481,627009,627009,627339,6280,628367,628478,628530,629265,629273,629456,629650,629909,630496,630496,630841,631275,631442,631442,63260,632690,633090,63342,633683,633690,633785,634120,634419,635299,635349,635577,635607,635800,635876,635876,636447,63681,63682,636925,636925,636925,636925,636934,637241,637312,637330,63739,637778,638063,638063,638228,638670,638846,638927,638932,638940,638953,639036,639049,639362,639498,639698,639898,64006,640421,640469,640469,640469,640469,640655,640674,640758,641315,641316,641334,641540,641663,641762,64235,642350,642540,643246,644757,644854,645086,645444,646178,646241,646289,646552,646826,647168,647731,647775,648210,648273,64858,648954,648954,649071,649564,649614,649853,649943,650,65068,650710,650710,650836,651095,651571,651625,652119,652167,652318,652499,653098,653346,654046,654270,654352,654639,655170,655204,655204,655335,655850,655850,656054,656244,656252,656317,656615,656685,656773,657218,657218,65725,657700,657754,657927,658116,658152,658684,658718,658805,658924,65896,659173,659195,659212,659212,659579,659579,659677,659677,660063,660770,660955,661287,661287,661377,661692,661796,662067,662067,662090,662509,662664,66305,663870,66406,664254,665028,665309,665541,666011,666499,666499,666766,666771,66681,667202,667436,667551,66760,667618,667629,667855,667855,66822,668673,668751,668795,668795,668852,6690,669165,669217,669378,669909,670342,670402,67093,671054,671075,671656,671839,672487,672632,672673,672911,673265,673913,674108,674156,674342,674382,674551,674621,674924,675274,675616,675620,675656,67606,676333,676432,676525,67661,676864,677203,677245,677465,677890,678558,678606,678863,678999,67906,679140,67925,67957,680201,680245,680440,680927,68102,681186,681292,682398,682428,682504,682566,682685,682705,682984,682988,682988,683,68306,683061,683061,683683,683683,683996,684289,684289,684748,684835,684936,685641,685780,685986,686834,686898,686898,686898,686898,687165,687507,6877,68772,68806,689786,689851,690109,690134,690294,690554,691232,691241,691897,692002,692322,692322,692499,693281,694,694027,694068,695094,695598,696054,696128,696278,696570,696778,697136,697141,697179,697363,69738,697397,697880,698097,698208,698694,69953,700046,700124,700159,700485,700823,700850,700898,700900,70094,701611,701814,702176,702176,70229,702294,702768,702802,703279,703303,703346,703613,703796,704169,70435,704588,704901,705098,705106,705120,705195,705406,705612,706439,70686,706890,706890,706902,706928,706990,707330,707380,707455,708468,709093,70935,70935,709562,709723,709971,710100,710124,7103,710308,710335,710362,711023,711024,711055,711139,711457,711496,711540,711615,711994,712177,712383,712383,71239,712587,712894,713117,713376,71353,713633,713700,713856,71427,714725,714879,71507,715276,715303,715390,715918,716004,716122,716134,716214,716229,716297,716304,716650,717058,71707,717271,71801,718246,71826,718807,719069,72e3,720063,720063,720159,720262,720578,720578,720698,721127,721127,721755,72187,722198,722198,72297,722999,723061,724180,724194,724270,724593,724803,724935,725018,725103,725115,725115,725131,725411,725528,725613,725629,725736,725873,726126,72617,72617,726249,726607,726999,727300,727300,727975,72828,728284,728497,728620,728857,728966,729021,729866,730027,730155,730280,73050,730597,73095,730994,730994,731047,731136,731174,731409,731728,732006,732186,732462,732623,733072,73338,733679,733686,733814,734041,734221,734811,734845,734845,734910,735191,735311,735434,735641,735641,73579,735929,736054,736170,736172,736552,736711,736897,737117,737185,737513,737739,738,738012,738215,738315,738663,738903,739164,739195,739472,739610,739646,740242,740366,740674,740764,740953,740953,740953,740953,740966,741070,741212,741347,742303,742830,743207,743241,743771,743890,744093,744239,744690,744850,745e3,745095,745110,745332,745565,745565,745671,745766,746769,746828,747598,747598,747707,747748,747835,748049,748222,748222,748364,748717,748792,748811,748994,749035,749153,749728,749965,7500,750001,751430,751490,751557,751741,752271,752271,752351,752870,7533,75359,753808,753908,75433,75433,754486,754720,755047,755057,75514,755935,756028,756036,756098,756147,756497,756509,757011,757305,757330,757559,757867,758007,758285,758363,758438,759027,759027,759595,759791,760191,760191,760264,760994,761649,76184,761906,762115,762418,762430,762526,762550,762661,762780,763052,763073,76318,763220,763548,763639,763797,763985,764130,764130,764522,764540,764670,764960,765124,765844,765919,765919,766204,766322,766372,766597,766707,767248,767807,767902,768110,768132,768344,768427,768427,768466,768968,769544,769604,769682,770100,770399,770418,770845,771042,771085,771201,771669,771800,772294,772364,772409,772638,772961,773318,773417,773417,774153,774243,774281,774346,775072,77526,775481,775775,776141,776320,776500,776500,776598,776844,77691,777006,777006,777051,777544,777544,777544,777732,778063,778093,778368,779370,779719,779865,780094,780305,78052,780555,780572,780578,780671,780829,780991,781342,781448,781687,782113,782189,782219,782219,782343,782399,782895,783058,783096,783169,783431,783566,783714,783714,784108,784289,784289,784598,784671,784686,784686,785015,785449,785591,785859,785935,786748,786881,78714,787544,787561,787631,787631,78766,788289,788614,788787,788854,788932,789006,789151,790453,790803,790804,790882,791774,791791,791796,792172,79222,79222,792570,792757,793017,793174,793574,793735,793923,794163,794360,79443,794646,794857,794857,794921,794921,795223,795792,796178,796213,796213,796213,796267,796404,796404,796404,796404,796404,796404,797056,797095,797095,797300,797948,798328,798660,798806,798975,799580,800014,800609,800877,801121,801189,801214,801251,80127,80157,801689,802184,8024,802870,80339,803402,804154,805102,805326,805626,80583,806084,806201,806201,806625,806806,806911,807605,807720,807895,808069,808069,808227,808681,809120,80931,809581,809654,809726,809726,809745,809873,810263,810437,810462,810649,810814,810839,810964,811077,811437,811491,811491,81170,811940,812045,812312,812553,812582,812994,813210,813221,813278,813321,813321,813444,813498,813897,813908,814086,814378,814393,81523,815268,815583,815614,815629,815765,815841,815953,81598,816245,816402,816402,816402,816402,816467,816519,816752,816752,817008,817111,817856,818658,818798,818881,818906,81892,81892,819073,819157,819157,81943,820311,821328,821436,821781,821858,822376,822376,82353,823673,823803,824017,824240,824781,82488,825057,825066,825133,825361,825461,825617,825745,826042,826596,826686,827013,827368,827370,827460,828079,828126,828305,828787,829140,829751,83014,830377,83046,830636,83075,831125,831329,83149,831553,831703,832065,832430,832514,832670,832678,833628,833671,834018,83432,83432,834923,835391,83555,835623,835729,835729,835738,836293,836401,836441,836658,836658,836665,83679,837112,837287,8375,837844,837871,837926,838048,838269,838517,839248,839622,839812,840374,840446,840483,840658,840983,841103,841612,841646,841759,841929,841993,842004,84274,842856,843570,843579,844418,845382,845551,8456,845995,846442,84701,847258,847486,847824,84789,847993,84849,84852,848587,848843,84886,848894,848896,849177,849443,84955,850089,850891,851365,851389,851711,851887,851987,852480,852991,85317,853249,853619,854029,854110,854353,854598,854759,854912,855451,855635,855637,855769,856034,856928,857172,857243,857665,857665,858032,858067,858323,858323,858493,858572,858572,858753,858753,858863,858928,859075,859504,85965,85965,859689,859830,859830,859870,860007,860339,860603,86098,861029,86111,862262,863294,863373,863459,863566,86428,864468,865070,865137,865179,865210,865797,865985,866625,86664,866708,866766,866766,866814,866900,866952,866991,868143,868415,868464,86907,869348,86965,869782,869782,869949,870087,870445,870543,870721,870721,871008,871251,871291,87191,87191,87203,872200,872582,873084,87314,8737,873702,874037,874088,87488,875258,875450,875532,876488,877073,877223,877258,878066,878202,878202,878469,878875,878946,879271,879271,879429,879932,879958,879958,87998,880009,880416,88060,880687,880724,88087,880909,880909,880933,881061,881245,881882,882016,882298,882409,88247,882584,882584,88320,883540,883682,883775,883931,885175,885276,885662,885711,885830,886018,886067,886125,886363,886376,886418,886418,886418,886705,887267,887281,887590,887717,887773,88834,888780,888867,889767,889814,890051,890154,890194,890393,891402,891545,892014,892267,892776,893638,894123,894123,894193,894521,894521,894521,894521,894521,894521,895109,895175,89540,895462,896090,896123,896289,896336,896832,896832,89724,897360,898837,899184,899210,899414,899497,899869,90004,900311,900463,901497,901506,901773,90260,90260,902635,902820,90317,9038,904247,904249,904346,904438,904445,904497,904573,904678,90507,905226,905369,905564,905687,906057,906057,906153,906283,906309,906309,906588,906980,907109,907168,907606,907781,907830,908226,908226,908328,908355,909122,909300,909344,909381,909478,909521,909521,909581,909582,909904,91030,91050,910606,910689,910689,910894,910919,911134,911361,911361,911455,911485,911552,911873,912047,912047,912200,912231,912445,91348,913620,913702,913702,914022,914125,914475,914515,914703,914826,914827,914878,915021,915288,915742,915785,915925,916174,916272,916398,916595,916824,916926,917167,917214,918227,918449,918540,918691,918935,919074,91909,919388,920038,920117,920122,920342,920427,920499,920540,920623,920695,921239,921754,921787,921828,921836,922047,922749,922945,92326,923286,923381,923484,923682,923956,924056,924066,924736,92491,924968,92513,92531,926266,92627,926412,926745,926791,926912,926912,927038,927166,927166,927534,927737,92786,928062,92807,928113,929354,929366,929371,92984,92988,930171,930171,930291,930574,930626,931025,931043,931507,932209,932586,932791,934381,934460,934644,934812,934899,935276,93534,935603,935614,935892,935892,936007,936112,936276,936618,936854,936912,937380,937403,937510,93769,937746,938603,938685,938742,939036,939195,939284,939284,93990,94061,94094,940962,941311,941503,941581,941731,941920,942236,942566,942566,942895,943202,943398,943804,943819,943908,943912,943971,944220,944661,944674,944833,944976,945519,946235,946251,94630,946502,946554,946802,947266,947276,947290,947290,947374,948362,948569,948835,949320,949928,950230,950544,950659,950887,950913,9510,9510,9510,9510,9510,9510,951238,951407,951571,95180,951903,953118,953215,953449,95350,954280,954349,954376,954376,954574,954614,954726,954870,955546,955706,955944,956166,956452,956517,956853,956861,957449,957604,957854,957948,958345,958709,958871,958927,959519,959588,959588,959614,960085,960085,960117,960178,960315,960540,961276,962331,962857,962957,962986,963266,963407,963493,963493,964451,964451,964779,96537,965519,965639,965657,966383,966631,967142,96735,967369,967746,968055,968255,968565,968565,9690,969124,969210,969402,969402,969617,969716,969716,969866,969898,970276,970945,970962,971301,971301,972160,972165,972238,972380,972443,972866,972896,972962,973629,973802,974209,974280,97441,974415,974535,974672,975269,975434,975762,975908,976907,97695,97719,977222,97740,97813,97813,978512,978512,978595,978969,979493,979536,97966,97966,980062,980124,980234,980276,980385,9805,980785,981119,981344,981834,981909,982287,982587,982773,983375,983556,983736,983916,983916,984409,984409,984423,984580,985728,986848,986905,98703,987462,987701,988110,988600,988847,989052,989052,989288,98934,989433,989530,990076,990087,990105,99027,990790,991074,991697,992377,992396,992396,992565,992582,993051,994682,994864,99490,994970,995451,995477,9957,995850,996294,99643,996525,996526,996697,996788,997100,997403,997403,997468,997468,997595,997783,998125,998797,998879,999156,999394,99981,999920]],["@babel/runtime",[124255,127119,127119,138312,138312,266103,266103,34276,34276,369953,369953,387539,387539,406527,406527,440484,440484,449859,449859,451055,45735,45735,457812,457812,463565,463565,474658,474658,498421,498421,500069,502349,502349,560458,562954,612823,612823,6490,6490,688947,688947,709371,709371,71586,71586,757709,757709,779786,779786,783093,783093,800928,800928,810356,810356,824076,824076,841024,841024,854717,854717,871820,871820,877159,877159,896478,896478,935191,935191,979245,98105,98105,999227,999227]],["@blockaid/ppom_release",[635675,89962]],["@emotion/react",[230908,954541]],["@emotion/react>@emotion/cache",[145319]],["@emotion/react>@emotion/cache>@emotion/memoize",[880657]],["@emotion/react>@emotion/cache>@emotion/sheet",[849159]],["@emotion/react>@emotion/cache>stylis",[176154,272480,292907,709823,857267,985114]],["@emotion/react>@emotion/serialize",[612093]],["@emotion/react>@emotion/serialize>@emotion/hash",[866385]],["@emotion/react>@emotion/serialize>@emotion/unitless",[591217]],["@emotion/react>@emotion/use-insertion-effect-with-fallbacks",[128999]],["@emotion/react>@emotion/utils",[839145]],["@emotion/styled",[266708,551187]],["@emotion/styled>@emotion/is-prop-valid",[262835]],["@ensdomains/content-hash",[509411,575298,761166]],["@ensdomains/content-hash>cids",[332906,342757]],["@ensdomains/content-hash>cids>multibase",[234746,436281,835652,856745,930699]],["@ensdomains/content-hash>cids>multibase>@multiformats/base-x",[196780]],["@ensdomains/content-hash>cids>multihashes",[341718,417971]],["@ensdomains/content-hash>cids>multihashes>uint8arrays",[395294,509085,959154]],["@ensdomains/content-hash>cids>multihashes>varint",[286240,662984,846980,886826]],["@ensdomains/content-hash>cids>uint8arrays",[186967,589996,868149]],["@ensdomains/content-hash>js-base64",[192943]],["@ensdomains/content-hash>multicodec",[291901,624245,675970,982917]],["@ensdomains/content-hash>multicodec>uint8arrays",[115686,218737,263454,297907,406611,985066]],["@ensdomains/content-hash>multihashes",[588856,632145]],["@ensdomains/content-hash>multihashes>buffer",[972417]],["@ensdomains/content-hash>multihashes>multibase",[199431,217597,276626,555403,966920]],["@ensdomains/content-hash>multihashes>multibase>base-x",[874484,874484]],["@ensdomains/content-hash>multihashes>varint",[264713,371057,752263,987067]],["@ensdomains/content-hash>multihashes>web-encoding",[580731]],["@ethereumjs/tx",[100452,100452,126896,126896,127314,127314,127469,127469,155e3,155e3,215366,215366,242676,242676,279528,279528,282703,282703,325733,325733,407539,407539,443901,443901,571637,571637,815357,815357,830723,830723,986319,986319,988296,988296]],["@ethereumjs/tx>@ethereumjs/common",[138049,138049,207769,207769,428097,428097,440598,440598,617778,617778,77547,77547,921628,921628,932733,932733]],["@ethereumjs/tx>@ethereumjs/rlp",[626536,626536,971047]],["@ethereumjs/tx>@ethereumjs/util",[160942,160942,18546,197133,197133,199456,199456,211645,211645,262336,262336,29433,296648,310188,336422,341872,349456,349456,384377,388655,388655,416527,437881,448578,448578,478459,47909,47909,543178,580203,580203,586720,596187,596187,632496,657076,657076,671762,741736,741736,783798,783798,83895,83895,855224,855224,874349,881019,881019,888838,890415,892667,898069,899217,906238,932477,932477,99683,99683]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography",[110377,219828,301302,301302,401868,401868,452197,535309,567417,567417,732]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves",[107004,107004,108099,224981,266786,278956,278956,495448,617072,617072,622643,671003,671003,678298,678298,710609,710609,762871,796262]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[10780,224683,224683,285861,285861,321705,321705,359750,445115,447856,476244,476244,481449,481449,533968,533968,543657,543657,610068,813303,813303,915253,929920,963426]],["@ethereumjs/tx>ethereum-cryptography",[271465,271465,81446,81446]],["@ethereumjs/tx>ethereum-cryptography>@noble/hashes",[130407,130407,224661,224661,362180,362180,532953,532953]],["@ethersproject/abi",[207619,207619,2720,2720,290117,290117,380106,380106,393718,393718,402741,402741,403119,403119,408505,408505,450337,450337,485050,485050,552281,552281,552364,552364,611782,611782,651911,651911,715904,715904,871050,871050]],["@ethersproject/bignumber",[323489,323489,367302,367302,631229,631229,726731,726731]],["@ethersproject/bytes",[524443,524443,993558,993558]],["@ethersproject/contracts",[264926,264926,295523,295523]],["@ethersproject/hdnode",[42014,42014,563965,563965]],["@ethersproject/providers",[144240,144240,203284,203284,235086,235086,272585,272585,286156,286156,375693,375693,380392,380392,396515,396515,416895,416895,504409,504409,675682,675682,683411,683411,702541,702541,728024,728024,732500,732500,806355,806355,819790,819790,930847,930847,935424,935424,981328,981328]],["@ethersproject/providers>bech32",[579841,579841]],["@ethersproject/transactions",[482925,482925,894e3,894e3]],["@fortawesome/fontawesome-free",[1527,1527,1527,1527,411525,411525,411525,411525,70035,70035,70035,70035]],["@google/genai>protobufjs",[119463,119463,151942,151942,179394,179394,19298,19298,218825,218825,233393,233393,265120,265120,275867,275867,277049,277049,28e3,28e3,281537,281537,299467,299467,31787,31787,350553,350553,35271,35271,411124,411124,481277,481277,488703,488703,540186,540186,54984,54984,550602,550602,649399,649399,677694,677694,762632,762632,792509,792509,798572,798572,817362,817362,829594,829594,864122,864122,929078,929078,960613,960613,961051,961051]],["@google/genai>protobufjs>@protobufjs/aspromise",[35757,35757]],["@google/genai>protobufjs>@protobufjs/base64",[380567,380567]],["@google/genai>protobufjs>@protobufjs/codegen",[80225,80225]],["@google/genai>protobufjs>@protobufjs/eventemitter",[846230,846230]],["@google/genai>protobufjs>@protobufjs/fetch",[890554,890554,895260,895260]],["@google/genai>protobufjs>@protobufjs/float",[179442,179442]],["@google/genai>protobufjs>@protobufjs/path",[437271,437271]],["@google/genai>protobufjs>@protobufjs/pool",[476366,476366]],["@google/genai>protobufjs>@protobufjs/utf8",[843255,843255]],["@google/genai>protobufjs>long",[35849,35849]],["@hello-pangea/dnd",[300039]],["@hello-pangea/dnd>css-box-model",[200635]],["@hello-pangea/dnd>css-box-model>tiny-invariant",[387325]],["@hello-pangea/dnd>memoize-one",[62147]],["@hello-pangea/dnd>raf-schd",[930197]],["@hello-pangea/dnd>react-redux",[149014,300155,31974,338336,372198,378973,391665,418855,431633,472817,567731,588406,643599,681892,72634,779334,844178,887933,899944,900884,9258,976618]],["@hello-pangea/dnd>use-memo-one",[214897]],["@keystonehq/bc-ur-registry-eth",[2593,544829]],["@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[124e3,191052,231626,249615,265655,2977,459024,467722,527355,534855,564315,573995,57636,646539,67798,682001,747747,773884,794735,804119,867283,883483,927029,939286,976399,987339]],["@lavamoat/lavadome-react",[494708]],["@lavamoat/webpack>json-stable-stringify>isarray",[664074,664074]],["@lavamoat/webpack>json-stable-stringify>object-keys",[266165,266165,69051,69051,910229,910229]],["@ledgerhq/errors",[30649,30649,315100,315100]],["@ledgerhq/hw-app-eth",[104027,104586,113800,268879,30606,383317,463313,536227,551257,568746,63684,687439,705565,906779]],["@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures",[116736,116736,124859,124859,163015,163015,169781,169781,199597,199597,210703,210703,230970,236883,236883,248848,248848,250685,250685,255154,255154,258052,258052,274109,274109,322847,322847,334270,334270,347020,347020,366551,366551,369002,37908,37908,384717,384717,404282,404282,416093,416093,419682,419682,443852,443852,462622,462622,477649,477649,480075,480075,518851,518851,519988,519988,524815,524815,527390,527390,545688,545688,579237,579237,590888,590888,591272,591272,594750,594750,605933,605933,610625,610625,616814,616814,626884,626884,668059,668059,672311,672311,67928,67928,696055,696055,730571,730571,743225,743225,745686,745686,762051,762051,765119,78373,78373,787985,787985,819889,819889,835776,835776,848707,848707,867849,867849,89350,89350,895421,895421,902902,902902,908299,908299,9231,9231,938612,938612,950401,950401,95776,95776,983883,983883]],["@ledgerhq/hw-app-eth>@ledgerhq/domain-service",[224675,565967,862553]],["@ledgerhq/hw-app-eth>@ledgerhq/evm-tools",[454077,819304,977702]],["@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env",[265370,373941]],["@ledgerhq/hw-app-eth>@ledgerhq/logs",[878528,878528]],["@ledgerhq/hw-app-eth>bignumber.js",[784124]],["@ledgerhq/hw-transport",[912015]],["@ledgerhq/hw-transport-webhid",[53406]],["@ledgerhq/hw-transport-webhid>@ledgerhq/devices",[42324,695006]],["@ledgerhq/hw-transport-webhid>@ledgerhq/devices>semver",[122508,124306,153063,156827,196336,206080,219259,238402,248308,254004,273435,281017,2911,292487,308262,327803,35765,375822,421895,48037,486088,50122,5166,599021,632189,66184,723811,734082,744484,756398,762961,81032,829019,832090,852453,853846,867350,898423,898721,901711,909957,93192,960393,989346,997168]],["@ledgerhq/hw-transport-webhid>@ledgerhq/hw-transport",[127439]],["@metamask/abi-utils",[104527,104527,252332,252332,29607,29607,311312,311312,367419,367419,479238,479238,502414,502414,548249,548249,553588,553588,601499,601499,627674,627674,743732,743732,756330,756330,785400,785400,833750,833750,838797,838797,961858,961858,968912,968912,974538,974538,986563,986563]],["@metamask/account-api",[360726,360726,462357,462357,531819,531819,674288,674288,689812,689812,716904,716904,809904,809904]],["@metamask/account-tree-controller",[212369,212369,270718,270718,294987,294987,321902,321902,335349,335349,370246,370246,384983,384983,402561,402561,41997,41997,422719,422719,424752,424752,436829,436829,460699,460699,517113,517113,550321,550321,564758,564758,564855,564855,599500,599500,662092,662092,687542,687542,788527,788527,81909,81909,827362,827362,93043,93043,992452,992452]],["@metamask/accounts-controller",[53178,53178,569831,836207]],["@metamask/accounts-controller>ethereum-cryptography",[586390,586390,671508,671508]],["@metamask/accounts-controller>ethereum-cryptography>@noble/hashes",[407105,407105,655163,655163,700931,700931,872574,872574]],["@metamask/address-book-controller",[108072]],["@metamask/analytics-controller",[170639,383081,440901,996874]],["@metamask/announcement-controller",[820437]],["@metamask/approval-controller",[394813,394813,65997,65997]],["@metamask/assets-controller",[143147,143147,147759,147759,163545,163545,169086,169086,241943,241943,253139,253139,26522,26522,266468,266468,267269,267269,286306,286306,347263,347263,370534,370534,37479,37479,391638,391638,405369,405369,44327,44327,496414,496414,500016,500016,528304,528304,532612,532612,535325,535325,583584,583584,603342,603342,631549,631549,659933,659933,685951,685951,745908,745908,747837,747837,754049,754049,78089,78089,810628,810628,811752,811752,820927,820927,860645,860645,889133,889133,91937,91937,979117,983918,983918]],["@metamask/assets-controller>bignumber.js",[694204,694204]],["@metamask/assets-controller>p-limit",[336741,336741]],["@metamask/assets-controller>p-limit>yocto-queue",[632773,632773]],["@metamask/assets-controllers",[110276,158252,167851,171001,172686,227866,228231,232858,237906,238761,244955,252816,252816,27351,288409,343126,361938,374902,390625,405850,439753,469817,469817,482139,496218,496218,508644,554112,577053,626171,629210,642238,650464,650726,700704,702071,713383,717283,80006,80576,80576,855536,855536,886040,99926]],["@metamask/assets-controllers>@metamask/abi-utils",[104009,226133,266222,308585,338588,392577,403883,482771,489936,514103,520679,609803,646930,72774,733541,788957,793925,937732,957092,990511]],["@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils",[109103,180082,222167,264180,293255,388024,426254,442491,511868,576264,610036,748292,772184,814636,820218,850268,851018,867089,911136,929290,958918]],["@metamask/assets-controllers>@tanstack/query-core",[159849,326642,365821,404408,440941,521982,54537,578764,674183,689635,7871,836668,850856,885625,965953]],["@metamask/assets-controllers>multiformats",[148156,255843,255843,293394,323487,333102,371330,371330,374668,385376,427475,441965,448335,526898,526898,588626,62677,62677,64844,64844,649495,649495,67680,748102,748102,814198,814198,952101,963547,963547,964097,97286,992647]],["@metamask/assets-controllers>single-call-balance-checker-abi",[800904,800904]],["@metamask/authenticated-user-storage",[280078,366552,366552,385890]],["@metamask/base-controller",[100209,100209,100209,293889,35747,418920,552558,552558,552558,777386]],["@metamask/bitcoin-wallet-snap",[709397]],["@metamask/bitcoin-wallet-standard",[243229,337874,467743,500285,63130,747555,776179,789365,880287,884948,921950,985447]],["@metamask/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard-core>@exodus/bitcoin-wallet-standard-chains",[467062]],["@metamask/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard-core>@exodus/bitcoin-wallet-standard-features",[157519]],["@metamask/bitcoin-wallet-standard>@wallet-standard/wallet",[491867,856492]],["@metamask/bridge-controller",[108398,16340,175070,175070,182317,182317,182332,182332,182348,182348,213142,213142,229718,229718,269405,269405,334204,338084,360862,383442,383442,404283,404283,408776,408776,436243,436243,458622,475583,475583,527704,527704,550293,550293,563197,563197,570610,572586,572839,599076,599076,619489,619489,66216,66216,688326,688326,709096,709096,723591,748512,748512,878370,908029,908029,925343]],["@metamask/bridge-controller>bignumber.js",[990088,990088]],["@metamask/bridge-status-controller",[106065,119059,121155,131997,181294,274039,283450,303911,312464,336779,39609,492986,515578,521066,533891,556520,607105,635769,637401,676522,679218,689270,707009,745440,816670,856770,864924,865350,89579,910758,917434,917662,922645,957050,962123,996435,996688]],["@metamask/bridge-status-controller>bignumber.js",[752819]],["@metamask/browser-passworder",[5875]],["@metamask/chain-agnostic-permission",[145096,145096,267603,296639,296639,381375,381375,431324,562708,712765,721077,739999,77523,77523,825365,825365,849231,849231,85904,85904,942824]],["@metamask/chain-agnostic-permission>@metamask/api-specs",[751601,751601,934683,934683,934683,934683,934683,934683,99790,99790,99790,99790,99790,99790]],["@metamask/claims-controller",[178566,39193,41181,515813,515813,518553]],["@metamask/claims-controller>@metamask/controller-utils",[193080,248556,596979,596979,673296]],["@metamask/client-controller",[214101,599726,599726]],["@metamask/client-utils",[126062,252047,262519,535284,550515,570113,917237]],["@metamask/compliance-controller",[332771,332771,361978,6362,713765,713765]],["@metamask/config-registry-controller",[116382,377130,792770]],["@metamask/connectivity-controller",[440931,440931]],["@metamask/contract-metadata",[243179,243179,243179,243179,243179,243179,988313,988313]],["@metamask/controller-utils",[17605,17605,30018,30018,496705,496705,51664,51664,644174,644174,657638,657638,672307,672307]],["@metamask/controller-utils>@metamask/eth-query",[605895,605895]],["@metamask/controller-utils>@metamask/ethjs-unit",[886634,886634]],["@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn",[360646,360646]],["@metamask/controller-utils>@spruceid/siwe-parser",[129409,129409,751528,751528,890577,890577]],["@metamask/controller-utils>@spruceid/siwe-parser>apg-js",[118675,118675,1305,1305,133543,133543,135322,135322,151097,151097,190686,190686,204777,204777,216202,216202,245981,245981,283691,283691,383737,383737,397721,397721,431304,431304,442480,442480,46509,46509,469328,469328,488665,488665,548907,548907,622282,622282,670078,670078,810722,810722,820724,820724,872735,872735,965892,965892]],["@metamask/controller-utils>@spruceid/siwe-parser>valid-url",[378477]],["@metamask/core-backend",[209656,209656,213997,234697,234697,396880,396880,440116,440116,64637,64637,646372,818082,852281,852281,926115,926115]],["@metamask/core-backend>@tanstack/query-core",[183364,183364,191522,191522,194019,194019,229461,229461,232318,232318,277754,277754,32014,32014,400632,400632,480615,480615,483152,483152,490130,490130,576455,576455,759119,759119,790381,790381,835468,835468]],["@metamask/delegation-controller",[413600,561716,666903]],["@metamask/delegation-controller>@metamask/keyring-controller",[451946,609454,811502]],["@metamask/delegation-core",[846404,846404]],["@metamask/delegation-deployments",[721785]],["@metamask/design-system-react",[100791,101545,104095,108379,111700,112038,112120,116791,118991,124856,126134,126528,139911,146950,147602,148696,153108,153472,154468,157783,157994,158250,158317,160370,160687,166537,168743,170533,173556,174795,17635,179218,180219,180781,181657,181902,183745,185194,186304,192794,195120,197951,201718,205278,212504,21263,21292,216346,216793,21875,219384,221371,222496,223901,227485,237405,237457,241686,243877,244569,244701,248477,250778,254465,255145,261181,266965,268870,27150,274207,2762,276277,281051,281244,282311,283931,287002,287721,289055,290070,290605,296263,302175,303362,305955,306392,309111,310583,311698,314356,314756,323966,327468,330793,331498,33539,3372,339262,340390,343043,344809,346414,34997,353187,353438,355670,35721,364588,367792,376193,380917,381150,382707,385780,386745,38914,392800,395528,398412,40106,403015,405165,407554,407699,409644,410701,411275,412524,424341,424502,428504,431037,432914,434186,435684,437840,439295,439550,443273,445973,446947,449341,449565,450435,451902,452304,452668,454831,455836,457302,458646,459182,460390,465560,466770,47233,479746,480116,486359,48845,488581,492670,493611,49421,494800,498677,502676,50627,507803,508323,508533,510243,514816,516438,518206,518491,519559,520430,524405,526447,527442,529775,531462,533632,534408,53669,537119,53784,538324,539783,540463,541292,544020,544944,546947,559099,563376,564250,566707,568085,576040,578429,579952,581745,582814,588106,588156,592479,593902,596940,600838,60209,602435,608887,60938,609415,616203,618485,621719,622832,623197,627871,632419,633400,634850,635860,639263,640713,641816,644493,65093,652230,655301,657580,65874,661447,671492,672992,67493,675319,676513,679085,679968,68323,68593,687513,687949,68940,690034,694394,709071,712964,719082,720483,72180,723576,729079,738935,742351,746005,746150,746812,748507,75451,756741,757654,758832,759310,762644,772737,773742,775075,779749,783088,783173,785016,785427,78990,790558,793216,797460,799163,804968,805600,806198,80649,81120,811571,814520,823445,827933,828116,829471,831404,832190,836726,838175,838490,842111,844326,845022,845417,848365,848558,849803,852336,853169,855034,865740,86660,866927,868118,870677,87288,874176,876365,877291,879575,879638,884056,890954,895370,903273,904306,907319,912629,913802,913807,922726,926968,927951,931231,93278,934509,935664,937069,938132,942959,949098,955662,958152,962428,963245,964414,966455,966872,970443,972938,976849,982635,983857,985268,990900,992164,995163,998246]],["@metamask/design-system-react>@radix-ui/react-slot",[700694]],["@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs",[128659]],["@metamask/design-system-react>blo",[150609,749193,904710,999084]],["@metamask/design-system-react>tailwind-merge",[704044]],["@metamask/design-system-shared",[206576,220719,305142,506410,520858,556734,568894,584942,683772,706794,73804,75734,789292,79038,831198,833304,848574,918070,918318]],["@metamask/design-tokens",[158967,158967,167203,167203,225344,225344,284253,284253,288228,288228,347861,347861,356770,356770,377043,377043,394478,394478,4796,4796,482988,482988,500944,500944,522686,522686,610707,610707,619893,619893,633612,633612,681561,681561,690691,690691,711582,711582,783158,783158,784672,784672,82737,82737,868103,868103,870912,870912,875644,875644,914025,914025,91504,91504,92071,92071,972017,972017]],["@metamask/eip-5792-middleware",[128263,203268,357659,399703,456200,736462,752916,800324,965456]],["@metamask/eip-5792-middleware>@metamask/transaction-controller",[408401]],["@metamask/eip-7702-internal-rpc-middleware",[346583,353243,528171,755975,930635]],["@metamask/ens-controller",[156825]],["@metamask/ens-resolver-snap",[830316]],["@metamask/eth-hd-keyring",[739583,739583,780268,780268]],["@metamask/eth-hd-keyring>ethereum-cryptography",[731631,731631,780922,780922]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves",[187339,187339,275501,275501,354273,354273,862530,862530,86744,86744,987385,987385]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes",[147274,147274,248241,248241,459303,459303,474660,474660,536710,536710,546308,546308,592843,592843,612378,612378,628989,628989,701194,701194]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32",[66889,66889]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base",[907904,907904]],["@metamask/eth-json-rpc-filters",[278719,330124,413157,514940,64118,680785,784897,793971,801961]],["@metamask/eth-json-rpc-middleware",[14889,14889,175448,313439,313439,368847,368847,38375,389642,400071,400071,422581,563755,576704,576704,681384,681384,686162,706620,706620,804404,81650,865707,865707,881809,881809,936027,936027,957027,957027,974732,994521]],["@metamask/eth-json-rpc-middleware>safe-stable-stringify",[330764,330764,612980,612980]],["@metamask/eth-json-rpc-provider",[55711,55711,884465,884465]],["@metamask/eth-ledger-bridge-keyring",[324398,517652,64822,64822,712450,764413,77193,77378]],["@metamask/eth-qr-keyring",[35653,360209,807147,807147,995456,995456]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth",[11448,11448,545448,545448]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util",[106166,106166,184430,184430,242063,242063,287160,287160,317236,317236,365684,365684,413456,413456,416838,416838,451854,451854,463212,463212,499760,499760,650359,650359,910697,910697,924906,924906,977461,977461]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp",[506783,506783]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography",[613096,613096,748037,748037,837272,837272]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves",[158115,158115,23489,23489,291818,291818,397454,397454,774223,774223,889447,889447,933636,933636]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[245326,245326,274209,274209,402728,402728,408688,408688,562204,562204,772775,772775,778756,778756,860498,860498]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[115358,115358,122720,122720,133557,133557,161856,161856,177355,177355,182666,182666,261574,261574,456406,456406,461683,461683,470297,470297,470600,470600,550736,550736,648167,648167,67503,67503,675722,675722,700095,700095,782172,782172,791890,791890,816816,816816,879846,879846,887673,887673,934292,934292,949592,949592,961101,961101,99602,99602,996720,996720]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid",[241376,241376,242547,242547,260475,260475,301443,301443,506592,506592,544660,544660,68131,68131,695274,695274,695305,695305,713983,713983,724869,724869,743621,743621,751815,751815,76104,76104,946844,946844]],["@metamask/eth-qr-keyring>hdkey",[821827,821827]],["@metamask/eth-qr-keyring>uuid",[329214,329214,579133,579133,611514,611514,646280,646280,852884,852884,995985,995985]],["@metamask/eth-sig-util",[162924,162924,371046,371046,47994,47994,57209,57209,876521,876521,937867,937867]],["@metamask/eth-sig-util>@ethereumjs/rlp",[799901,799901]],["@metamask/eth-sig-util>@ethereumjs/util",[193298,193298,209472,209472,212876,212876,227526,227526,374639,374639,415846,415846,495838,495838,627626,627626,670186,670186,729945,729945,7824,7824,789337,789337,789352,789352,853979,853979,952208,952208]],["@metamask/eth-sig-util>@scure/base",[96959,96959]],["@metamask/eth-sig-util>ethereum-cryptography",[369916,369916,457095,457095,519021,519021]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/curves",[173752,173752,394542,394542,416989,416989,498307,498307,591346,591346,629229,629229,790586,790586]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes",[122679,122679,173646,173646,337099,337099,570641,570641,59242,59242,755859,755859,760501,760501,845139,845139]],["@metamask/eth-snap-keyring",[177652,349088,388443,390321,425508,607629,610606,703288,707671,712790,871947,930342,991965]],["@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client",[372483]],["@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk",[946281]],["@metamask/eth-snap-keyring>uuid",[424171,769267,973046,990075]],["@metamask/eth-token-tracker",[255353,255353,521476,521476,767110,767110]],["@metamask/eth-token-tracker>@metamask/eth-block-tracker",[46097,46097,607723,607723,614362,614362,624895,624895,696478,696478]],["@metamask/eth-token-tracker>deep-equal",[747174,747174]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator",[89048,89048]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map",[107274,107274]],["@metamask/eth-token-tracker>deep-equal>is-date-object",[952632,952632]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive",[114003,114003]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint",[1771,1771]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object",[841928,841928]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object",[523543,523543]],["@metamask/eth-token-tracker>deep-equal>which-collection",[539681,539681]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap",[46066,46066]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset",[954136,954136]],["@metamask/eth-trezor-keyring",[159997,185396,400458,421774,425995,484999]],["@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum",[357361]],["@metamask/etherscan-link",[314846,314846,450656,450656,633713,633713,64025,64025,759868,759868,947264,947264,971443,971443]],["@metamask/gas-fee-controller",[431866,431866,65293,65293,899051,899051]],["@metamask/gator-permissions-controller",[11195,131172,150360,206790,313748,346138,364202,392566,400486,431157,431529,514156,523105,537206,558096,580639,585733,650818,667144,717682,847931,904390,918794]],["@metamask/gator-permissions-controller>@metamask/abi-utils",[16970,202648,207569,223647,330407,339537,407854,491968,559645,598578,600451,607603,64269,647513,652275,702395,722802,797092,842691,927929]],["@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils",[119802,136777,147660,180886,279513,329974,375721,430416,49982,504225,646277,719844,723518,778635,789370,794274,869658,881058,916184,926428,937724]],["@metamask/gator-permissions-controller>@metamask/transaction-controller",[283051]],["@metamask/gator-permissions-snap",[454989]],["@metamask/geolocation-controller",[443136,899513,909614,909614]],["@metamask/geolocation-controller>@metamask/controller-utils",[835663,835663,923248]],["@metamask/hw-wallet-sdk",[649775,649775,784717,784717,832813,832813,853955,853955,925338,925338]],["@metamask/institutional-wallet-snap",[654294]],["@metamask/jazzicon",[256985,762823,983303]],["@metamask/jazzicon>color",[796458]],["@metamask/jazzicon>color>clone",[901347]],["@metamask/jazzicon>color>color-convert",[665773,698052,793961]],["@metamask/jazzicon>color>color-convert>color-name",[670366]],["@metamask/jazzicon>color>color-string",[362611]],["@metamask/jazzicon>mersenne-twister",[760322]],["@metamask/json-rpc-engine",[129385,140667,157637,19352,19352,19352,19352,19352,19352,199481,199481,314307,314307,350026,350026,354466,354466,354466,354466,354466,354466,368371,372429,395037,395037,422356,438025,438025,482742,482742,482742,482742,482742,482742,556620,556620,556620,556620,556620,556620,574527,574527,574527,574527,574527,574527,647553,647553,647553,647553,647553,647553,69388,69388,742547,742547,742547,742547,742547,742547,787307,787307,797561,813216,813216,813216,813216,813216,813216,858594,858594,858594,858594,858594,858594,894454,894454,895171,896558,897312,897312,897312,897312,897312,897312,905416,905416,905416,905416,905416,905416,96214,96214,96214,96214,96214,96214,97002,97002,97002,97002,97002,97002,993793]],["@metamask/json-rpc-engine>klona",[699479,699479,810045,810045]],["@metamask/json-rpc-middleware-stream",[273342,407394,643984,643984]],["@metamask/json-rpc-middleware-stream>readable-stream",[104760,123210,123210,156997,235139,235139,278031,304983,304983,306788,329687,424983,558254,63063,682145,682145,700528,700528,710347,724843,752314,813254,813254,820213,825326,839868,839868,847866,859321,867208,867208,906781,906781,915142,915142,925777,925777,942412,942412,942755,942755,960094,960094,979496,979496]],["@metamask/keyring-api",[139918,161271,161271,161934,161934,201831,201831,242317,242317,250727,286141,286141,341483,341483,348554,348554,360041,373585,373585,39610,39610,418569,467236,467236,477322,477322,536805,592653,592653,595704,595704,612293,612293,670158,670158,674397,674397,711298,711298,751817,751817,853429,853429,861320,861320,867525,867525,871089,871089,886319,886319,896322,896322,906646,906646,957740,957740,960661,970519,970519,979855,979855]],["@metamask/keyring-controller",[280501,280501,511133,511133,869959,869959]],["@metamask/keyring-controller>@metamask/eth-simple-keyring",[232031,232031,688668,688668]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography",[11305,11305,460532,460532]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes",[223880,223880,310270,310270,741197,741197,828940,828940]],["@metamask/keyring-controller>ethereumjs-wallet",[512249,512249,562210,562210,610527,610527]],["@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography",[143313,143313,267378,267378,283155,283155,361274,361274,51747,51747,564783,564783,585825,585825,61648,61648,723983,723983,748852,748852,749005,749005]],["@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util",[206354,206354,255583,255583,303999,303999,388918,388918,531412,531412,681551,681551,681987,681987,701971,701971,75560,75560,851954,851954,892253,892253,945458,945458]],["@metamask/keyring-controller>ethereumjs-wallet>utf8",[670655,670655]],["@metamask/keyring-controller>ulid",[31299,31299,599794,599794]],["@metamask/keyring-internal-api",[362408]],["@metamask/keyring-sdk",[210385,210385,314527,314527,693228,693228,698214,932754,932754,984228]],["@metamask/keyring-sdk>ethereum-cryptography",[103525,103525,824745,824745]],["@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes",[10928,10928,411983,411983,785108,785108,821114,821114]],["@metamask/keyring-sdk>uuid",[280255,280255,345719,345719,682642,682642,905303,905303]],["@metamask/keyring-snap-client",[656228,656228]],["@metamask/keyring-snap-client>uuid",[210603,210603,292899,292899,580723,580723,724414,724414]],["@metamask/keyring-utils",[156635,156635,364524,364524,510930,510930,551277,551277,61683,61683]],["@metamask/logging-controller",[197372,612870,841177]],["@metamask/logo",[663411,663411,663411,739929,739929,739929,844113,844113,844113]],["@metamask/logo>gl-mat4",[58879,58879,58879,717641,717641,717641,733652,733652,733652,740435,740435,740435,974021,974021,974021,979173,979173,979173]],["@metamask/logo>gl-vec3",[239384,239384,239384]],["@metamask/message-manager",[229690,306128,307179,672657]],["@metamask/message-manager>@metamask/controller-utils",[270179,552418,998790]],["@metamask/message-manager>jsonschema",[143064,144276,227698,47847,52805]],["@metamask/message-signing-snap",[423752]],["@metamask/messenger",[324960,324960,446337,446337,446337,446337,446337,446337,547368,547368,547368,547368,547368,547368]],["@metamask/metamask-eth-abis",[285981,285981,409227,409227,571397,571397,632915,632915,785012,785012]],["@metamask/mobile-wallet-protocol-core",[174397]],["@metamask/mobile-wallet-protocol-core>centrifuge",[219212]],["@metamask/mobile-wallet-protocol-core>eventemitter3",[674596]],["@metamask/mobile-wallet-protocol-core>uuid",[103256,174472,198095,216339,286030,337212,350614,396216,484813,504997,554847,633642,666415,704071,745266,758385,810631,813636,834264,894289,992226]],["@metamask/mobile-wallet-protocol-dapp-client",[968261]],["@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils",[121993,357250]],["@metamask/mobile-wallet-protocol-dapp-client>uuid",[120511,378778,403687,582799]],["@metamask/multichain-account-service",[111916,150102,185216,236917,273316,380849,425842,431389,468013,560102,608891,705268,761340,831261,891847,913889,960168]],["@metamask/multichain-api-client",[220677,366196,412454,4712,56710,675768,676687,991999]],["@metamask/multichain-api-middleware",[116462,398575,446882,573993,677044,774329,951474,960364,993285]],["@metamask/multichain-api-middleware>@metamask/api-specs",[340968,72215,89361]],["@metamask/multichain-network-controller",[131831,15549,15549,270913,328063,590026,951493,951493]],["@metamask/multichain-transactions-controller",[809882]],["@metamask/name-controller",[122859,138904,140701,140701,206320,265209,349820,394168,479088,530451,530451]],["@metamask/name-controller>@metamask/controller-utils",[812830,812830]],["@metamask/network-controller",[339710,339710,418084,418084,469233,469233,552682,552682,636061,636061,762180,762180,871933,871933,877882,877882,964084,964084]],["@metamask/network-controller>@metamask/eth-block-tracker",[336767,336767,601556,601556]],["@metamask/network-controller>@metamask/eth-json-rpc-infura",[196288,196288,391341,391341,597837,597837,717129,717129,975366,975366]],["@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider",[139596,139596,139596,139596,139596,139596,163433,163433,163433,163433,163433,163433,357480,357480,357480,357480,357480,357480,666594,666594,666594,666594,666594,666594]],["@metamask/network-controller>@metamask/swappable-obj-proxy",[101126,101126,480251,480251,832336,832336,871023,871023]],["@metamask/network-enablement-controller",[27340,540012,65352,912351]],["@metamask/notification-services-controller",[152282,19676,19676,221890,221890,291105,291105,303728,303728,308033,308033,390923,390923,432592,47250,523176,543884,543884,565553,565553,599565,599565,621095,621095,713351,713351,749512,749512,767678,767678,795086,795086,914806,914806,916866,923231,923231,924352,989029,989029]],["@metamask/notification-services-controller>@contentful/rich-text-html-renderer",[777316,777316]],["@metamask/notification-services-controller>bignumber.js",[807275,807275]],["@metamask/notification-services-controller>firebase",[406131,624267,958250]],["@metamask/notification-services-controller>firebase>@firebase/app",[116089]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component",[517177]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger",[829036]],["@metamask/notification-services-controller>firebase>@firebase/app>idb",[171560,757110]],["@metamask/notification-services-controller>firebase>@firebase/installations",[716395]],["@metamask/notification-services-controller>firebase>@firebase/messaging",[102932,78712]],["@metamask/notification-services-controller>firebase>@firebase/util",[771927]],["@metamask/object-multiplex",[136940,373445,541726,541726,541726,657887,657887,657887,967744,967744,967744,993027]],["@metamask/object-multiplex>once",[688655,688655,688655,842744]],["@metamask/object-multiplex>once>wrappy",[368616,885067,885067,885067]],["@metamask/object-multiplex>readable-stream",[103508,103508,103508,108694,108694,108694,15394,15394,15394,181531,181531,181531,183588,258565,258565,258565,284911,292787,304208,304208,304208,319353,446267,446267,446267,472387,478633,478633,478633,540031,540031,540031,554907,593545,593545,593545,659909,66066,666688,666688,666688,691259,729063,737465,75284,75284,75284,835990,838926,838926,838926,839488,846686,884578,934344,934344,934344,979662,979662,979662]],["@metamask/obs-store",[196157,293729,29584,452512,792410,960742]],["@metamask/obs-store>readable-stream",[13938,14474,189861,263502,264222,3024,316879,693971,725397,803178,843604,88819,893812,957452,981313]],["@metamask/passkey-controller",[178690,17925,365833,632839,677490,717386,749002,749002,776700,778393,804622,865122,868088,914998,933441,980167,981155]],["@metamask/passkey-controller>@levischuck/tiny-cbor",[301947,600752,710278]],["@metamask/permission-controller",[241361,241361,241361,253990,29947,29947,29947,408613,408613,431297,441099,462105,766840,766840,775377,775377,831851,831851]],["@metamask/permission-log-controller",[157908,648391]],["@metamask/permissions-kernel-snap",[18171]],["@metamask/perps-controller",[121592,162729,163243,166861,166861,16793,16793,173800,186957,192206,222750,248394,282514,334323,348124,373663,373663,388843,416431,445301,478880,479133,486232,519226,522187,54381,562832,585609,585609,585609,585609,585609,607653,616395,625845,757506,760057,760837,760900,78776,793434,798777,798777,810634,810634,835078,848964,858623,872652,911430,926180,931150,932811,937640,942225,970671,97487,979587]],["@metamask/perps-controller>@metamask/abi-utils",[1395,145325,290001,330383,356515,406653,496476,573613,575115,626417,631673,634810,66343,675964,7157,752774,7896,797470,814660,874415]],["@metamask/perps-controller>@metamask/abi-utils>@metamask/utils",[100561,110588,11850,26208,328370,346740,387655,436443,437194,455639,470584,53690,590779,622982,773167,830852,84376,912455,962924,965340,974158]],["@metamask/perps-controller>@nktkas/hyperliquid",[103126,105127,112351,117853,126180,126395,131866,134419,148979,150071,153029,159933,163233,164804,172911,188787,192010,193452,21131,218443,225748,226558,227950,228473,229429,233610,23515,23534,238744,241285,257601,264622,285553,293277,303136,304870,315268,324992,343506,344312,345315,356216,35806,360957,363677,368180,373757,378925,38110,381777,390780,405059,41211,42496,427825,431012,435792,44952,452769,454562,455292,456534,47196,483329,486223,494484,500496,505976,506939,51482,51740,519233,526682,52690,542120,542761,544850,557372,558063,558104,569411,571859,57553,582818,584584,585044,592650,610840,611842,618007,618304,630647,633194,633696,634075,643865,649665,651942,653028,655477,660706,661771,667682,669276,675625,676534,684309,686046,686370,687464,689459,692013,696528,704368,704438,710754,720305,721641,724758,725801,727275,728697,743095,747035,748536,750104,75889,759865,766618,768687,769195,770685,771236,778570,778826,783363,789330,79928,80091,805168,809953,811803,818084,821129,822863,829781,84237,842396,845751,853528,853711,855283,85779,860366,86915,870484,881273,88298,884152,89088,892100,915050,918049,923512,92669,930182,939914,942311,949685,952359,952915,957435,960981,965469,966297,968331,977542,980484,988554,991255,998272,999572]],["@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews",[221836]],["@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes",[394621,575241,71896]],["@metamask/perps-controller>@nktkas/hyperliquid>valibot",[16082]],["@metamask/phishing-controller",[257881,311290,311290,318392,382182,48142,794847,851610]],["@metamask/phishing-controller>ethereum-cryptography",[295810,994752]],["@metamask/phishing-controller>ethereum-cryptography>@noble/hashes",[217551,420730,464551,679709]],["@metamask/polling-controller",[729986,729986,816571,816571,937882]],["@metamask/post-message-stream",[101274,101274,101274,107927,107927,107927,23400,359799,379148,411515,465868,524382,524382,524382,543433,620498,620498,620498,74883,74883,74883,755593,755593,755593,822105,927785,927785,927785]],["@metamask/post-message-stream>readable-stream",[122587,122587,122587,128093,128093,128093,149890,149890,149890,158647,158647,158647,164196,280932,335992,365149,377228,377228,377228,387923,387923,387923,430723,430723,430723,437116,450432,456224,456224,456224,490137,490137,490137,506348,506348,506348,508142,508142,508142,525366,538997,621123,67395,67395,67395,68193,702682,742819,846471,85990,864992,864992,864992,883886,938361,938361,938361,976199,976199,976199]],["@metamask/ppom-validator",[177674,289357,560797,802625]],["@metamask/ppom-validator>@metamask/controller-utils",[139624,173631,292844,53568,561277,629867,958344]],["@metamask/ppom-validator>await-semaphore",[972622]],["@metamask/ppom-validator>crypto-js",[136152,156953,212122,28681,299772,316531,388593,416696,467074,495238,496468,546210,554120,605410,626217,63691,648024,659663,67012,67012,706799,736059,741309,741309,756836,782539,812436,826321,826321,833881,848140,851069,855049,857468,863576,925909,936517,939493,954177]],["@metamask/ppom-validator>json-rpc-random-id",[84187,84187]],["@metamask/profile-metrics-controller",[535484,752112,887335,947913]],["@metamask/profile-sync-controller",[119324,125054,131602,145811,158486,163269,175526,208614,214084,285815,408685,408685,411475,412247,536073,583513,60095,710448,731171,731171,751944,760234,763204,784140,871229,881381,911075,911443,936070,941764,958387,958387,96556,978337]],["@metamask/profile-sync-controller>siwe",[250783,345447,499052,771035,966691]],["@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",[651193,692745,916624]],["@metamask/profile-sync-controller>siwe>@stablelib/random",[605021,669716,839148,960997]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary",[472652]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int",[692672]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe",[716903]],["@metamask/providers",[116263,152704,178618,482392,604632,611766,683527,725087,733762,748698,78279,798563,944401,946170,946822,958440]],["@metamask/providers>is-stream",[84773,902544]],["@metamask/providers>readable-stream",[125282,131581,167911,206930,217247,272419,275885,31329,31356,352992,360996,366175,373035,406951,433634,478694,577916,609843,616714,655772,660418,670086,719599,769499,777480,789321,817741,834278,871965,919766]],["@metamask/ramps-controller",[311997,311997,311997,311997,384540,384540,384540,384540,384540,384540,605437,605437,605437,605437,62498,62498,80081,80081,80081,80081]],["@metamask/rate-limit-controller",[859998]],["@metamask/react-data-query",[574018]],["@metamask/react-data-query>@metamask/base-data-service",[124456]],["@metamask/remote-feature-flag-controller",[110809,229582,502008,556814,56558,874810]],["@metamask/rpc-errors",[132002,132002,135299,135299,135299,135299,135299,135299,144008,144008,144008,16905,16905,16905,195057,195057,195057,195057,195057,195057,207534,207534,207534,207534,207534,207534,353959,353959,581327,581327,581327,584553,584553,703640,703640,703640,703640,703640,703640,711210,711210,805248,805248,805248,875088,875088,875088,875088,875088,875088]],["@metamask/rpc-errors>fast-safe-stringify",[101292,101292,754255,754255,754255]],["@metamask/safe-event-emitter",[177805,177805,532596,532596,664053]],["@metamask/scure-bip39",[592190,592190,595876,595876]],["@metamask/scure-bip39>@noble/hashes",[239227,239227,401576,401576,494981,494981,614013,614013,835673,835673,879240,879240,88469,88469,938735,938735,980895,980895]],["@metamask/scure-bip39>@scure/base",[763261,763261]],["@metamask/seedless-onboarding-controller",[189780,2809,364870,437762,627122,949340,987160,987160,987160]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils",[845414]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants",[901527]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup",[113685,17564,242335,284271,327293,553072,568412,635124,706026,787309,812995,878813,917364]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils",[170422,229468,286031,288582,336355,716362,781036,83789]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details",[859723]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base",[15531,262620,579858,928075]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers",[65983]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers",[779159]],["@metamask/selected-network-controller",[269068,69796]],["@metamask/shield-controller",[181547,182405,275378,742033,751037]],["@metamask/shield-controller>@metamask/transaction-controller",[732904]],["@metamask/signature-controller",[328640,415436,415436,467521,743605,931899,951912,999926]],["@metamask/smart-transactions-controller",[261426,407608,407608,541149,541149,612157,612157,631561,631561,729118,810961,847512,847512]],["@metamask/smart-transactions-controller>@metamask/transaction-controller",[636964]],["@metamask/smart-transactions-controller>bignumber.js",[143984]],["@metamask/snap-account-service",[215877,546574,694652,775810]],["@metamask/snap-simple-keyring-site>react-is",[714527,753371]],["@metamask/snaps-controllers",[112990,133884,142700,183940,196833,271855,349990,387855,419414,44384,529460,548552,571594,590831,6940,752077,791368,792124,82215,834155,935494,937038,937580,94502,971587,999342]],["@metamask/snaps-controllers>@xstate/fsm",[497792]],["@metamask/snaps-controllers>concat-stream",[157651]],["@metamask/snaps-controllers>get-npm-tarball-url",[25608]],["@metamask/snaps-controllers>readable-stream",[155001,16879,201291,276622,383198,389521,441790,457020,485102,507985,552197,656451,678257,777816,855501]],["@metamask/snaps-controllers>readable-web-to-node-stream",[868278]],["@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",[11491,195581,295951,326381,34895,409259,469959,521720,632698,763609,792400,807140,835479,857844,928302]],["@metamask/snaps-controllers>tar-stream",[214199,452762,641710,743849,840318]],["@metamask/snaps-controllers>tar-stream>b4a",[510209,520395,534895,656807,673362,701623]],["@metamask/snaps-controllers>tar-stream>fast-fifo",[7296,849774]],["@metamask/snaps-controllers>tar-stream>streamx",[953792]],["@metamask/snaps-controllers>tar-stream>streamx>queue-tick",[344789]],["@metamask/snaps-execution-environments",[449787,449787,897911]],["@metamask/snaps-registry",[505884,79693]],["@metamask/snaps-rpc-methods",[114318,178407,195708,199366,205001,210734,210734,222338,236665,241348,302380,315290,315290,333166,343817,357986,371340,378210,380297,385099,387402,388488,396164,397212,398683,410219,412629,430664,434878,46547,46547,470992,481255,488678,494652,505073,516787,524792,537210,540524,551053,56439,574861,580594,58474,597776,602876,615146,636064,646071,647629,655673,657454,689132,689132,689132,715543,71570,725625,751854,758290,784846,814266,817226,819596,840672,840672,857982,863675,869128,899342,899342,919854,925443,956834,985615,992061]],["@metamask/snaps-sdk",[101940,105626,115412,137750,157392,159167,174638,174638,174638,186119,186119,186119,188320,188320,188320,191699,208554,208554,208554,254995,297416,300005,310408,33029,335562,335562,335562,382906,382906,382906,392154,392154,402644,414221,416877,434322,443697,443697,443697,45217,45217,45217,453945,453945,453945,461893,461893,461893,484068,484068,484068,499490,499490,499490,515828,515828,515828,524390,544299,544299,544299,564534,5654,597361,609948,609948,609948,614130,614130,614130,633089,642015,647388,647388,647388,652384,676358,676358,676358,68318,689686,694729,704340,706524,706524,706524,711073,721117,722837,722837,722837,728195,746658,759742,773466,773466,777040,780947,78121,785876,797999,797999,797999,80332,807925,809633,814006,818365,818365,818365,833399,833414,834788,861913,861913,861913,869864,879516,879771,879771,879771,931217,936435,937053,937053,937053,955187,955187,955187,971188,98414,98414,984524,988068]],["@metamask/snaps-sdk>@metamask/key-tree",[100468,100468,141769,141769,224378,224378,256046,256046,268988,268988,379669,379669,410574,410574,476536,476536,480665,480665,508238,508238,53921,53921,568607,568607,64263,64263,650475,650475,693932,693932,697917,697917,732112,732112,920131,920131,94947,94947,949840,949840,963624,963624]],["@metamask/snaps-utils",[116243,116243,135006,156828,156828,15948,172112,180559,237825,237825,252164,252164,260184,296148,355433,355897,355897,358e3,358e3,374955,392380,392380,431050,431050,448372,504536,504536,529638,54872,54872,58473,619193,619193,62099,62099,630249,630249,631524,631524,635843,650976,650976,665797,66580,676798,676798,685502,685502,723807,761368,761368,793671,797549,90157,90404,90404,914420,914420,939912,968074,968074,97324,985338,988931,988931,988950,988950]],["@metamask/snaps-utils>@metamask/slip44",[847408,847408,847408,847408,847408,847408]],["@metamask/snaps-utils>fast-xml-parser",[141844,311041,434627,490105,632435,637724,712175,905874,942721]],["@metamask/snaps-utils>fast-xml-parser>@nodable/entities",[733501,9845]],["@metamask/snaps-utils>fast-xml-parser>path-expression-matcher",[360912,702374,723880]],["@metamask/snaps-utils>fast-xml-parser>strnum",[243320]],["@metamask/snaps-utils>marked",[44747,44747]],["@metamask/snaps-utils>rfdc",[397348,397348]],["@metamask/snaps-utils>validate-npm-package-name",[226237,226237]],["@metamask/snaps-utils>validate-npm-package-name>builtins",[81481,81481]],["@metamask/solana-wallet-snap",[245743]],["@metamask/solana-wallet-standard",[158133,29645,309289,819292,876553]],["@metamask/solana-wallet-standard>@solana/wallet-standard-features",[45444,527170,598497,943760]],["@metamask/solana-wallet-standard>@wallet-standard/features",[694718,716207,986059]],["@metamask/solana-wallet-standard>@wallet-standard/wallet",[295412,302163]],["@metamask/storage-service",[12851,652919,68978]],["@metamask/subscription-controller",[135109,135109,419686,60607,663425,663425,690474,932821]],["@metamask/subscription-controller>@metamask/transaction-controller",[538064]],["@metamask/subscription-controller>bignumber.js",[591268]],["@metamask/superstruct",[142827,142827,142827,147698,147698,147698,147698,147698,147698,147698,147698,179379,179379,179379,179379,179379,179379,179379,179379,244231,244231,244231,290266,290266,315560,315560,315560,315560,315560,315560,315560,315560,342672,342672,342672,355608,355608,355608,356583,356583,356583,411554,411554,448967,448967,449070,449070,449070,497177,497177,497177,497177,497177,497177,497177,497177,5136,5136,5136,5136,5136,5136,5136,5136,545203,545203,599805,599805,599805,599805,599805,599805,599805,599805,612815,612815,628674,628674,628674,628674,628674,628674,628674,628674,638737,638737,638737,638737,638737,638737,638737,638737,652825,652825,784225,784225,784225,982944,982944]],["@metamask/test-dapp-solana>@solana/wallet-standard-chains",[826167]],["@metamask/transaction-controller",[129438,129438,133660,133660,145895,145895,15420,15420,158388,158388,174838,174838,200881,200881,204471,204471,24889,24889,317525,317525,348372,348372,354166,354166,420762,420762,454515,454515,491993,491993,493646,493646,523615,523615,53002,53002,546292,546292,579150,579150,592361,592361,607402,607402,619783,619783,622702,622702,623476,623476,637434,637434,660227,660227,660502,660502,685128,685128,71530,71530,730691,730691,731521,731521,755199,755199,780690,780690,788457,788457,795886,795886,80667,80667,850156,850156,857157,857157,8862,8862,900682,900682,907315,907315,910368,910368,963648,963648,976022,976022,978561,978561]],["@metamask/transaction-controller>@metamask/nonce-tracker",[775896,775896,877795,877795]],["@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex",[420968,420968,751816,751816,793012,793012,857279,857279,955353,955353,997852,997852]],["@metamask/transaction-controller>bignumber.js",[717341,717341]],["@metamask/transaction-pay-controller",[101009,105313,123646,13475,158511,184549,210220,219848,222065,24139,250500,297689,313295,3413,346329,364985,372027,381432,385374,407825,41150,41417,450293,452543,481511,481511,500762,512802,513265,514996,577857,600740,621834,62324,63322,66246,696073,706442,709890,710432,722273,748603,758848,764976,780512,787865,791378,83447,840766,86794,868446,881283,902177,93161,955429,95614,963432,963584,964544,97797,986092,99916]],["@metamask/transaction-pay-controller>@metamask/ramps-controller",[764022,764400]],["@metamask/transaction-pay-controller>bignumber.js",[722906]],["@metamask/tron-wallet-snap",[990306]],["@metamask/user-operation-controller",[177720,44032,462451,527333,565720,651451,769743,775170,798208,904617,974289,997651]],["@metamask/user-operation-controller>@metamask/transaction-controller",[36674]],["@metamask/utils",[103453,103453,103453,103453,103453,103453,103453,103453,142282,142282,142282,155499,166378,166378,166378,166378,166378,166378,166378,166378,204179,204179,204179,204179,204179,204179,204179,204179,211600,211600,230855,230855,230855,230855,230855,230855,230855,230855,258862,269530,269530,269530,269530,269530,269530,269530,269530,297564,301885,301885,301885,301885,301885,301885,301885,301885,334031,334031,334031,334031,334031,334031,334031,334031,364705,364705,364705,364705,364705,364705,364705,364705,379054,379054,379054,379054,379054,379054,379054,379054,38333,38333,38333,38333,38333,38333,38333,38333,418021,418021,418021,418021,418021,418021,418021,418021,432315,432315,432315,432315,432315,432315,432315,432315,447519,447519,481009,481009,481009,481009,481009,481009,481009,481009,502257,502257,502257,502257,502257,502257,502257,502257,507060,507060,507060,507060,507060,507060,507060,507060,536560,536560,536560,536560,536560,536560,536560,536560,549140,549140,554839,554839,570302,570302,570302,570302,570302,570302,570302,570302,572433,572433,572433,572433,572433,572433,572433,572433,691991,691991,691991,691991,691991,691991,691991,691991,699844,699844,699844,699844,699844,699844,699844,699844,705025,705025,705025,745085,745085,745085,745928,745928,755244,755244,755244,755244,755244,755244,755244,755244,760184,760184,760184,761788,761788,812805,812805,818337,832018,832018,851754,851754,870601,870601,870601,870601,870601,870601,870601,870601,889333,889333,889333,889333,889333,889333,889333,889333,896639,896639,896639,908743,908743,908743,933647,933647,933647,933647,933647,933647,933647,933647,934538,934538,935406,935406,971968,971968,973594]],["@metamask/utils>pony-cause",[178430,178430,207912,207912,341875,341875,67282,67282,762565,762565]],["@metamask/wallet",[184390,347008,382908,406040,423728,635028,665236,732574,883693,904376,918298,976020,997476]],["@metamask/wallet>@metamask/connectivity-controller",[364422,410614]],["@mui/material",[104312,11577,11847,127519,131770,133546,133610,134295,138369,149615,153167,156273,157655,162330,165360,166451,167754,167889,178627,181078,181235,189302,191831,203048,210303,226316,236307,255651,259731,26139,2653,282411,301846,307879,310781,313877,324435,332447,332703,336669,341331,35299,35395,365663,368447,370166,378470,379241,38422,398360,412251,413825,416935,425277,431563,436002,440400,450283,452141,454296,465673,471225,473091,479487,501597,514651,519621,531344,538827,548057,551018,55753,569241,57703,578155,57903,590551,591867,597805,599115,6059,609711,61123,614039,624277,62485,632116,640422,641503,648848,654282,656872,661831,663415,66571,671692,676437,678803,682879,685075,689227,700221,714326,715498,767335,768420,812063,818175,819181,822498,834867,836235,852735,860482,867615,879514,886401,895557,901045,90255,909476,91357,917195,920763,925855,928405,933304,94413,945520,945831,955653,963413,965979,97417,989167,989507,991447,999946]],["@mui/system",[112307,157747,170487,223596,260499,292499,337791,382928,508125,51009,518028,521462,559495,571389,573633,613431,627531,740860,75139,752367,759456,767479,768766,773517,800001,801105,828135,87567,884047,901626,927296,961052,967443,97900]],["@mui/system>@mui/private-theming",[57094,573456,603025,82634]],["@mui/system>@mui/styled-engine",[184884,472395,669950]],["@mui/system>@mui/utils",[103354,184229,1975,20613,214359,230793,246517,282805,291577,305397,319,331467,331569,394779,418965,439189,448157,486545,487849,498525,503031,510163,540913,554911,557889,599139,632271,650543,711433,727645,768304,781887,79181,843102,850845,856709,875719,902965,958525,991061,996063]],["@mui/system>@mui/utils>react-is",[254918]],["@mui/x-date-pickers",[10168,10283,109947,111395,122804,123803,126836,129352,135,137138,143620,14500,193795,207533,217914,232699,236e3,240425,252109,253626,256113,276833,28014,282147,286591,291798,296702,297337,299813,306965,312931,31307,31610,324552,346464,347478,360213,367588,371017,373436,407675,409265,427557,428868,43945,439705,449361,450172,456280,462684,465385,471109,472329,475479,481776,493444,495730,509819,516586,531919,534334,535112,549645,559442,560807,57035,575472,575759,576361,591276,613923,621225,62313,636789,637605,644658,645967,664886,684598,696035,696877,722351,731545,735574,743304,748043,76734,777039,79095,794182,794335,797343,802198,802583,804689,807381,81821,836036,837819,842867,844151,847094,860107,861581,864041,868232,872762,881645,883161,888956,903160,904440,909821,916237,918664,922167,922940,923449,92574,931514,939733,946300,948710,983447,984247,995814]],["@mui/x-date-pickers>@mui/utils",[119651,197021,248723,261091,302419,340611,352023,365965,48343,529819,586991,63207,646853,676243,677617,73013,77457,789905,803499,86397]],["@ngraveio/bc-ur",[10198,10198,216814,216814,334683,334683,347103,347103,526436,526436,585651,585651,608778,608778,669916,669916,715987,715987,816060,816060,912490,912490,916561,916561]],["@ngraveio/bc-ur>@keystonehq/alias-sampling",[836484,836484]],["@ngraveio/bc-ur>assert",[100734,100734,158196,158196,215851,215851,784333,784333]],["@ngraveio/bc-ur>assert>is-nan",[247643,247643,277973,277973,461010,461010,924544,924544]],["@ngraveio/bc-ur>assert>object-is",[129730,129730,331205,331205,628587,628587,827856,827856]],["@ngraveio/bc-ur>bignumber.js",[574149,574149]],["@ngraveio/bc-ur>cbor-sync",[632362,632362]],["@ngraveio/bc-ur>crc",[136322,136322,219649,219649,274359,274359,389601,389601,457640,457640,524523,524523,633555,633555,739574,739574,761450,761450,852556,852556,858449,858449,878551,878551,888882,888882,946884,946884]],["@ngraveio/bc-ur>crc>buffer",[797843,797843]],["@ngraveio/bc-ur>jsbi",[847743,847743]],["@ngraveio/bc-ur>sha.js",[132806,132806,158146,158146,240184,240184,363368,363368,381195,381195,576585,576585,588986,588986,774747,774747]],["@ngraveio/bc-ur>sha.js>to-buffer",[715425,715425]],["@noble/ciphers",[10785,127626,2081,363798,378150,43634,466239,578394,626400,679332,801112,90917,949593]],["@noble/curves",[117286,158163,211945,215644,215644,298465,36773,36773,446266,446266,465386,489928,489928,526286,58340,58340,584681,589072,589072,605835,610537,610537,792499,792499,821014,912303,923959,927500,927500,951297]],["@noble/hashes",[117154,117154,128961,128961,163684,163684,237402,237402,277206,279307,279307,362108,362108,367013,367013,38578,38578,399502,399502,41903,41903,477964,477964,477964,496153,496153,505886,505886,533275,617711,661330,661330,661330,671955,671955,671955,716070,770999,770999,772169,772169,850479,850479,85428,85428,921178,943940,945794,975651]],["@open-rpc/meta-schema",[696281]],["@open-rpc/schema-utils-js",[178112,286865,498746]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer",[247747,839041]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse",[300427]],["@open-rpc/schema-utils-js>@json-schema-tools/meta-schema",[6989]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver",[213505,27476,707120,870923,915941]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer",[298824]],["@open-rpc/schema-utils-js>is-url",[324673]],["@open-rpc/test-coverage>isomorphic-fetch",[207672]],["@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch",[645680]],["@popperjs/core",[104262,120185,131500,134115,149922,172285,183817,201918,206556,218858,226744,25019,262272,289140,302530,326635,330629,335526,33565,351475,3598,400267,492560,50696,513223,532874,553918,568598,589833,638543,659638,674110,680243,70361,750319,757155,762019,773577,790791,794063,814127,815258,818832,826916,843022,864542,872787,886298,891016,908905,925448,947862,954239,978752]],["@reduxjs/toolkit",[55820,55820]],["@reduxjs/toolkit>reselect",[317341,317341,93958,93958]],["@rive-app/react-canvas",[913965]],["@rive-app/react-canvas>@rive-app/canvas",[236494,236494,236494,236494,236494,888132]],["@scure/base",[54584,54584,591315,591315]],["@segment/analytics-node",[135879,135879,163263,163263,23300,23300,279322,279322,32883,32883,335978,335978,340597,340597,34948,34948,499454,499454,521632,521632,617928,617928,653229,653229,668435,668435,677885,677885,679751,679751,703484,703484,744764,744764,778153,778153,881020,881020,885160,885160,950625,950625]],["@segment/analytics-node>@lukeed/uuid",[43220,43220]],["@segment/analytics-node>@segment/analytics-core",[12916,12916,160021,160021,171519,171519,184523,184523,243329,243329,265654,265654,395707,395707,416644,416644,58131,58131,599055,599055,681279,681279,706813,706813,70932,70932,781258,781258,858693,858693,863234,863234,946716,946716,956877,956877]],["@segment/analytics-node>@segment/analytics-core>dset",[433864,433864]],["@segment/analytics-node>@segment/analytics-generic-utils",[927339,927339,958351,958351]],["@segment/analytics-node>jose",[115208,115208,116941,116941,171121,171121,222891,222891,260779,260779,378729,378729,463860,463860,527336,527336,53295,53295,577658,577658,589323,589323,615640,615640,663478,663478,67737,67737,678296,678296,732642,732642,755924,755924,796358,796358,8143,8143,850867,850867,851454,851454,896511,896511,936995,936995,953385,953385,968646,968646,989618,989618]],["@sentry/browser",[106484,121744,124675,124675,13623,13623,152254,152254,152660,152660,156081,156081,164928,165362,167467,167467,172275,173368,173368,179687,179687,19727,19727,2033,2033,204399,214536,22674,276880,276880,281977,320160,321437,329055,329055,331990,33632,354281,361508,361508,381324,381324,384984,390076,402702,402702,404809,404809,43114,444971,444971,453827,453827,478535,484413,484413,487419,501757,504399,504399,523152,532344,532344,543411,548502,548502,563310,566078,566078,570181,570181,574003,5937,609495,611865,64329,64329,643814,643814,650110,65366,681853,681853,686791,691576,691576,703138,703138,718191,73075,747170,747170,760538,762975,774791,791729,793052,79931,79931,800440,805677,805677,816291,821299,841456,841456,85422,855790,855790,879010,885305,885305,885436,885436,889613,889843,889843,89899,89899,899341,928751,928751,928906,928906,953524,953524,956902,956902,972599,972991,972991,993039,993039,994398,994398]],["@sentry/browser>@sentry-internal/browser-utils",[104168,117127,117529,12796,132076,133481,138716,138716,153799,184748,185335,185746,19467,19467,225669,234512,234512,234598,238559,259463,303818,310529,314408,314408,327140,33040,33040,3321,3321,339535,339535,417860,456247,456247,459517,495242,51450,51450,515400,515400,528962,533858,566632,566632,56680,56680,57324,57324,580436,580436,599534,604160,617067,621827,621827,662925,662925,676979,676979,681747,694581,702053,702053,71337,71337,714599,74342,74342,756025,764651,765698,765698,768571,768571,772879,772879,793419,793419,814601,814601,821396,821396,847768,847768,858586,863531,879954,879954,882555,898026,903217,903217,913111,913111,932294,944117,944117,945582,945582,956354,956354,956742,958084,958084,963334,975431,975431,978802,978802,993671,993671]],["@sentry/browser>@sentry-internal/feedback",[178066,178066,666012]],["@sentry/browser>@sentry-internal/replay",[117172,949306,949306]],["@sentry/browser>@sentry-internal/replay-canvas",[928535,986415,986415]],["@sentry/core",[100873,100873,104403,105388,114765,114765,118644,118644,118840,118840,122411,122411,123532,123532,125617,127022,128485,136244,14072,14072,140722,144770,144770,145834,147687,147687,151011,152198,152198,153836,153836,15505,15505,155682,156398,156398,15797,15797,160312,161562,16278,16462,166105,166105,16686,169869,169869,17072,17072,172900,172900,173177,173345,175384,175384,178061,178061,178130,179184,180121,180121,180739,187474,187474,187763,18898,18898,189193,189193,191895,192279,195612,198066,19891,19891,200019,200019,20945,233817,236175,240647,242391,24708,248609,253523,254759,257357,260516,260516,26584,267276,276435,276435,285459,285459,286343,290134,290264,294970,294970,295088,295088,298556,298556,303065,303065,306981,306981,334726,342741,342741,351996,352158,352158,352745,356313,357180,357180,358496,358496,377271,377271,381699,381699,392316,392316,396102,396102,39859,39859,400273,403378,404770,405971,410464,410710,410710,411335,411335,419142,419142,425294,425294,426886,427581,427581,43701,43701,441227,444284,444284,456403,456403,463580,463580,466737,466737,468417,468417,476745,480303,484945,484945,486023,486023,488560,488560,488897,498658,503053,503206,504855,504855,506820,506820,509279,509279,513234,513234,5152,5152,516223,516431,518727,518727,52018,52018,525162,525162,528713,532725,532756,533837,534098,537464,538979,538979,545407,545407,546155,546155,550664,550664,550866,550866,563023,563023,567074,571268,571268,573091,576883,576883,577102,577102,579010,579010,584222,587044,590041,590041,597014,59824,59824,598723,598723,599573,60184,603373,603373,605816,605816,608119,612717,612717,620697,620697,620772,620772,625919,625919,627413,631918,632356,632356,636534,636534,637748,641729,643826,646083,646093,646093,65251,652751,652751,658257,658257,659976,659976,660483,663834,663834,664746,664746,665016,665016,671480,671480,676108,676108,67904,67912,67912,679351,679351,679356,682631,682631,686595,686595,691963,6929,6929,702742,704776,704776,707808,709356,709356,711403,711403,713966,713966,71409,717231,718385,718800,719509,724666,729815,730074,734289,735784,736733,736733,737010,762018,764006,76427,765695,76838,768881,778552,778552,78463,78463,788241,788241,79203,79203,793111,802518,808106,812842,812863,818747,827284,827284,828564,836164,837113,837113,843379,844822,848294,848294,848795,848795,858481,858481,86429,864807,864807,865961,865961,866319,868307,87776,87776,879085,881167,881635,882688,884405,889462,889462,889736,901814,901889,901889,902309,902309,902470,902470,903226,910140,911216,911216,917009,917009,920938,920938,920942,920942,921305,92376,925075,925075,928431,931263,931263,933190,934379,934379,939543,939543,943924,943924,944887,944887,948643,948643,95069,960196,960767,960767,96219,96331,968721,973234,98154,98154,986746,991688,991688,997858,997858]],["@simplewebauthn/browser",[134797,173983,173983,216354,216354,311050,322193,322193,328784,328784,345592,345592,454807,50783,50783,537185,537185,600306,600306,80287,80287,891367,891367,931567,955988]],["@solana/addresses",[500089,500089]],["@solana/addresses>@solana/codecs-core",[531837,531837]],["@solana/addresses>@solana/codecs-strings",[726472,726472]],["@solana/addresses>@solana/errors",[410059,410059]],["@storybook/addon-docs>remark-external-links>mdast-util-definitions",[603936]],["@storybook/react>util-deprecate",[381763,381763,381763,79894]],["@tanstack/react-query",[224732,237278,493565,511705,559260,599973,630844,842109,866471,940025,967358]],["@tanstack/react-query>@tanstack/query-core",[100980,100980,140390,140390,248801,248801,286636,286636,330821,330821,377322,377322,530095,530095,536570,586235,586235,612194,612194,645876,645876,656599,656599,665,665,753269,753269,78174,858515,858515,92190,92190]],["@tanstack/react-query>use-sync-external-store",[11853,837954,897866,941760]],["@tanstack/react-virtual",[207896]],["@tanstack/react-virtual>@tanstack/virtual-core",[282889,737520]],["@toruslabs/eccrypto",[840752]],["@toruslabs/eccrypto>elliptic",[206133,206133,31289,31289,385483,385483,431844,431844,439410,439410,505841,505841,520526,520526,56160,56160,595344,595344,598866,598866,671066,671066,756924,756924,834229,834229,917768,917768,917768,917768,917768,917768,917768,917768,97907,97907,995991,995991]],["@toruslabs/eccrypto>elliptic>brorand",[700493,700493]],["@toruslabs/eccrypto>elliptic>hmac-drbg",[178403,178403]],["@toruslabs/eccrypto>elliptic>minimalistic-assert",[147749,147749]],["@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils",[178175,178175]],["@trezor/connect-web",[161947,161947,264637,264637,448771,448771,475227,475227,511005,511005,676994,676994,777401,777401,802974,802974,883249,883249,932425,932425,942600,942600,948414,948414]],["@trezor/connect-web>@trezor/connect",[108752,108752,122517,122517,151165,151165,195279,195279,203181,203181,266718,266718,274388,274388,283080,283080,314251,314251,329191,329191,3467,3467,347648,347648,381398,381398,390491,390491,40275,40275,40574,40574,416188,416188,43960,43960,507351,507351,515009,515009,531360,531360,565501,565501,644936,644936,646784,646784,659703,659703,686693,686693,699779,699779,715952,715952,728359,728359,740975,740975,767847,767847,773642,773642,792108,792108,794554,794554,799799,799799,823473,823473,832029,832029,841885,841885,845438,845438,860263,860263,878923,878923,896867,896867,92633,92633,941442,941442,945725,945725,95052,95052,965279,965279,996616,996616]],["@trezor/connect-web>@trezor/connect-common",[32142,32142,439606,439606,494623,494623,556102,556102]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",[410764,410764,53958,53958,759514,759514]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",[959498,959498]],["@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",[34818,34818,47679,47679,487483,487483]],["@trezor/connect-web>@trezor/connect>@trezor/device-utils",[292761,292761,358991,358991,389452,389452,406597,406597,586775,586775,886318,886318,913937,913937]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf",[192040,192040,311145,311145,534276,534276,669094,669094,783184,783184,969356,969356,974893,974893]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf>long",[229996,229996]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils",[122668,122668,261702,261702,342180,342180,463685,463685,508198,508198,585053,585053,736876,736876,948506,948506]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",[10071,10071,100733,100733,103796,103796,118003,118003,119200,119200,147967,147967,156134,156134,159565,159565,16791,16791,168041,168041,169820,169820,170758,170758,171039,171039,172991,172991,174218,174218,188342,188342,194706,194706,200299,200299,201099,201099,206718,206718,208399,208399,214286,214286,216042,216042,219050,219050,239055,239055,242637,242637,257519,257519,257695,257695,260556,260556,265631,265631,268431,268431,271739,271739,274396,274396,301031,301031,304363,304363,31199,31199,318295,318295,32976,32976,329881,329881,331519,331519,331682,331682,335570,335570,341314,341314,343978,343978,345602,345602,34641,34641,346487,346487,349811,349811,351009,351009,364835,364835,367026,367026,373225,373225,379348,379348,381147,381147,382219,382219,383298,383298,387371,387371,393392,393392,394828,394828,405919,405919,406295,406295,407776,407776,408619,408619,409603,409603,410500,410500,412896,412896,415827,415827,421427,421427,430971,430971,433803,433803,436271,436271,447676,447676,448635,448635,449922,449922,454835,454835,465701,465701,469696,469696,471615,471615,481167,481167,482649,482649,48745,48745,489560,489560,49638,49638,503150,503150,50320,50320,504217,504217,50501,50501,505749,505749,50615,50615,50686,50686,50892,50892,51314,51314,51590,51590,526787,526787,538011,538011,538649,538649,54028,54028,549475,549475,557183,557183,559614,559614,560885,560885,561224,561224,561555,561555,562097,562097,572055,572055,575449,575449,57744,57744,583492,583492,588569,588569,596773,596773,606394,606394,607170,607170,608015,608015,621097,621097,630094,630094,63092,63092,632188,632188,634166,634166,637094,637094,638924,638924,652547,652547,652606,652606,655535,655535,657502,657502,664900,664900,668354,668354,670079,670079,671534,671534,672327,672327,673921,673921,684089,684089,685526,685526,687162,687162,688581,688581,689850,689850,691341,691341,712099,712099,717272,717272,719546,719546,720281,720281,725168,725168,731968,731968,732863,732863,747896,747896,751934,751934,753591,753591,757749,757749,760170,760170,760233,760233,761770,761770,769314,769314,778184,778184,780967,780967,781247,781247,791780,791780,792063,792063,798959,798959,804806,804806,806053,806053,810711,810711,813970,813970,8156,8156,834141,834141,836330,836330,842900,842900,843683,843683,846752,846752,848123,848123,848245,848245,850066,850066,851479,851479,853339,853339,854521,854521,859079,859079,859375,859375,861799,861799,86775,86775,868260,868260,876464,876464,878559,878559,880937,880937,888891,888891,891552,891552,893015,893015,896175,896175,897100,897100,901930,901930,905518,905518,906404,906404,913407,913407,925046,925046,929194,929194,93690,93690,937600,937600,951275,951275,955668,955668,957389,957389,96495,96495,971233,971233,972457,972457,976667,976667,980367,980367,980539,980539,988942,988942,99035,99035,994890,994890]],["@trezor/connect-web>@trezor/connect>@trezor/transport",[10733,10733]],["@trezor/connect-web>@trezor/utils",[105122,105122,114422,114422,118452,118452,140895,140895,151988,151988,152458,152458,163960,163960,168562,168562,193114,193114,240990,240990,245471,245471,297908,297908,303251,303251,309599,309599,312634,312634,312898,312898,315922,315922,317668,317668,3283,3283,360391,360391,377702,377702,386474,386474,38717,38717,391697,391697,402625,402625,468313,468313,473116,473116,486057,486057,488143,488143,507929,507929,514914,514914,540608,540608,551151,551151,562303,562303,610477,610477,618189,618189,635766,635766,639474,639474,662552,662552,671958,671958,673885,673885,682727,682727,686691,686691,700160,700160,702946,702946,706191,706191,707446,707446,707804,707804,746311,746311,755685,755685,763770,763770,773861,773861,777833,777833,805328,805328,814213,814213,842779,842779,897150,897150,961652,961652,97101,97101,977779,977779]],["@trezor/connect-web>@trezor/utils>bignumber.js",[549083,549083]],["@zxing/browser",[145953,147414,301448,342264,585117,594168,657902,717209,729074,754576,855256,877446]],["@zxing/library",[102076,104640,105846,10967,118907,130552,131671,135525,13619,137253,147843,148535,157062,161840,162502,165773,173036,177378,177605,181600,182358,1880,192328,200985,204042,211185,214711,217403,220502,222151,225176,226658,226843,231804,245348,245586,256598,265347,267647,281891,283130,283402,290294,290552,292589,30383,305577,30700,312627,313691,318681,322242,326170,330187,33047,331102,342062,344837,344937,348944,350023,350110,353827,35702,358354,36393,364077,366804,367456,37933,382336,38382,384185,389157,391484,395347,398079,398319,403738,410854,413135,414480,420387,426748,429613,447649,448751,448788,452848,454274,467294,470216,475173,476225,480383,48100,4886,490735,491694,495292,511410,512766,51355,517495,520474,524483,533622,543903,545034,550786,5641,567973,568293,576257,579657,58251,595812,599545,602724,604879,605398,606450,608296,618081,618221,628824,628900,633971,633978,636179,638450,639014,643367,643977,659159,66029,670237,674724,689980,690012,693466,696602,696739,701767,702808,70813,7139,715814,717651,720949,723205,726724,731223,731411,73343,734567,739843,744838,754217,762947,764246,770429,77429,781645,795293,805428,805970,809671,810595,812056,812169,826170,845566,84931,849943,853708,862070,863850,865388,873614,879385,881821,887588,887774,888951,895334,902900,907072,923877,935419,935949,939171,943402,946912,959134,96263,964206,966391,972327,978368,980892,981228,992729,993255,993733,99546,996484]],["@zxing/library>ts-custom-error",[325932]],["addons-linter>deepmerge",[239016,239016]],["async-mutex",[1310,34965,34965,553002,563013,906263,946806,983482]],["base32-encode",[334106]],["base32-encode>to-data-view",[265887]],["base64-js",[223159,685590,685590,685590]],["bignumber.js",[60746,60746]],["bitcoin-address-validation",[272909,272909]],["bitcoin-address-validation>bech32",[938807]],["bowser",[598640,598640,598640]],["browserify>concat-stream>buffer-from",[539690]],["browserify>concat-stream>typedarray",[528568]],["browserify>has>function-bind",[500185,500185,819495,819495]],["browserify>string_decoder",[242714,938453,938453,938453]],["browserify>url",[558163,558163]],["browserify>url>punycode",[646246,646246]],["browserify>util",[204191,204191,333961,333961,807928,807928]],["browserify>util>is-arguments",[790588,790588]],["browserify>util>is-generator-function",[664264,664264]],["browserify>util>is-typed-array",[242256,242256]],["browserify>util>which-typed-array",[708759,708759]],["browserify>util>which-typed-array>for-each",[541290,541290]],["browserify>xtend",[445334,445334]],["bs58",[121295,753815]],["bs58>base-x",[772079,908463]],["buffer",[916794,971567,971567,971567]],["buffer>ieee754",[170059,170059,170059,305992]],["chalk",[289568,289568,620047,620047,995050,995050]],["chalk>ansi-styles",[780723,780723]],["chalk>ansi-styles>color-convert",[179422,179422,286427,286427,969867,969867]],["chalk>supports-color",[469146,469146]],["chart.js",[137490,464071]],["chart.js>@kurkle/color",[283251]],["clsx",[92288]],["cockatiel",[144226,229411,229411,286985,286985,324161,324161,342467,350209,380736,380736,496021,496021,50519,50519,507271,507271,519577,519577,576549,606424,606424,670456,671151,690468,690468,755020,755020,791579,791579,821411,826585,826585,897560,906022,974971,991321,991321,999124,999985]],["copy-to-clipboard",[258205]],["copy-to-clipboard>toggle-selection",[876026]],["core-js-pure",[120990,120990,12759,12759,151859,151859,188366,188366,194094,194094,20560,20560,207845,207845,227607,227607,258224,258224,25884,25884,277064,277064,277389,277389,278892,278892,303606,303606,305727,305727,330035,330035,330636,330636,347599,347599,35086,35086,353883,353883,356579,356579,360330,360330,370579,370579,400874,400874,407322,407322,413491,413491,42848,42848,465210,465210,468876,468876,485365,485365,508591,508591,536708,536708,54840,54840,55696,55696,576773,576773,587510,587510,613408,613408,646878,646878,655559,655559,662482,662482,665216,665216,666050,666050,673319,673319,702630,702630,719418,719418,739256,739256,747440,747440,748841,748841,752223,752223,782214,782214,792385,792385,828095,828095,850958,850958,856768,856768,878832,878832,884024,884024,885109,885109,895202,895202,907471,907471,928937,928937,978775,978775,985456,985456]],["cron-parser",[212712,212712,433256,433256,439869,439869,495081,495081,528063,528063]],["crypto-browserify",[554365,554365]],["crypto-browserify>browserify-cipher",[647133,647133]],["crypto-browserify>browserify-cipher>browserify-des",[213314,213314,769094,769094]],["crypto-browserify>browserify-cipher>browserify-des>des.js",[104109,104109,398216,398216,609466,609466,699112,699112,731279,731279,762931,762931]],["crypto-browserify>browserify-cipher>evp_bytestokey",[626238,626238]],["crypto-browserify>browserify-sign",[184715,184715,184715,184715,184715,184715,184715,184715,210639,210639,370063,370063,373124,373124,661841,661841,661841,661841,661841,661841,661841,661841,750771,750771]],["crypto-browserify>browserify-sign>readable-stream",[207368,207368,24961,24961,34862,34862,389274,389274,400143,400143,49634,49634,728536,728536,85840,85840,954630,954630]],["crypto-browserify>browserify-sign>readable-stream>isarray",[828544,828544]],["crypto-browserify>browserify-sign>readable-stream>safe-buffer",[228612,228612]],["crypto-browserify>browserify-sign>readable-stream>string_decoder",[813931,813931]],["crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer",[791641,791641]],["crypto-browserify>create-ecdh",[65084,65084]],["crypto-browserify>create-hmac",[209475,209475,954968,954968]],["crypto-browserify>diffie-hellman",[487876,487876,53365,53365,53365,53365,53365,53365,53365,53365,678158,678158,7702,7702]],["crypto-browserify>diffie-hellman>miller-rabin",[434884,434884]],["crypto-browserify>pbkdf2",[2216,2216,303271,303271,428172,428172,696696,696696,86900,86900,910166,910166]],["crypto-browserify>pbkdf2>create-hash",[205939,205939,396674,396674]],["crypto-browserify>pbkdf2>ripemd160",[652176,652176]],["crypto-browserify>pbkdf2>ripemd160>hash-base",[571210,571210]],["crypto-browserify>public-encrypt",[139006,139006,574303,574303,576758,576758,584160,584160,889634,889634,97677,97677]],["crypto-browserify>public-encrypt>browserify-rsa",[172788,172788]],["crypto-browserify>public-encrypt>parse-asn1",[657421,657421,756021,756021,890535,890535,890535,890535,890535,890535,890535,890535,910026,910026,996481,996481]],["crypto-browserify>public-encrypt>parse-asn1>asn1.js",[208103,208103,42905,42905,502048,502048,540274,540274,542561,542561,561813,561813,597323,597323,600205,600205,61716,61716,728554,728554,8083,8083,853593,853593,933023,933023,964662,964662]],["crypto-browserify>randombytes",[883369,883369]],["crypto-browserify>randomfill",[96103,96103]],["currency-formatter",[160041,160041,187270,187270,758533,758533,758533,758533,758533,758533,888624,888624,888624,888624,888624,888624]],["currency-formatter>accounting",[241927,241927]],["currency-formatter>locale-currency",[789077,789077,802055,802055]],["deep-freeze-strict",[627685,627685]],["dompurify",[88174,88174]],["duplexify>inherits",[509847,985738,985738,985738]],["eciesjs",[181727,32623,331778,354473,363326,424205,660260,692733,854674,893884,970208]],["eciesjs>@ecies/ciphers",[138430,797235]],["eslint-plugin-react>array-includes>is-string",[118857,118857]],["eslint-plugin-react>array-includes>math-intrinsics",[439486,439486,608107,608107,662346,662346,742296,742296,779452,779452,877e3,877e3,963442,963442,96533,96533]],["eslint-plugin-react>es-iterator-helpers>has-property-descriptors",[584368,584368]],["eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto",[826936,826936]],["eslint-plugin-react>hasown",[704149,704149]],["eslint>ajv",[131366,137731,142193,14526,146906,148126,14967,17331,180699,194730,203214,25665,282790,287943,288874,32177,330861,359044,473645,515098,528051,556118,611462,61206,61605,653970,666470,675796,739168,753098,765230,781032,781280,786702,796418,852187,862680,873752,882600,903529,978511,997646]],["eslint>ajv>json-schema-traverse",[376018]],["eslint>fast-deep-equal",[170210,932993,932993]],["eslint>json-stable-stringify-without-jsonify",[959573]],["eth-chainlist",[39576,445016]],["eth-ens-namehash",[558791,558791]],["eth-ens-namehash>idna-uts46-hx",[593891,593891,683712,683712]],["eth-ens-namehash>idna-uts46-hx>punycode",[33245,33245]],["eth-ens-namehash>js-sha3",[227864,227864]],["eth-lattice-keyring",[778701]],["eth-lattice-keyring>@ethereumjs/util",[110708,137578,143792,158480,201653,208236,25076,279095,397318,402447,499832,639721,664526,892270,923318]],["eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp",[487263]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography",[635567,719201,905742]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves",[105354,381439,438817,620416,808364,837643,949148]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[10417,22861,233921,35068,561423,604080,6161,761144]],["eth-lattice-keyring>@ethereumjs/util>micro-ftch",[203639,203639]],["eth-lattice-keyring>gridplus-sdk",[255181]],["eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp",[514853,802378]],["eth-lattice-keyring>gridplus-sdk>aes-js",[972828,972828]],["eth-lattice-keyring>gridplus-sdk>bignumber.js",[602169,766891]],["eth-lattice-keyring>gridplus-sdk>bs58check",[401492,745787]],["eth-lattice-keyring>gridplus-sdk>cbor",[155756,173863,18685,374457,529311,559008,637552,641797,643569,744141,813859,83725,911305]],["eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal",[510225]],["eth-lattice-keyring>gridplus-sdk>cbor>nofilter",[4664]],["eth-lattice-keyring>gridplus-sdk>crc-32",[534918]],["eth-lattice-keyring>gridplus-sdk>ox",[23680,359095,400540,406022,416962,469001,767363,934820,962690]],["eth-lattice-keyring>gridplus-sdk>secp256k1",[333376,647984,842388]],["eth-lattice-keyring>gridplus-sdk>zod",[122824,123519,131745,135902,148498,151409,152355,164383,186231,206045,213512,218334,219041,220777,234738,255925,256185,270677,283893,29061,305624,313598,326979,340041,361897,381722,397710,409992,439474,445930,46422,464937,466311,493213,495928,509583,51189,529381,561378,57073,583448,600717,604198,633546,635680,656101,658838,681846,6890,713841,724846,729371,760751,782865,792282,799030,809807,812732,820680,835757,856990,860395,86198,876072,90083,904697,922653,927565,929848,935893,93734,944060,958963,979865]],["eth-lattice-keyring>rlp",[513680]],["eth-method-registry",[243922,243922,243922,243922,243922,243922,432999,432999,852032,852032,852032,852032,852032,852032]],["eth-method-registry>@metamask/ethjs-contract",[149490,149490,171151,171151,814390,814390]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter",[9590,9590]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util",[820764,820764]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi",[43470,43470,452332,452332]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn",[545984,545984]],["eth-method-registry>@metamask/ethjs-query",[883348,883348]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format",[407843,407843]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema",[613122,613122,613122,613122,613122,613122]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed",[433028,433028]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix",[341529,341529]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc",[482131,482131]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback",[587668,587668]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn",[754084,754084]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim",[408243,408243]],["ethereum-cryptography",[208098,945639]],["ethereumjs-util",[260161,260161,362242,362242,500520,500520,512477,512477,527514,527514,567856,567856,57111,57111,7201,7201,756854,756854,801305,801305,822020,822020,850844,850844]],["ethereumjs-util>bn.js",[461532,461532]],["ethereumjs-util>create-hash",[765236,765236,825936,825936]],["ethereumjs-util>create-hash>cipher-base",[372024,372024]],["ethereumjs-util>create-hash>md5.js",[689828,689828]],["ethereumjs-util>create-hash>md5.js>hash-base",[368942,368942]],["ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",[138273,138273,160302,160302,271873,271873,295891,295891,377502,377502,388078,388078,555963,555963,556543,556543,614793,614793,646997,646997,700460,700460,703581,703581,708830,708830,938792,938792,973505,973505]],["ethereumjs-util>create-hash>ripemd160",[777899,777899]],["ethereumjs-util>create-hash>ripemd160>hash-base",[346203,346203]],["ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",[172368,172368,379370,379370,409345,409345,43604,43604,438430,438430,462220,462220,493940,493940,516851,516851,551538,551538,567434,567434,605971,605971,682597,682597,816462,816462,952405,952405,972431,972431]],["ethereumjs-util>ethereum-cryptography",[110404,110404,496988,496988,894002,894002,95453,95453]],["ethereumjs-util>ethereum-cryptography>browserify-aes",[104667,104667,120362,120362,160855,160855,166623,166623,194324,194324,328328,328328,425693,425693,496770,496770,564143,564143,564395,564395,589543,589543,589543,589543,589543,589543,589543,589543,626996,626996,652708,652708,766738,766738,787881,787881,825934,825934,958896,958896]],["ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor",[64679,64679]],["ethereumjs-util>ethereum-cryptography>bs58check",[283092,283092,767265,767265]],["ethereumjs-util>ethereum-cryptography>bs58check>bs58",[411447,411447]],["ethereumjs-util>ethereum-cryptography>keccak",[188166,188166,2560,2560,289124,289124,399137,399137,599140,599140,883926,883926]],["ethereumjs-util>ethereum-cryptography>keccak>readable-stream",[141293,141293,234258,234258,236194,236194,261453,261453,364924,364924,43819,43819,527114,527114,535004,535004,611239,611239,618502,618502,7176,7176,722326,722326,731291,731291,751113,751113,972964,972964]],["ethereumjs-util>ethereum-cryptography>secp256k1",[524053,524053,634699,634699,667525,667525]],["ethereumjs-util>rlp",[724840,724840]],["ethers",[164293,164293,201248,523321,631426,964052]],["ethers>@ethersproject/abstract-provider",[211701,211701,445174,445174]],["ethers>@ethersproject/abstract-signer",[230706,230706,654687,654687]],["ethers>@ethersproject/address",[317262,317262,998381,998381]],["ethers>@ethersproject/base64",[384786,384786,893747,893747]],["ethers>@ethersproject/basex",[873202,873202]],["ethers>@ethersproject/constants",[101866,101866,490622,714372,738178,738178,885644,885644]],["ethers>@ethersproject/hash",[130488,130488,248528,248528,410943,410943,412718,412718,578030,578030,580813,580813,79978,79978,886384,886384,974082,974082]],["ethers>@ethersproject/json-wallets",[156057,156057,37426,37426,459908,459908,580226,580226,611720,611720,749805,749805]],["ethers>@ethersproject/json-wallets>aes-js",[302968,302968]],["ethers>@ethersproject/json-wallets>scrypt-js",[305583,305583]],["ethers>@ethersproject/keccak256",[453002,453002]],["ethers>@ethersproject/logger",[329882,329882,697489,697489]],["ethers>@ethersproject/networks",[332071,332071,484058,484058]],["ethers>@ethersproject/pbkdf2",[25643,25643]],["ethers>@ethersproject/properties",[338777,338777,830724,830724]],["ethers>@ethersproject/random",[247023,247023,401282,401282,862331,862331,942107,942107]],["ethers>@ethersproject/rlp",[603988,603988,820707,820707]],["ethers>@ethersproject/sha2",[116409,116409,323064,323064,451058,451058,805929,805929]],["ethers>@ethersproject/sha2>hash.js",[132485,132485,179206,179206,283376,283376,387824,387824,438047,438047,439794,439794,466610,466610,567879,567879,57764,57764,80193,80193,88054,88054,970813,970813]],["ethers>@ethersproject/signing-key",[234380,234380,255468,255468,629441,629441]],["ethers>@ethersproject/solidity",[743720,743720,911877,911877]],["ethers>@ethersproject/strings",[340519,340519,465085,465085,795768,795768,855040,855040,936523,936523]],["ethers>@ethersproject/units",[315087,315087,91170,91170]],["ethers>@ethersproject/wallet",[309353,309353,923412,923412]],["ethers>@ethersproject/web",[254712,254712,55410,55410,699423,699423]],["ethers>@ethersproject/wordlists",[400906,400906,760345,760345,792456,792456,995917,995917]],["extension-port-stream",[283079,283079,283079,48050,48050,48050,770467,770467,770467,803058,803058,803058]],["fast-json-patch",[191787,343337,533298,767584]],["fast-json-stable-stringify",[323260,323260]],["fuse.js",[863985]],["gulp>vinyl-fs>object.assign",[302547,302547,461066,461066,724264,724264,983725,983725]],["he",[106115]],["https-browserify",[965339,965339]],["human-standard-token-abi",[944211,944211]],["humanize-duration",[477355]],["immer",[115691,115691,115691,319222,319222,92365,92365,950515]],["ip-regex",[357910,357910]],["jest-canvas-mock>moo-color>color-name",[469804,469804]],["jsdom>form-data>es-set-tostringtag>has-tostringtag",[197300,197300]],["lightweight-charts",[194859]],["lightweight-charts>fancy-canvas",[128943,243582,418818,443436,631652]],["localforage",[544654,544654]],["lodash",[104045,104045,108041,108041,109528,109528,112437,112437,11616,11616,122368,122368,127750,127750,133527,133527,135471,135471,136471,136471,137234,137234,138115,138115,145831,145831,14786,14786,15361,15361,164325,164325,166136,166136,168474,168474,169811,169811,170906,170906,174506,174506,180624,184084,184084,186049,186049,188312,188312,197614,197614,202665,202665,21937,21937,223116,223116,225953,225953,236872,236872,23879,23879,241297,241297,241421,241421,245780,245780,247835,247835,250846,250846,254517,254517,255991,255991,257776,257776,271916,271916,272175,272175,276617,276617,281657,281657,284431,284431,286210,286210,289577,289577,29025,29025,295215,295215,296033,298730,298730,305256,308731,308731,310326,310326,311588,311588,319805,319805,323304,323304,323904,328821,328821,33586,33586,339886,339886,358633,358633,361178,361178,366931,366931,369940,369940,376972,376972,37766,37766,378768,378768,380279,383565,383565,386042,386042,394939,394939,422966,422966,423,423,428926,428926,433702,433702,433752,433752,433789,433789,436820,438993,438993,440477,440477,447201,456895,456895,456895,458916,459722,459722,461663,461663,463851,463851,471378,471378,476031,476031,481585,481585,481803,481803,485063,485063,487091,487091,497208,498256,498256,500610,500610,502503,502503,504273,504273,510185,510185,517141,517141,522306,522306,524621,524621,529090,533439,553939,553939,556600,556600,55750,55750,558909,558909,563252,563252,564009,564009,576629,576629,580484,580484,58095,58095,586053,586053,605271,605271,616685,616685,618431,618431,623755,623755,631293,631293,631328,631328,633411,633411,641229,641229,647294,647294,653160,653160,653552,653552,655367,655676,655676,658647,658647,665697,665697,667537,667537,668205,668205,671945,671945,68055,68055,685209,685209,685544,685544,690007,690007,695038,695038,699180,699180,700365,700365,702879,702879,704597,704597,709499,709499,722604,722604,726927,726927,72890,72890,72999,72999,733395,733395,744305,744305,758387,758387,759045,760824,760824,7640,769956,771366,771366,79662,799648,799648,807822,807822,80830,810914,810914,813523,813523,821432,821432,822539,822539,826448,826448,830728,830728,83454,834725,834725,835792,835792,837054,837054,844065,844065,845341,851077,851077,859340,861862,861862,868080,868080,871429,871429,871614,871614,891013,891013,895615,910005,910005,91158,91158,919816,919816,920277,920277,922462,927445,927445,928442,928442,928863,928863,933290,933290,935487,938312,939132,939132,944880,944880,945343,945343,953568,953568,964653,968001,978696,978696,981561,982070,983297,995922,995922,997225,997225,998084,998084]],["loglevel",[171097,171097,171097,681050]],["lottie-web",[908216]],["luxon",[122552,122552,122552,138292,138292,138292,14631,14631,14631,208570,210164,210164,210164,232712,232712,232712,263496,283707,305921,305921,316244,317588,317588,317588,347022,352134,360569,392134,419186,442525,446655,451798,493104,512986,512986,512986,525037,597054,597054,597054,600473,600473,600473,603476,603476,603476,640846,686333,686333,686333,695358,695358,695358,731318,750628,750628,750628,774810,774810,774810,775158,775158,775158,78565,78565,78565,794204,821213,831022,835060,835060,835060,835203,835203,835203,85013,868766,868766,868766,891728,891728,891728,912276,912276,912276,925752,938102,948972,948972,948972,951906,961520,984381,984381,984381,991213,991213,991213]],["mocha>ms",[134281,134281,254660]],["mocha>yargs-unparser>is-plain-obj",[119552]],["mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable",[795713,795713,992594,992594]],["mockttp>express>qs",[169116,169116,315677,315677,556189,556189,717698,717698,80776,80776]],["mockttp>express>safe-buffer",[495670,677197,677197,677197]],["nanoid",[531589,531589]],["nock>debug",[465273,465273,617648,617648,683075,952574]],["openai>abort-controller",[113795,581808,581808,581808]],["path-browserify",[386023]],["pify",[256723]],["process",[208835,208835,378326,378326,378326]],["prop-types",[557789,787332,991606]],["prop-types>object-assign",[858524,858524]],["psl",[153782,153782]],["punycode",[478759,478759]],["qrcode-generator",[929736]],["qrcode.react",[174799]],["react",[23591,23591,276592,336620,860012,860012]],["react-chartjs-2",[173127]],["react-compiler-runtime",[303280,303280]],["react-devtools-core",[38588]],["react-dom",[1159,1159,879505,879505]],["react-dom>scheduler",[117047,117047,594158,594158]],["react-focus-lock",[124676,171702,304417,59129,679770,921718,977522]],["react-focus-lock>focus-lock",[130680,135719,153956,176839,296640,341413,360116,365187,367975,417071,578063,653567,664882,697295,716734,750025,780392,826111,837793,906089,997295]],["react-focus-lock>react-clientside-effect",[132165]],["react-focus-lock>use-callback-ref",[334392,415976,989992]],["react-focus-lock>use-sidecar",[886509]],["react-hot-toast",[638891]],["react-hot-toast>goober",[656304]],["react-idle-timer",[282382]],["react-markdown",[66117,909295,966680,973839]],["react-markdown>comma-separated-tokens",[142527]],["react-markdown>property-information",[109794,136933,222985,287738,293780,403493,403939,489890,625821,651420,709064,709064,709064,709064,709064,713726,815182,887583,897558,918358,927244,95526,993601]],["react-markdown>react-is",[287916,848688]],["react-markdown>remark-parse",[11815]],["react-markdown>remark-parse>mdast-util-from-markdown",[284865,839200]],["react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string",[350350]],["react-markdown>remark-parse>mdast-util-from-markdown>micromark",[115271,122266,129245,13320,144508,147528,156518,158366,160413,166022,167141,191006,236757,255771,300725,32735,345752,350100,367096,369e3,386920,387601,415431,429198,432225,434122,465465,472696,50096,50571,505862,513233,517015,542008,55976,588891,596678,619258,619473,626280,646592,667890,677964,678462,68733,703367,725077,749567,754388,757024,763528,779357,784573,804392,835101,852994,857909,861137,877216,89161,913200,91494,920522,935714,942864,961766,970745,971206,971933,993242,995783]],["react-markdown>remark-rehype",[607537]],["react-markdown>remark-rehype>mdast-util-to-hast",[127017,130453,157984,191532,195532,215432,235812,247600,281038,317058,361014,370310,467157,532167,540226,542795,55227,56788,571047,577504,645553,646177,658367,694268,695298,712147,866355,868166,943308,964922]],["react-markdown>remark-rehype>mdast-util-to-hast>mdurl",[590387]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-builder",[7900]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated",[602721]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position",[679975]],["react-markdown>space-separated-tokens",[127668]],["react-markdown>style-to-object",[230916]],["react-markdown>style-to-object>inline-style-parser",[395196]],["react-markdown>unified",[286837]],["react-markdown>unified>bail",[370001]],["react-markdown>unified>extend",[203585]],["react-markdown>unified>is-buffer",[287094]],["react-markdown>unified>trough",[652804]],["react-markdown>unist-util-visit",[498679]],["react-markdown>unist-util-visit>unist-util-is",[498559]],["react-markdown>unist-util-visit>unist-util-visit-parents",[776279,949742]],["react-markdown>vfile",[461651,621468]],["react-markdown>vfile>is-buffer",[444576]],["react-markdown>vfile>replace-ext",[68215]],["react-markdown>vfile>unist-util-stringify-position",[296107]],["react-markdown>vfile>vfile-message",[166301]],["react-popper",[646948,897908]],["react-popper>react-fast-compare",[101875]],["react-redux",[176578,176578,23106,23106,235140,235140,291331,291331,314701,314701,369148,421859,421859,470995,470995,473584,473584,48084,48084,525300,525300,52906,52906,5637,5637,62629,62629,684723,684723,701844,721075,721075,745865,745865,772362,772362,872169,872169,956152,956152]],["react-redux>hoist-non-react-statics",[339394,339394]],["react-redux>hoist-non-react-statics>react-is",[113132,113132,337392,337392]],["react-redux>react-is",[457869,457869,924865,924865]],["react-router-dom",[994112]],["react-router-dom>@remix-run/router",[682660]],["react-router-dom>react-router",[107495]],["react-simple-file-input",[742431]],["react-syntax-highlighter>refractor>parse-entities",[512920]],["react-tippy",[971180]],["react-tippy>popper.js",[975427]],["react-toggle-button",[490926]],["react-transition-group",[131350,284003,639130,829556,84954,936137,996331]],["react-transition-group>dom-helpers",[475843,815834,819347]],["readable-stream",[153089,181536,194535,194535,194535,22250,252334,252334,252334,252859,252859,252859,259290,261069,294855,294855,294855,338568,338568,338568,425493,425934,425934,425934,443305,44565,448492,448492,448492,449219,449219,449219,452547,452547,452547,464812,485697,494639,548444,568577,586805,588847,588847,588847,602416,613318,613318,613318,631222,631222,631222,632914,632914,632914,68266,68266,68266,683024,699960,699960,699960,703102,708566,708566,708566,730636,73701,754857,761124,761124,761124,769584,769584,769584,770587,777352,777352,777352,809090,809090,809090,816718,816718,816718,827525,827525,827525,831171,831171,831171,837911,868387,868387,868387,895890,900457,900457,900457,930607,978529]],["readable-stream-2>core-util-is",[711510,711510]],["readable-stream-2>process-nextick-args",[102393,102393]],["redux",[60416,60416]],["redux-thunk",[488961,488961]],["remote-redux-devtools",[120443,120443,398548,398548,417589,417589,712044,712044]],["remote-redux-devtools>jsan",[151109,151109,341696,341696,425053,425053,427767,427767,965556,965556]],["remote-redux-devtools>redux-devtools-core",[172251,172251,650496,650496,778624,778624]],["remote-redux-devtools>redux-devtools-core>get-params",[31908,31908]],["remote-redux-devtools>redux-devtools-core>nanoid",[659269,659269]],["remote-redux-devtools>redux-devtools-core>remotedev-serialize",[205061,205061,274996,274996,464435,464435]],["remote-redux-devtools>redux-devtools-instrument",[217867,217867]],["remote-redux-devtools>rn-host-detect",[653154,653154]],["remote-redux-devtools>socketcluster-client",[280959,280959,46337,46337,672552,672552,701487,701487,844684,844684,94862,94862,963198,963198]],["remote-redux-devtools>socketcluster-client>buffer",[627940,627940]],["remote-redux-devtools>socketcluster-client>clone",[430638,430638]],["remote-redux-devtools>socketcluster-client>component-emitter",[372675,372675]],["remote-redux-devtools>socketcluster-client>linked-list",[262580,262580,759067,759067]],["remote-redux-devtools>socketcluster-client>querystring",[29941,29941,554315,554315,676013,676013]],["remote-redux-devtools>socketcluster-client>sc-channel",[891709,891709]],["remote-redux-devtools>socketcluster-client>sc-errors",[520309,520309,601342,601342]],["remote-redux-devtools>socketcluster-client>sc-formatter",[38652,38652]],["remote-redux-devtools>socketcluster-client>uuid",[107216,107216,192925,192925,648025,648025,905155,905155,998316,998316]],["reselect",[491616,491616]],["sass-embedded>varint",[16253,217115,357733,587107]],["semver",[102998,102998,130698,130698,159585,159585,212669,212669,213832,213832,223550,223550,248391,248391,250377,250377,282429,282429,297891,297891,300736,300736,315317,315317,343546,343546,348400,348400,36974,36974,400386,400386,458014,458014,467260,467260,469878,469878,481665,481665,526710,526710,563167,563167,568925,568925,605657,605657,606005,606005,618315,618315,630655,630655,645178,645178,673188,673188,685987,685987,692636,692636,712800,712800,74207,74207,783212,783212,801015,801015,829373,829373,843432,843432,846768,846768,869544,869544,872547,872547,884499,884499,908975,908975,9090,9090,917098,917098,980803,980803]],["stream-browserify",[594950,594950]],["stream-browserify>readable-stream",[109279,109279,305685,305685,311802,311802,312964,312964,500040,500040,522422,522422,525412,525412,52799,52799,588091,588091,69755,69755,699075,699075,719265,719265,794353,794353,836603,836603]],["stream-http",[162465,162465,482901,482901,683392,683392,99248,99248]],["stream-http>builtin-status-codes",[535522,535522]],["stream-http>readable-stream",[113306,113306,184437,184437,189546,189546,193050,193050,201511,201511,331753,331753,408375,408375,410939,410939,493781,493781,512565,512565,626160,626160,665564,665564,790745,790745,874757,874757,930722,930722]],["string.prototype.matchall>call-bind",[567943,567943,705035,705035]],["string.prototype.matchall>call-bind>call-bind-apply-helpers",[26796,26796,635101,635101,647304,647304,653002,653002,870079,870079,873110,873110]],["string.prototype.matchall>call-bind>es-define-property",[861807,861807]],["string.prototype.matchall>call-bind>set-function-length",[874449,874449]],["string.prototype.matchall>call-bound",[727164,727164]],["string.prototype.matchall>define-properties",[919684,919684]],["string.prototype.matchall>define-properties>define-data-property",[562089,562089]],["string.prototype.matchall>es-abstract>array-buffer-byte-length",[664167,664167]],["string.prototype.matchall>es-abstract>available-typed-arrays",[94121,94121]],["string.prototype.matchall>es-abstract>es-to-primitive>is-symbol",[613340,613340]],["string.prototype.matchall>es-abstract>get-proto",[193624,193624,622892,622892,744104,744104]],["string.prototype.matchall>es-abstract>is-array-buffer",[78062,78062]],["string.prototype.matchall>es-abstract>is-callable",[76176,76176]],["string.prototype.matchall>es-abstract>is-regex",[969219,969219]],["string.prototype.matchall>es-abstract>is-set",[275840,275840]],["string.prototype.matchall>es-abstract>is-shared-array-buffer",[610558,610558]],["string.prototype.matchall>es-abstract>object-inspect",[427195,427195]],["string.prototype.matchall>es-abstract>safe-regex-test",[92025,92025]],["string.prototype.matchall>es-abstract>stop-iteration-iterator",[181996,181996]],["string.prototype.matchall>es-abstract>typed-array-buffer",[813364,813364]],["string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names",[267058,267058]],["string.prototype.matchall>es-abstract>unbox-primitive>has-bigints",[733838,733838]],["string.prototype.matchall>es-errors",[331300,331300,382711,382711,444699,444699,492449,492449,529354,529354,592005,592005,701026,701026]],["string.prototype.matchall>es-object-atoms",[588684,588684]],["string.prototype.matchall>get-intrinsic",[933,933]],["string.prototype.matchall>get-intrinsic>async-function",[779198,779198]],["string.prototype.matchall>get-intrinsic>async-generator-function",[998538,998538]],["string.prototype.matchall>get-intrinsic>generator-function",[735833,735833]],["string.prototype.matchall>gopd",[377379,377379,768613,768613]],["string.prototype.matchall>has-symbols",[160055,160055,694053,694053]],["string.prototype.matchall>internal-slot",[228431,228431]],["string.prototype.matchall>regexp.prototype.flags",[167986,167986,330037,330037,739552,739552,85627,85627]],["string.prototype.matchall>set-function-name",[81814,81814]],["string.prototype.matchall>set-function-name>functions-have-names",[645102,645102]],["string.prototype.matchall>side-channel",[800360,800360]],["string.prototype.matchall>side-channel>side-channel-list",[592227,592227]],["string.prototype.matchall>side-channel>side-channel-map",[344459,344459]],["string.prototype.matchall>side-channel>side-channel-weakmap",[176959,176959]],["ts-mixer",[96481,96481]],["tslib",[92295,92295]],["tweetnacl",[990115,990115]],["unicode-confusables",[531743,531743,531743,531743,531743,540270]],["uri-js",[925475,925475]],["uuid",[106555,106555,112471,112471,123628,123628,16478,16478,299896,299896,301170,301170,38401,38401,485791,485791,516074,516074,585925,585925,620897,620897,621501,621501,659008,659008,739070,739070,761366,761366,834669,834669,849401,849401,921766,921766,923533,923533,951545,951545]],["viem",[109283,133439,170754,176951,17781,181165,181839,181970,203852,242291,248702,284942,288047,294566,299752,348256,367906,380497,387686,392145,46780,476054,494336,499306,538319,541207,547451,583075,586426,598064,60105,602791,626919,640941,665693,697501,741399,745694,753791,778539,826861,842576,886900,89410,897539,906341,91048,922438,950129,953083,95580,991716,992227]],["viem>abitype",[189896,248061,26408,334360,364861,437022,663035,689160,748850,856641,861977,87327,948657]],["wait-on>axios",[132519,138428,17975,183401,196434,235935,247769,2556,260798,269126,272145,279845,302569,307443,329788,337049,337521,347359,35829,365459,374258,405386,423956,435085,443032,447923,451360,456048,47793,516138,527358,561903,573038,577145,621558,627273,652455,653978,685727,686914,727629,732582,736027,738874,743479,757315,771027,776451,793963,933203]],["wait-on>rxjs",[181684,246511,284905,288855,330355,333101,352984,386675,455485,473262,526292,534931,545828,598869,668048,733160,861952,924791]],["web-vitals",[811870]],["webextension-polyfill",[392248,413279,413279,413279]],["webpack-cli>fastest-levenshtein",[776723]],["webpack>events",[780063,780063,780063,998088]]],e.unenforceable=[121455,20168,20168,20168,20168,20168,20168,20168,201783,201783,201783,201783,201783,236305,236305,236305,245672,245672,245672,245672,245672,245672,245672,245672,337994,337994,337994,337994,337994,337994,337994,337994,343966,343966,343966,343966,343966,343966,343966,343966,371173,383972,383972,383972,383972,383972,383972,383972,383972,400495,400495,400495,400495,400495,400495,400495,400495,439181,440830,440830,440830,440830,440830,440830,446179,490513,490513,490513,490513,490513,490513,490513,490513,492752,531854,531854,531854,531854,531854,531854,531854,531854,588776,588776,588776,588776,588776,588776,588776,588776,619200,623661,623661,623661,623661,623661,623661,623661,623661,638581,638581,638581,638581,638581,638581,638581,638581,639266,639266,639266,639266,639266,639266,639266,639266,667544,667544,667544,667544,667544,667544,667544,667544,685066,685066,685066,685066,685066,685066,685066,685066,68724,68724,68724,68724,68724,68724,705444,715050,715050,715050,715050,715050,715050,715050,715050,733258,733258,733258,733258,733258,733258,733258,733258,744643,744643,744643,744643,744643,744643,744643,744643,74754,762634,762634,762634,762634,762634,762634,762634,762634,792981,792981,792981,792981,792981,792981,792981,792981,794832,794832,794832,801874,801874,801874,833028,901409,901409,901409,901409,901409,901409,901409,901409,902731,902731,902731,902731,902731,950514,950514,950514,950514,950514,950514,950514,960548,960548,960548,960548,960548,960548,980564,980564,980564,980564,980564,980564,980564,980564,999154,999154,999154],e.ctxm=[],e.kch=[110,1102,1105,1290,1309,1331,1391,1474,1491,1507,1522,1523,1598,166,1684,1768,1791,1818,1826,185,1864,1887,2051,2118,2160,2186,2189,2213,2215,229,2445,2449,2514,2532,2584,2638,2664,2668,2669,2710,2721,2747,2776,283,285,2962,3043,308,3139,3211,322,3366,3375,339,343,3509,3602,3740,3785,3808,3809,3885,3931,3956,4016,4052,407,418,425,427,4274,4294,4307,4377,4389,4520,4549,4579,4593,46,461,463,4631,4634,4664,4753,4781,4810,483,4966,5087,5098,5151,5175,5203,5250,5297,5407,5417,5458,5657,5671,5762,5796,5819,5853,5864,5964,5985,6023,6053,6115,614,6141,6142,6209,628,6358,6401,6404,6556,6565,659,6622,6649,6660,670,6802,6906,6956,7064,7091,7115,7145,7178,7193,7219,7416,7449,7547,7555,7614,7651,7755,7778,7899,7962,7980,8015,8034,8063,8069,8093,8326,8364,8410,8427,8528,8650,8717,8734,8743,8789,8792,8811,887,8935,8942,8946,8994,900,9038,904,9044,9060,9121,9232,9256,9277,9289,9307,9313,9354,937,9504,9510,9689,9737,9807,9828,983,9949,9957],e.externals={},e.options={lockdown:{consoleTaming:"unsafe",errorTaming:"unsafe",errorTrapping:"none",localeTaming:"unsafe",overrideTaming:"severe",reporting:"none",stackFiltering:"verbose"},scuttleGlobalThis:{enabled:!0,exceptions:["window","Proxy","toString","getComputedStyle","addEventListener","removeEventListener","ShadowRoot","HTMLElement","HTMLFormElement","Element","pageXOffset","pageYOffset","visualViewport","Reflect","Set","Object","navigator","harden","console","WeakSet","Event","EventTarget","Image","fetch","AbortController","OffscreenCanvas","/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu","name","performance","parseFloat","innerWidth","innerHeight","Symbol","Math","DOMRect","Number","Array","crypto","Function","Uint8Array","String","Promise","JSON","Date","RegExp","__SENTRY__","appState","extra","stateHooks","sentryHooks","sentry","logEncryptedVault","WebAssembly","Request","history","getSelection","opr","devicePixelRatio","ResizeObserver","setTimeout","clearTimeout","requestIdleCallback","importScripts","webpackChunk"]}},(()=>{let t={exports:{}};t.exports;let{Object:r,Array:n,Error:s,RegExp:i,Set:a,console:o,Proxy:l,Reflect:c}=globalThis,{assign:u,getOwnPropertyNames:h,getOwnPropertyDescriptor:d,create:f,defineProperty:m}=r,p=function(e,t){return r.getOwnPropertyNames(e).filter(r=>e[r]===t[r]).concat(["Compartment","Error","globalThis"])}(new Compartment().globalThis,globalThis),{isArray:g,from:y}=n,{getPrototypeOf:v}=c,{warn:b}=o;function k(e){return{get:r,set:t};function t(){b(`LavaMoat - property "${e}" of globalThis cannot be set under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}function r(){throw new s(`LavaMoat - property "${e}" of globalThis is inaccessible under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}}function _(e,t=f(null)){let r={enabled:!0,exceptions:[],scuttlerName:""},n=u(f(null),!0===t?r:t,{scuttlerFunc:(e,t)=>t(e)},{exceptions:(t?.exceptions||r.exceptions).map(e=>a(e))});if(n.scuttlerName){if(!e[n.scuttlerName])throw new s(`LavaMoat - 'scuttlerName' function "${n.scuttlerName}" expected on globalRef.To learn more visit https://github.com/LavaMoat/LavaMoat/pull/462.`);n.scuttlerFunc=e[n.scuttlerName]}return n;function a(e){if(!e.startsWith("/"))return e;let t=e.split("/");return new i(t.slice(1,-1).join("/"),t[t.length-1])}}function w(e,t=[]){let r=[];T(e).forEach(e=>r.push(...h(e)));let n=new a([...p,...t]),s=f(null);r.forEach(t=>{let{get:r,set:i}=k(t);if(S(n,t))return;let a=d(e,t);if(a?.configurable===!0)a={configurable:!1,set:i,get:r};else{if(a?.writable!==!0)return;a={configurable:!1,writable:!1,value:new l(s,{getPrototypeOf:r,get:r,set:i})}}m(e,t,a)})}let S=(e,t)=>y(e).some(e=>"string"==typeof e&&e===t||e instanceof i&&e.test(t));function T(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=v(r);return t}t.exports={scuttle:function(e,t){let r=_(e,t);if(r.enabled){if(!g(r.exceptions))throw new s(`LavaMoat - exceptions must be an array, got ${typeof r.exceptions}`);r.scuttlerFunc(e,e=>w(e,r.exceptions))}}},e.scuttling=t.exports})(),e.policy={resources:{"@babel/runtime":{globals:{regeneratorRuntime:"write"}},"@emotion/react":{globals:{HTMLElement:!0,"document.querySelector":!0},packages:{"@babel/runtime":!0,"@emotion/react>@emotion/cache":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":!0,"@emotion/react>@emotion/utils":!0,"@emotion/react>@emotion/weak-memoize":!0,react:!0,"react-redux>hoist-non-react-statics":!0}},"@emotion/react>@emotion/cache":{globals:{"document.head":!0,"document.querySelectorAll":!0},packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0,"@emotion/react>@emotion/cache>@emotion/sheet":!0,"@emotion/react>@emotion/cache>stylis":!0,"@emotion/react>@emotion/weak-memoize":!0}},"@emotion/react>@emotion/cache>@emotion/sheet":{globals:{"document.createElement":!0,"document.createTextNode":!0,"document.styleSheets":!0}},"@emotion/react>@emotion/serialize":{packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0,"@emotion/react>@emotion/serialize>@emotion/hash":!0,"@emotion/react>@emotion/serialize>@emotion/unitless":!0}},"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":{packages:{react:!0}},"@emotion/styled":{packages:{"@babel/runtime":!0,"@emotion/react":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":!0,"@emotion/react>@emotion/utils":!0,"@emotion/styled>@emotion/is-prop-valid":!0,react:!0}},"@emotion/styled>@emotion/is-prop-valid":{packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0}},"@ensdomains/content-hash":{globals:{"Buffer.from":!0,"console.warn":!0},packages:{"@ensdomains/content-hash>cids":!0,"@ensdomains/content-hash>js-base64":!0,"@ensdomains/content-hash>multicodec":!0,"@ensdomains/content-hash>multihashes":!0,"@ensdomains/content-hash>multihashes>buffer":!0}},"@ensdomains/content-hash>cids":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>cids>multihashes":!0,"@ensdomains/content-hash>cids>uint8arrays":!0,"@ensdomains/content-hash>multicodec":!0}},"@ensdomains/content-hash>cids>multibase":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase>@multiformats/base-x":!0}},"@ensdomains/content-hash>cids>multihashes":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>cids>multihashes>uint8arrays":!0,"@ensdomains/content-hash>cids>multihashes>varint":!0}},"@ensdomains/content-hash>cids>multihashes>uint8arrays":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@ensdomains/content-hash>cids>uint8arrays":{globals:{TextDecoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@ensdomains/content-hash>js-base64":{globals:{Base64:"write",Buffer:!0,TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0,define:!0},packages:{buffer:!0}},"@ensdomains/content-hash>multicodec":{packages:{"@ensdomains/content-hash>multicodec>uint8arrays":!0,"sass-embedded>varint":!0}},"@ensdomains/content-hash>multicodec>uint8arrays":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/assets-controllers>multiformats":!0}},"@ensdomains/content-hash>multihashes":{packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>multibase":!0,"@ensdomains/content-hash>multihashes>varint":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>multihashes>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@ensdomains/content-hash>multihashes>multibase":{packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>multibase>base-x":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>multihashes>multibase>base-x":{packages:{"mockttp>express>safe-buffer":!0}},"@ensdomains/content-hash>multihashes>web-encoding":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"browserify>util":!0}},"@ethereumjs/tx":{packages:{"@ethereumjs/tx>@ethereumjs/common":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ethereumjs/tx>ethereum-cryptography":!0}},"@ethereumjs/tx>@ethereumjs/common":{packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"webpack>events":!0}},"@ethereumjs/tx>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@ethereumjs/tx>@ethereumjs/util":{globals:{"console.warn":!0,fetch:!0},packages:{"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>ethereum-cryptography>@noble/curves":!0,"webpack>events":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@ethereumjs/tx>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@ethersproject/abi":{globals:{"console.log":!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"@ethersproject/bignumber":{packages:{"@ethersproject/bytes":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/logger":!0}},"@ethersproject/bytes":{packages:{"ethers>@ethersproject/logger":!0}},"@ethersproject/contracts":{globals:{setTimeout:!0},packages:{"@ethersproject/abi":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"@ethersproject/hdnode":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/wordlists":!0}},"@ethersproject/providers":{globals:{WebSocket:!0,clearInterval:!0,clearTimeout:!0,"console.log":!0,"console.warn":!0,setInterval:!0,setTimeout:!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/providers>bech32":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/networks":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/web":!0}},"@ethersproject/transactions":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/signing-key":!0}},"@google/genai>protobufjs":{globals:{process:!0,setTimeout:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0,"@google/genai>protobufjs>@protobufjs/base64":!0,"@google/genai>protobufjs>@protobufjs/codegen":!0,"@google/genai>protobufjs>@protobufjs/eventemitter":!0,"@google/genai>protobufjs>@protobufjs/fetch":!0,"@google/genai>protobufjs>@protobufjs/float":!0,"@google/genai>protobufjs>@protobufjs/path":!0,"@google/genai>protobufjs>@protobufjs/pool":!0,"@google/genai>protobufjs>@protobufjs/utf8":!0,"@google/genai>protobufjs>long":!0}},"@google/genai>protobufjs>@protobufjs/codegen":{globals:{"console.log":!0}},"@google/genai>protobufjs>@protobufjs/fetch":{globals:{XMLHttpRequest:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0}},"@google/genai>protobufjs>long":{globals:{"WebAssembly.Instance":!0,"WebAssembly.Module":!0,define:!0}},"@hello-pangea/dnd":{globals:{"Element.prototype":!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,addEventListener:!0,cancelAnimationFrame:!0,clearTimeout:!0,console:!0,document:!0,getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0,removeEventListener:!0,requestAnimationFrame:!0,scrollBy:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@hello-pangea/dnd>css-box-model":!0,"@hello-pangea/dnd>memoize-one":!0,"@hello-pangea/dnd>raf-schd":!0,"@hello-pangea/dnd>react-redux":!0,"@hello-pangea/dnd>use-memo-one":!0,react:!0,"react-dom":!0,redux:!0}},"@hello-pangea/dnd>css-box-model":{globals:{getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0},packages:{"@hello-pangea/dnd>css-box-model>tiny-invariant":!0}},"@hello-pangea/dnd>raf-schd":{globals:{cancelAnimationFrame:!0,requestAnimationFrame:!0}},"@hello-pangea/dnd>react-redux":{globals:{"console.warn":!0,document:!0},packages:{"@babel/runtime":!0,"@metamask/snap-simple-keyring-site>react-is":!0,"@tanstack/react-query>use-sync-external-store":!0,react:!0,"react-dom":!0,"react-redux>hoist-non-react-statics":!0}},"@hello-pangea/dnd>use-memo-one":{packages:{react:!0}},"@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,"@metamask/eth-qr-keyring>hdkey":!0,buffer:!0,uuid:!0}},"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,buffer:!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,tslib:!0}},"@lavamoat/lavadome-react":{globals:{Array:!0,Clipboard:!0,Document:!0,DocumentFragment:!0,Element:!0,Event:!0,EventTarget:!0,Function:!0,JSON:!0,NavigateEvent:!0,NavigationDestination:!0,Node:!0,Number:!0,Object:!0,String:!0,Weakmap:!0,"console.warn":!0,document:!0,navigation:!0},packages:{react:!0}},"@ledgerhq/errors":{globals:{"console.warn":!0}},"@ledgerhq/hw-app-eth":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"console.warn":!0},packages:{"@ethersproject/abi":!0,"@ethersproject/transactions":!0,"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures":!0,"@ledgerhq/hw-app-eth>@ledgerhq/domain-service":!0,"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,"@ledgerhq/hw-app-eth>bignumber.js":!0,buffer:!0,"ethers>@ethersproject/rlp":!0,semver:!0,"wait-on>axios":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/domain-service":{packages:{"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,"wait-on>axios":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools":{packages:{"@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures":!0,"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env":!0,"@metamask/ppom-validator>crypto-js":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"wait-on>axios":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env":{globals:{"console.warn":!0},packages:{"wait-on>rxjs":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/logs":{globals:{__ledgerLogsListen:"write","console.error":!0}},"@ledgerhq/hw-app-eth>bignumber.js":{globals:{crypto:!0}},"@ledgerhq/hw-transport":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,"console.warn":!0,setTimeout:!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,buffer:!0,"webpack>events":!0}},"@ledgerhq/hw-transport-webhid":{globals:{"Buffer.from":!0,navigator:!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,"@ledgerhq/hw-transport-webhid>@ledgerhq/devices":!0,"@ledgerhq/hw-transport-webhid>@ledgerhq/hw-transport":!0,buffer:!0}},"@ledgerhq/hw-transport-webhid>@ledgerhq/devices":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-transport-webhid>@ledgerhq/devices>semver":!0,buffer:!0}},"@ledgerhq/hw-transport-webhid>@ledgerhq/devices>semver":{globals:{"console.error":!0,process:!0},packages:{process:!0}},"@ledgerhq/hw-transport-webhid>@ledgerhq/hw-transport":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,"console.warn":!0,setTimeout:!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,buffer:!0,"webpack>events":!0}},"@metamask/abi-utils":{packages:{"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/account-api":{packages:{"@metamask/keyring-utils":!0}},"@metamask/account-tree-controller":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/account-api":!0,"@metamask/accounts-controller":!0,"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"eslint>fast-deep-equal":!0}},"@metamask/accounts-controller":{globals:{"console.warn":!0},packages:{"@metamask/accounts-controller>ethereum-cryptography":!0,"@metamask/base-controller":!0,"@metamask/eth-snap-keyring":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-sdk":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/accounts-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/address-book-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0}},"@metamask/analytics-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/announcement-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/approval-controller":{globals:{"console.info":!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,nanoid:!0}},"@metamask/assets-controller":{globals:{clearInterval:!0,clearTimeout:!0,"console.error":!0,fetch:!0,"performance.now":!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/abi":!0,"@ethersproject/providers":!0,"@metamask/assets-controller>bignumber.js":!0,"@metamask/assets-controller>p-limit":!0,"@metamask/assets-controllers":!0,"@metamask/base-controller":!0,"@metamask/client-controller":!0,"@metamask/controller-utils":!0,"@metamask/core-backend":!0,"@metamask/keyring-snap-client":!0,"@metamask/phishing-controller":!0,"@metamask/polling-controller":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,lodash:!0}},"@metamask/assets-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/assets-controller>p-limit":{packages:{"@metamask/assets-controller>p-limit>yocto-queue":!0}},"@metamask/assets-controllers":{globals:{AbortController:!0,"Intl.NumberFormat":!0,URL:!0,URLSearchParams:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/account-api":!0,"@metamask/assets-controllers>@metamask/abi-utils":!0,"@metamask/assets-controllers>@tanstack/query-core":!0,"@metamask/assets-controllers>multiformats":!0,"@metamask/assets-controllers>single-call-balance-checker-abi":!0,"@metamask/base-controller":!0,"@metamask/contract-metadata":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/metamask-eth-abis":!0,"@metamask/phishing-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/address":!0,immer:!0,lodash:!0,reselect:!0,uuid:!0}},"@metamask/assets-controllers>@metamask/abi-utils":{packages:{"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/assets-controllers>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,"console.error":!0,document:!1,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@metamask/assets-controllers>multiformats":{globals:{TextDecoder:!0,TextEncoder:!0,"console.warn":!0,"crypto.subtle.digest":!0}},"@metamask/authenticated-user-storage":{globals:{fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0}},"@metamask/base-controller":{globals:{"console.error":!0},packages:{immer:!0}},"@metamask/bridge-controller":{globals:{AbortController:!0,"Buffer.from":!0,TextDecoder:!0,URLSearchParams:!0,"console.error":!0,"console.log":!0,"console.warn":!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/bridge-controller>@metamask/multichain-network-controller":!0,"@metamask/bridge-controller>bignumber.js":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/metamask-eth-abis":!0,"@metamask/multichain-network-controller":!0,"@metamask/polling-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,buffer:!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,lodash:!0,reselect:!0,uuid:!0}},"@metamask/bridge-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/bridge-status-controller":{globals:{URLSearchParams:!0,clearInterval:!0,"console.error":!0,"console.warn":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/bridge-controller":!0,"@metamask/bridge-status-controller>bignumber.js":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/polling-controller":!0,"@metamask/snaps-controllers":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/bridge-status-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/browser-passworder":{globals:{"Buffer.from":!0,CryptoKey:!0,btoa:!0,"crypto.getRandomValues":!0,"crypto.subtle.decrypt":!0,"crypto.subtle.deriveKey":!0,"crypto.subtle.encrypt":!0,"crypto.subtle.exportKey":!0,"crypto.subtle.importKey":!0},packages:{"@metamask/utils":!0,buffer:!0}},"@metamask/chain-agnostic-permission":{packages:{"@metamask/chain-agnostic-permission>@metamask/api-specs":!0,"@metamask/controller-utils":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/claims-controller":{packages:{"@metamask/base-controller":!0,"@metamask/claims-controller>@metamask/controller-utils":!0,"@metamask/utils":!0}},"@metamask/claims-controller>@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"@metamask/utils":!0,buffer:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/client-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/client-utils":{packages:{"@metamask/contract-metadata":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0}},"@metamask/compliance-controller":{globals:{URL:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/superstruct":!0,reselect:!0}},"@metamask/config-registry-controller":{globals:{fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/abi":!0,"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"@metamask/utils":!0,buffer:!0,cockatiel:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/controller-utils>@metamask/eth-query":{packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"browserify>xtend":!0}},"@metamask/controller-utils>@metamask/ethjs-unit":{packages:{"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"ethereumjs-util>bn.js":!0}},"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0,"ethereumjs-util>bn.js":!0}},"@metamask/controller-utils>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0,"@noble/hashes":!0}},"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":{packages:{buffer:!0}},"@metamask/core-backend":{globals:{URL:!0,WebSocket:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils":!0,"@metamask/core-backend>@tanstack/query-core":!0,"@metamask/utils":!0,cockatiel:!0,uuid:!0}},"@metamask/core-backend>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,"console.error":!0,document:!1,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@metamask/delegation-controller":{packages:{"@metamask/base-controller":!0,"@metamask/delegation-controller>@metamask/keyring-controller":!0,"@metamask/utils":!0}},"@metamask/delegation-controller>@metamask/keyring-controller":{globals:{"console.error":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/base-controller":!0,"@metamask/eth-hd-keyring":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring":!0,"@metamask/keyring-controller>ethereumjs-wallet":!0,"@metamask/keyring-controller>ulid":!0,"@metamask/utils":!0,"async-mutex":!0,lodash:!0}},"@metamask/delegation-core":{packages:{"@metamask/abi-utils":!0,"@metamask/utils":!0,"@noble/hashes":!0}},"@metamask/design-system-react":{globals:{"console.warn":!0,"document.addEventListener":!0,"document.body":!0,"document.removeEventListener":!0},packages:{"@metamask/design-system-react>@radix-ui/react-slot":!0,"@metamask/design-system-react>blo":!0,"@metamask/design-system-react>tailwind-merge":!0,"@metamask/design-system-shared":!0,"@metamask/jazzicon":!0,react:!0,"react-dom":!0,"react-focus-lock":!0}},"@metamask/design-system-react>@radix-ui/react-slot":{packages:{"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":!0,react:!0}},"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":{packages:{react:!0}},"@metamask/design-system-react>blo":{globals:{btoa:!0}},"@metamask/design-system-shared":{packages:{"@metamask/utils":!0,react:!0}},"@metamask/eip-5792-middleware":{packages:{"@metamask/eip-5792-middleware>@metamask/transaction-controller":!0,"@metamask/keyring-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/eip-7702-internal-rpc-middleware":{packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/ens-controller":{packages:{"@ethersproject/providers":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,punycode:!0}},"@metamask/eth-hd-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-hd-keyring>ethereum-cryptography":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/scure-bip39":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":{packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-json-rpc-filters":{globals:{"console.error":!0},packages:{"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/json-rpc-engine":!0,"@metamask/safe-event-emitter":!0,"async-mutex":!0,pify:!0}},"@metamask/eth-json-rpc-middleware":{globals:{setTimeout:!0},packages:{"@metamask/eth-json-rpc-middleware>safe-stable-stringify":!0,"@metamask/eth-sig-util":!0,"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-engine>klona":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,nanoid:!0}},"@metamask/eth-ledger-bridge-keyring":{globals:{addEventListener:!0,"document.createElement":!0,"document.head.appendChild":!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ledgerhq/hw-transport":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-sig-util":!0,"@metamask/hw-wallet-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-qr-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-qr-keyring>uuid":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":!0,"@metamask/eth-qr-keyring>hdkey":!0,buffer:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":!0,buffer:!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,buffer:!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,tslib:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":{globals:{crypto:!0,msCrypto:!0}},"@metamask/eth-qr-keyring>hdkey":{packages:{"@ngraveio/bc-ur>assert":!0,"crypto-browserify":!0,"ethereumjs-util>create-hash>ripemd160":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0,"mockttp>express>safe-buffer":!0}},"@metamask/eth-qr-keyring>uuid":{globals:{crypto:!0}},"@metamask/eth-sig-util":{globals:{"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0},packages:{"@metamask/abi-utils":!0,"@metamask/eth-sig-util>@ethereumjs/rlp":!0,"@metamask/eth-sig-util>@ethereumjs/util":!0,"@metamask/eth-sig-util>@scure/base":!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,"@metamask/utils":!0,buffer:!0,tweetnacl:!0}},"@metamask/eth-sig-util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-sig-util>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-sig-util>@ethereumjs/rlp":!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,buffer:!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"@metamask/eth-sig-util>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-sig-util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-snap-keyring":{globals:{URL:!0,"console.error":!0,"console.info":!0,"console.warn":!0},packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":!0,"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":!0,"@metamask/eth-snap-keyring>uuid":!0,"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-sdk":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/keyring-utils":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":{packages:{"@metamask/superstruct":!0}},"@metamask/eth-snap-keyring>uuid":{globals:{crypto:!0}},"@metamask/eth-token-tracker":{globals:{"console.warn":!0},packages:{"@babel/runtime":!0,"@ethersproject/bignumber":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/eth-token-tracker>@metamask/eth-block-tracker":!0,"@metamask/eth-token-tracker>deep-equal":!0,"@metamask/safe-event-emitter":!0,"ethereumjs-util>bn.js":!0,"human-standard-token-abi":!0}},"@metamask/eth-token-tracker>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/eth-token-tracker>deep-equal":{packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator":!0,"@metamask/eth-token-tracker>deep-equal>is-date-object":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":!0,"@metamask/eth-token-tracker>deep-equal>which-collection":!0,"@ngraveio/bc-ur>assert>object-is":!0,"browserify>util>is-arguments":!0,"browserify>util>which-typed-array":!0,"gulp>vinyl-fs>object.assign":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>es-abstract>array-buffer-byte-length":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0,"string.prototype.matchall>es-abstract>is-regex":!0,"string.prototype.matchall>es-abstract>is-shared-array-buffer":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>regexp.prototype.flags":!0,"string.prototype.matchall>side-channel":!0}},"@metamask/eth-token-tracker>deep-equal>es-get-iterator":{globals:{process:!0},packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"browserify>util>is-arguments":!0,"eslint-plugin-react>array-includes>is-string":!0,process:!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>es-abstract>is-set":!0,"string.prototype.matchall>es-abstract>stop-iteration-iterator":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>has-symbols":!0}},"@metamask/eth-token-tracker>deep-equal>is-date-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":{packages:{"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":!0,"eslint-plugin-react>array-includes>is-string":!0,"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":{packages:{"string.prototype.matchall>es-abstract>unbox-primitive>has-bigints":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection":{packages:{"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":!0,"string.prototype.matchall>es-abstract>is-set":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"@metamask/eth-trezor-keyring":{globals:{"Buffer.from":!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-sig-util":!0,"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":!0,"@metamask/hw-wallet-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":{packages:{"@metamask/eth-sig-util":!0,tslib:!0}},"@metamask/etherscan-link":{globals:{URL:!0}},"@metamask/gas-fee-controller":{globals:{clearInterval:!0,"console.error":!0,setInterval:!0},packages:{"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"ethereumjs-util>bn.js":!0,uuid:!0}},"@metamask/gator-permissions-controller":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/delegation-core":!0,"@metamask/delegation-deployments":!0,"@metamask/gator-permissions-controller>@metamask/abi-utils":!0,"@metamask/gator-permissions-controller>@metamask/transaction-controller":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0}},"@metamask/gator-permissions-controller>@metamask/abi-utils":{packages:{"@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/geolocation-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/geolocation-controller>@metamask/controller-utils":!0}},"@metamask/geolocation-controller>@metamask/controller-utils":{globals:{"Buffer.from":!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/utils":!0,buffer:!0,cockatiel:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/jazzicon":{globals:{"document.createElement":!0,"document.createElementNS":!0},packages:{"@metamask/jazzicon>color":!0,"@metamask/jazzicon>mersenne-twister":!0}},"@metamask/jazzicon>color":{packages:{"@metamask/jazzicon>color>clone":!0,"@metamask/jazzicon>color>color-convert":!0,"@metamask/jazzicon>color>color-string":!0}},"@metamask/jazzicon>color>clone":{globals:{Buffer:!0},packages:{buffer:!0}},"@metamask/jazzicon>color>color-convert":{packages:{"@metamask/jazzicon>color>color-convert>color-name":!0}},"@metamask/jazzicon>color>color-string":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"@metamask/json-rpc-engine":{packages:{"@metamask/json-rpc-engine>klona":!0,"@metamask/messenger":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"deep-freeze-strict":!0}},"@metamask/json-rpc-middleware-stream":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/json-rpc-middleware-stream>readable-stream":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/json-rpc-middleware-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/keyring-api":{packages:{"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"bitcoin-address-validation":!0}},"@metamask/keyring-controller":{globals:{"console.error":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/base-controller":!0,"@metamask/eth-hd-keyring":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring":!0,"@metamask/keyring-controller>ethereumjs-wallet":!0,"@metamask/keyring-controller>ulid":!0,"@metamask/utils":!0,"async-mutex":!0,lodash:!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0,"crypto-browserify>randombytes":!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/keyring-controller>ethereumjs-wallet":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":!0,"@metamask/keyring-controller>ethereumjs-wallet>utf8":!0,buffer:!0,"crypto-browserify":!0,"crypto-browserify>randombytes":!0,"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0,uuid:!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>assert":!0,buffer:!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0,"ethers>@ethersproject/sha2>hash.js":!0,"mockttp>express>safe-buffer":!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":{globals:{Buffer:!0},packages:{"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"@ngraveio/bc-ur>assert":!0,buffer:!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>rlp":!0}},"@metamask/keyring-controller>ulid":{globals:{"console.error":!0,crypto:!0,require:!0}},"@metamask/keyring-internal-api":{packages:{"@metamask/keyring-api":!0,"@metamask/superstruct":!0}},"@metamask/keyring-sdk":{packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk>ethereum-cryptography":!0,"@metamask/keyring-sdk>uuid":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/keyring-sdk>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":!0}},"@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/keyring-sdk>uuid":{globals:{crypto:!0}},"@metamask/keyring-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-snap-client>uuid":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0}},"@metamask/keyring-snap-client>uuid":{globals:{crypto:!0}},"@metamask/keyring-utils":{globals:{URL:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"bitcoin-address-validation":!0}},"@metamask/logging-controller":{packages:{"@metamask/base-controller":!0,uuid:!0}},"@metamask/logo":{globals:{addEventListener:!0,"document.body.appendChild":!0,"document.createElementNS":!0,innerHeight:!0,innerWidth:!0,requestAnimationFrame:!0},packages:{"@metamask/logo>gl-mat4":!0,"@metamask/logo>gl-vec3":!0}},"@metamask/message-manager":{globals:{"Buffer.from":!0},packages:{"@metamask/base-controller":!0,"@metamask/message-manager>@metamask/controller-utils":!0,"@metamask/utils":!0,buffer:!0,uuid:!0,"webpack>events":!0}},"@metamask/message-manager>@metamask/controller-utils":{globals:{"Buffer.from":!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/utils":!0,buffer:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/message-manager>jsonschema":{packages:{"browserify>url":!0}},"@metamask/messenger":{globals:{"console.error":!0}},"@metamask/mobile-wallet-protocol-core":{globals:{"Buffer.from":!0,"console.warn":!0,setImmediate:!0,setTimeout:!0},packages:{"@metamask/mobile-wallet-protocol-core>centrifuge":!0,"@metamask/mobile-wallet-protocol-core>eventemitter3":!0,"@metamask/mobile-wallet-protocol-core>uuid":!0,"async-mutex":!0,buffer:!0,"core-js-pure":!0}},"@metamask/mobile-wallet-protocol-core>centrifuge":{globals:{AbortController:!1,Event:!1,EventSource:!1,EventTarget:!1,MessageEvent:!1,ReadableStream:!1,SockJS:!1,SuppressedError:!1,TextDecoder:!0,TextEncoder:!0,URL:!1,WebSocket:!0,WebTransport:!1,addEventListener:!0,clearTimeout:!0,console:!1,"console.warn":!0,document:!1,fetch:!1,localStorage:!1,setTimeout:!0}},"@metamask/mobile-wallet-protocol-core>uuid":{globals:{crypto:!0}},"@metamask/mobile-wallet-protocol-dapp-client":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/mobile-wallet-protocol-core":!0,"@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils":!0,"@metamask/mobile-wallet-protocol-dapp-client>uuid":!0}},"@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@scure/base":!0,buffer:!0}},"@metamask/mobile-wallet-protocol-dapp-client>uuid":{globals:{crypto:!0}},"@metamask/multichain-account-service":{globals:{clearTimeout:!0,"console.error":!0,"console.warn":!0,"performance.now":!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/account-api":!0,"@metamask/eth-snap-keyring":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-snap-client":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/multichain-api-middleware":{globals:{"console.error":!0},packages:{"@metamask/chain-agnostic-permission":!0,"@metamask/controller-utils":!0,"@metamask/eth-json-rpc-filters":!0,"@metamask/json-rpc-engine":!0,"@metamask/message-manager>jsonschema":!0,"@metamask/multichain-api-middleware>@metamask/api-specs":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@open-rpc/schema-utils-js":!0}},"@metamask/multichain-network-controller":{globals:{URL:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/multichain-network-controller>@metamask/keyring-api":!0,"@metamask/network-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/multichain-transactions-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/snaps-utils":!0}},"@metamask/name-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/name-controller>@metamask/controller-utils":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/name-controller>@metamask/controller-utils":{globals:{"Buffer.from":!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/utils":!0,buffer:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/network-controller":{globals:{"Intl.NumberFormat":!0,URL:!0,btoa:!0,fetch:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/connectivity-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/eth-json-rpc-middleware":!0,"@metamask/eth-json-rpc-provider":!0,"@metamask/json-rpc-engine":!0,"@metamask/network-controller>@metamask/eth-block-tracker":!0,"@metamask/network-controller>@metamask/eth-json-rpc-infura":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"addons-linter>deepmerge":!0,cockatiel:!0,"eslint>fast-deep-equal":!0,immer:!0,lodash:!0,reselect:!0,"uri-js":!0,uuid:!0}},"@metamask/network-controller>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura":{globals:{fetch:!0,setTimeout:!0},packages:{"@metamask/json-rpc-engine":!0,"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,uuid:!0}},"@metamask/network-enablement-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/multichain-network-controller":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/utils":!0}},"@metamask/notification-services-controller":{globals:{"Intl.NumberFormat":!0,addEventListener:!0,"console.error":!0,fetch:!0,registration:!0,removeEventListener:!0},packages:{"@metamask/authenticated-user-storage":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":!0,"@metamask/notification-services-controller>bignumber.js":!0,"@metamask/notification-services-controller>firebase":!0,"@metamask/utils":!0,lodash:!0,loglevel:!0,semver:!0,uuid:!0}},"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":{globals:{SuppressedError:!0}},"@metamask/notification-services-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/notification-services-controller>firebase":{packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/messaging":!0}},"@metamask/notification-services-controller>firebase>@firebase/app":{globals:{FinalizationRegistry:!0,"console.warn":!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":{packages:{"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":{globals:{console:!0}},"@metamask/notification-services-controller>firebase>@firebase/app>idb":{globals:{DOMException:!0,IDBCursor:!0,IDBDatabase:!0,IDBIndex:!0,IDBObjectStore:!0,IDBRequest:!0,IDBTransaction:!0,"indexedDB.deleteDatabase":!0,"indexedDB.open":!0}},"@metamask/notification-services-controller>firebase>@firebase/installations":{globals:{BroadcastChannel:!0,Headers:!0,btoa:!0,"console.error":!0,crypto:!0,fetch:!0,msCrypto:!0,"navigator.onLine":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/messaging":{globals:{Headers:!0,"Notification.maxActions":!0,"Notification.permission":!0,"Notification.requestPermission":!0,"PushSubscription.prototype.hasOwnProperty":!0,ServiceWorkerRegistration:!0,URL:!0,addEventListener:!0,atob:!0,btoa:!0,clearTimeout:!0,"clients.matchAll":!0,"clients.openWindow":!0,"console.warn":!0,document:!0,fetch:!0,indexedDB:!0,"location.href":!0,"location.origin":!0,navigator:!0,"origin.replace":!0,"registration.showNotification":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/installations":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/util":{globals:{WorkerGlobalScope:!0,atob:!0,browser:!0,btoa:!0,chrome:!0,console:!0,document:!0,indexedDB:!0,navigator:!0,process:!0,setTimeout:!0},packages:{process:!0}},"@metamask/object-multiplex":{globals:{"console.warn":!0},packages:{"@metamask/object-multiplex>once":!0,"@metamask/object-multiplex>readable-stream":!0}},"@metamask/object-multiplex>once":{packages:{"@metamask/object-multiplex>once>wrappy":!0}},"@metamask/object-multiplex>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/obs-store":{packages:{"@metamask/obs-store>readable-stream":!0,"@metamask/safe-event-emitter":!0}},"@metamask/obs-store>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/passkey-controller":{globals:{TextDecoder:!0,TextEncoder:!0,"crypto.subtle.importKey":!0,"crypto.subtle.verify":!0},packages:{"@metamask/base-controller":!0,"@metamask/passkey-controller>@levischuck/tiny-cbor":!0,"@metamask/utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0}},"@metamask/passkey-controller>@levischuck/tiny-cbor":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/permission-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/json-rpc-engine":!0,"@metamask/messenger":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"deep-freeze-strict":!0,immer:!0,nanoid:!0}},"@metamask/permission-log-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0}},"@metamask/perps-controller":{globals:{AbortController:!0,WebSocket:!0,clearInterval:!0,clearTimeout:!0,fetch:!0,"performance.now":!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/perps-controller>@metamask/abi-utils":!0,"@metamask/perps-controller>@nktkas/hyperliquid":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/perps-controller>@metamask/abi-utils":{packages:{"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/perps-controller>@nktkas/hyperliquid":{globals:{AbortController:!0,AbortSignal:!0,CustomEvent:!0,DOMException:!0,Event:!0,EventTarget:!0,Headers:!0,TextEncoder:!0,URL:!0,clearInterval:!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":!0,"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":!0,"@metamask/perps-controller>@nktkas/hyperliquid>valibot":!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":{globals:{AbortController:!0,CloseEvent:!0,CustomEvent:!0,Event:!0,EventTarget:!0,MessageEvent:!0,WebSocket:!0,clearTimeout:!0,setTimeout:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>valibot":{globals:{Blob:!0,File:!0,"Intl.Segmenter":!0,TextEncoder:!0,URL:!0}},"@metamask/phishing-controller":{globals:{TextEncoder:!0,URL:!0,"console.error":!0,"console.warn":!0,fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/phishing-controller>ethereum-cryptography":!0,"@metamask/transaction-controller":!0,"@noble/hashes":!0,punycode:!0,"webpack-cli>fastest-levenshtein":!0}},"@metamask/phishing-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/polling-controller":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"fast-json-stable-stringify":!0,uuid:!0}},"@metamask/post-message-stream":{globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,removeEventListener:!0},packages:{"@metamask/post-message-stream>readable-stream":!0,"@metamask/utils":!0}},"@metamask/post-message-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/ppom-validator":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,crypto:!0},packages:{"@metamask/base-controller":!0,"@metamask/ppom-validator>@metamask/controller-utils":!0,"@metamask/ppom-validator>await-semaphore":!0,"@metamask/ppom-validator>crypto-js":!0,"@metamask/ppom-validator>json-rpc-random-id":!0,"@toruslabs/eccrypto>elliptic":!0,buffer:!0}},"@metamask/ppom-validator>@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"@metamask/utils":!0,buffer:!0,cockatiel:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/ppom-validator>await-semaphore":{globals:{process:!0,setImmediate:!0},packages:{"core-js-pure":!0,process:!0}},"@metamask/ppom-validator>crypto-js":{globals:{crypto:!0,define:!0,msCrypto:!0}},"@metamask/profile-metrics-controller":{globals:{URL:!0,"console.error":!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0,uuid:!0}},"@metamask/profile-sync-controller":{globals:{"Buffer.from":!0,Event:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,addEventListener:!0,atob:!0,"console.error":!0,"console.warn":!0,dispatchEvent:!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-controller":!0,"@metamask/profile-sync-controller>siwe":!0,"@noble/ciphers":!0,"@noble/hashes":!0,buffer:!0}},"@metamask/profile-sync-controller>siwe":{globals:{"console.error":!0,"console.warn":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>valid-url":!0,"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random":!0,ethers:!0}},"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0,"@noble/hashes":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random":{globals:{crypto:!0,msCrypto:!0},packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":{packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int":!0}},"@metamask/providers":{globals:{console:!0},packages:{"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/providers>is-stream":!0,"@metamask/providers>readable-stream":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"eslint>fast-deep-equal":!0}},"@metamask/providers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/ramps-controller":{globals:{AbortController:!0,URL:!0,clearInterval:!0,setInterval:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,cockatiel:!0}},"@metamask/rate-limit-controller":{globals:{setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/react-data-query":{packages:{"@metamask/utils":!0,"@tanstack/react-query>@tanstack/query-core":!0}},"@metamask/react-data-query>@metamask/base-data-service":{packages:{"@metamask/controller-utils":!0,"@metamask/messenger":!0,"@metamask/utils":!0,"@tanstack/react-query>@tanstack/query-core":!0,"eslint>fast-deep-equal":!0}},"@metamask/remote-feature-flag-controller":{globals:{TextEncoder:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/safe-event-emitter":{globals:{setTimeout:!0},packages:{"webpack>events":!0}},"@metamask/scure-bip39":{globals:{TextEncoder:!0},packages:{"@metamask/scure-bip39>@noble/hashes":!0,"@metamask/scure-bip39>@scure/base":!0}},"@metamask/scure-bip39>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/scure-bip39>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/seedless-onboarding-controller":{packages:{"@metamask/base-controller":!0,"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":!0,"@metamask/utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"async-mutex":!0}},"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":{globals:{"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/hashes":!0,buffer:!0,"eslint>json-stable-stringify-without-jsonify":!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":{globals:{Buffer:!0,URL:!0,"console.error":!0,fetch:!0},packages:{"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"@toruslabs/eccrypto":!0,buffer:!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":{globals:{"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/curves":!0,"@noble/hashes":!0,"@toruslabs/eccrypto>elliptic":!0,buffer:!0,"eslint>json-stable-stringify-without-jsonify":!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":{packages:{"@babel/runtime":!0,"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":{packages:{"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@metamask/selected-network-controller":{packages:{"@metamask/base-controller":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0}},"@metamask/shield-controller":{globals:{AbortController:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/shield-controller>@metamask/transaction-controller":!0,"@metamask/signature-controller":!0,"@metamask/utils":!0,cockatiel:!0,lodash:!0}},"@metamask/signature-controller":{globals:{"Buffer.from":!0,fetch:!0},packages:{"@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller":!0,"@metamask/logging-controller":!0,"@metamask/message-manager>jsonschema":!0,"@metamask/utils":!0,buffer:!0,uuid:!0,"webpack>events":!0}},"@metamask/smart-transactions-controller":{globals:{URLSearchParams:!0,clearInterval:!0,"console.error":!0,"console.log":!0,fetch:!0,setInterval:!0},packages:{"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"@metamask/smart-transactions-controller>@metamask/transaction-controller":!0,"@metamask/smart-transactions-controller>bignumber.js":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"ethers>@ethersproject/keccak256":!0,lodash:!0,reselect:!0}},"@metamask/smart-transactions-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/snap-account-service":{globals:{"console.error":!0},packages:{"@metamask/eth-snap-keyring":!0,"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/snaps-controllers":{globals:{DecompressionStream:!0,URL:!0,WebSocket:!0,clearTimeout:!0,"document.getElementById":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/object-multiplex":!0,"@metamask/permission-controller":!0,"@metamask/post-message-stream":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-controllers>@xstate/fsm":!0,"@metamask/snaps-controllers>concat-stream":!0,"@metamask/snaps-controllers>get-npm-tarball-url":!0,"@metamask/snaps-controllers>readable-stream":!0,"@metamask/snaps-controllers>readable-web-to-node-stream":!0,"@metamask/snaps-controllers>tar-stream":!0,"@metamask/snaps-registry":!0,"@metamask/snaps-rpc-methods":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,"cron-parser":!0,"eslint>fast-deep-equal":!0,immer:!0,luxon:!0,nanoid:!0,semver:!0}},"@metamask/snaps-controllers>concat-stream":{globals:{"Buffer.concat":!0,"Buffer.isBuffer":!0},packages:{"@metamask/snaps-controllers>readable-stream":!0,"browserify>concat-stream>buffer-from":!0,"browserify>concat-stream>typedarray":!0,buffer:!0,"duplexify>inherits":!0}},"@metamask/snaps-controllers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream":{packages:{"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/snaps-controllers>tar-stream":{packages:{"@metamask/snaps-controllers>tar-stream>b4a":!0,"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx":!0}},"@metamask/snaps-controllers>tar-stream>b4a":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/snaps-controllers>tar-stream>streamx":{packages:{"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx>queue-tick":!0,"webpack>events":!0}},"@metamask/snaps-controllers>tar-stream>streamx>queue-tick":{globals:{queueMicrotask:!0}},"@metamask/snaps-execution-environments":{globals:{"document.getElementById":!0},packages:{"@metamask/post-message-stream":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0}},"@metamask/snaps-registry":{globals:{crypto:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0}},"@metamask/snaps-rpc-methods":{packages:{"@metamask/json-rpc-engine":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/hashes":!0,"async-mutex":!0}},"@metamask/snaps-sdk":{globals:{URL:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,luxon:!0}},"@metamask/snaps-sdk>@metamask/key-tree":{globals:{"crypto.subtle":!0,ed25519:!0,ed25519Bip32:!0,secp256k1:!0},packages:{"@metamask/scure-bip39":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0,"@scure/base":!0}},"@metamask/snaps-utils":{globals:{File:!0,FileReader:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,"console.error":!0,"console.log":!0,"console.warn":!0,"document.body.appendChild":!0,"document.createElement":!0,fetch:!0,navigator:!0},packages:{"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/snaps-utils>fast-xml-parser":!0,"@metamask/snaps-utils>marked":!0,"@metamask/snaps-utils>rfdc":!0,"@metamask/snaps-utils>validate-npm-package-name":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@scure/base":!0,chalk:!0,"cron-parser":!0,"fast-json-stable-stringify":!0,luxon:!0,semver:!0}},"@metamask/snaps-utils>fast-xml-parser":{globals:{"exports.isExist":!0},packages:{"@metamask/snaps-utils>fast-xml-parser>@nodable/entities":!0,"@metamask/snaps-utils>fast-xml-parser>path-expression-matcher":!0,"@metamask/snaps-utils>fast-xml-parser>strnum":!0}},"@metamask/snaps-utils>marked":{globals:{"console.error":!0,"console.warn":!0}},"@metamask/snaps-utils>rfdc":{globals:{Buffer:!0},packages:{buffer:!0}},"@metamask/snaps-utils>validate-npm-package-name":{packages:{"@metamask/snaps-utils>validate-npm-package-name>builtins":!0}},"@metamask/snaps-utils>validate-npm-package-name>builtins":{globals:{"process.version":!0},packages:{process:!0,semver:!0}},"@metamask/storage-service":{globals:{"console.error":!0,"console.warn":!0}},"@metamask/subscription-controller":{globals:{URL:!0},packages:{"@metamask/polling-controller":!0,"@metamask/subscription-controller>@metamask/transaction-controller":!0,"@metamask/subscription-controller>bignumber.js":!0,"@metamask/utils":!0}},"@metamask/subscription-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-controller":{globals:{"Buffer.from":!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/common":!0,"@ethersproject/abi":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/gas-fee-controller":!0,"@metamask/metamask-eth-abis":!0,"@metamask/network-controller":!0,"@metamask/rpc-errors":!0,"@metamask/transaction-controller>@metamask/nonce-tracker":!0,"@metamask/transaction-controller>bignumber.js":!0,"@metamask/utils":!0,"async-mutex":!0,buffer:!0,"eth-method-registry":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/wallet":!0,lodash:!0,uuid:!0,"webpack>events":!0}},"@metamask/transaction-controller>@metamask/nonce-tracker":{packages:{"@ethersproject/providers":!0,"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":!0,"@ngraveio/bc-ur>assert":!0}},"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"@metamask/transaction-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-pay-controller":{globals:{AbortController:!0,URLSearchParams:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/abi":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/metamask-eth-abis":!0,"@metamask/network-controller":!0,"@metamask/transaction-controller":!0,"@metamask/transaction-pay-controller>@metamask/ramps-controller":!0,"@metamask/transaction-pay-controller>bignumber.js":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/transaction-pay-controller>@metamask/ramps-controller":{globals:{URL:!0},packages:{"@metamask/controller-utils":!0}},"@metamask/transaction-pay-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/user-operation-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/gas-fee-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/user-operation-controller>@metamask/transaction-controller":!0,"@metamask/utils":!0,"ethereumjs-util>bn.js":!0,lodash:!0,uuid:!0,"webpack>events":!0}},"@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0,crypto:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,lodash:!0,"nock>debug":!0,semver:!0}},"@metamask/wallet":{packages:{"@metamask/accounts-controller":!0,"@metamask/address-book-controller":!0,"@metamask/approval-controller":!0,"@metamask/browser-passworder":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/messenger":!0,"@metamask/network-controller":!0,"@metamask/remote-feature-flag-controller":!0,"@metamask/storage-service":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"@metamask/wallet>@metamask/connectivity-controller":!0}},"@metamask/wallet>@metamask/connectivity-controller":{packages:{"@metamask/base-controller":!0}},"@mui/material":{globals:{CSS:!0,DocumentFragment:!0,IntersectionObserver:!0,MutationObserver:!0,ResizeObserver:!0,addEventListener:!0,cancelAnimationFrame:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,"document.activeElement":!0,"document.body":!0,getSelection:!0,navigator:!0,"performance.now":!0,removeEventListener:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@emotion/react":!0,"@mui/material>react-is":!0,"@mui/system":!0,"@mui/system>@mui/utils":!0,clsx:!0,"prop-types":!0,react:!0,"react-dom":!0,"react-transition-group":!0}},"@mui/system":{globals:{"console.error":!0,"console.warn":!0,"document.createElement":!0,"document.querySelector":!0,matchMedia:!0},packages:{"@babel/runtime":!0,"@emotion/react":!0,"@mui/system>@mui/private-theming":!0,"@mui/system>@mui/styled-engine":!0,"@mui/system>@mui/utils":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/private-theming":{globals:{"console.error":!0},packages:{"@babel/runtime":!0,"@mui/system>@mui/utils":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/styled-engine":{globals:{"console.error":!0,document:!0},packages:{"@emotion/react":!0,"@emotion/react>@emotion/cache":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/styled":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/utils":{globals:{clearTimeout:!0,"console.error":!0,document:!0,innerWidth:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@mui/system>@mui/utils>react-is":!0,clsx:!0,react:!0}},"@mui/x-date-pickers":{globals:{Intl:!0,Range:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,innerHeight:!0,navigator:!0,orientation:!0,removeEventListener:!0,screen:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@mui/material":!0,"@mui/system":!0,"@mui/x-date-pickers>@mui/utils":!0,"@mui/x-date-pickers>@mui/x-internals":!0,clsx:!0,luxon:!0,"prop-types":!0,react:!0,"react-transition-group":!0}},"@mui/x-date-pickers>@mui/utils":{globals:{URL:!0,"console.error":!0},packages:{clsx:!0,"prop-types":!0,react:!0}},"@ngraveio/bc-ur":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>@keystonehq/alias-sampling":!0,"@ngraveio/bc-ur>assert":!0,"@ngraveio/bc-ur>bignumber.js":!0,"@ngraveio/bc-ur>cbor-sync":!0,"@ngraveio/bc-ur>crc":!0,"@ngraveio/bc-ur>jsbi":!0,"@ngraveio/bc-ur>sha.js":!0,buffer:!0}},"@ngraveio/bc-ur>assert":{globals:{console:!0,"process.emitWarning":!0,"process.stderr":!0},packages:{"@ngraveio/bc-ur>assert>is-nan":!0,"@ngraveio/bc-ur>assert>object-is":!0,"browserify>util":!0,"gulp>vinyl-fs>object.assign":!0,process:!0,"string.prototype.matchall>call-bind":!0}},"@ngraveio/bc-ur>assert>is-nan":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"@ngraveio/bc-ur>assert>object-is":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"@ngraveio/bc-ur>bignumber.js":{globals:{crypto:!0,define:!0}},"@ngraveio/bc-ur>cbor-sync":{globals:{Buffer:!0,define:!0},packages:{buffer:!0}},"@ngraveio/bc-ur>crc":{packages:{"@ngraveio/bc-ur>crc>buffer":!0}},"@ngraveio/bc-ur>crc>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@ngraveio/bc-ur>jsbi":{globals:{define:!0}},"@ngraveio/bc-ur>sha.js":{packages:{"@ngraveio/bc-ur>sha.js>to-buffer":!0,"duplexify>inherits":!0,"mockttp>express>safe-buffer":!0}},"@ngraveio/bc-ur>sha.js>to-buffer":{packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"mockttp>express>safe-buffer":!0,"string.prototype.matchall>es-abstract>typed-array-buffer":!0}},"@noble/ciphers":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@noble/curves":{packages:{"@noble/hashes":!0}},"@noble/hashes":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@open-rpc/schema-utils-js":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@open-rpc/meta-schema":!0,"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":!0,"@open-rpc/schema-utils-js>@json-schema-tools/meta-schema":!0,"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0,"@open-rpc/schema-utils-js>is-url":!0,"eslint>ajv":!0}},"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse":!0,"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0}},"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":{packages:{"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer":!0,"@open-rpc/test-coverage>isomorphic-fetch":!0}},"@open-rpc/test-coverage>isomorphic-fetch":{globals:{fetch:!0},packages:{"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":!0}},"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":{globals:{AbortController:!0,Blob:!0,DOMException:!0,FileReader:!0,FormData:!0,"URLSearchParams.prototype.isPrototypeOf":!0,XMLHttpRequest:!0,"console.warn":!0,fetch:!0,setTimeout:!0}},"@popperjs/core":{globals:{Element:!0,HTMLElement:!0,ShadowRoot:!0,devicePixelRatio:!0,document:!0,"navigator.userAgent":!0,"navigator.userAgentData":!0}},"@reduxjs/toolkit":{globals:{AbortController:!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,__REDUX_DEVTOOLS_EXTENSION__:!0,console:!0,process:!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"@reduxjs/toolkit>reselect":!0,immer:!0,process:!0,redux:!0,"redux-thunk":!0}},"@rive-app/react-canvas":{globals:{IntersectionObserver:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,devicePixelRatio:!0,"document.documentElement.clientHeight":!0,"document.documentElement.clientWidth":!0,innerHeight:!0,innerWidth:!0,matchMedia:!0,removeEventListener:!0,setTimeout:!0},packages:{"@rive-app/react-canvas>@rive-app/canvas":!0,react:!0}},"@rive-app/react-canvas>@rive-app/canvas":{globals:{AudioContext:!1,Blob:!0,DOMMatrix:!1,FinalizationRegistry:!1,HTMLCanvasElement:!0,Image:!0,Iterator:!1,MouseEvent:!1,Path2D:!0,Request:!0,ResizeObserver:!1,TextDecoder:!0,"URL.createObjectURL":!0,"URL.revokeObjectURL":!0,WebAssembly:!0,XMLHttpRequest:!1,cancelAnimationFrame:!0,clearInterval:!0,clearTimeout:!0,console:!0,crypto:!1,define:!1,devicePixelRatio:!0,document:!1,"document.createElement":!0,fetch:!1,h:!1,importScripts:!1,location:!1,navigator:!1,"navigator.userAgent":!0,"performance.now":!0,prompt:!1,readline:!1,requestAnimationFrame:!0,setTimeout:!0,webkitAudioContext:!1}},"@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@segment/analytics-node":{globals:{AbortController:!0,EdgeRuntime:!1,URL:!0,WebSocketPair:!1,WorkerGlobalScope:!1,clearTimeout:!0,"console.warn":!0,fetch:!0,importScripts:!1,process:!0,setTimeout:!0},packages:{"@segment/analytics-node>@lukeed/uuid":!0,"@segment/analytics-node>@segment/analytics-core":!0,"@segment/analytics-node>@segment/analytics-generic-utils":!0,"@segment/analytics-node>jose":!0,process:!0}},"@segment/analytics-node>@segment/analytics-core":{globals:{clearTimeout:!0,console:!0,setTimeout:!0},packages:{"@segment/analytics-node>@lukeed/uuid":!0,"@segment/analytics-node>@segment/analytics-core>dset":!0,"@segment/analytics-node>@segment/analytics-generic-utils":!0,tslib:!0}},"@segment/analytics-node>@segment/analytics-generic-utils":{globals:{"console.warn":!0}},"@segment/analytics-node>jose":{globals:{CryptoKey:!0,TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0,crypto:!0}},"@sentry/browser":{globals:{Headers:!0,"PerformanceObserver.supportedEntryTypes":!0,Request:!0,URL:!0,WebAssembly:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,__SENTRY_RELEASE__:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,fetch:!0,importScripts:!0,"indexedDB.open":!0,"performance.timeOrigin":!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/browser>@sentry-internal/feedback":!0,"@sentry/browser>@sentry-internal/replay":!0,"@sentry/browser>@sentry-internal/replay-canvas":!0,"@sentry/core":!0}},"@sentry/browser>@sentry-internal/browser-utils":{globals:{FormData:!0,PerformanceEventTiming:!0,PerformanceObserver:!0,Request:!0,URL:!0,URLSearchParams:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,addEventListener:!0,clearTimeout:!0,performance:!0,setTimeout:!0},packages:{"@sentry/core":!0}},"@sentry/browser>@sentry-internal/feedback":{globals:{FormData:!0,HTMLFormElement:!0,__SENTRY_DEBUG__:!0,cancelAnimationFrame:!0,clearTimeout:!0,"document.createElement":!0,"document.createElementNS":!0,"document.createTextNode":!0,getComputedStyle:!0,isSecureContext:!0,matchMedia:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"@sentry/core":!0}},"@sentry/browser>@sentry-internal/replay":{globals:{Blob:!0,CSSConditionRule:!0,CSSGroupingRule:!0,CSSMediaRule:!0,CSSRule:!0,CSSSupportsRule:!0,Document:!0,DragEvent:!0,Element:!0,FormData:!0,HTMLElement:!0,HTMLFormElement:!0,Headers:!0,MouseEvent:!0,MutationObserver:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.prototype.contains":!0,PointerEvent:!0,Request:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,Worker:!0,"Zone.__symbol__":!0,__RRWEB_EXCLUDE_IFRAME__:!0,__RRWEB_EXCLUDE_SHADOW_DOM__:!0,__SENTRY_DEBUG__:!0,__SENTRY_EXCLUDE_REPLAY_WORKER__:!0,__rrMutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.warn":!0,"customElements.get":!0,document:!0,innerHeight:!0,innerWidth:!0,"location.href":!0,"location.origin":!0,parent:!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/core":!0}},"@sentry/browser>@sentry-internal/replay-canvas":{globals:{Blob:!0,HTMLCanvasElement:!0,HTMLImageElement:!0,ImageData:!0,"URL.createObjectURL":!0,WeakRef:!0,Worker:!0,cancelAnimationFrame:!0,"console.debug":!0,"console.error":!0,createImageBitmap:!0,document:!0,"performance.now":!0},packages:{"@sentry/core":!0}},"@sentry/core":{globals:{CustomEvent:!0,DOMError:!0,DOMException:!0,EdgeRuntime:!0,Element:!0,ErrorEvent:!0,Event:!0,HTMLElement:!0,Headers:!0,PerformanceObserver:!0,Request:!0,Response:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,__SENTRY_BROWSER_BUNDLE__:!0,__SENTRY_DEBUG__:!0,__SENTRY_TRACING__:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,crypto:!0,devicePixelRatio:!0,document:!0,location:!1,"location.href":!0,module:!0,"navigator.language":!0,"navigator.userAgent":!0,"navigator.userAgentData":!0,onerror:"write",onunhandledrejection:"write","performance.now":!0,"performance.timeOrigin":!0,process:!0,setTimeout:!0,top:!0},packages:{process:!0}},"@simplewebauthn/browser":{globals:{AbortController:!0,AbortSignal:!0,PublicKeyCredential:!0,atob:!0,btoa:!0,"console.warn":!0,"document.querySelectorAll":!0,"location.hostname":!0,"navigator.credentials.create":!0,"navigator.credentials.get":!0}},"@solana/addresses":{globals:{"Intl.Collator":!0,TextEncoder:!0,"crypto.subtle.digest":!0,"crypto.subtle.exportKey":!0},packages:{"@solana/addresses>@solana/assertions":!0,"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/codecs-strings":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-core":{packages:{"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-strings":{globals:{TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0},packages:{"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/errors":{globals:{btoa:!0}},"@storybook/addon-docs>remark-external-links>mdast-util-definitions":{packages:{"react-markdown>unist-util-visit":!0}},"@storybook/react>util-deprecate":{globals:{"console.trace":!0,"console.warn":!0,localStorage:!0}},"@tanstack/react-query":{globals:{ReactQueryClientContext:"write"},packages:{"@tanstack/react-query>@tanstack/query-core":!0,"@tanstack/react-query>use-sync-external-store":!0,react:!0}},"@tanstack/react-query>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,console:!0,document:!1,navigator:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@tanstack/react-query>use-sync-external-store":{globals:{__REACT_DEVTOOLS_GLOBAL_HOOK__:!1,document:!1,"document.createElement":!0},packages:{react:!0}},"@tanstack/react-virtual":{globals:{document:!0,scrollY:!0},packages:{"@tanstack/react-virtual>@tanstack/virtual-core":!0,react:!0,"react-dom":!0}},"@tanstack/react-virtual>@tanstack/virtual-core":{globals:{"console.info":!0,"console.warn":!0,requestAnimationFrame:!0}},"@toruslabs/eccrypto":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,crypto:!0,msCrypto:!0},packages:{"@toruslabs/eccrypto>elliptic":!0,buffer:!0}},"@toruslabs/eccrypto>elliptic":{packages:{"@toruslabs/eccrypto>elliptic>brorand":!0,"@toruslabs/eccrypto>elliptic>hmac-drbg":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"@toruslabs/eccrypto>elliptic>brorand":{globals:{crypto:!0,msCrypto:!0}},"@toruslabs/eccrypto>elliptic>hmac-drbg":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"@trezor/connect-web":{globals:{URLSearchParams:!0,__TREZOR_CONNECT_SRC:!0,addEventListener:!0,btoa:!0,chrome:!0,clearInterval:!0,clearTimeout:!0,"console.warn":!0,"document.body":!0,"document.createElement":!0,"document.createTextNode":!0,"document.getElementById":!0,"document.querySelectorAll":!0,"location.origin":!0,navigator:!0,open:!0,origin:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/connect":!0,"@trezor/connect-web>@trezor/connect-common":!0,"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/connect":{packages:{"@trezor/connect-web>@trezor/connect>@trezor/device-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf":!0,"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/transport":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect-common":{globals:{"console.warn":!0,"localStorage.getItem":!0,"localStorage.setItem":!0,navigator:!0,setTimeout:!0,window:!0},packages:{"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":{globals:{innerHeight:!0,innerWidth:!0,"location.hostname":!0,"location.origin":!0,"navigator.languages":!0,"navigator.platform":!0,"navigator.userAgent":!0,process:!0,"screen.height":!0,"screen.width":!0},packages:{"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":!0,process:!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":{globals:{define:!0,"navigator.userAgentData":!0}},"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":{globals:{WebSocket:!0,clearTimeout:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/utils":!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/connect>@trezor/device-utils":{packages:{tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf":{globals:{"Buffer.from":!0},packages:{"@google/genai>protobufjs":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long":!0,"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,buffer:!0,tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long":{globals:{"WebAssembly.Instance":!0,"WebAssembly.Module":!0,define:!0}},"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":{globals:{Buffer:!0,"console.warn":!0},packages:{"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox":!0,buffer:!0,"ts-mixer":!0}},"@trezor/connect-web>@trezor/utils":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Intl.NumberFormat":!0,TextEncoder:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.info":!0,"console.log":!0,"console.warn":!0,"crypto.getRandomValues":!0,setInterval:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/utils>bignumber.js":!0,buffer:!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/utils>bignumber.js":{globals:{crypto:!0,define:!0}},"@zxing/browser":{globals:{HTMLElement:!0,HTMLImageElement:!0,HTMLVideoElement:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library":!0}},"@zxing/library":{globals:{HTMLImageElement:!0,HTMLVideoElement:!0,TextDecoder:!0,TextEncoder:!0,"URL.createObjectURL":!0,btoa:!0,"console.log":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library>ts-custom-error":!0}},"async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"base32-encode":{packages:{"base32-encode>to-data-view":!0}},"bignumber.js":{globals:{crypto:!0,define:!0}},bowser:{globals:{define:!0}},"browserify>concat-stream>buffer-from":{globals:{Buffer:!0},packages:{buffer:!0}},"browserify>string_decoder":{packages:{"mockttp>express>safe-buffer":!0}},"browserify>url":{packages:{"browserify>url>punycode":!0,"mockttp>express>qs":!0}},"browserify>url>punycode":{globals:{define:!0}},"browserify>util":{globals:{SharedArrayBuffer:!0,"console.error":!0,"console.log":!0,"console.trace":!0,process:!0},packages:{"browserify>util>is-arguments":!0,"browserify>util>is-generator-function":!0,"browserify>util>is-typed-array":!0,"browserify>util>which-typed-array":!0,"duplexify>inherits":!0,process:!0}},"browserify>util>is-arguments":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bind":!0}},"browserify>util>is-generator-function":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0}},"browserify>util>is-typed-array":{packages:{"browserify>util>which-typed-array":!0}},"browserify>util>which-typed-array":{packages:{"browserify>util>which-typed-array>for-each":!0,"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>available-typed-arrays":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>gopd":!0}},"browserify>util>which-typed-array>for-each":{packages:{"string.prototype.matchall>es-abstract>is-callable":!0}},bs58:{packages:{"bs58>base-x":!0}},buffer:{globals:{SharedArrayBuffer:!0,console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},chalk:{packages:{"chalk>ansi-styles":!0,"chalk>supports-color":!0}},"chalk>ansi-styles":{packages:{"chalk>ansi-styles>color-convert":!0}},"chalk>ansi-styles>color-convert":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"chart.js":{globals:{"Intl.NumberFormat":!0,MutationObserver:!0,OffscreenCanvas:!0,Path2D:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,devicePixelRatio:!0,document:!0,removeEventListener:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"chart.js>@kurkle/color":!0}},cockatiel:{globals:{AbortController:!0,AbortSignal:!0,WeakRef:!0,clearTimeout:!0,performance:!0,"process.hrtime.bigint":!0,setTimeout:!0},packages:{process:!0}},"copy-to-clipboard":{globals:{clipboardData:!0,"console.error":!0,"console.warn":!0,"document.body.appendChild":!0,"document.body.removeChild":!0,"document.createElement":!0,"document.createRange":!0,"document.execCommand":!0,"document.getSelection":!0,"navigator.userAgent":!0,prompt:!0},packages:{"copy-to-clipboard>toggle-selection":!0}},"copy-to-clipboard>toggle-selection":{globals:{"document.activeElement":!0,"document.getSelection":!0}},"core-js-pure":{globals:{"Bun.version":!0,"Deno.version":!0,document:!0,setTimeout:!0}},"cron-parser":{packages:{luxon:!0}},"crypto-browserify":{packages:{"crypto-browserify>browserify-cipher":!0,"crypto-browserify>browserify-sign":!0,"crypto-browserify>create-ecdh":!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>diffie-hellman":!0,"crypto-browserify>pbkdf2":!0,"crypto-browserify>public-encrypt":!0,"crypto-browserify>randombytes":!0,"crypto-browserify>randomfill":!0,"ethereumjs-util>create-hash":!0}},"crypto-browserify>browserify-cipher":{packages:{"crypto-browserify>browserify-cipher>browserify-des":!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes":!0}},"crypto-browserify>browserify-cipher>browserify-des":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>browserify-cipher>browserify-des>des.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0}},"crypto-browserify>browserify-cipher>browserify-des>des.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"duplexify>inherits":!0}},"crypto-browserify>browserify-cipher>evp_bytestokey":{packages:{"ethereumjs-util>create-hash>md5.js":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>browserify-sign":{packages:{"@toruslabs/eccrypto>elliptic":!0,"crypto-browserify>browserify-sign>readable-stream":!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>public-encrypt>browserify-rsa":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>browserify-sign>readable-stream":{globals:{"process.browser":!0,"process.stderr":!0,"process.stdout":!0,"process.version.slice":!0,setImmediate:!0},packages:{"@storybook/react>util-deprecate":!0,"core-js-pure":!0,"crypto-browserify>browserify-sign>readable-stream>isarray":!0,"crypto-browserify>browserify-sign>readable-stream>safe-buffer":!0,"crypto-browserify>browserify-sign>readable-stream>string_decoder":!0,"duplexify>inherits":!0,process:!0,"readable-stream-2>core-util-is":!0,"readable-stream-2>process-nextick-args":!0,"webpack>events":!0}},"crypto-browserify>browserify-sign>readable-stream>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder":{packages:{"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>create-ecdh":{globals:{Buffer:!0},packages:{"@toruslabs/eccrypto>elliptic":!0,buffer:!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>create-hmac":{packages:{"@ngraveio/bc-ur>sha.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>create-hash>ripemd160":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>diffie-hellman":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>diffie-hellman>miller-rabin":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>diffie-hellman>miller-rabin":{packages:{"@toruslabs/eccrypto>elliptic>brorand":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>pbkdf2":{globals:{crypto:!0,process:!0,queueMicrotask:!0,setImmediate:!0,setTimeout:!0},packages:{"@ngraveio/bc-ur>sha.js":!0,"@ngraveio/bc-ur>sha.js>to-buffer":!0,"crypto-browserify>pbkdf2>create-hash":!0,"crypto-browserify>pbkdf2>ripemd160":!0,"mockttp>express>safe-buffer":!0,process:!0}},"crypto-browserify>pbkdf2>create-hash":{globals:{Buffer:!0},packages:{buffer:!0}},"crypto-browserify>pbkdf2>ripemd160":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>pbkdf2>ripemd160>hash-base":!0,"duplexify>inherits":!0}},"crypto-browserify>pbkdf2>ripemd160>hash-base":{globals:{Buffer:!0},packages:{buffer:!0,"duplexify>inherits":!0,"stream-browserify":!0}},"crypto-browserify>public-encrypt":{packages:{"crypto-browserify>public-encrypt>browserify-rsa":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>browserify-rsa":{packages:{"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>parse-asn1":{packages:{"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"crypto-browserify>pbkdf2":!0,"crypto-browserify>public-encrypt>parse-asn1>asn1.js":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>parse-asn1>asn1.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,buffer:!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>randombytes":{globals:{crypto:!0,msCrypto:!0,"process.nextTick":!0},packages:{"mockttp>express>safe-buffer":!0,process:!0}},"crypto-browserify>randomfill":{globals:{crypto:!0,msCrypto:!0,"process.browser":!0,"process.nextTick":!0},packages:{"crypto-browserify>randombytes":!0,"mockttp>express>safe-buffer":!0,process:!0}},"currency-formatter":{packages:{"currency-formatter>accounting":!0,"currency-formatter>locale-currency":!0,"prop-types>object-assign":!0}},"currency-formatter>accounting":{globals:{define:!0}},"currency-formatter>locale-currency":{globals:{countryCode:!0}},dompurify:{globals:{"console.warn":!0}},eciesjs:{packages:{"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"eciesjs>@ecies/ciphers":!0}},"eciesjs>@ecies/ciphers":{packages:{"@noble/ciphers":!0}},"eslint-plugin-react>array-includes>is-string":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0}},"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>gopd":!0}},"eslint-plugin-react>hasown":{packages:{"browserify>has>function-bind":!0}},"eslint>ajv":{globals:{console:!0},packages:{"eslint>ajv>json-schema-traverse":!0,"eslint>fast-deep-equal":!0,"fast-json-stable-stringify":!0,"uri-js":!0}},"eth-ens-namehash":{globals:{Buffer:!0,name:"write"},packages:{buffer:!0,"eth-ens-namehash>idna-uts46-hx":!0,"eth-ens-namehash>js-sha3":!0}},"eth-ens-namehash>idna-uts46-hx":{globals:{define:!0},packages:{"eth-ens-namehash>idna-uts46-hx>punycode":!0}},"eth-ens-namehash>js-sha3":{globals:{define:!0,process:!0},packages:{process:!0}},"eth-lattice-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,addEventListener:!0,browser:!0,clearInterval:!0,open:!0,setInterval:!0},packages:{"@ethereumjs/tx":!0,buffer:!0,"crypto-browserify":!0,"eth-lattice-keyring>@ethereumjs/util":!0,"eth-lattice-keyring>gridplus-sdk":!0,"eth-lattice-keyring>rlp":!0,"ethereumjs-util>bn.js":!0,"webpack>events":!0}},"eth-lattice-keyring>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{buffer:!0,"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"eth-lattice-keyring>@ethereumjs/util>micro-ftch":{globals:{"Buffer.concat":!0,Headers:!0,TextDecoder:!0,URL:!0,btoa:!0,fetch:!0,process:!0},packages:{"browserify>url":!0,"browserify>util":!0,buffer:!0,"https-browserify":!0,process:!0,"stream-http":!0}},"eth-lattice-keyring>gridplus-sdk":{globals:{AbortController:!0,"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,Request:!0,URL:!0,caches:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0,structuredClone:!0},packages:{"@metamask/eth-sig-util":!0,"@toruslabs/eccrypto>elliptic":!0,"bitcoin-address-validation>bech32":!0,buffer:!0,"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":!0,"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0,"eth-lattice-keyring>gridplus-sdk>bs58check":!0,"eth-lattice-keyring>gridplus-sdk>cbor":!0,"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":!0,"eth-lattice-keyring>gridplus-sdk>crc-32":!0,"eth-lattice-keyring>gridplus-sdk>ox":!0,"eth-lattice-keyring>gridplus-sdk>secp256k1":!0,"eth-lattice-keyring>gridplus-sdk>zod":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/sha2>hash.js":!0,lodash:!0,uuid:!0,viem:!0,"viem>abitype":!0}},"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>gridplus-sdk>aes-js":{globals:{define:!0}},"eth-lattice-keyring>gridplus-sdk>bignumber.js":{globals:{crypto:!0,define:!0}},"eth-lattice-keyring>gridplus-sdk>bs58check":{packages:{"@noble/hashes":!0,bs58:!0}},"eth-lattice-keyring>gridplus-sdk>cbor":{globals:{TextDecoder:!0,URL:!0},packages:{buffer:!0,"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":!0,"stream-browserify":!0}},"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":{globals:{define:!0},packages:{"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0}},"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":{globals:{TextDecoder:!0},packages:{buffer:!0,"stream-browserify":!0}},"eth-lattice-keyring>gridplus-sdk>crc-32":{globals:{DO_NOT_EXPORT_CRC:!0,define:!0}},"eth-lattice-keyring>gridplus-sdk>ox":{globals:{TextDecoder:!0,TextEncoder:!0,"crypto.getRandomValues":!0},packages:{"@noble/hashes":!0,"eth-lattice-keyring>gridplus-sdk>ox>@noble/curves":!0}},"eth-lattice-keyring>gridplus-sdk>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},"eth-lattice-keyring>gridplus-sdk>zod":{globals:{File:!0,JSONSchema:!0,URL:!0,__zod_globalRegistry:"write",atob:!0,btoa:!0,coerce:!0,core:!0,iso:!0,locales:!0,navigator:!0,regexes:!0,util:!0}},"eth-lattice-keyring>rlp":{globals:{TextEncoder:!0}},"eth-method-registry":{packages:{"eth-method-registry>@metamask/ethjs-contract":!0,"eth-method-registry>@metamask/ethjs-query":!0}},"eth-method-registry>@metamask/ethjs-contract":{packages:{"@babel/runtime":!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":{globals:{clearInterval:!0,setInterval:!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":{globals:{"Buffer.byteLength":!0,"Buffer.from":!0},packages:{buffer:!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":{globals:{Buffer:!0},packages:{buffer:!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":!0,"ethereumjs-util>bn.js":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0,"ethereumjs-util>bn.js":!0}},"eth-method-registry>@metamask/ethjs-query":{globals:{console:!0},packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":{packages:{"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":{globals:{setImmediate:!0,"setTimeout.apply":!0},packages:{"core-js-pure":!0}},"ethereum-cryptography":{globals:{TextDecoder:!0},packages:{"@noble/hashes":!0,"ethereum-cryptography>@noble/curves":!0}},"ethereumjs-util":{globals:{Buffer:!0},packages:{"@ngraveio/bc-ur>assert":!0,buffer:!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>ethereum-cryptography":!0,"ethereumjs-util>rlp":!0}},"ethereumjs-util>bn.js":{globals:{Buffer:!0}},"ethereumjs-util>create-hash":{packages:{"@ngraveio/bc-ur>sha.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>create-hash>md5.js":!0,"ethereumjs-util>create-hash>ripemd160":!0}},"ethereumjs-util>create-hash>cipher-base":{packages:{"browserify>string_decoder":!0,"duplexify>inherits":!0,"mockttp>express>safe-buffer":!0,"stream-browserify":!0}},"ethereumjs-util>create-hash>md5.js":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>md5.js>hash-base":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>md5.js>hash-base":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>create-hash>ripemd160":{packages:{buffer:!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>ripemd160>hash-base":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>ethereum-cryptography":{globals:{"Buffer.from":!0},packages:{buffer:!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes":{globals:{"Buffer.concat":!0},packages:{buffer:!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":{globals:{Buffer:!0},packages:{buffer:!0}},"ethereumjs-util>ethereum-cryptography>bs58check":{packages:{"ethereumjs-util>create-hash":!0,"ethereumjs-util>ethereum-cryptography>bs58check>bs58":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>ethereum-cryptography>bs58check>bs58":{packages:{"@ensdomains/content-hash>multihashes>multibase>base-x":!0}},"ethereumjs-util>ethereum-cryptography>keccak":{globals:{"Buffer.alloc":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":!0}},"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>ethereum-cryptography>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},"ethereumjs-util>rlp":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"ethereumjs-util>bn.js":!0}},ethers:{packages:{"@ethersproject/abi":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/contracts":!0,"@ethersproject/hdnode":!0,"@ethersproject/providers":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/solidity":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/units":!0,"ethers>@ethersproject/wallet":!0,"ethers>@ethersproject/web":!0,"ethers>@ethersproject/wordlists":!0}},"ethers>@ethersproject/abstract-provider":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/abstract-signer":{packages:{"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/address":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/rlp":!0}},"ethers>@ethersproject/base64":{globals:{atob:!0,btoa:!0},packages:{"@ethersproject/bytes":!0}},"ethers>@ethersproject/basex":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/constants":{packages:{"@ethersproject/bignumber":!0}},"ethers>@ethersproject/hash":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/json-wallets":{packages:{"@ethersproject/bytes":!0,"@ethersproject/hdnode":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/json-wallets>aes-js":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/json-wallets>aes-js":{globals:{define:!0}},"ethers>@ethersproject/json-wallets>scrypt-js":{globals:{define:!0,setImmediate:!0,setTimeout:!0},packages:{"core-js-pure":!0}},"ethers>@ethersproject/keccak256":{packages:{"@ethersproject/bytes":!0,"eth-ens-namehash>js-sha3":!0}},"ethers>@ethersproject/logger":{globals:{console:!0}},"ethers>@ethersproject/networks":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/pbkdf2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/sha2":!0}},"ethers>@ethersproject/properties":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/random":{globals:{"crypto.getRandomValues":!0},packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/rlp":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/sha2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/sha2>hash.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"duplexify>inherits":!0}},"ethers>@ethersproject/signing-key":{packages:{"@ethersproject/bytes":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/solidity":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/strings":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/units":{packages:{"@ethersproject/bignumber":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/wallet":{packages:{"@ethersproject/bytes":!0,"@ethersproject/hdnode":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/signing-key":!0}},"ethers>@ethersproject/web":{globals:{clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/wordlists":{packages:{"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"extension-port-stream":{globals:{AggregateError:!0,"navigator.userAgent.includes":!0,"performance.now":!0,queueMicrotask:!0,scheduler:!0,setTimeout:!0},packages:{"readable-stream":!0}},"fast-json-patch":{globals:{addEventListener:!0,clearTimeout:!0,removeEventListener:!0,setTimeout:!0}},"fuse.js":{globals:{console:!0,define:!0}},"gulp>vinyl-fs>object.assign":{packages:{"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-object-atoms":!0,"string.prototype.matchall>has-symbols":!0}},he:{globals:{define:!0}},"https-browserify":{packages:{"browserify>url":!0,"stream-http":!0}},"humanize-duration":{globals:{define:!0}},"jsdom>form-data>es-set-tostringtag>has-tostringtag":{packages:{"string.prototype.matchall>has-symbols":!0}},"lightweight-charts":{globals:{Image:!0,ResizeObserver:!0,URL:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,devicePixelRatio:!0,"document.activeElement":!0,"document.body":!0,"document.createElement":!0,"document.documentElement":!0,"document.getElementById":!0,"document.getSelection":!0,getComputedStyle:!0,"location.href":!0,"navigator.language":!0,"navigator.platform":!0,"navigator.userAgent.toLowerCase":!0,"navigator.userAgentData":!0,"performance.now":!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"lightweight-charts>fancy-canvas":!0}},"lightweight-charts>fancy-canvas":{globals:{ResizeObserver:!0,"document.body":!0}},localforage:{globals:{Blob:!0,BlobBuilder:!0,FileReader:!0,IDBKeyRange:!0,MSBlobBuilder:!0,MozBlobBuilder:!0,OIndexedDB:!0,WebKitBlobBuilder:!0,atob:!0,btoa:!0,"console.error":!0,"console.info":!0,"console.warn":!0,define:!0,fetch:!0,indexedDB:!0,localStorage:!0,mozIndexedDB:!0,msIndexedDB:!0,"navigator.platform":!0,"navigator.userAgent":!0,openDatabase:!0,setTimeout:!0,webkitIndexedDB:!0}},lodash:{globals:{_:!0,clearTimeout:!0,define:!0,setTimeout:!0}},loglevel:{globals:{console:!0,define:!0,"document.cookie":!0,localStorage:!0,log:"write",navigator:!0}},"lottie-web":{globals:{Blob:!0,Howl:!0,OffscreenCanvas:!0,"URL.createObjectURL":!0,Worker:!0,XMLHttpRequest:!0,bodymovin:"write",clearInterval:!0,console:!0,define:!0,"document.body":!0,"document.createElement":!0,"document.createElementNS":!0,"document.getElementsByClassName":!0,"document.getElementsByTagName":!0,"document.querySelectorAll":!0,"document.readyState":!0,"location.origin":!0,"location.pathname":!0,navigator:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0}},luxon:{globals:{Intl:!0}},"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":{globals:{module:!0}},"mockttp>express>qs":{packages:{"string.prototype.matchall>side-channel":!0}},"mockttp>express>safe-buffer":{packages:{buffer:!0}},nanoid:{globals:{"crypto.getRandomValues":!0}},"nock>debug":{globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"mocha>ms":!0,process:!0}},"openai>abort-controller":{globals:{AbortController:!0}},"path-browserify":{globals:{"process.cwd":!0},packages:{process:!0}},process:{globals:{clearTimeout:!0,setTimeout:!0}},"qrcode.react":{globals:{Path2D:!0,devicePixelRatio:!0},packages:{react:!0}},"react-chartjs-2":{globals:{setTimeout:!0},packages:{"chart.js":!0,react:!0}},"react-compiler-runtime":{globals:{"console.error":!0},packages:{react:!0}},"react-devtools-core":{globals:{CSSStyleRule:!0,ElementTypeClass:!0,ElementTypeForwardRef:!0,ElementTypeFunction:!0,ElementTypeMemo:!0,ElementTypeVirtual:!0,ErrorEvent:!0,HTMLElement:!0,LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY:!0,LOCAL_STORAGE_OPEN_IN_EDITOR_URL:!0,"Node.ELEMENT_NODE":!0,SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY:!0,SESSION_STORAGE_RECORD_TIMELINE_KEY:!0,SESSION_STORAGE_RELOAD_AND_PROFILE_KEY:!0,URL:!0,WebSocket:!0,__REACT_DEVTOOLS_COMPONENT_FILTERS__:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,__REACT_DEVTOOLS_TARGET_WINDOW__:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,console:!0,define:!0,devicePixelRatio:!0,devtoolsJestTestScheduler:!0,dispatchEvent:!0,document:!0,getComputedStyle:!0,getInObject:!0,innerHeight:!0,innerWidth:!0,"localStorage.getItem":!0,"localStorage.removeItem":!0,"localStorage.setItem":!0,localStorageGetItem:!0,localStorageSetItem:!0,"navigator.userAgent":!0,performance:!0,queueMicrotask:!0,"regeneratorRuntime.mark":!0,"regeneratorRuntime.wrap":!0,reportError:!0,requestAnimationFrame:!0,"sessionStorage.getItem":!0,"sessionStorage.removeItem":!0,"sessionStorage.setItem":!0,sessionStorageGetItem:!0,sessionStorageRemoveItem:!0,sessionStorageSetItem:!0,setInObject:!0,setTimeout:!0}},"react-dom":{globals:{HTMLIFrameElement:!0,MSApp:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,addEventListener:!0,clearTimeout:!0,clipboardData:!0,"console.error":!0,document:!0,event:!1,queueMicrotask:!0,removeEventListener:!0,reportError:!0,setTimeout:!0},packages:{react:!0,"react-dom>scheduler":!0}},"react-dom>scheduler":{globals:{MessageChannel:!0,SharedArrayBuffer:!0,clearTimeout:!0,"console.error":!0,navigator:!0,performance:!0,setImmediate:!0,setTimeout:!0},packages:{"core-js-pure":!0}},"react-focus-lock":{globals:{addEventListener:!0,"console.error":!0,"console.warn":!0,document:!0,removeEventListener:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"prop-types":!0,react:!0,"react-focus-lock>focus-lock":!0,"react-focus-lock>react-clientside-effect":!0,"react-focus-lock>use-callback-ref":!0,"react-focus-lock>use-sidecar":!0}},"react-focus-lock>focus-lock":{globals:{HTMLIFrameElement:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.DOCUMENT_NODE":!0,"Node.DOCUMENT_POSITION_CONTAINED_BY":!0,"Node.DOCUMENT_POSITION_CONTAINS":!0,"Node.ELEMENT_NODE":!0,"console.error":!0,"console.warn":!0,document:!0,getComputedStyle:!0,setTimeout:!0}},"react-focus-lock>react-clientside-effect":{packages:{"@babel/runtime":!0,react:!0}},"react-focus-lock>use-callback-ref":{packages:{react:!0}},"react-focus-lock>use-sidecar":{packages:{tslib:!0}},"react-hot-toast":{globals:{MutationObserver:!0,clearTimeout:!0,matchMedia:!0,setTimeout:!0},packages:{react:!0,"react-hot-toast>goober":!0}},"react-hot-toast>goober":{globals:{__nonce__:!0,_goober:!0,"document.createElement":!0,"document.head":!0}},"react-idle-timer":{globals:{clearTimeout:!0,document:!0,setTimeout:!0},packages:{"prop-types":!0,react:!0}},"react-markdown":{globals:{"console.warn":!0},packages:{"prop-types":!0,react:!0,"react-markdown>comma-separated-tokens":!0,"react-markdown>property-information":!0,"react-markdown>react-is":!0,"react-markdown>remark-parse":!0,"react-markdown>remark-rehype":!0,"react-markdown>space-separated-tokens":!0,"react-markdown>style-to-object":!0,"react-markdown>unified":!0,"react-markdown>unist-util-visit":!0,"react-markdown>vfile":!0}},"react-markdown>property-information":{packages:{"browserify>xtend":!0}},"react-markdown>remark-parse":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown":!0}},"react-markdown>remark-parse>mdast-util-from-markdown":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string":!0,"react-markdown>remark-parse>mdast-util-from-markdown>micromark":!0,"react-markdown>vfile>unist-util-stringify-position":!0,"react-syntax-highlighter>refractor>parse-entities":!0}},"react-markdown>remark-parse>mdast-util-from-markdown>micromark":{packages:{"react-syntax-highlighter>refractor>parse-entities":!0}},"react-markdown>remark-rehype":{packages:{"react-markdown>remark-rehype>mdast-util-to-hast":!0}},"react-markdown>remark-rehype>mdast-util-to-hast":{globals:{"console.warn":!0},packages:{"@storybook/addon-docs>remark-external-links>mdast-util-definitions":!0,"react-markdown>remark-rehype>mdast-util-to-hast>mdurl":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-builder":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position":!0,"react-markdown>unist-util-visit":!0}},"react-markdown>style-to-object":{packages:{"react-markdown>style-to-object>inline-style-parser":!0}},"react-markdown>unified":{packages:{"mocha>yargs-unparser>is-plain-obj":!0,"react-markdown>unified>bail":!0,"react-markdown>unified>extend":!0,"react-markdown>unified>is-buffer":!0,"react-markdown>unified>trough":!0,"react-markdown>vfile":!0}},"react-markdown>unist-util-visit":{packages:{"react-markdown>unist-util-visit>unist-util-visit-parents":!0}},"react-markdown>unist-util-visit>unist-util-visit-parents":{packages:{"react-markdown>unist-util-visit>unist-util-is":!0}},"react-markdown>vfile":{globals:{"process.cwd":!0},packages:{"path-browserify":!0,process:!0,"react-markdown>vfile>is-buffer":!0,"react-markdown>vfile>replace-ext":!0,"react-markdown>vfile>vfile-message":!0}},"react-markdown>vfile>replace-ext":{packages:{"path-browserify":!0}},"react-markdown>vfile>vfile-message":{packages:{"react-markdown>vfile>unist-util-stringify-position":!0}},"react-popper":{globals:{document:!0},packages:{"@popperjs/core":!0,react:!0,"react-popper>react-fast-compare":!0}},"react-popper>react-fast-compare":{globals:{Element:!0,"console.warn":!0}},"react-redux":{globals:{document:!0},packages:{"@babel/runtime":!0,"prop-types":!0,react:!0,"react-dom":!0,"react-redux>hoist-non-react-statics":!0,"react-redux>react-is":!0}},"react-redux>hoist-non-react-statics":{packages:{"react-redux>hoist-non-react-statics>react-is":!0}},"react-router-dom":{globals:{FormData:!0,URL:!0,URLSearchParams:!0,__reactRouterVersion:"write",addEventListener:!0,confirm:!0,document:!0,history:!0,"location.href":!0,removeEventListener:!0,scrollTo:!0,scrollY:!0,"sessionStorage.getItem":!0,"sessionStorage.setItem":!0,setTimeout:!0},packages:{react:!0,"react-dom":!0,"react-router-dom>@remix-run/router":!0,"react-router-dom>react-router":!0}},"react-router-dom>@remix-run/router":{globals:{AbortController:!0,DOMException:!0,FormData:!0,Headers:!0,Request:!0,Response:!0,URL:!0,URLSearchParams:!0,console:!0,"document.defaultView":!0,history:!0}},"react-router-dom>react-router":{globals:{"console.error":!0,"console.warn":!0},packages:{react:!0,"react-router-dom>@remix-run/router":!0}},"react-simple-file-input":{globals:{File:!0,FileReader:!0,"console.warn":!0},packages:{"prop-types":!0,react:!0}},"react-syntax-highlighter>refractor>parse-entities":{globals:{"document.createElement":!0}},"react-tippy":{globals:{Element:!0,MSStream:!0,MutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,define:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.maxTouchPoints":!0,"navigator.msMaxTouchPoints":!0,"navigator.userAgent":!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{react:!0,"react-dom":!0,"react-tippy>popper.js":!0}},"react-tippy>popper.js":{globals:{MSInputMethodContext:!0,"Node.DOCUMENT_POSITION_FOLLOWING":!0,cancelAnimationFrame:!0,"console.warn":!0,devicePixelRatio:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.userAgent":!0,requestAnimationFrame:!0,setTimeout:!0}},"react-toggle-button":{globals:{cancelAnimationFrame:!0,clearTimeout:!0,"console.warn":!0,define:!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{react:!0}},"react-transition-group":{globals:{Element:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"prop-types":!0,react:!0,"react-dom":!0,"react-transition-group>dom-helpers":!0}},"readable-stream":{globals:{AbortController:!0,AbortSignal:!0,AggregateError:!0,Blob:!0,queueMicrotask:!0},packages:{"browserify>string_decoder":!0,buffer:!0,"openai>abort-controller":!0,process:!0,"webpack>events":!0}},"readable-stream-2>core-util-is":{globals:{"Buffer.isBuffer":!0},packages:{buffer:!0}},"readable-stream-2>process-nextick-args":{globals:{process:!0},packages:{process:!0}},redux:{globals:{console:!0},packages:{"@babel/runtime":!0}},"remote-redux-devtools":{globals:{"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0},packages:{"remote-redux-devtools>jsan":!0,"remote-redux-devtools>redux-devtools-core":!0,"remote-redux-devtools>redux-devtools-instrument":!0,"remote-redux-devtools>rn-host-detect":!0,"remote-redux-devtools>socketcluster-client":!0}},"remote-redux-devtools>jsan":{globals:{"console.warn":!0}},"remote-redux-devtools>redux-devtools-core":{globals:{ErrorUtils:!0,console:!0,devToolsOptions:!0,onerror:"write",serializeState:!0},packages:{lodash:!0,"remote-redux-devtools>jsan":!0,"remote-redux-devtools>redux-devtools-core>get-params":!0,"remote-redux-devtools>redux-devtools-core>nanoid":!0,"remote-redux-devtools>redux-devtools-core>remotedev-serialize":!0}},"remote-redux-devtools>redux-devtools-core>get-params":{globals:{GetParams:"write"}},"remote-redux-devtools>redux-devtools-instrument":{globals:{chrome:!0,"console.error":!0,process:!0,setTimeout:!0},packages:{lodash:!0,"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":!0,process:!0}},"remote-redux-devtools>rn-host-detect":{globals:{__DEV__:!0,__fbBatchedBridgeConfig:!0,console:!0}},"remote-redux-devtools>socketcluster-client":{globals:{WebSocket:!0,WorkerGlobalScope:!0,addEventListener:!0,clearTimeout:!0,localStorage:!0,location:!0,removeEventListener:!0,setTimeout:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0,"remote-redux-devtools>socketcluster-client>clone":!0,"remote-redux-devtools>socketcluster-client>component-emitter":!0,"remote-redux-devtools>socketcluster-client>linked-list":!0,"remote-redux-devtools>socketcluster-client>querystring":!0,"remote-redux-devtools>socketcluster-client>sc-channel":!0,"remote-redux-devtools>socketcluster-client>sc-errors":!0,"remote-redux-devtools>socketcluster-client>sc-formatter":!0,"remote-redux-devtools>socketcluster-client>uuid":!0}},"remote-redux-devtools>socketcluster-client>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"remote-redux-devtools>socketcluster-client>clone":{globals:{Buffer:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0}},"remote-redux-devtools>socketcluster-client>sc-channel":{packages:{"remote-redux-devtools>socketcluster-client>component-emitter":!0}},"remote-redux-devtools>socketcluster-client>sc-formatter":{globals:{Buffer:!0}},"remote-redux-devtools>socketcluster-client>uuid":{globals:{crypto:!0,msCrypto:!0}},reselect:{globals:{WeakRef:!0,"console.warn":!0}},semver:{globals:{"console.error":!0,process:!0},packages:{process:!0}},"stream-browserify":{packages:{"duplexify>inherits":!0,"stream-browserify>readable-stream":!0,"webpack>events":!0}},"stream-browserify>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"stream-http":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.from":!0,MSStreamReader:!0,ReadableStream:!0,WritableStream:!0,XDomainRequest:!0,XMLHttpRequest:!0,clearTimeout:!0,fetch:!0,"location.protocol.search":!0,"process.nextTick":!0,setTimeout:!0},packages:{"browserify>url":!0,"browserify>xtend":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"stream-http>builtin-status-codes":!0,"stream-http>readable-stream":!0}},"stream-http>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"string.prototype.matchall>call-bind":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>call-bind>set-function-length":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>call-bind>call-bind-apply-helpers":{packages:{"browserify>has>function-bind":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>call-bind>set-function-length":{packages:{"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>call-bound":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>define-properties":{packages:{"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0}},"string.prototype.matchall>define-properties>define-data-property":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>es-abstract>array-buffer-byte-length":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0}},"string.prototype.matchall>es-abstract>available-typed-arrays":{packages:{"string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names":!0}},"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0,"string.prototype.matchall>has-symbols":!0}},"string.prototype.matchall>es-abstract>get-proto":{packages:{"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":!0,"string.prototype.matchall>es-object-atoms":!0}},"string.prototype.matchall>es-abstract>is-array-buffer":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>es-abstract>is-callable":{globals:{document:!0}},"string.prototype.matchall>es-abstract>is-regex":{packages:{"eslint-plugin-react>hasown":!0,"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>es-abstract>is-shared-array-buffer":{packages:{"string.prototype.matchall>call-bound":!0}},"string.prototype.matchall>es-abstract>object-inspect":{globals:{HTMLElement:!0,WeakRef:!0}},"string.prototype.matchall>es-abstract>safe-regex-test":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>is-regex":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>es-abstract>stop-iteration-iterator":{globals:{StopIteration:!0},packages:{"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>internal-slot":!0}},"string.prototype.matchall>es-abstract>typed-array-buffer":{packages:{"browserify>util>is-typed-array":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>get-intrinsic":{globals:{AggregateError:!0,Atomics:!0,FinalizationRegistry:!0,Float16Array:!0,SharedArrayBuffer:!0,WeakRef:!0},packages:{"browserify>has>function-bind":!0,"eslint-plugin-react>array-includes>math-intrinsics":!0,"eslint-plugin-react>hasown":!0,"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-object-atoms":!0,"string.prototype.matchall>get-intrinsic>async-function":!0,"string.prototype.matchall>get-intrinsic>async-generator-function":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>has-symbols":!0}},"string.prototype.matchall>internal-slot":{packages:{"eslint-plugin-react>hasown":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>side-channel":!0}},"string.prototype.matchall>regexp.prototype.flags":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>set-function-name":!0}},"string.prototype.matchall>set-function-name":{packages:{"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>set-function-name>functions-have-names":!0}},"string.prototype.matchall>side-channel":{packages:{"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>side-channel>side-channel-list":!0,"string.prototype.matchall>side-channel>side-channel-map":!0,"string.prototype.matchall>side-channel>side-channel-weakmap":!0}},"string.prototype.matchall>side-channel>side-channel-list":{packages:{"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>side-channel>side-channel-map":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>side-channel>side-channel-weakmap":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>side-channel>side-channel-map":!0}},tslib:{globals:{SuppressedError:!0}},tweetnacl:{globals:{crypto:!0,msCrypto:!0,nacl:"write"}},"uri-js":{globals:{define:!0}},uuid:{globals:{crypto:!0,msCrypto:!0}},viem:{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@noble/hashes":!0}},"wait-on>axios":{globals:{AbortController:!0,Blob:!0,Buffer:!0,FormData:!0,ReadableStream:!0,Request:!0,Response:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,WorkerGlobalScope:!0,XMLHttpRequest:!0,btoa:!0,clearTimeout:!0,"console.warn":!0,document:!0,fetch:!0,importScripts:!1,"location.href":!0,navigator:!0,postMessage:!0,process:!0,queueMicrotask:!0,setImmediate:!0,setTimeout:!0},packages:{buffer:!0,"core-js-pure":!0,process:!0}},"wait-on>rxjs":{globals:{clearTimeout:!0,"setTimeout.apply":!0},packages:{tslib:!0}},"web-vitals":{globals:{"PerformanceEventTiming.prototype":!0,PerformanceObserver:!0,addEventListener:!0,"document.addEventListener":!0,"document.prerendering":!0,"document.readyState":!0,"document.visibilityState":!0,"document.wasDiscarded":!0,performance:!0,removeEventListener:!0,requestAnimationFrame:!0,requestIdleCallback:!0,setTimeout:!0}},"webextension-polyfill":{globals:{browser:!0,chrome:!0,"console.error":!0,"console.warn":!0,define:!0}},"webpack>events":{globals:{console:!0}}}},e.ENUM={NAME_globalThis:"G",NAME_scopeTerminator:"ST",NAME_runtimeHandler:"RH",RUNTIME_KEY:"_LM_"},(()=>{let t={exports:{}};function r({createFunctionWrapper:e=l,handleGlobalWrite:t=!1,knownWritableFields:c=new Set}={}){return{getEndowmentsForConfig:u,copyWrappedGlobals:b,getBuiltinForConfig:f,createFunctionWrapper:e,attenuateBuiltin:d,makeMinimalViewOfRef:h,copyValueAtPath:m,applyGetSetPropDescTransforms:g,applyEndowmentPropDescTransforms:p};function u(e,r,n,s){if(!r.globals)return{};let i=[],a=new Set,o=[];return Object.entries(r.globals).forEach(([e,r])=>{let n=e.split(".");if(n.some(e=>"__proto__"===e))throw Error(`Lavamoat - "__proto__" disallowed when creating minimal view. saw "${e}"`);if(!1===r)return void o.push(e);if("write"===r){if(!t)return;if(n.length>1)throw Error(`LavaMoat - write access is only allowed at the top level, saw "${e}"`);a.add(e),i.push(e);return}if(!0!==r)throw Error(`LavaMoat - unrecognizable policy value (${typeof r}) for path "${e}"`);i.push(e)}),i.sort((e,t)=>e.length-t.length),h(e,i,n,s,o,a)}function h(e,t,r,n,s=[],i=new Set){let l={};return t.forEach(t=>{let u=t.split(".");c.has(u[0])?i.has(u[0])?a(u[0],e,l):o(u,e,l):m("",u,s,e,l,r,n)}),l}function d(e,t,r=[]){return h(e,t.sort(),void 0,void 0,r)}function f(e,t,r){let n=[],s=[];return Object.entries(r).forEach(([e,r])=>{let i=e.split(".");if(t===i[0]){let e=i.slice(1).join(".");!0===r?n.push(e):!1===r&&s.push(e)}}),d(e,n,s)}function m(t,r,n,a,o,l=a,c=o){if(0===r.length)throw Error("unable to copy, must have pathParts, was empty");let[u,...h]=r,d=s(t,u),{prop:f}=v(a,u);if(i(f))return;let p=Reflect.getOwnPropertyDescriptor(o,u);if(p){if(!("value"in p))throw Error(`unable to copy on to targetRef, targetRef has a getter at "${d}"`);let e=typeof p.value;if("object"!==e&&"function"!==e)throw Error(`unable to copy on to targetRef, targetRef value is not an obj or func at "${d}"`)}if(h.length>0){let e,{sourceValue:t,sourceWritable:r}=k(f);if(p&&!n.includes(d))e=p.value;else{let t={};Reflect.defineProperty(o,u,{value:t,writable:r,enumerable:f.enumerable,configurable:f.configurable}),e=t}m(d,h,n,t,e);return}if(n.includes(d))return void console.warn(`LavaMoat - conflicting rules exist for "${d}"`);if(!("value"in f))return void Reflect.defineProperty(o,u,g(f,c,l));let{sourceValue:y,sourceWritable:b}=k(f);if("function"!=typeof y)return void Reflect.defineProperty(o,u,f);function k(e){let t,r;if("value"in e)t=e.value,r=e.writable;else if("get"in e&&e.get)t=e.get.call(l),r="set"in e;else throw Error("getEndowmentsForConfig - property descriptor missing a getter");return{sourceValue:t,sourceWritable:r}}Reflect.defineProperty(o,u,{value:e(y,e=>e===c,l),writable:b,enumerable:f.enumerable,configurable:f.configurable})}function p(e,t,r){let n=e;return g(n=y(n,t,r),t,r)}function g(t,r,n){let s={...t};return t.get&&(s.get=function(){let s=Reflect.apply(t.get,this===r?n:this,[]);return"function"==typeof s?e(s,e=>e===r,n):s}),t.set&&(s.set=function(e){let s=this===r?n:this;return Reflect.apply(t.set,s,[e])}),s}function y(t,r,n){if(!("value"in t&&"function"==typeof t.value))return t;let s=e(t.value,e=>e===r,n);return{...t,value:s}}function v(e,t){let r=e;for(;;){if(!r)return{prop:null,receiver:null};let e=typeof r;if("object"===e||"function"===e){let e=Reflect.getOwnPropertyDescriptor(r,t);if(e)return{receiver:r,prop:e};r=Reflect.getPrototypeOf(r)}else r=r.__proto__}}function b(e,t,r=["globalThis"]){let s=n(e),i=s.findIndex(e=>e===Object.prototype),a=-1===i;a&&(i=s.length);let o=s.slice(0,i);o.forEach(t=>{Object.values(Object.getOwnPropertyDescriptors(t)).forEach(t=>{if("get"in t&&t.get)try{Reflect.apply(t.get,e,[])}catch{}})});let l=o.map((e,t)=>{let r=Object.getOwnPropertyDescriptors(e);return a&&t===o.length-1?Object.fromEntries(Object.entries(r).filter(([e])=>!(e in Object.prototype))):r});for(let n of(Object.entries(Object.assign(Object.create(null),...l.reverse())).filter(([e])=>!(e in t)).filter(([e])=>!r.includes(e)).forEach(([r,n])=>{let s=p(n,t,e);Reflect.defineProperty(t,r,s)}),r))n in t||(t[n]=t);return t}}function n(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}function s(e,t){return e&&0!==e.length?`${e}.${t}`:t}function i(e){return!e}function a(e,t,r){let n=Reflect.getOwnPropertyDescriptor(t,e)?.enumerable;Reflect.defineProperty(r,e,{configurable:!1,enumerable:n,set(r){t[e]=r},get:()=>t[e]})}function o(e,t,r){let n=Reflect.getOwnPropertyDescriptor(t,e[0])?.enumerable,i=r,a="";for(let t=0;t<e.length-1;t++){a=s(a,e[t]);let r=e[t];if(Reflect.getOwnPropertyDescriptor(i,r)?.get)throw Error(`LavaMoat - "${e[0]}" is writeable elsewhere and both "${a}" and "${e.join(".")}" are allowed for one package. One of these entries is redundant.`);"object"!=typeof i[r]&&(i[r]={}),i=i[r]}Reflect.defineProperty(i,e[e.length-1],{get:()=>{let r=t[e[0]],n=t;for(let t=1;t<e.length;t++)n=r,r=r[e[t]];return"function"==typeof r&&(r=r.bind(n)),r},writeable:!1,enumerable:n,configurable:!1})}function l(e,t,r){let n=function(){return new.target?Reflect.construct(e,arguments,new.target):Reflect.apply(e,t(this)?r:this,arguments)};return Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Reflect.getPrototypeOf(n)!==Reflect.getPrototypeOf(e)&&Object.setPrototypeOf(n,Reflect.getPrototypeOf(e)),n}t.exports,t.exports=r,t.exports.defaultCreateFunctionWrapper=l,t.exports._test={instrumentDynamicValueAtPath:o},e.endowmentsToolkit=t.exports})(),(()=>{let t={exports:{}},r=t.exports;"event"in globalThis&&(globalThis.event=void 0);let{getOwnPropertyNames:n}=Object;function s(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}!function(e){if("window"in e&&"object"==typeof e.window&&e!==e.window){let t=e.window,r=s(t),i=s(e);r.pop();let a=r.flatMap(e=>n(e)),o=new Set(i.flatMap(e=>n(e)));for(let r of a)if(!o.has(r)&&r in globalThis&&void 0!==t[r])try{e[r]=e[r]}catch{}}}(globalThis);let{defineProperty:i}=Object,{call:a}=Function.prototype,o=new WeakMap,l=globalThis,c=MessageEvent.prototype,u=new Compartment().globalThis,h=Object.getOwnPropertyDescriptor(c,"source");if(h&&h.get){let e=a.bind(h.get);i(c,"source",{...h,get(){let t=e(this);return t===l||t===l.window?o.get(this)||u:t}})}r.MessageEvent=(e,t,r)=>{let n=e.MessageEvent;n&&(e.MessageEvent=function(e,t){let s=new n(e,t);return o.set(s,r),s},e.MessageEvent.prototype=n.prototype)},r.addEventListener=(e,t,r)=>{let n=e.addEventListener;n&&(e.addEventListener=(e,s,i)=>"message"===e?n.call(t,e,e=>(o.set(e,r),s.call(r,e)),i):n.call(r,e,s,i))},e.repairs=t.exports})(),(()=>{let t,r={exports:{}};r.exports;let{repairIntrinsics:n}=globalThis,s="object"==typeof console?console.warn:()=>{},i=void 0!==n;i?(n(e.options.lockdown),LOCKDOWN_SHIMS.forEach(e=>{e()}),hardenIntrinsics()):s("LavaMoatPlugin: runtime execution started without SES present, switching to no-op.");let{keys:a,create:o,freeze:l,assign:c,defineProperty:u,defineProperties:h,getOwnPropertyDescriptors:d,fromEntries:f,entries:m,values:p}=Object,{Proxy:g,Math:y,Date:v}=globalThis,{harden:b}=globalThis,k=new Set;p(e.policy.resources).forEach(e=>{e.globals&&"object"==typeof e.globals&&m(e.globals).forEach(([e,t])=>{"write"===t&&k.add(e)})});let{getEndowmentsForConfig:_,copyWrappedGlobals:w,getBuiltinForConfig:S}=e.endowmentsToolkit({handleGlobalWrite:!0,knownWritableFields:k}),{NAME_globalThis:T,NAME_scopeTerminator:x,NAME_runtimeHandler:E}=e.ENUM,j=l(new g(l(o(null)),l({has:l(()=>!0)}))),A=globalThis,C=["window","self","global","globalThis","frames"],M=a(e.repairs||{}),I=new Map,R=t=>{let r=e.idmap.find(([,e])=>e.includes(t));if(r)return r[0]};e.defaultExport=l((r,n)=>{if(!i)return o(null);if(!I.has(r)){let n=new Compartment({Math:y,Date:v});((r,n)=>{if(r===e.root)w(A,t=n,C),e?.scuttling?.scuttle(A,e.options?.scuttleGlobalThis);else{let s=e.policy.resources[r]||{},i=_(t,s,globalThis,n);M.length>0&&s.globals&&a(s.globals).length>0&&M.forEach(t=>{if(i[t]){let r=e.repairs[t];r&&r(i,A,n)}}),h(n,{...d(i),...f(C.map(e=>[e,{value:n}]))}),e.debug&&e.debug.debugProxy(n,t,r)}})(r,n.globalThis),I.set(r,n)}let m=o(null),{__webpack_require__:p}=n,{module:k}=n;if(p){let t=function(t,...n){"number"!=typeof t&&(t=`${t}`);let s=p.bind(this,t,...n);var i=t;if(void 0===i)throw Error("Requested specifier is undefined");if(e.unenforceable.includes(i)||r===e.root)return s();let o=e.policy.resources[r]||{};if(e.externals[i]){let t=e.externals[i];if(o.builtin){if(o.builtin[t])return s();if(t&&!t.includes(".")&&a(o.builtin).some(e=>e.startsWith(`${t}.`)))return S(s(),t,o.builtin)}if(o.packages){let e=R(t);if(e&&o.packages[e])return s()}}let l=R(i);if(!l){if(e.ctxm.includes(i))throw Error(`'${r}' is trying to load a module dynamically from a dependency it has not been allowed using the following Webpack Context Module: '${i}'`);throw Error(`Requested specifier '${i}' is not allowed as a builtin and is not a known dependency of '${r}'; regenerate policy or add it to policy-override.json.`)}if(l===r||o.packages?.[l])return s();throw Error(`Policy does not allow importing ${l} from ${r}`)};for(let n of(t.e=t=>{if(!e.kch.includes(t))throw Error(`Attempt to load a chunk that was not known at compile time: ${t} from ${r}`);return p.e(t)},["O","n","d","o","r","s","t","b","j"]))t[n]=b(p[n]);t.m=new g({},{has:(e,t)=>(s(`A module attempted to read ${String(t)} directly from webpack's module cache`),!1)}),t.g=I.get(r).globalThis,t.nmd=e=>e===k?p.nmd(k):e,t.hmd=e=>e===k?p.hmd(k):e,m.__webpack_require__=t}let O=c(o(null),n,m);u(O,"module",{get:()=>k,set:()=>{}});let L=O.exports;return u(O,"exports",{get:()=>L,set:e=>{L=e}}),l(O),l(c(o(null),{[x]:j,[E]:O,[T]:I.get(r).globalThis}))}),e.runtime=r.exports})(),__webpack_require__._LM_=e.defaultExport,"undefined"!=typeof harden&&harden(__webpack_require__._LM_)})(),(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__(858572);var e=__webpack_require__(721127);var t=__webpack_require__(780094);let{chrome:r}=globalThis;function n(){let e=new Date().toISOString();r.storage.session.set({timestamp:e})}n(),setInterval(n,2*1e3);let s=new t.u(r,{runtime:["onInstalled","onConnect"]});globalThis.stateHooks.lazyListener=s;let i=!1;async function a(){if(i)return;i=!0;let e=performance.now();await Promise.all([__webpack_require__.e(5819),__webpack_require__.e(983),__webpack_require__.e(937),__webpack_require__.e(6404),__webpack_require__.e(322),__webpack_require__.e(8069),__webpack_require__.e(3808),__webpack_require__.e(9256),__webpack_require__.e(5417),__webpack_require__.e(900),__webpack_require__.e(3211),__webpack_require__.e(4966),__webpack_require__.e(9828),__webpack_require__.e(8942),__webpack_require__.e(4389),__webpack_require__.e(7193),__webpack_require__.e(7416),__webpack_require__.e(4810),__webpack_require__.e(8326),__webpack_require__.e(5985),__webpack_require__.e(5203),__webpack_require__.e(9504),__webpack_require__.e(283),__webpack_require__.e(6142),__webpack_require__.e(3509),__webpack_require__.e(9510),__webpack_require__.e(3366),__webpack_require__.e(2051)]).then(__webpack_require__.bind(__webpack_require__,543366));let t=performance.now();console.log(`importScripts completed in ${(t-e)/1e3} seconds`)}self.addEventListener("install",a),r.runtime.onConnect.addListener(t=>{console.log("MetaMask service worker: Received connection from port",t.name);try{t.postMessage({data:{method:e.pr},name:"app-init-liveness"})}catch(e){console.error("MetaMask - app-init-liveness check: Failed to message to port",e)}}),self.serviceWorker.state==="activated"&&a()}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()})();