// Compiles a dart2wasm-generated main module from `source` which can then
// instantiatable via the `instantiate` method.
//
// `source` needs to be a `Response` object (or promise thereof) e.g. created
// via the `fetch()` JS API.
export async function compileStreaming(source) {
  const builtins = {builtins: ['js-string']};
  return new CompiledApp(
      await WebAssembly.compileStreaming(source, builtins), builtins);
}

// Compiles a dart2wasm-generated wasm modules from `bytes` which is then
// instantiatable via the `instantiate` method.
export async function compile(bytes) {
  const builtins = {builtins: ['js-string']};
  return new CompiledApp(await WebAssembly.compile(bytes, builtins), builtins);
}

// DEPRECATED: Please use `compile` or `compileStreaming` to get a compiled app,
// use `instantiate` method to get an instantiated app and then call
// `invokeMain` to invoke the main function.
export async function instantiate(modulePromise, importObjectPromise) {
  var moduleOrCompiledApp = await modulePromise;
  if (!(moduleOrCompiledApp instanceof CompiledApp)) {
    moduleOrCompiledApp = new CompiledApp(moduleOrCompiledApp);
  }
  const instantiatedApp = await moduleOrCompiledApp.instantiate(await importObjectPromise);
  return instantiatedApp.instantiatedModule;
}

// DEPRECATED: Please use `compile` or `compileStreaming` to get a compiled app,
// use `instantiate` method to get an instantiated app and then call
// `invokeMain` to invoke the main function.
export const invoke = (moduleInstance, ...args) => {
  moduleInstance.exports.$invokeMain(args);
}

class CompiledApp {
  constructor(module, builtins) {
    this.module = module;
    this.builtins = builtins;
  }

