Zum Inhalt springen

Benutzer:Amir/common.js: Unterschied zwischen den Versionen

Amir (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Amir (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
$(function () {
/*
var g;
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
g ||= typeof Module != 'undefined' ? Module : {};
* This devtool is not neither made for production nor for readable output files.
var aa = "object" == typeof window, h = "undefined" != typeof WorkerGlobalScope, m = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node && "renderer" != process.type, ba = !aa && !m && !h, n = h && self.name?.startsWith("em-pthread");
* It uses "eval()" calls to create a separate source file in the browser devtools.
if (m) {
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
  var ca = require("worker_threads");
* or disable the default devtool with "devtool: false".
  global.Worker = ca.Worker;
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
  n = (h = !ca.$b) && "em-pthread" == ca.workerData;
*/
}
/******/ (function() { // webpackBootstrap
var da = Object.assign({}, g), ea = "./this.program", ha = (a, b) => {
/******/ var __webpack_modules__ = ({
  throw b;
 
}, ia = "undefined" != typeof document ? document.currentScript?.src : void 0;
/***/ "./node_modules/regenerator-runtime/runtime.js":
m ? ia = __filename : h && (ia = self.location.href);
/*!*****************************************************!*\
var q = "", ja, ka;
  !*** ./node_modules/regenerator-runtime/runtime.js ***!
if (m) {
  \*****************************************************/
  if ("undefined" == typeof process || !process.release || "node" !== process.release.name) {
/*! unknown exports (runtime-defined) */
    throw Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
/*! runtime requirements: module */
  }
/*! CommonJS bailout: module.exports is used directly at 740:31-45 */
  var la = process.versions.node, ma = la.split(".").slice(0, 3);
/***/ (function(module) {
  ma = 10000 * ma[0] + 100 * ma[1] + 1 * ma[2].split("-")[0];
 
  if (160000 > ma) {
eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n  \"use strict\";\n\n  var Op = Object.prototype;\n  var hasOwn = Op.hasOwnProperty;\n  var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; };\n  var undefined; // More compressible than void 0.\n  var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n  var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n  var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n  var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n  function define(obj, key, value) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n    return obj[key];\n  }\n  try {\n    // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n    define({}, \"\");\n  } catch (err) {\n    define = function(obj, key, value) {\n      return obj[key] = value;\n    };\n  }\n\n  function wrap(innerFn, outerFn, self, tryLocsList) {\n    // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n    var generator = Object.create(protoGenerator.prototype);\n    var context = new Context(tryLocsList || []);\n\n    // The ._invoke method unifies the implementations of the .next,\n    // .throw, and .return methods.\n    defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) });\n\n    return generator;\n  }\n  exports.wrap = wrap;\n\n  // Try/catch helper to minimize deoptimizations. Returns a completion\n  // record like context.tryEntries[i].completion. This interface could\n  // have been (and was previously) designed to take a closure to be\n  // invoked without arguments, but in all the cases we care about we\n  // already have an existing method we want to call, so there's no need\n  // to create a new function object. We can even get away with assuming\n  // the method takes exactly one argument, since that happens to be true\n  // in every case, so we don't have to touch the arguments object. The\n  // only additional allocation required is the completion record, which\n  // has a stable shape and so hopefully should be cheap to allocate.\n  function tryCatch(fn, obj, arg) {\n    try {\n      return { type: \"normal\", arg: fn.call(obj, arg) };\n    } catch (err) {\n      return { type: \"throw\", arg: err };\n    }\n  }\n\n  var GenStateSuspendedStart = \"suspendedStart\";\n  var GenStateSuspendedYield = \"suspendedYield\";\n  var GenStateExecuting = \"executing\";\n  var GenStateCompleted = \"completed\";\n\n  // Returning this object from the innerFn has the same effect as\n  // breaking out of the dispatch switch statement.\n  var ContinueSentinel = {};\n\n  // Dummy constructor functions that we use as the .constructor and\n  // .constructor.prototype properties for functions that return Generator\n  // objects. For full spec compliance, you may wish to configure your\n  // minifier not to mangle the names of these two functions.\n  function Generator() {}\n  function GeneratorFunction() {}\n  function GeneratorFunctionPrototype() {}\n\n  // This is a polyfill for %IteratorPrototype% for environments that\n  // don't natively support it.\n  var IteratorPrototype = {};\n  define(IteratorPrototype, iteratorSymbol, function () {\n    return this;\n  });\n\n  var getProto = Object.getPrototypeOf;\n  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n  if (NativeIteratorPrototype &&\n      NativeIteratorPrototype !== Op &&\n      hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n    // This environment has a native %IteratorPrototype%; use it instead\n    // of the polyfill.\n    IteratorPrototype = NativeIteratorPrototype;\n  }\n\n  var Gp = GeneratorFunctionPrototype.prototype =\n    Generator.prototype = Object.create(IteratorPrototype);\n  GeneratorFunction.prototype = GeneratorFunctionPrototype;\n  defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: true });\n  defineProperty(\n    GeneratorFunctionPrototype,\n    \"constructor\",\n    { value: GeneratorFunction, configurable: true }\n  );\n  GeneratorFunction.displayName = define(\n    GeneratorFunctionPrototype,\n    toStringTagSymbol,\n    \"GeneratorFunction\"\n  );\n\n  // Helper for defining the .next, .throw, and .return methods of the\n  // Iterator interface in terms of a single ._invoke method.\n  function defineIteratorMethods(prototype) {\n    [\"next\", \"throw\", \"return\"].forEach(function(method) {\n      define(prototype, method, function(arg) {\n        return this._invoke(method, arg);\n      });\n    });\n  }\n\n  exports.isGeneratorFunction = function(genFun) {\n    var ctor = typeof genFun === \"function\" && genFun.constructor;\n    return ctor\n      ? ctor === GeneratorFunction ||\n        // For the native GeneratorFunction constructor, the best we can\n        // do is to check its .name property.\n        (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n      : false;\n  };\n\n  exports.mark = function(genFun) {\n    if (Object.setPrototypeOf) {\n      Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n    } else {\n      genFun.__proto__ = GeneratorFunctionPrototype;\n      define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n    }\n    genFun.prototype = Object.create(Gp);\n    return genFun;\n  };\n\n  // Within the body of any async function, `await x` is transformed to\n  // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n  // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n  // meant to be awaited.\n  exports.awrap = function(arg) {\n    return { __await: arg };\n  };\n\n  function AsyncIterator(generator, PromiseImpl) {\n    function invoke(method, arg, resolve, reject) {\n      var record = tryCatch(generator[method], generator, arg);\n      if (record.type === \"throw\") {\n        reject(record.arg);\n      } else {\n        var result = record.arg;\n        var value = result.value;\n        if (value &&\n            typeof value === \"object\" &&\n            hasOwn.call(value, \"__await\")) {\n          return PromiseImpl.resolve(value.__await).then(function(value) {\n            invoke(\"next\", value, resolve, reject);\n          }, function(err) {\n            invoke(\"throw\", err, resolve, reject);\n          });\n        }\n\n        return PromiseImpl.resolve(value).then(function(unwrapped) {\n          // When a yielded Promise is resolved, its final value becomes\n          // the .value of the Promise<{value,done}> result for the\n          // current iteration.\n          result.value = unwrapped;\n          resolve(result);\n        }, function(error) {\n          // If a rejected Promise was yielded, throw the rejection back\n          // into the async generator function so it can be handled there.\n          return invoke(\"throw\", error, resolve, reject);\n        });\n      }\n    }\n\n    var previousPromise;\n\n    function enqueue(method, arg) {\n      function callInvokeWithMethodAndArg() {\n        return new PromiseImpl(function(resolve, reject) {\n          invoke(method, arg, resolve, reject);\n        });\n      }\n\n      return previousPromise =\n        // If enqueue has been called before, then we want to wait until\n        // all previous Promises have been resolved before calling invoke,\n        // so that results are always delivered in the correct order. If\n        // enqueue has not been called before, then it is important to\n        // call invoke immediately, without waiting on a callback to fire,\n        // so that the async generator function has the opportunity to do\n        // any necessary setup in a predictable way. This predictability\n        // is why the Promise constructor synchronously invokes its\n        // executor callback, and why async functions synchronously\n        // execute code before the first await. Since we implement simple\n        // async functions in terms of async generators, it is especially\n        // important to get this right, even though it requires care.\n        previousPromise ? previousPromise.then(\n          callInvokeWithMethodAndArg,\n          // Avoid propagating failures to Promises returned by later\n          // invocations of the iterator.\n          callInvokeWithMethodAndArg\n        ) : callInvokeWithMethodAndArg();\n    }\n\n    // Define the unified helper method that is used to implement .next,\n    // .throw, and .return (see defineIteratorMethods).\n    defineProperty(this, \"_invoke\", { value: enqueue });\n  }\n\n  defineIteratorMethods(AsyncIterator.prototype);\n  define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n    return this;\n  });\n  exports.AsyncIterator = AsyncIterator;\n\n  // Note that simple async functions are implemented on top of\n  // AsyncIterator objects; they just return a Promise for the value of\n  // the final result produced by the iterator.\n  exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n    if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n    var iter = new AsyncIterator(\n      wrap(innerFn, outerFn, self, tryLocsList),\n      PromiseImpl\n    );\n\n    return exports.isGeneratorFunction(outerFn)\n      ? iter // If outerFn is a generator, return the full iterator.\n      : iter.next().then(function(result) {\n          return result.done ? result.value : iter.next();\n        });\n  };\n\n  function makeInvokeMethod(innerFn, self, context) {\n    var state = GenStateSuspendedStart;\n\n    return function invoke(method, arg) {\n      if (
    throw Error("This emscripten-generated code requires node v16.0.0 (detected v" + la + ")");
state === GenStateExecuting) {\n        throw new Error(\"Generator is already running\");\n      }\n\n      if (state === GenStateCompleted) {\n        if (method === \"throw\") {\n          throw arg;\n        }\n\n        // Be forgiving, per GeneratorResume behavior specified since ES2015:\n        // ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume\n        // Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume\n        return doneResult();\n      }\n\n      context.method = method;\n      context.arg = arg;\n\n      while (true) {\n        var delegate = context.delegate;\n        if (delegate) {\n          var delegateResult = maybeInvokeDelegate(delegate, context);\n          if (delegateResult) {\n            if (delegateResult === ContinueSentinel) continue;\n            return delegateResult;\n          }\n        }\n\n        if (context.method === \"next\") {\n          // Setting context._sent for legacy support of Babel's\n          // function.sent implementation.\n          context.sent = context._sent = context.arg;\n\n        } else if (context.method === \"throw\") {\n          if (state === GenStateSuspendedStart) {\n            state = GenStateCompleted;\n            throw context.arg;\n          }\n\n          context.dispatchException(context.arg);\n\n        } else if (context.method === \"return\") {\n          context.abrupt(\"return\", context.arg);\n        }\n\n        state = GenStateExecuting;\n\n        var record = tryCatch(innerFn, self, context);\n        if (record.type === \"normal\") {\n          // If an exception is thrown from innerFn, we leave state ===\n          // GenStateExecuting and loop back for another invocation.\n          state = context.done\n            ? GenStateCompleted\n            : GenStateSuspendedYield;\n\n          if (record.arg === ContinueSentinel) {\n            continue;\n          }\n\n          return {\n            value: record.arg,\n            done: context.done\n          };\n\n        } else if (record.type === \"throw\") {\n          state = GenStateCompleted;\n          // Dispatch the exception by looping back around to the\n          // context.dispatchException(context.arg) call above.\n          context.method = \"throw\";\n          context.arg = record.arg;\n        }\n      }\n    };\n  }\n\n  // Call delegate.iterator[context.method](context.arg) and handle the\n  // result, either by returning a { value, done } result from the\n  // delegate iterator, or by modifying context.method and context.arg,\n  // setting context.delegate to null, and returning the ContinueSentinel.\n  function maybeInvokeDelegate(delegate, context) {\n    var methodName = context.method;\n    var method = delegate.iterator[methodName];\n    if (method === undefined) {\n      // A .throw or .return when the delegate iterator has no .throw\n      // method, or a missing .next method, always terminate the\n      // yield* loop.\n      context.delegate = null;\n\n      // Note: [\"return\"] must be used for ES3 parsing compatibility.\n      if (methodName === \"throw\" && delegate.iterator[\"return\"]) {\n        // If the delegate iterator has a return method, give it a\n        // chance to clean up.\n        context.method = \"return\";\n        context.arg = undefined;\n        maybeInvokeDelegate(delegate, context);\n\n        if (context.method === \"throw\") {\n          // If maybeInvokeDelegate(context) changed context.method from\n          // \"return\" to \"throw\", let that override the TypeError below.\n          return ContinueSentinel;\n        }\n      }\n      if (methodName !== \"return\") {\n        context.method = \"throw\";\n        context.arg = new TypeError(\n          \"The iterator does not provide a '\" + methodName + \"' method\");\n      }\n\n      return ContinueSentinel;\n    }\n\n    var record = tryCatch(method, delegate.iterator, context.arg);\n\n    if (record.type
  }
  var fs = require("fs"), na = require("path");
  q = __dirname + "/";
  ka = a => {
    a = oa(a) ? new URL(a) : na.normalize(a);
    a = fs.readFileSync(a);
    t(a.buffer);
    return a;
  };
  ja = a => {
    a = oa(a) ? new URL(a) : na.normalize(a);
    return new Promise((b, c) => {
      fs.readFile(a, void 0, (d, e) => {
        d ? c(d) : b(e.buffer);
      });
    });
  };
  !g.thisProgram && 1 < process.argv.length && (ea = process.argv[1].replace(/\\/g, "/"));
  process.argv.slice(2);
  "undefined" != typeof module && (module.exports = g);
  ha = (a, b) => {
    process.exitCode = a;
    throw b;
  };
} else if (ba) {
  if ("object" == typeof process && "function" === typeof require || "object" == typeof window || "undefined" != typeof WorkerGlobalScope) {
    throw Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
  }
} else if (aa || h) {
  h ? q = self.location.href : "undefined" != typeof document && document.currentScript && (q = document.currentScript.src);
  q = q.startsWith("blob:") ? "" : q.substr(0, q.replace(/[?#].*/, "").lastIndexOf("/") + 1);
  if ("object" != typeof window && "undefined" == typeof WorkerGlobalScope) {
    throw Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
  }
  m || (h && (ka = a => {
    var b = new XMLHttpRequest();
    b.open("GET", a, !1);
    b.responseType = "arraybuffer";
    b.send(null);
    return new Uint8Array(b.response);
  }), ja = a => oa(a) ? new Promise((b, c) => {
    var d = new XMLHttpRequest();
    d.open("GET", a, !0);
    d.responseType = "arraybuffer";
    d.onload = () => {
      200 == d.status || 0 == d.status && d.response ? b(d.response) : c(d.status);
    };
    d.onerror = c;
    d.send(null);
  }) : fetch(a, {credentials:"same-origin"}).then(b => b.ok ? b.arrayBuffer() : Promise.reject(Error(b.status + " : " + b.url))));
} else {
  throw Error("environment detection error");
}
var pa = console.log.bind(console), qa = console.error.bind(console);
m && (pa = (...a) => fs.writeSync(1, a.join(" ") + "\n"), qa = (...a) => fs.writeSync(2, a.join(" ") + "\n"));
var u = g.print || pa, v = g.printErr || qa;
Object.assign(g, da);
da = null;
Object.getOwnPropertyDescriptor(g, "fetchSettings") && w("`Module.fetchSettings` was supplied but `fetchSettings` not included in INCOMING_MODULE_JS_API");
x("arguments", "arguments_");
g.thisProgram && (ea = g.thisProgram);
x("thisProgram", "thisProgram");
t("undefined" == typeof g.memoryInitializerPrefixURL, "Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead");
t("undefined" == typeof g.pthreadMainPrefixURL, "Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead");
t("undefined" == typeof g.cdInitializerPrefixURL, "Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead");
t("undefined" == typeof g.filePackagePrefixURL, "Module.filePackagePrefixURL option was removed, use Module.locateFile instead");
t("undefined" == typeof g.read, "Module.read option was removed");
t("undefined" == typeof g.readAsync, "Module.readAsync option was removed (modify readAsync in JS)");
t("undefined" == typeof g.readBinary, "Module.readBinary option was removed (modify readBinary in JS)");
t("undefined" == typeof g.setWindowTitle, "Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)");
t("undefined" == typeof g.TOTAL_MEMORY, "Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY");
x("asm", "wasmExports");
x("readAsync", "readAsync");
x("readBinary", "readBinary");
x("setWindowTitle", "setWindowTitle");
t(aa || h || m, "Pthreads do not work in this environment yet (need Web Workers, or an alternative to them)");
t(!ba, "shell environment detected but not enabled at build time.  Add `shell` to `-sENVIRONMENT` to enable.");
var ra = g.wasmBinary;
x("wasmBinary", "wasmBinary");
"object" != typeof WebAssembly && v("no native wasm support detected");
var z, sa, A = !1, ta;
function t(a, b) {
  a || w("Assertion failed" + (b ? ": " + b : ""));
}
var C, ua, va, D, F, G, H, xa;
function ya() {
  var a = z.buffer;
  g.HEAP8 = C = new Int8Array(a);
  g.HEAP16 = va = new Int16Array(a);
  g.HEAPU8 = ua = new Uint8Array(a);
  g.HEAPU16 = new Uint16Array(a);
  g.HEAP32 = D = new Int32Array(a);
  g.HEAPU32 = F = new Uint32Array(a);
  g.HEAPF32 = G = new Float32Array(a);
  g.HEAPF64 = xa = new Float64Array(a);
  g.HEAP64 = H = new BigInt64Array(a);
  g.HEAPU64 = new BigUint64Array(a);
}
var za = 0;
if (n) {
  var Aa;
  if (m) {
    var Ba = ca.parentPort;
    Ba.on("message", c => onmessage({data:c}));
    Object.assign(globalThis, {self:global, postMessage:c => Ba.postMessage(c),});
  }
  var Ca = !1;
  function a(...c) {
    c = c.join(" ");
    m ? fs.writeSync(2, c + "\n") : console.error(c);
  }
  g.printErr || (v = a);
  Da = a;
  self.alert = function(...c) {
    postMessage({s:"alert", text:c.join(" "), nb:I()});
  };
  self.onunhandledrejection = c => {
    throw c.reason || c;
  };
  function b(c) {
    try {
      var d = c.data, e = d.s;
      if ("load" === e) {
        za = d.la;
        let f = [];
        self.onmessage = k => f.push(k);
        self.startWorker = () => {
          postMessage({s:"loaded"});
          for (let k of f) {
            b(k);
          }
          self.onmessage = b;
        };
        for (const k of d.Sa) {
          if (!g[k] || g[k].proxy) {
            g[k] = (...l) => {
              postMessage({s:"callHandler", Ra:k, args:l});
            }, "print" == k && (u = g[k]), "printErr" == k && (v = g[k]);
          }
        }
        z = d.sb;
        ya();
        Aa(d.tb);
      } else if ("run" === e) {
        t(d.o);
        Ea(d.o);
        Fa(d.o, 0, 0, 1, 0, 0);
        Ga();
        Ha(d.o);
        Ca ||= !0;
        try {
          Ia(d.kb, d.S);
        } catch (f) {
          if ("unwind" != f) {
            throw f;
          }
        }
      } else {
        "setimmediate" !== d.target && ("checkMailbox" === e ? Ca && Ma() : e && (v(`worker: received unknown command ${e}`), v(d)));
      }
    } catch (f) {
      throw v(`worker: onmessage() captured an uncaught exception: ${f}`), f?.stack && v(f.stack), Na(), f;
    }
  }
  self.onmessage = b;
}
t(!g.STACK_SIZE, "STACK_SIZE can no longer be set at runtime.  Use -sSTACK_SIZE at link time");
t("undefined" != typeof