  // The second argument is an options object containing:
  // `loadDeferredModules` is a JS function that takes an array of module names
  //   matching wasm files produced by the dart2wasm compiler. It also takes a
  //   callback that should be invoked for each loaded module with 2 arugments:
  //   (1) the module name, (2) the loaded module in a format supported by
  //   `WebAssembly.compile` or `WebAssembly.compileStreaming`. The callback
  //   returns a Promise that resolves when the module is instantiated.
  //   loadDeferredModules should return a Promise that resolves when all the
  //   modules have been loaded and the callback promises have resolved.
  // `loadDeferredId` is a JS function that takes load ID produced by the
  //   compiler when the `load-ids` option is passed. Each load ID maps to one
  //   or more wasm files as specified in the emitted JSON file. It also takes a
  //   callback that should be invoked for each loaded module with 2 arugments:
  //   (1) the module name, (2) the loaded module in a format supported by
  //   `WebAssembly.compile` or `WebAssembly.compileStreaming`. The callback
  //   returns a Promise that resolves when the module is instantiated.
  //   loadDeferredModules should return a Promise that resolves when all the
  //   modules have been loaded and the callback promises have resolved.
  // `loadDynamicModule` is a JS function that takes two string names matching,
  //   in order, a wasm file produced by the dart2wasm compiler during dynamic
  //   module compilation and a corresponding js file produced by the same
  //   compilation. It also takes a callback that should be invoked with the
  //   loaded module in a format supported by `WebAssembly.compile` or
  //   `WebAssembly.compileStreaming` and the result of using the JS 'import'
  //   API on the js file path. It should return a Promise that resolves when
  //   all the modules have been loaded and the callback promises have resolved.
  async instantiate(additionalImports,
      {loadDeferredModules, loadDynamicModule, loadDeferredId} = {}) {
    let dartInstance;

    // Prints to the console
    function printToConsole(value) {
      if (typeof dartPrint == "function") {
        dartPrint(value);
        return;
      }
      if (typeof console == "object" && typeof console.log != "undefined") {
        console.log(value);
        return;
      }
      if (typeof print == "function") {
        print(value);
        return;
      }

      throw "Unable to print message: " + value;
    }

    // A special symbol attached to functions that wrap Dart functions.
    const jsWrappedDartFunctionSymbol = Symbol("JSWrappedDartFunction");

    function finalizeWrapper(dartFunction, wrapped) {
      wrapped.dartFunction = dartFunction;
      wrapped[jsWrappedDartFunctionSymbol] = true;
      return wrapped;
    }

    // Imports
    const dart2wasm = {
            _1: (decoder, codeUnits) => decoder.decode(codeUnits),
      _2: () => new TextDecoder("utf-8", {fatal: true}),
      _3: () => new TextDecoder("utf-8", {fatal: false}),
      _4: (s) => +s,
      _5: x0 => new Uint8Array(x0),
      _6: (x0,x1,x2) => x0.set(x1,x2),
      _7: (x0,x1) => x0.transferFromImageBitmap(x1),
      _8: x0 => x0.arrayBuffer(),
      _9: (x0,x1,x2) => x0.slice(x1,x2),
      _10: (x0,x1) => x0.decode(x1),
      _11: (x0,x1) => x0.segment(x1),
      _12: () => new TextDecoder(),
      _13: (x0,x1) => x0.get(x1),
      _14: x0 => x0.buffer,
      _15: x0 => x0.wasmMemory,
      _16: () => globalThis.window._flutter_skwasmInstance,
      _17: x0 => x0.rasterStartMilliseconds,
      _18: x0 => x0.rasterEndMilliseconds,
      _19: x0 => x0.imageBitmaps,
      _135: (x0,x1) => x0.appendChild(x1),
      _166: (x0,x1,x2) => x0.addEventListener(x1,x2),
      _167: (x0,x1,x2) => x0.removeEventListener(x1,x2),
      _168: (x0,x1) => new OffscreenCanvas(x0,x1),
      _169: x0 => x0.remove(),
      _170: (x0,x1) => x0.append(x1),
      _172: x0 => x0.unlock(),
      _173: x0 => x0.getReader(),
      _174: (x0,x1) => x0.item(x1),
      _175: x0 => x0.next(),
      _176: x0 => x0.now(),
      _177: (x0,x1) => x0.revokeObjectURL(x1),
      _178: x0 => x0.close(),
      _179: (x0,x1,x2,x3,x4) => ({type: x0,data: x1,premultiplyAlpha: x2,colorSpaceConversion: x3,preferAnimation: x4}),
      _180: x0 => new window.ImageDecoder(x0),
      _181: (x0,x1) => ({frameIndex: x0,completeFramesOnly: x1}),
      _182: (x0,x1) => x0.decode(x1),
      _183: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._183(f,arguments.length,x0) }),
      _184: (x0,x1,x2,x3) => x0.addEventListener(x1,x2,x3),
      _186: (x0,x1) => x0.getModifierState(x1),
      _187: x0 => x0.preventDefault(),
      _188: x0 => x0.stopPropagation(),
      _189: (x0,x1) => x0.removeProperty(x1),
      _190: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._190(f,arguments.length,x0) }),
      _191: x0 => new window.FinalizationRegistry(x0),
      _192: (x0,x1,x2,x3) => x0.register(x1,x2,x3),
      _194: (x0,x1) => x0.unregister(x1),
      _195: (x0,x1) => x0.prepend(x1),
      _196: x0 => new Intl.Locale(x0),
      _197: (x0,x1) => x0.observe(x1),
      _198: x0 => x0.disconnect(),
      _199: (x0,x1) => x0.getAttribute(x1),
      _200: (x0,x1) => x0.contains(x1),
      _201: (x0,x1) => x0.querySelector(x1),
      _202: (x0,x1) => x0.matchMedia(x1),
      _203: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._203(f,arguments.length,x0) }),
      _204: (x0,x1,x2) => x0.call(x1,x2),
      _205: x0 => x0.blur(),
      _206: x0 => x0.hasFocus(),
      _207: (x0,x1) => x0.removeAttribute(x1),
      _208: (x0,x1,x2) => x0.insertBefore(x1,x2),
      _209: (x0,x1) => x0.hasAttribute(x1),
      _210: (x0,x1) => x0.getModifierState(x1),
      _211: (x0,x1) => x0.createTextNode(x1),
      _212: x0 => x0.getBoundingClientRect(),
      _213: (x0,x1) => x0.replaceWith(x1),
      _214: (x0,x1) => x0.contains(x1),
      _215: (x0,x1) => x0.closest(x1),
      _216: () => new Array(),
      _653: x0 => new Uint8Array(x0),
      _656: () => globalThis.window.flutterConfiguration,
      _658: x0 => x0.assetBase,
      _663: x0 => x0.canvasKitMaximumSurfaces,
      _664: x0 => x0.debugShowSemanticsNodes,
      _665: x0 => x0.hostElement,
      _666: x0 => x0.multiViewEnabled,
      _667: x0 => x0.nonce,
      _669: x0 => x0.fontFallbackBaseUrl,
      _679: x0 => x0.console,
      _680: x0 => x0.devicePixelRatio,
      _681: x0 => x0.document,
      _682: x0 => x0.history,
      _683: x0 => x0.innerHeight,
      _684: x0 => x0.innerWidth,
      _685: x0 => x0.location,
      _686: x0 => x0.navigator,
      _687: x0 => x0.visualViewport,
      _688: x0 => x0.performance,
      _689: x0 => x0.parent,
      _691: x0 => x0.URL,
      _693: (x0,x1) => x0.getComputedStyle(x1),
      _694: x0 => x0.screen,
      _695: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._695(f,arguments.length,x0) }),
      _696: (x0,x1) => x0.requestAnimationFrame(x1),
      _700: (x0,x1) => x0.warn(x1),
      _702: (x0,x1) => x0.debug(x1),
      _703: x0 => globalThis.parseFloat(x0),
      _704: () => globalThis.window,
      _705: () => globalThis.Intl,
      _706: () => globalThis.Symbol,
      _707: (x0,x1,x2,x3,x4) => globalThis.createImageBitmap(x0,x1,x2,x3,x4),
      _709: x0 => x0.clipboard,
      _710: x0 => x0.maxTouchPoints,
      _711: x0 => x0.vendor,
      _712: x0 => x0.language,
      _713: x0 => x0.platform,
      _714: x0 => x0.userAgent,
      _715: (x0,x1) => x0.vibrate(x1),
      _716: x0 => x0.languages,
      _717: x0 => x0.documentElement,
      _718: (x0,x1) => x0.querySelector(x1),
      _719: (x0,x1) => x0.querySelectorAll(x1),
      _721: (x0,x1) => x0.createElement(x1),
      _724: (x0,x1) => x0.createEvent(x1),
      _725: x0 => x0.activeElement,
      _728: x0 => x0.head,
      _729: x0 => x0.body,
      _731: (x0,x1) => { x0.title = x1 },
      _734: x0 => x0.visibilityState,
      _735: () => globalThis.document,
      _736: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._736(f,arguments.length,x0) }),
      _737: (x0,x1) => x0.dispatchEvent(x1),
      _745: x0 => x0.target,
      _747: x0 => x0.timeStamp,
      _748: x0 => x0.type,
      _750: (x0,x1,x2,x3) => x0.initEvent(x1,x2,x3),
      _757: x0 => x0.firstChild,
      _761: x0 => x0.parentElement,
      _763: (x0,x1) => { x0.textContent = x1 },
      _764: x0 => x0.parentNode,
      _765: x0 => x0.nextSibling,
      _766: (x0,x1) => x0.removeChild(x1),
      _767: x0 => x0.isConnected,
      _772: x0 => x0.firstElementChild,
      _775: x0 => x0.clientHeight,
      _776: x0 => x0.clientWidth,
      _777: x0 => x0.offsetHeight,
      _778: x0 => x0.offsetWidth,
      _779: x0 => x0.id,
      _780: (x0,x1) => { x0.id = x1 },
      _783: (x0,x1) => { x0.spellcheck = x1 },
      _784: x0 => x0.tagName,
      _785: x0 => x0.style,
      _787: (x0,x1) => x0.querySelectorAll(x1),
      _788: (x0,x1,x2) => x0.setAttribute(x1,x2),
      _789: x0 => x0.tabIndex,
      _790: (x0,x1) => { x0.tabIndex = x1 },
      _791: (x0,x1) => x0.focus(x1),
      _792: x0 => x0.scrollTop,
      _793: (x0,x1) => { x0.scrollTop = x1 },
      _794: (x0,x1) => { x0.scrollLeft = x1 },
      _795: x0 => x0.scrollLeft,
      _796: x0 => x0.classList,
      _797: (x0,x1) => x0.scrollIntoView(x1),
      _800: (x0,x1) => { x0.className = x1 },
      _802: (x0,x1) => x0.getElementsByClassName(x1),
      _803: x0 => x0.click(),
      _804: (x0,x1) => x0.attachShadow(x1),
      _807: x0 => x0.computedStyleMap(),
      _808: (x0,x1) => x0.get(x1),
      _814: (x0,x1) => x0.getPropertyValue(x1),
      _815: (x0,x1,x2,x3) => x0.setProperty(x1,x2,x3),
      _816: x0 => x0.offsetLeft,
      _817: x0 => x0.offsetTop,
      _818: x0 => x0.offsetParent,
      _820: (x0,x1) => { x0.name = x1 },
      _821: x0 => x0.content,
      _822: (x0,x1) => { x0.content = x1 },
      _826: (x0,x1) => { x0.src = x1 },
      _827: x0 => x0.naturalWidth,
      _828: x0 => x0.naturalHeight,
      _832: (x0,x1) => { x0.crossOrigin = x1 },
      _834: (x0,x1) => { x0.decoding = x1 },
      _835: x0 => x0.decode(),
      _840: (x0,x1) => { x0.nonce = x1 },
      _845: (x0,x1) => { x0.width = x1 },
      _847: (x0,x1) => { x0.height = x1 },
      _850: (x0,x1) => x0.getContext(x1),
      _918: x0 => x0.width,
      _919: x0 => x0.height,
      _921: (x0,x1) => x0.fetch(x1),
      _922: x0 => x0.status,
      _923: x0 => x0.headers,
      _924: x0 => x0.body,
      _925: x0 => x0.arrayBuffer(),
      _928: x0 => x0.read(),
      _929: x0 => x0.value,
      _930: x0 => x0.done,
      _937: x0 => x0.name,
      _938: x0 => x0.x,
      _939: x0 => x0.y,
      _942: x0 => x0.top,
      _943: x0 => x0.right,
      _944: x0 => x0.bottom,
      _945: x0 => x0.left,
      _955: x0 => x0.height,
      _956: x0 => x0.width,
      _957: x0 => x0.scale,
      _958: (x0,x1) => { x0.value = x1 },
      _961: (x0,x1) => { x0.placeholder = x1 },
      _963: (x0,x1) => { x0.name = x1 },
      _964: x0 => x0.selectionDirection,
      _965: x0 => x0.selectionStart,
      _966: x0 => x0.selectionEnd,
      _969: x0 => x0.value,
      _971: (x0,x1,x2) => x0.setSelectionRange(x1,x2),
      _972: x0 => x0.readText(),
      _973: (x0,x1) => x0.writeText(x1),
      _975: x0 => x0.altKey,
      _976: x0 => x0.code,
      _977: x0 => x0.ctrlKey,
      _978: x0 => x0.key,
      _979: x0 => x0.keyCode,
      _980: x0 => x0.location,
      _981: x0 => x0.metaKey,
      _982: x0 => x0.repeat,
      _983: x0 => x0.shiftKey,
      _984: x0 => x0.isComposing,
      _986: x0 => x0.state,
      _987: (x0,x1) => x0.go(x1),
      _989: (x0,x1,x2,x3) => x0.pushState(x1,x2,x3),
      _990: (x0,x1,x2,x3) => x0.replaceState(x1,x2,x3),
      _991: x0 => x0.pathname,
      _992: x0 => x0.search,
      _993: x0 => x0.hash,
      _997: x0 => x0.state,
      _1000: (x0,x1) => x0.createObjectURL(x1),
      _1002: x0 => new Blob(x0),
      _1012: x0 => x0.matches,
      _1016: x0 => x0.matches,
      _1020: x0 => x0.relatedTarget,
      _1022: x0 => x0.clientX,
      _1023: x0 => x0.clientY,
      _1024: x0 => x0.offsetX,
      _1025: x0 => x0.offsetY,
      _1028: x0 => x0.button,
      _1029: x0 => x0.buttons,
      _1030: x0 => x0.ctrlKey,
      _1034: x0 => x0.pointerId,
      _1035: x0 => x0.pointerType,
      _1036: x0 => x0.pressure,
      _1037: x0 => x0.tiltX,
      _1038: x0 => x0.tiltY,
      _1039: x0 => x0.getCoalescedEvents(),
      _1042: x0 => x0.deltaX,
      _1043: x0 => x0.deltaY,
      _1044: x0 => x0.wheelDeltaX,
      _1045: x0 => x0.wheelDeltaY,
      _1046: x0 => x0.deltaMode,
      _1053: x0 => x0.changedTouches,
      _1056: x0 => x0.clientX,
      _1057: x0 => x0.clientY,
      _1060: x0 => x0.data,
      _1063: (x0,x1) => { x0.disabled = x1 },
      _1065: (x0,x1) => { x0.type = x1 },
      _1066: (x0,x1) => { x0.max = x1 },
      _1067: (x0,x1) => { x0.min = x1 },
      _1068: x0 => x0.value,
      _1069: (x0,x1) => { x0.value = x1 },
      _1070: x0 => x0.disabled,
      _1071: (x0,x1) => { x0.disabled = x1 },
      _1073: (x0,x1) => { x0.placeholder = x1 },
      _1075: (x0,x1) => { x0.name = x1 },
      _1076: (x0,x1) => { x0.autocomplete = x1 },
      _1078: x0 => x0.selectionDirection,
      _1079: x0 => x0.selectionStart,
      _1081: x0 => x0.selectionEnd,
      _1084: (x0,x1,x2) => x0.setSelectionRange(x1,x2),
      _1085: (x0,x1) => x0.add(x1),
      _1087: (x0,x1) => { x0.noValidate = x1 },
      _1088: (x0,x1) => { x0.method = x1 },
      _1089: (x0,x1) => { x0.action = x1 },
      _1095: (x0,x1) => x0.getContext(x1),
      _1097: x0 => x0.convertToBlob(),
      _1114: x0 => x0.orientation,
      _1115: x0 => x0.width,
      _1116: x0 => x0.height,
      _1117: (x0,x1) => x0.lock(x1),
      _1136: x0 => new ResizeObserver(x0),
      _1139: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1139(f,arguments.length,x0,x1) }),
      _1147: x0 => x0.length,
      _1148: x0 => x0.iterator,
      _1149: x0 => x0.Segmenter,
      _1150: x0 => x0.v8BreakIterator,
      _1151: (x0,x1) => new Intl.Segmenter(x0,x1),
      _1154: x0 => x0.language,
      _1155: x0 => x0.script,
      _1156: x0 => x0.region,
      _1174: x0 => x0.done,
      _1175: x0 => x0.value,
      _1176: x0 => x0.index,
      _1180: (x0,x1) => new Intl.v8BreakIterator(x0,x1),
      _1181: (x0,x1) => x0.adoptText(x1),
      _1182: x0 => x0.first(),
      _1183: x0 => x0.next(),
      _1184: x0 => x0.current(),
      _1186: () => globalThis.window.FinalizationRegistry,
      _1197: x0 => x0.hostElement,
      _1198: x0 => x0.viewConstraints,
      _1201: x0 => x0.maxHeight,
      _1202: x0 => x0.maxWidth,
      _1203: x0 => x0.minHeight,
      _1204: x0 => x0.minWidth,
      _1205: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1205(f,arguments.length,x0) }),
      _1206: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1206(f,arguments.length,x0) }),
      _1207: (x0,x1) => ({addView: x0,removeView: x1}),
      _1210: x0 => x0.loader,
      _1211: () => globalThis._flutter,
      _1212: (x0,x1) => x0.didCreateEngineInitializer(x1),
      _1213: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1213(f,arguments.length,x0) }),
      _1214: (module,f) => finalizeWrapper(f, function() { return module.exports._1214(f,arguments.length) }),
      _1215: (x0,x1) => ({initializeEngine: x0,autoStart: x1}),
      _1218: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1218(f,arguments.length,x0) }),
      _1219: x0 => ({runApp: x0}),
      _1221: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1221(f,arguments.length,x0,x1) }),
      _1222: x0 => new Promise(x0),
      _1223: x0 => x0.length,
      _1224: () => globalThis.window.ImageDecoder,
      _1225: x0 => x0.tracks,
      _1227: x0 => x0.completed,
      _1229: x0 => x0.image,
      _1235: x0 => x0.displayWidth,
      _1236: x0 => x0.displayHeight,
      _1237: x0 => x0.duration,
      _1240: x0 => x0.ready,
      _1241: x0 => x0.selectedTrack,
      _1242: x0 => x0.repetitionCount,
      _1243: x0 => x0.frameCount,
      _1290: (x0,x1) => x0.createElement(x1),
      _1296: (x0,x1,x2) => x0.addEventListener(x1,x2),
      _1297: x0 => new Worker(x0),
      _1298: (x0,x1) => x0.querySelector(x1),
      _1299: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1299(f,arguments.length,x0) }),
      _1300: (x0,x1) => x0.removeChild(x1),
      _1301: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1301(f,arguments.length,x0) }),
      _1302: (x0,x1) => x0.appendChild(x1),
      _1303: () => new Map(),
      _1304: (x0,x1,x2) => x0.set(x1,x2),
      _1305: (x0,x1,x2,x3) => x0.call(x1,x2,x3),
      _1306: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1306(f,arguments.length,x0,x1) }),
      _1307: (x0,x1) => x0.call(x1),
      _1308: (x0,x1) => new ZXing.BrowserMultiFormatReader(x0,x1),
      _1309: x0 => x0.pause(),
      _1310: x0 => x0.play(),
      _1311: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1311(f,arguments.length,x0) }),
      _1312: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1312(f,arguments.length,x0) }),
      _1313: (x0,x1) => x0.append(x1),
      _1314: x0 => x0.getVideoTracks(),
      _1315: x0 => x0.getSupportedConstraints(),
      _1316: x0 => ({video: x0}),
      _1317: x0 => ({facingMode: x0}),
      _1318: (x0,x1) => x0.getUserMedia(x1),
      _1321: (x0,x1,x2,x3) => x0.addEventListener(x1,x2,x3),
      _1322: (x0,x1,x2,x3) => x0.removeEventListener(x1,x2,x3),
      _1323: (x0,x1) => x0.createElement(x1),
      _1324: (x0,x1,x2) => x0.setAttribute(x1,x2),
      _1325: (x0,x1) => x0.removeAttribute(x1),
      _1326: (x0,x1) => x0.getAttribute(x1),
      _1330: (x0,x1,x2,x3) => x0.open(x1,x2,x3),
      _1331: () => globalThis.Notification.requestPermission(),
      _1332: x0 => globalThis.URL.revokeObjectURL(x0),
      _1333: x0 => x0.remove(),
      _1334: (x0,x1,x2,x3) => x0.drawImage(x1,x2,x3),
      _1335: (x0,x1,x2,x3,x4,x5) => x0.drawImage(x1,x2,x3,x4,x5),
      _1336: x0 => globalThis.URL.createObjectURL(x0),
      _1337: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1337(f,arguments.length,x0) }),
      _1338: (x0,x1,x2,x3) => x0.toBlob(x1,x2,x3),
      _1339: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1339(f,arguments.length,x0) }),
      _1340: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1340(f,arguments.length,x0) }),
      _1341: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1341(f,arguments.length,x0) }),
      _1342: (x0,x1) => x0.replaceChildren(x1),
      _1343: x0 => x0.click(),
      _1344: x0 => x0.load(),
      _1346: (x0,x1,x2) => x0.addEventListener(x1,x2),
      _1347: (x0,x1,x2) => x0.removeEventListener(x1,x2),
      _1348: (x0,x1) => x0.start(x1),
      _1349: (x0,x1) => x0.end(x1),
      _1350: x0 => x0.disconnect(),
      _1351: x0 => x0.disconnect(),
      _1352: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1352(f,arguments.length,x0,x1) }),
      _1353: x0 => new ResizeObserver(x0),
      _1354: (x0,x1) => x0.observe(x1),
      _1355: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1355(f,arguments.length,x0,x1) }),
      _1356: x0 => new MutationObserver(x0),
      _1357: x0 => ({childList: x0}),
      _1358: (x0,x1,x2) => x0.observe(x1,x2),
      _1359: (x0,x1) => x0.item(x1),
      _1360: x0 => ({name: x0}),
      _1361: (x0,x1) => new Worker(x0,x1),
      _1362: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1362(f,arguments.length,x0) }),
      _1363: (x0,x1) => x0.postMessage(x1),
      _1364: x0 => x0.terminate(),
      _1365: x0 => ({audio: x0}),
      _1366: x0 => x0.getAudioTracks(),
      _1367: x0 => x0.stop(),
      _1368: (x0,x1) => x0.removeTrack(x1),
      _1369: x0 => x0.close(),
      _1370: (x0,x1) => x0.warn(x1),
      _1371: x0 => x0.getSettings(),
      _1372: x0 => ({sampleRate: x0}),
      _1373: x0 => new AudioContext(x0),
      _1374: () => new AudioContext(),
      _1376: x0 => x0.resume(),
      _1377: (x0,x1) => x0.connect(x1),
      _1378: (x0,x1) => x0.createMediaStreamSource(x1),
      _1379: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1379(f,arguments.length,x0) }),
      _1380: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1380(f,arguments.length,x0) }),
      _1381: (x0,x1) => x0.addModule(x1),
      _1382: x0 => ({parameterData: x0}),
      _1383: (x0,x1,x2) => new AudioWorkletNode(x0,x1,x2),
      _1384: x0 => ({name: x0}),
      _1385: (x0,x1) => x0.query(x1),
      _1390: x0 => x0.disconnect(),
      _1391: x0 => x0.stop(),
      _1392: (x0,x1,x2) => ({mimeType: x0,audioBitsPerSecond: x1,bitsPerSecond: x2}),
      _1393: (x0,x1) => new MediaRecorder(x0,x1),
      _1394: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1394(f,arguments.length,x0) }),
      _1395: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1395(f,arguments.length,x0) }),
      _1396: (x0,x1) => x0.start(x1),
      _1397: x0 => ({type: x0}),
      _1398: (x0,x1) => new Blob(x0,x1),
      _1399: x0 => x0.createAnalyser(),
      _1400: (x0,x1) => x0.getFloatTimeDomainData(x1),
      _1401: x0 => globalThis.MediaRecorder.isTypeSupported(x0),
      _1402: x0 => x0.decode(),
      _1403: (x0,x1,x2,x3) => x0.open(x1,x2,x3),
      _1404: (x0,x1,x2) => x0.setRequestHeader(x1,x2),
      _1405: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1405(f,arguments.length,x0) }),
      _1406: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1406(f,arguments.length,x0) }),
      _1407: x0 => x0.send(),
      _1408: () => new XMLHttpRequest(),
      _1409: (x0,x1) => x0.item(x1),
      _1410: () => new FileReader(),
      _1411: (x0,x1) => x0.readAsArrayBuffer(x1),
      _1412: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1412(f,arguments.length,x0) }),
      _1413: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1413(f,arguments.length,x0) }),
      _1414: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1414(f,arguments.length,x0) }),
      _1415: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1415(f,arguments.length,x0) }),
      _1418: (x0,x1) => x0.createMediaElementSource(x1),
      _1419: x0 => x0.createGain(),
      _1420: x0 => x0.createStereoPanner(),
      _1421: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1421(f,arguments.length,x0) }),
      _1422: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1422(f,arguments.length,x0) }),
      _1423: (x0,x1,x2) => ({enableHighAccuracy: x0,timeout: x1,maximumAge: x2}),
      _1424: (x0,x1,x2,x3) => x0.getCurrentPosition(x1,x2,x3),
      _1425: (x0,x1) => x0.clearWatch(x1),
      _1426: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1426(f,arguments.length,x0) }),
      _1427: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1427(f,arguments.length,x0) }),
      _1428: (x0,x1,x2,x3) => x0.watchPosition(x1,x2,x3),
      _1429: (x0,x1) => x0.getItem(x1),
      _1430: (x0,x1) => x0.removeItem(x1),
      _1431: (x0,x1,x2) => x0.setItem(x1,x2),
      _1432: x0 => ({frequency: x0}),
      _1433: x0 => new Accelerometer(x0),
      _1434: x0 => x0.start(),
      _1435: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1435(f,arguments.length,x0) }),
      _1436: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1436(f,arguments.length,x0) }),
      _1445: x0 => new Magnetometer(x0),
      _1446: x0 => x0.start(),
      _1447: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1447(f,arguments.length,x0) }),
      _1448: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1448(f,arguments.length,x0) }),
      _1450: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1450(f,arguments.length,x0) }),
      _1451: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1451(f,arguments.length,x0) }),
      _1452: (x0,x1,x2) => x0.getCurrentPosition(x1,x2),
      _1456: (x0,x1,x2,x3,x4,x5,x6,x7,x8) => ({apiKey: x0,authDomain: x1,databaseURL: x2,projectId: x3,storageBucket: x4,messagingSenderId: x5,measurementId: x6,appId: x7,recaptchaSiteKey: x8}),
      _1457: (x0,x1) => globalThis.firebase_core.initializeApp(x0,x1),
      _1458: x0 => globalThis.firebase_core.getApp(x0),
      _1459: () => globalThis.firebase_core.getApp(),
      _1460: (x0,x1,x2) => globalThis.firebase_core.registerVersion(x0,x1,x2),
      _1462: x0 => globalThis.firebase_messaging.getMessaging(x0),
      _1464: (x0,x1) => globalThis.firebase_messaging.getToken(x0,x1),
      _1466: (x0,x1) => globalThis.firebase_messaging.onMessage(x0,x1),
      _1467: (x0,x1) => ({next: x0,error: x1}),
      _1470: (x0,x1) => ({vapidKey: x0,serviceWorkerRegistration: x1}),
      _1473: x0 => x0.title,
      _1474: x0 => x0.body,
      _1475: x0 => x0.image,
      _1476: x0 => x0.messageId,
      _1477: x0 => x0.collapseKey,
      _1478: x0 => x0.fcmOptions,
      _1479: x0 => x0.notification,
      _1480: x0 => x0.data,
      _1481: x0 => x0.from,
      _1482: x0 => x0.analyticsLabel,
      _1483: x0 => x0.link,
      _1485: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1485(f,arguments.length,x0) }),
      _1486: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1486(f,arguments.length,x0) }),
      _1488: () => globalThis.firebase_core.SDK_VERSION,
      _1494: x0 => x0.apiKey,
      _1496: x0 => x0.authDomain,
      _1498: x0 => x0.databaseURL,
      _1500: x0 => x0.projectId,
      _1502: x0 => x0.storageBucket,
      _1504: x0 => x0.messagingSenderId,
      _1506: x0 => x0.measurementId,
      _1508: x0 => x0.appId,
      _1510: x0 => x0.recaptchaSiteKey,
      _1512: x0 => x0.name,
      _1513: x0 => x0.options,
      _1514: (x0,x1) => x0.debug(x1),
      _1515: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1515(f,arguments.length,x0) }),
      _1516: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1516(f,arguments.length,x0,x1) }),
      _1517: (x0,x1) => ({createScript: x0,createScriptURL: x1}),
      _1518: (x0,x1,x2) => x0.createPolicy(x1,x2),
      _1519: (x0,x1) => x0.createScriptURL(x1),
      _1520: (x0,x1,x2) => x0.createScript(x1,x2),
      _1521: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1521(f,arguments.length,x0) }),
      _1522: x0 => x0.deviceMemory,
      _1523: (x0,x1) => x0.key(x1),
      _1524: (x0,x1,x2,x3,x4,x5,x6,x7) => x0.unwrapKey(x1,x2,x3,x4,x5,x6,x7),
      _1525: (x0,x1,x2,x3,x4,x5) => x0.importKey(x1,x2,x3,x4,x5),
      _1526: (x0,x1,x2,x3) => x0.generateKey(x1,x2,x3),
      _1527: (x0,x1,x2,x3,x4) => x0.wrapKey(x1,x2,x3,x4),
      _1528: (x0,x1,x2) => x0.exportKey(x1,x2),
      _1529: (x0,x1) => x0.getRandomValues(x1),
      _1530: (x0,x1,x2,x3) => x0.encrypt(x1,x2,x3),
      _1531: (x0,x1,x2,x3) => x0.decrypt(x1,x2,x3),
      _1532: () => globalThis.removeSplashFromWeb(),
      _1534: (x0,x1) => x0.initialize(x1),
      _1538: x0 => x0.disableAutoSelect(),
      _1541: x0 => x0.barcodeFormat,
      _1542: x0 => x0.text,
      _1543: x0 => x0.rawBytes,
      _1544: x0 => x0.resultPoints,
      _1546: Date.now,
      _1548: s => new Date(s * 1000).getTimezoneOffset() * 60,
      _1549: s => {
        if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(s)) {
          return NaN;
        }
        return parseFloat(s);
      },
      _1550: () => typeof dartUseDateNowForTicks !== "undefined",
      _1551: () => 1000 * performance.now(),
      _1552: () => Date.now(),
      _1553: () => {
        // On browsers return `globalThis.location.href`
        if (globalThis.location != null) {
          return globalThis.location.href;
        }
        return null;
      },
      _1554: () => {
        return typeof process != "undefined" &&
               Object.prototype.toString.call(process) == "[object process]" &&
               process.platform == "win32"
      },
      _1555: () => new WeakMap(),
      _1556: (map, o) => map.get(o),
      _1557: (map, o, v) => map.set(o, v),
      _1558: x0 => new WeakRef(x0),
      _1559: x0 => x0.deref(),
      _1566: () => globalThis.WeakRef,
      _1570: s => JSON.stringify(s),
      _1571: s => printToConsole(s),
      _1572: o => {
        if (o === null || o === undefined) return 0;
        if (typeof(o) === 'string') return 1;
        return 2;
      },
      _1573: (o, p, r) => o.replaceAll(p, () => r),
      _1574: (o, p, r) => o.replace(p, () => r),
      _1575: Function.prototype.call.bind(String.prototype.toLowerCase),
      _1576: s => s.toUpperCase(),
      _1577: s => s.trim(),
      _1578: s => s.trimLeft(),
      _1579: s => s.trimRight(),
      _1580: (string, times) => string.repeat(times),
      _1581: Function.prototype.call.bind(String.prototype.indexOf),
      _1582: (s, p, i) => s.lastIndexOf(p, i),
      _1583: (string, token) => string.split(token),
      _1584: Object.is,
      _1588: (o, t) => typeof o === t,
      _1589: (o, c) => o instanceof c,
      _1590: o => Object.keys(o),
      _1593: (o,s,v) => o[s] = v,
      _1594: (o, a) => o + a,
      _1643: x0 => new Array(x0),
      _1645: x0 => x0.length,
      _1647: (x0,x1) => x0[x1],
      _1648: (x0,x1,x2) => { x0[x1] = x2 },
      _1651: (x0,x1,x2) => new DataView(x0,x1,x2),
      _1653: x0 => new Int8Array(x0),
      _1654: (x0,x1,x2) => new Uint8Array(x0,x1,x2),
      _1656: x0 => new Uint8ClampedArray(x0),
      _1658: x0 => new Int16Array(x0),
      _1660: x0 => new Uint16Array(x0),
      _1662: x0 => new Int32Array(x0),
      _1664: x0 => new Uint32Array(x0),
      _1666: x0 => new Float32Array(x0),
      _1668: x0 => new Float64Array(x0),
      _1691: () => Symbol("jsBoxedDartObjectProperty"),
      _1692: x0 => x0.random(),
      _1693: (x0,x1) => x0.getRandomValues(x1),
      _1694: () => globalThis.crypto,
      _1695: () => globalThis.Math,
      _1708: (ms, c) =>
      setTimeout(() => dartInstance.exports.$invokeCallback(c),ms),
      _1709: (handle) => clearTimeout(handle),
      _1710: (ms, c) =>
      setInterval(() => dartInstance.exports.$invokeCallback(c), ms),
      _1711: (handle) => clearInterval(handle),
      _1712: (c) =>
      queueMicrotask(() => dartInstance.exports.$invokeCallback(c)),
      _1713: () => Date.now(),
      _1714: () => new Error().stack,
      _1715: (exn) => {
        let stackString = exn.toString();
        let frames = stackString.split('\n');
        let drop = 4;
        if (frames[0].startsWith('Error')) {
            drop += 1;
        }
        return frames.slice(drop).join('\n');
      },
      _1716: (s, m) => {
        try {
          return new RegExp(s, m);
        } catch (e) {
          return String(e);
        }
      },
      _1717: (x0,x1) => x0.exec(x1),
      _1718: (x0,x1) => x0.test(x1),
      _1719: x0 => x0.pop(),
      _1721: o => o === undefined,
      _1723: o => typeof o === 'function' && o[jsWrappedDartFunctionSymbol] === true,
      _1725: o => {
        const proto = Object.getPrototypeOf(o);
        return proto === Object.prototype || proto === null;
      },
      _1726: o => o instanceof RegExp,
      _1727: (l, r) => l === r,
      _1728: o => o,
      _1729: o => {
        if (o === undefined || o === null) return 0;
        if (typeof o === 'number') return 1;
        return 2;
      },
      _1730: o => o,
      _1731: o => {
        if (o === undefined || o === null) return 0;
        if (typeof o === 'boolean') return 1;
        return 2;
      },
      _1732: o => o,
      _1733: b => !!b,
      _1734: o => o.length,
      _1736: (o, i) => o[i],
      _1737: f => f.dartFunction,
      _1738: () => ({}),
      _1739: () => [],
      _1741: () => globalThis,
      _1742: (constructor, args) => {
        const factoryFunction = constructor.bind.apply(
            constructor, [null, ...args]);
        return new factoryFunction();
      },
      _1743: (o, p) => p in o,
      _1744: (o, p) => o[p],
      _1745: (o, p, v) => o[p] = v,
      _1746: (o, m, a) => o[m].apply(o, a),
      _1748: o => String(o),
      _1749: (p, s, f) => p.then(s, (e) => f(e, e === undefined)),
      _1750: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1750(f,arguments.length,x0) }),
      _1751: (module,f) => finalizeWrapper(f, function(x0,x1) { return module.exports._1751(f,arguments.length,x0,x1) }),
      _1752: o => {
        if (o === undefined) return 1;
        var type = typeof o;
        if (type === 'boolean') return 2;
        if (type === 'number') return 3;
        if (type === 'string') return 4;
        if (o instanceof Array) return 5;
        if (ArrayBuffer.isView(o)) {
          if (o instanceof Int8Array) return 6;
          if (o instanceof Uint8Array) return 7;
          if (o instanceof Uint8ClampedArray) return 8;
          if (o instanceof Int16Array) return 9;
          if (o instanceof Uint16Array) return 10;
          if (o instanceof Int32Array) return 11;
          if (o instanceof Uint32Array) return 12;
          if (o instanceof Float32Array) return 13;
          if (o instanceof Float64Array) return 14;
          if (o instanceof DataView) return 15;
        }
        if (o instanceof ArrayBuffer) return 16;
        // Feature check for `SharedArrayBuffer` before doing a type-check.
        if (globalThis.SharedArrayBuffer !== undefined &&
            o instanceof SharedArrayBuffer) {
            return 17;
        }
        if (o instanceof Promise) return 18;
        return 19;
      },
      _1753: o => [o],
      _1754: (o0, o1) => [o0, o1],
      _1755: (o0, o1, o2) => [o0, o1, o2],
      _1756: (o0, o1, o2, o3) => [o0, o1, o2, o3],
      _1757: (exn) => {
        if (exn instanceof Error) {
          return exn.stack;
        } else {
          return null;
        }
      },
      _1758: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const getValue = dartInstance.exports.$wasmI8ArrayGet;
        for (let i = 0; i < length; i++) {
          jsArray[jsArrayOffset + i] = getValue(wasmArray, wasmArrayOffset + i);
        }
      },
      _1759: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const setValue = dartInstance.exports.$wasmI8ArraySet;
        for (let i = 0; i < length; i++) {
          setValue(wasmArray, wasmArrayOffset + i, jsArray[jsArrayOffset + i]);
        }
      },
      _1760: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const getValue = dartInstance.exports.$wasmI16ArrayGet;
        for (let i = 0; i < length; i++) {
          jsArray[jsArrayOffset + i] = getValue(wasmArray, wasmArrayOffset + i);
        }
      },
      _1761: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const setValue = dartInstance.exports.$wasmI16ArraySet;
        for (let i = 0; i < length; i++) {
          setValue(wasmArray, wasmArrayOffset + i, jsArray[jsArrayOffset + i]);
        }
      },
      _1762: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const getValue = dartInstance.exports.$wasmI32ArrayGet;
        for (let i = 0; i < length; i++) {
          jsArray[jsArrayOffset + i] = getValue(wasmArray, wasmArrayOffset + i);
        }
      },
      _1763: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const setValue = dartInstance.exports.$wasmI32ArraySet;
        for (let i = 0; i < length; i++) {
          setValue(wasmArray, wasmArrayOffset + i, jsArray[jsArrayOffset + i]);
        }
      },
      _1764: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const getValue = dartInstance.exports.$wasmF32ArrayGet;
        for (let i = 0; i < length; i++) {
          jsArray[jsArrayOffset + i] = getValue(wasmArray, wasmArrayOffset + i);
        }
      },
      _1765: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const setValue = dartInstance.exports.$wasmF32ArraySet;
        for (let i = 0; i < length; i++) {
          setValue(wasmArray, wasmArrayOffset + i, jsArray[jsArrayOffset + i]);
        }
      },
      _1766: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const getValue = dartInstance.exports.$wasmF64ArrayGet;
        for (let i = 0; i < length; i++) {
          jsArray[jsArrayOffset + i] = getValue(wasmArray, wasmArrayOffset + i);
        }
      },
      _1767: (jsArray, jsArrayOffset, wasmArray, wasmArrayOffset, length) => {
        const setValue = dartInstance.exports.$wasmF64ArraySet;
        for (let i = 0; i < length; i++) {
          setValue(wasmArray, wasmArrayOffset + i, jsArray[jsArrayOffset + i]);
        }
      },
      _1768: x0 => new ArrayBuffer(x0),
      _1769: s => {
        if (/[[\]{}()*+?.\\^$|]/.test(s)) {
            s = s.replace(/[[\]{}()*+?.\\^$|]/g, '\\$&');
        }
        return s;
      },
      _1771: x0 => x0.index,
      _1772: x0 => x0.groups,
      _1773: x0 => x0.flags,
      _1774: x0 => x0.multiline,
      _1775: x0 => x0.ignoreCase,
      _1776: x0 => x0.unicode,
      _1777: x0 => x0.dotAll,
      _1778: (x0,x1) => { x0.lastIndex = x1 },
      _1779: (o, p) => p in o,
      _1780: (o, p) => o[p],
      _1781: (o, p, v) => o[p] = v,
      _1782: (o, p) => delete o[p],
      _1783: (x0,x1,x2) => x0.transaction(x1,x2),
      _1784: (x0,x1) => x0.objectStore(x1),
      _1785: (x0,x1) => x0.getAllKeys(x1),
      _1786: (x0,x1) => x0.getAll(x1),
      _1787: (x0,x1) => x0.get(x1),
      _1788: (x0,x1) => x0.delete(x1),
      _1789: (x0,x1,x2) => x0.put(x1,x2),
      _1790: x0 => x0.clear(),
      _1791: x0 => x0.close(),
      _1792: (x0,x1) => x0.deleteDatabase(x1),
      _1793: (x0,x1,x2) => x0.open(x1,x2),
      _1794: (x0,x1) => x0.contains(x1),
      _1795: (x0,x1) => x0.deleteObjectStore(x1),
      _1796: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1796(f,arguments.length,x0) }),
      _1797: (x0,x1) => x0.createObjectStore(x1),
      _1798: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1798(f,arguments.length,x0) }),
      _1799: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1799(f,arguments.length,x0) }),
      _1808: () => new XMLHttpRequest(),
      _1811: (x0,x1,x2) => x0.setRequestHeader(x1,x2),
      _1812: (x0,x1) => x0.send(x1),
      _1813: x0 => x0.send(),
      _1815: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1815(f,arguments.length,x0) }),
      _1816: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1816(f,arguments.length,x0) }),
      _1821: (x0,x1) => new WebSocket(x0,x1),
      _1822: (x0,x1) => x0.send(x1),
      _1823: (x0,x1,x2) => x0.close(x1,x2),
      _1825: x0 => x0.close(),
      _1828: (x0,x1,x2) => x0.open(x1,x2),
      _1829: x0 => x0.abort(),
      _1830: x0 => x0.getAllResponseHeaders(),
      _1831: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1831(f,arguments.length,x0) }),
      _1832: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1832(f,arguments.length,x0) }),
      _1833: x0 => x0.openCursor(),
      _1834: x0 => x0.continue(),
      _1835: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1835(f,arguments.length,x0) }),
      _1836: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1836(f,arguments.length,x0) }),
      _1837: x0 => x0.arrayBuffer(),
      _1838: () => new AbortController(),
      _1839: x0 => x0.abort(),
      _1840: (x0,x1,x2,x3,x4,x5) => ({method: x0,headers: x1,body: x2,credentials: x3,redirect: x4,signal: x5}),
      _1841: (x0,x1) => globalThis.fetch(x0,x1),
      _1842: (x0,x1) => x0.get(x1),
      _1843: (module,f) => finalizeWrapper(f, function(x0,x1,x2) { return module.exports._1843(f,arguments.length,x0,x1,x2) }),
      _1844: (x0,x1) => x0.forEach(x1),
      _1845: x0 => x0.getReader(),
      _1846: x0 => x0.cancel(),
      _1847: x0 => x0.read(),
      _1848: x0 => x0.trustedTypes,
      _1849: (x0,x1) => { x0.src = x1 },
      _1850: (x0,x1) => x0.createScriptURL(x1),
      _1851: x0 => x0.nonce,
      _1852: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._1852(f,arguments.length,x0) }),
      _1853: x0 => ({createScriptURL: x0}),
      _1854: (x0,x1) => x0.querySelectorAll(x1),
      _1858: x0 => x0.attachStreamToVideo,
      _1860: x0 => x0.decodeContinuously,
      _1864: x0 => x0.reset,
      _1866: x0 => x0.stopContinuousDecode,
      _1868: x0 => x0.stream,
      _1869: x0 => x0.videoElement,
      _1887: x0 => x0.facingMode,
      _1888: (x0,x1) => ({width: x0,height: x1}),
      _1889: (x0,x1,x2) => ({width: x0,height: x1,facingMode: x2}),
      _1890: x0 => x0.trustedTypes,
      _1891: (x0,x1) => { x0.text = x1 },
      _1892: o => o instanceof Array,
      _1893: (a, i) => a.splice(i, 1)[0],
      _1896: a => a.pop(),
      _1897: (a, i) => a.splice(i, 1),
      _1898: (a, s) => a.join(s),
      _1899: (a, s, e) => a.slice(s, e),
      _1900: (a, s, e) => a.splice(s, e),
      _1901: (a, b) => a == b ? 0 : (a > b ? 1 : -1),
      _1902: a => a.length,
      _1904: (a, i) => a[i],
      _1905: (a, i, v) => a[i] = v,
      _1907: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof ArrayBuffer) return 1;
        if (globalThis.SharedArrayBuffer !== undefined &&
            o instanceof SharedArrayBuffer) {
          return 2;
        }
        return 3;
      },
      _1908: (o, offsetInBytes, lengthInBytes) => {
        var dst = new ArrayBuffer(lengthInBytes);
        new Uint8Array(dst).set(new Uint8Array(o, offsetInBytes, lengthInBytes));
        return new DataView(dst);
      },
      _1910: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Uint8Array) return 1;
        return 2;
      },
      _1911: (o, start, length) => new Uint8Array(o.buffer, o.byteOffset + start, length),
      _1912: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Int8Array) return 1;
        return 2;
      },
      _1913: (o, start, length) => new Int8Array(o.buffer, o.byteOffset + start, length),
      _1914: o => o instanceof Uint8ClampedArray,
      _1915: (o, start, length) => new Uint8ClampedArray(o.buffer, o.byteOffset + start, length),
      _1916: o => o instanceof Uint16Array,
      _1917: (o, start, length) => new Uint16Array(o.buffer, o.byteOffset + start, length),
      _1918: o => o instanceof Int16Array,
      _1919: (o, start, length) => new Int16Array(o.buffer, o.byteOffset + start, length),
      _1920: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Uint32Array) return 1;
        return 2;
      },
      _1921: (o, start, length) => new Uint32Array(o.buffer, o.byteOffset + start, length),
      _1922: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Int32Array) return 1;
        return 2;
      },
      _1923: (o, start, length) => new Int32Array(o.buffer, o.byteOffset + start, length),
      _1925: (o, start, length) => new BigInt64Array(o.buffer, o.byteOffset + start, length),
      _1926: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Float32Array) return 1;
        return 2;
      },
      _1927: (o, start, length) => new Float32Array(o.buffer, o.byteOffset + start, length),
      _1928: o => {
        if (o === null || o === undefined) return 0;
        if (o instanceof Float64Array) return 1;
        return 2;
      },
      _1929: (o, start, length) => new Float64Array(o.buffer, o.byteOffset + start, length),
      _1930: (a, i) => a.push(i),
      _1931: (t, s) => t.set(s),
      _1932: l => new DataView(new ArrayBuffer(l)),
      _1933: (o) => new DataView(o.buffer, o.byteOffset, o.byteLength),
      _1934: o => o.byteLength,
      _1935: o => o.buffer,
      _1936: o => o.byteOffset,
      _1937: Function.prototype.call.bind(Object.getOwnPropertyDescriptor(DataView.prototype, 'byteLength').get),
      _1938: (b, o) => new DataView(b, o),
      _1939: (b, o, l) => new DataView(b, o, l),
      _1940: Function.prototype.call.bind(DataView.prototype.getUint8),
      _1941: Function.prototype.call.bind(DataView.prototype.setUint8),
      _1942: Function.prototype.call.bind(DataView.prototype.getInt8),
      _1943: Function.prototype.call.bind(DataView.prototype.setInt8),
      _1944: Function.prototype.call.bind(DataView.prototype.getUint16),
      _1945: Function.prototype.call.bind(DataView.prototype.setUint16),
      _1946: Function.prototype.call.bind(DataView.prototype.getInt16),
      _1947: Function.prototype.call.bind(DataView.prototype.setInt16),
      _1948: Function.prototype.call.bind(DataView.prototype.getUint32),
      _1949: Function.prototype.call.bind(DataView.prototype.setUint32),
      _1950: Function.prototype.call.bind(DataView.prototype.getInt32),
      _1951: Function.prototype.call.bind(DataView.prototype.setInt32),
      _1954: Function.prototype.call.bind(DataView.prototype.getBigInt64),
      _1955: Function.prototype.call.bind(DataView.prototype.setBigInt64),
      _1956: Function.prototype.call.bind(DataView.prototype.getFloat32),
      _1957: Function.prototype.call.bind(DataView.prototype.setFloat32),
      _1958: Function.prototype.call.bind(DataView.prototype.getFloat64),
      _1959: Function.prototype.call.bind(DataView.prototype.setFloat64),
      _1960: Function.prototype.call.bind(Number.prototype.toString),
      _1961: Function.prototype.call.bind(BigInt.prototype.toString),
      _1962: Function.prototype.call.bind(Number.prototype.toString),
      _1963: (d, digits) => d.toFixed(digits),
      _1969: (x0,x1) => x0.getContext(x1),
      _1974: (x0,x1) => globalThis.Object.getOwnPropertyDescriptor(x0,x1),
      _1975: (x0,x1) => globalThis.Reflect.get(x0,x1),
      _1976: (module,f) => finalizeWrapper(f, function() { return module.exports._1976(f,arguments.length) }),
      _1984: () => globalThis.h3,
      _1985: (x0,x1,x2,x3) => x0.latLngToCell(x1,x2,x3),
      _1986: (x0,x1) => x0.cellToLatLng(x1),
      _1987: (x0,x1) => x0.cellToBoundary(x1),
      _2021: (x0,x1,x2) => x0.getHexagonAreaAvg(x1,x2),
      _2035: x0 => x0.x,
      _2036: x0 => x0.y,
      _2072: () => globalThis.google.accounts.id,
      _2077: (x0,x1) => x0.renderButton(x1),
      _2078: (x0,x1,x2) => x0.renderButton(x1,x2),
      _2086: (module,f) => finalizeWrapper(f, function(x0) { return module.exports._2086(f,arguments.length,x0) }),
      _2089: (x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16) => ({client_id: x0,auto_select: x1,callback: x2,login_uri: x3,native_callback: x4,cancel_on_tap_outside: x5,prompt_parent_id: x6,nonce: x7,context: x8,state_cookie_domain: x9,ux_mode: x10,allowed_parent_origin: x11,intermediate_iframe_close_callback: x12,itp_support: x13,login_hint: x14,hd: x15,use_fedcm_for_prompt: x16}),
      _2100: x0 => x0.error,
      _2102: x0 => x0.credential,
      _2105: (x0,x1,x2,x3,x4,x5,x6,x7,x8) => ({type: x0,theme: x1,size: x2,text: x3,shape: x4,logo_alignment: x5,width: x6,locale: x7,click_listener: x8}),
      _2113: x0 => { globalThis.onGoogleLibraryLoad = x0 },
      _2114: (module,f) => finalizeWrapper(f, function() { return module.exports._2114(f,arguments.length) }),
      _2152: x0 => x0.readyState,
      _2154: (x0,x1) => { x0.timeout = x1 },
      _2156: (x0,x1) => { x0.withCredentials = x1 },
      _2157: x0 => x0.upload,
      _2158: x0 => x0.responseURL,
      _2159: x0 => x0.status,
      _2160: x0 => x0.statusText,
      _2162: (x0,x1) => { x0.responseType = x1 },
      _2163: x0 => x0.response,
      _2175: x0 => x0.loaded,
      _2176: x0 => x0.total,
      _2199: x0 => x0.length,
      _2209: (x0,x1) => { x0.lang = x1 },
      _2222: (x0,x1) => { x0.draggable = x1 },
      _2238: x0 => x0.style,
      _2251: (x0,x1) => { x0.oncancel = x1 },
      _2257: (x0,x1) => { x0.onchange = x1 },
      _2297: (x0,x1) => { x0.onerror = x1 },
      _2313: (x0,x1) => { x0.onload = x1 },
      _2337: (x0,x1) => { x0.onpause = x1 },
      _2339: (x0,x1) => { x0.onplay = x1 },
      _2437: (x0,x1) => { x0.nonce = x1 },
      _2670: (x0,x1) => { x0.src = x1 },
      _2681: x0 => x0.width,
      _2683: x0 => x0.height,
      _2810: x0 => x0.videoWidth,
      _2811: x0 => x0.videoHeight,
      _2815: (x0,x1) => { x0.playsInline = x1 },
      _2841: x0 => x0.error,
      _2843: (x0,x1) => { x0.src = x1 },
      _2848: (x0,x1) => { x0.crossOrigin = x1 },
      _2851: (x0,x1) => { x0.preload = x1 },
      _2852: x0 => x0.buffered,
      _2855: x0 => x0.currentTime,
      _2856: (x0,x1) => { x0.currentTime = x1 },
      _2857: x0 => x0.duration,
      _2858: x0 => x0.paused,
      _2862: (x0,x1) => { x0.playbackRate = x1 },
      _2869: (x0,x1) => { x0.autoplay = x1 },
      _2871: (x0,x1) => { x0.loop = x1 },
      _2873: (x0,x1) => { x0.controls = x1 },
      _2875: (x0,x1) => { x0.volume = x1 },
      _2877: (x0,x1) => { x0.muted = x1 },
      _2892: x0 => x0.code,
      _2893: x0 => x0.message,
      _2966: x0 => x0.length,
      _3162: (x0,x1) => { x0.accept = x1 },
      _3176: x0 => x0.files,
      _3202: (x0,x1) => { x0.multiple = x1 },
      _3220: (x0,x1) => { x0.type = x1 },
      _3470: (x0,x1) => { x0.src = x1 },
      _3472: (x0,x1) => { x0.type = x1 },
      _3476: (x0,x1) => { x0.async = x1 },
      _3478: (x0,x1) => { x0.defer = x1 },
      _3480: (x0,x1) => { x0.crossOrigin = x1 },
      _3482: (x0,x1) => { x0.text = x1 },
      _3514: x0 => x0.width,
      _3515: (x0,x1) => { x0.width = x1 },
      _3516: x0 => x0.height,
      _3517: (x0,x1) => { x0.height = x1 },
      _3938: () => globalThis.window,
      _3977: x0 => x0.self,
      _3978: x0 => x0.document,
      _3981: x0 => x0.location,
      _4000: x0 => x0.navigator,
      _4255: x0 => x0.isSecureContext,
      _4257: x0 => x0.indexedDB,
      _4258: x0 => x0.crypto,
      _4262: x0 => x0.trustedTypes,
      _4263: x0 => x0.sessionStorage,
      _4264: x0 => x0.localStorage,
      _4272: x0 => x0.href,
      _4369: x0 => x0.geolocation,
      _4372: x0 => x0.mediaDevices,
      _4374: x0 => x0.permissions,
      _4375: x0 => x0.maxTouchPoints,
      _4382: x0 => x0.appCodeName,
      _4383: x0 => x0.appName,
      _4384: x0 => x0.appVersion,
      _4385: x0 => x0.platform,
      _4386: x0 => x0.product,
      _4387: x0 => x0.productSub,
      _4388: x0 => x0.userAgent,
      _4389: x0 => x0.vendor,
      _4390: x0 => x0.vendorSub,
      _4392: x0 => x0.language,
      _4393: x0 => x0.languages,
      _4399: x0 => x0.hardwareConcurrency,
      _4439: x0 => x0.data,
      _4476: (x0,x1) => { x0.onmessage = x1 },
      _4546: (x0,x1) => { x0.onmessage = x1 },
      _4594: x0 => x0.length,
      _4811: x0 => x0.readyState,
      _4820: x0 => x0.protocol,
      _4824: (x0,x1) => { x0.binaryType = x1 },
      _4827: x0 => x0.code,
      _4828: x0 => x0.reason,
      _5977: x0 => x0.destination,
      _5978: x0 => x0.sampleRate,
      _5981: x0 => x0.state,
      _5982: x0 => x0.audioWorklet,
      _6069: (x0,x1) => { x0.value = x1 },
      _6083: x0 => x0.fftSize,
      _6084: (x0,x1) => { x0.fftSize = x1 },
      _6091: (x0,x1) => { x0.smoothingTimeConstant = x1 },
      _6217: x0 => x0.gain,
      _6345: x0 => x0.port,
      _6485: x0 => x0.target,
      _6525: x0 => x0.signal,
      _6534: x0 => x0.length,
      _6555: x0 => x0.addedNodes,
      _6576: x0 => x0.baseURI,
      _6582: x0 => x0.firstChild,
      _6593: () => globalThis.document,
      _6674: x0 => x0.body,
      _6676: x0 => x0.head,
      _7004: (x0,x1) => { x0.id = x1 },
      _7031: x0 => x0.children,
      _8350: x0 => x0.value,
      _8352: x0 => x0.done,
      _8531: x0 => x0.size,
      _8532: x0 => x0.type,
      _8539: x0 => x0.name,
      _8540: x0 => x0.lastModified,
      _8545: x0 => x0.length,
      _8551: x0 => x0.result,
      _8769: () => globalThis.Notification.permission,
      _8918: x0 => x0.mimeType,
      _8919: x0 => x0.state,
      _8923: (x0,x1) => { x0.onstop = x1 },
      _8925: (x0,x1) => { x0.ondataavailable = x1 },
      _8950: x0 => x0.data,
      _9040: x0 => x0.url,
      _9042: x0 => x0.status,
      _9044: x0 => x0.statusText,
      _9045: x0 => x0.headers,
      _9046: x0 => x0.body,
      _9405: x0 => x0.contentRect,
      _9431: x0 => x0.state,
      _9831: x0 => x0.active,
      _9842: x0 => x0.label,
      _9864: x0 => x0.facingMode,
      _10078: x0 => x0.width,
      _10080: x0 => x0.height,
      _10086: x0 => x0.facingMode,
      _10090: x0 => x0.sampleRate,
      _10102: x0 => x0.channelCount,
      _10491: x0 => x0.result,
      _10492: x0 => x0.error,
      _10497: (x0,x1) => { x0.onsuccess = x1 },
      _10499: (x0,x1) => { x0.onerror = x1 },
      _10503: (x0,x1) => { x0.onupgradeneeded = x1 },
      _10520: x0 => x0.name,
      _10521: x0 => x0.version,
      _10522: x0 => x0.objectStoreNames,
      _10589: x0 => x0.key,
      _10592: x0 => x0.value,
      _10729: x0 => x0.coords,
      _10730: x0 => x0.timestamp,
      _10732: x0 => x0.accuracy,
      _10733: x0 => x0.latitude,
      _10734: x0 => x0.longitude,
      _10735: x0 => x0.altitude,
      _10736: x0 => x0.altitudeAccuracy,
      _10737: x0 => x0.heading,
      _10738: x0 => x0.speed,
      _10739: x0 => x0.code,
      _10740: x0 => x0.message,
      _11148: (x0,x1) => { x0.border = x1 },
      _11426: (x0,x1) => { x0.display = x1 },
      _11590: (x0,x1) => { x0.height = x1 },
      _11784: (x0,x1) => { x0.objectFit = x1 },
      _11914: (x0,x1) => { x0.pointerEvents = x1 },
      _12212: (x0,x1) => { x0.transform = x1 },
      _12216: (x0,x1) => { x0.transformOrigin = x1 },
      _12280: (x0,x1) => { x0.width = x1 },
      _12648: x0 => x0.name,
      _12649: x0 => x0.message,
      _12652: x0 => x0.subtle,
      _12971: x0 => x0.width,
      _12972: x0 => x0.height,
      _13356: () => globalThis.console,
      _13378: () => globalThis.document,
      _13380: () => globalThis.console,
      _13385: (x0,x1) => { x0.height = x1 },
      _13387: (x0,x1) => { x0.width = x1 },
      _13389: (x0,x1) => { x0.pointerEvents = x1 },
      _13398: x0 => x0.style,
      _13401: x0 => x0.src,
      _13402: (x0,x1) => { x0.src = x1 },
      _13403: x0 => x0.naturalWidth,
      _13404: x0 => x0.naturalHeight,
      _13419: (x0,x1) => x0.error(x1),
      _13424: x0 => x0.status,
      _13425: (x0,x1) => { x0.responseType = x1 },
      _13427: x0 => x0.response,
      _13428: x0 => x0.x,
      _13429: x0 => x0.y,
      _13430: x0 => x0.z,
      _13431: (x0,x1) => { x0.onreading = x1 },
      _13432: (x0,x1) => { x0.onerror = x1 },
      _13443: x0 => x0.x,
      _13444: x0 => x0.y,
      _13445: x0 => x0.z,
      _13446: (x0,x1) => { x0.onreading = x1 },
      _13447: (x0,x1) => { x0.onerror = x1 },
      _13448: x0 => x0.error,
      _13449: x0 => x0.name,
      _13450: x0 => x0.message,
      _13451: x0 => x0.message,
      _13459: x0 => x0.name,
      _13460: x0 => x0.message,
      _13461: x0 => x0.code,

    };

    const baseImports = {
      dart2wasm: dart2wasm,
      Math: Math,
      Date: Date,
      Object: Object,
      Array: Array,
      Reflect: Reflect,
      WebAssembly: {
        JSTag: WebAssembly.JSTag,
      },
      "": new Proxy({}, { get(_, prop) { return prop; } }),

    };

    const jsStringPolyfill = {
      "charCodeAt": (s, i) => s.charCodeAt(i),
      "compare": (s1, s2) => {
        if (s1 < s2) return -1;
        if (s1 > s2) return 1;
        return 0;
      },
      "concat": (s1, s2) => s1 + s2,
      "equals": (s1, s2) => s1 === s2,
      "fromCharCode": (i) => String.fromCharCode(i),
      "length": (s) => s.length,
      "substring": (s, a, b) => s.substring(a, b),
      "fromCharCodeArray": (a, start, end) => {
        if (end <= start) return '';

        const read = dartInstance.exports.$wasmI16ArrayGet;
        let result = '';
        let index = start;
        const chunkLength = Math.min(end - index, 500);
        let array = new Array(chunkLength);
        while (index < end) {
          const newChunkLength = Math.min(end - index, 500);
          for (let i = 0; i < newChunkLength; i++) {
            array[i] = read(a, index++);
          }
          if (newChunkLength < chunkLength) {
            array = array.slice(0, newChunkLength);
          }
          result += String.fromCharCode(...array);
        }
        return result;
      },
      "intoCharCodeArray": (s, a, start) => {
        if (s === '') return 0;

        const write = dartInstance.exports.$wasmI16ArraySet;
        for (var i = 0; i < s.length; ++i) {
          write(a, start++, s.charCodeAt(i));
        }
        return s.length;
      },
      "test": (s) => typeof s == "string",
    };


    

    dartInstance = await WebAssembly.instantiate(this.module, {
      ...baseImports,
      ...additionalImports,
      
      "wasm:js-string": jsStringPolyfill,
    });
    dartInstance.exports.$setThisModule(dartInstance);

    return new InstantiatedApp(this, dartInstance);
  }
}

class InstantiatedApp {
  constructor(compiledApp, instantiatedModule) {
    this.compiledApp = compiledApp;
    this.instantiatedModule = instantiatedModule;
  }

  // Call the main function with the given arguments.
  invokeMain(...args) {
    this.instantiatedModule.exports.$invokeMain(args);
  }
}
